Browse Source

表格宽度调整

刘洋 1 year ago
parent
commit
37bf558ac9

+ 1 - 1
src/views/sop/sop-monitor/delay-warning/index.vue

@@ -109,7 +109,7 @@ const columns = [
     title: '管理',
     title: '管理',
     colKey: 'operate',
     colKey: 'operate',
     fixed: 'right',
     fixed: 'right',
-    width: 200,
+    width: 130,
     cell: (h, { row }) => {
     cell: (h, { row }) => {
       return (
       return (
         <div class="table-operations">
         <div class="table-operations">

+ 7 - 6
src/views/sop/sop-monitor/violation-registration/index.vue

@@ -89,14 +89,15 @@ const closeHandler = (row) => {
 };
 };
 const columns = [
 const columns = [
   // { colKey: 'a', title: '违规流水号' },
   // { colKey: 'a', title: '违规流水号' },
-  { colKey: 'sopNo', title: 'SOP流水号' },
-  { colKey: 'userName', title: '节点负责人' },
-  { colKey: 'custom', title: '客户名称' },
-  { colKey: 'crmNo', title: '项目单号' },
+  { colKey: 'sopNo', title: 'SOP流水号', width: 160 },
+  { colKey: 'userName', title: '节点负责人', width: 120 },
+  { colKey: 'custom', title: '客户名称', width: 120 },
+  { colKey: 'crmNo', title: '项目单号', width: 140 },
   { colKey: 'crmName', title: '项目名称' },
   { colKey: 'crmName', title: '项目名称' },
   {
   {
     colKey: 'type',
     colKey: 'type',
     title: '违规类型',
     title: '违规类型',
+    width: 130,
     cell: (h, { row }) => {
     cell: (h, { row }) => {
       return <span>{VIOLATION_TYPE[row.type] || row.type}</span>;
       return <span>{VIOLATION_TYPE[row.type] || row.type}</span>;
     },
     },
@@ -110,12 +111,12 @@ const columns = [
     },
     },
   },
   },
   { colKey: 'createTime', title: '登记时间' },
   { colKey: 'createTime', title: '登记时间' },
-  { colKey: 'createName', title: '登记人' },
+  { colKey: 'createName', title: '登记人', width: 120 },
   {
   {
     title: '管理',
     title: '管理',
     colKey: 'operate',
     colKey: 'operate',
     fixed: 'right',
     fixed: 'right',
-    width: 200,
+    width: 130,
     cell: (h, { row }) => {
     cell: (h, { row }) => {
       return (
       return (
         <div class="table-operations">
         <div class="table-operations">