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/processCard/SelectPrintProject.vue |   98 +++++++++++++++++++++++++------------------------
 1 files changed, 50 insertions(+), 48 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
index 3da9010..330e795 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
@@ -298,9 +298,8 @@
 </script>
 
 <template>
-  <div class="main-div-customer">
-    <div id="selectForm">
-      <el-row :gutter="0">
+  <div  style="width: 100%;height: 100%">
+    <div class="head">
         <el-date-picker
             v-model="form.date1"
             :start-placeholder="$t('basicData.startDate')"
@@ -317,55 +316,56 @@
             :icon="Search"
             type="primary" @click="getWorkOrder">{{ $t('basicData.search') }}
         </el-button>
-      </el-row>
     </div>
-    <vxe-grid
-        ref="xGrid"
-        class="mytable-scrollbar"
-        height="100%"
-        v-bind="gridOptions"
-        v-on="gridEvents"
-    >
-      <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
-      <!--      涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
-      <template #content="{ row }">
-        <ul class="expand-wrapper">
-          <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined ">
-            <span style="font-weight: bold">{{ item.title + ':  ' }}</span>
-            <span v-if="hasDecimal(item.field)">{{ row[item.field.split('.')[0]][item.field.split('.')[1]] }}</span>
-            <span v-else>{{ row[item.field] }}</span>
+    <div class="main-table">
+      <vxe-grid
+          ref="xGrid"
+          class="mytable-scrollbar"
+          height="100%"
+          v-bind="gridOptions"
+          v-on="gridEvents"
+      >
+        <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
+        <!--      涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
+        <template #content="{ row }">
+          <ul class="expand-wrapper">
+            <li v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined ">
+              <span style="font-weight: bold">{{ item.title + ':  ' }}</span>
+              <span v-if="hasDecimal(item.field)">{{ row[item.field.split('.')[0]][item.field.split('.')[1]] }}</span>
+              <span v-else>{{ row[item.field] }}</span>
 
-          </li>
-        </ul>
-      </template>
-      <!--宸﹁竟鍥哄畾鏄剧ず鐨勬彃妲�-->
-      <template #button_slot="{ row }">
-        <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">{{$t('machine.cutting')}}</el-button>
-        <el-button @click="getTableRow(row,'edit1')" link type="primary" size="small">{{$t('machine.tempering')}}</el-button>
-        <el-button @click="getTableRow(row,'edit2')" link type="primary" size="small">{{$t('components.finishedProduct')}}</el-button>
-      </template>
+            </li>
+          </ul>
+        </template>
+        <!--宸﹁竟鍥哄畾鏄剧ず鐨勬彃妲�-->
+        <template #button_slot="{ row }">
+          <el-button @click="getTableRow(row,'edit')" link type="primary" size="small">{{$t('machine.cutting')}}</el-button>
+          <el-button @click="getTableRow(row,'edit1')" link type="primary" size="small">{{$t('machine.tempering')}}</el-button>
+          <el-button @click="getTableRow(row,'edit2')" link type="primary" size="small">{{$t('components.finishedProduct')}}</el-button>
+        </template>
 
-      <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>
 
-      <template #toolbar_buttons>
-        <vxe-select @change="changeOrderType" v-model="print" >
-          <vxe-option value="1" label="EPSON LQ-82KF ESC/P2"></vxe-option>
-          <vxe-option value="2" label="TSC TTP-244Pro"></vxe-option>
-        </vxe-select>
-      </template>
+        <template #toolbar_buttons>
+          <vxe-select @change="changeOrderType" v-model="print" >
+            <vxe-option value="1" label="EPSON LQ-82KF ESC/P2"></vxe-option>
+            <vxe-option value="2" label="TSC TTP-244Pro"></vxe-option>
+          </vxe-select>
+        </template>
 
 
 
 
-    </vxe-grid>
+      </vxe-grid>
+    </div>
     <el-dialog
         id="titleStyle"
         :title="$t('processCard.labelStyle')"
@@ -398,12 +398,14 @@
 
 
 <style scoped>
-.main-div-customer {
-  width: 99%;
-  height: 93%;
+.head{
+  width: 100%;
+  height: 35px;
 }
-#selectForm {
-  width: 60%;
+
+.main-table{
+  width: 100%;
+  height: calc(100% - 35px);
 }
 :deep(#titleStyle .el-dialog__body){
   height: 90%;

--
Gitblit v1.8.0