From af5e92df80064c23b32df1cdce651a8bc5d224ec Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 05 十二月 2024 12:50:27 +0800
Subject: [PATCH] 修改整体表格样式

---
 north-glass-erp/northglass-erp/src/views/pp/machine/AddMaintenanceAndRepair.vue |  105 +++++++++++++++++++++++++++-------------------------
 1 files changed, 55 insertions(+), 50 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/machine/AddMaintenanceAndRepair.vue b/north-glass-erp/northglass-erp/src/views/pp/machine/AddMaintenanceAndRepair.vue
index c5357ff..e757fa0 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/machine/AddMaintenanceAndRepair.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/machine/AddMaintenanceAndRepair.vue
@@ -224,65 +224,70 @@
 </script>
 
 <template>
-  <div class="main-div-customer">
-    <vxe-grid
-        ref="xGrid"
-        class="mytable-scrollbar"
-        height="650px"
-        max-height="100%"
-        v-bind="gridOptions"
-        v-on="teamGridEvents"
-    >
+  <div  style="width: 100%;height: 100%">
+    <div class="main-table">
+      <vxe-grid
+          ref="xGrid"
+          class="mytable-scrollbar"
+          height="100%"
+          v-bind="gridOptions"
+          v-on="teamGridEvents"
+      >
 
-      <template #num1_filter="{ column, $panel }">
-        <div>
-          <div v-for="(option, index) in column.filters" :key="index">
-            <input v-model="option.data" type="text"
-                   @keyup.enter.native="$panel.confirmFilter()"
-                   @input="changeFilterEvent($event, option, $panel)"/>
+        <template #num1_filter="{ column, $panel }">
+          <div>
+            <div v-for="(option, index) in column.filters" :key="index">
+              <input v-model="option.data" type="text"
+                     @keyup.enter.native="$panel.confirmFilter()"
+                     @input="changeFilterEvent($event, option, $panel)"/>
+            </div>
           </div>
-        </div>
-      </template>
-      <!--璁惧-->
-      <template #deviceName="{ row }">
-        <vxe-select v-model="row.deviceName"
-                    clearable
-                    filterable
-                    placeholder="">
-          <vxe-option v-for="item in titleSelectJson.deviceType"
-                      :key="item.basic_name"
-                      :label="item.basic_name"
-                      :value="item.basic_name"/>
-        </vxe-select>
-      </template>
-      <template #basicCategory_default="{ row }">
-        <span>{{ row.deviceName }}</span>
-      </template>
+        </template>
+        <!--璁惧-->
+        <template #deviceName="{ row }">
+          <vxe-select v-model="row.deviceName"
+                      clearable
+                      filterable
+                      placeholder="">
+            <vxe-option v-for="item in titleSelectJson.deviceType"
+                        :key="item.basic_name"
+                        :label="item.basic_name"
+                        :value="item.basic_name"/>
+          </vxe-select>
+        </template>
+        <template #basicCategory_default="{ row }">
+          <span>{{ row.deviceName }}</span>
+        </template>
 
 
-      <!--宸ュ簭-->
-      <template #process="{ row }">
-        <vxe-select v-model="row.process"
-                    clearable
-                    filterable
-                    placeholder="">
-          <vxe-option v-for="item in computedDevice(row.deviceName)" :key="item.id" :label="item.basic_category"
-                      :value="item.basic_category"/>
-        </vxe-select>
-      </template>
-      <template #reportingDeviceSort_default="{ row }">
-        <span>{{ row.process }}</span>
-      </template>
+        <!--宸ュ簭-->
+        <template #process="{ row }">
+          <vxe-select v-model="row.process"
+                      clearable
+                      filterable
+                      placeholder="">
+            <vxe-option v-for="item in computedDevice(row.deviceName)" :key="item.id" :label="item.basic_category"
+                        :value="item.basic_category"/>
+          </vxe-select>
+        </template>
+        <template #reportingDeviceSort_default="{ row }">
+          <span>{{ row.process }}</span>
+        </template>
 
-    </vxe-grid>
-
+      </vxe-grid>
+    </div>
   </div>
 </template>
 
 <style scoped>
-.main-div-customer {
-  width: 99%;
-  height: 100%;
+.head{
+  width: 100%;
+  height: 35px;
+}
+
+.main-table{
+  width: 100%;
+  height: calc(100% - 0px);
 }
 
 .vxe-grid {

--
Gitblit v1.8.0