Browse Source

选择编辑 添加所属楼层

xiebeibei 4 years ago
parent
commit
ccf6522a7f
1 changed files with 37 additions and 6 deletions
  1. 37 6
      src/components/edit/edit-dialog.vue

+ 37 - 6
src/components/edit/edit-dialog.vue

@@ -144,14 +144,23 @@
                         title: '对象名称',
                         dataIndex: 'sbjc',
                         key: 'sbjc',
-                        width: '75%',
+                        width: '60%',
+                        ellipsis: true,
                         scopedSlots: {customRender: 'sbjc'},
                     },
                     {
                         title: '对象内码',
                         dataIndex: 'sbjbm',
                         key: 'sbjbm',
-                        width: '25%',
+                        width: '20%',
+                        className: 'column-center',
+                    },
+                    {
+                        title: '所属楼层',
+                        dataIndex: 'floorcode',
+                        key: 'floorcode',
+                        width: '20%',
+                        className: 'column-center',
                     },
                 ],
                 columnsSys: [
@@ -159,14 +168,23 @@
                         title: '设备名称',
                         dataIndex: 'sbjc',
                         key: 'sbjc',
-                        width: '75%',
+                        width: '60%',
+                        ellipsis: true,
                         scopedSlots: {customRender: 'sbjc'},
                     },
                     {
                         title: '设备内码',
                         dataIndex: 'assetnum',
                         key: 'assetnum',
-                        width: '25%',
+                        width: '20%',
+                        className: 'column-center',
+                    },
+                    {
+                        title: '所属楼层',
+                        dataIndex: 'floorcode',
+                        key: 'floorcode',
+                        width: '20%',
+                        className: 'column-center',
                     },
                 ],
                 columnsLocal: [
@@ -174,14 +192,23 @@
                         title: '位置名称',
                         dataIndex: 'wzjc',
                         key: 'wzjc',
-                        width: '75%',
+                        width: '60%',
+                        ellipsis: true,
                         scopedSlots: {customRender: 'wzjc'},
                     },
                     {
                         title: '位置内码',
                         dataIndex: 'location',
                         key: 'location',
-                        width: '25%',
+                        width: '20%',
+                        className: 'column-center',
+                    },
+                    {
+                        title: '所属楼层',
+                        dataIndex: 'floorcode',
+                        key: 'floorcode',
+                        width: '20%',
+                        className: 'column-center',
                     },
                 ],
                 tableData: [],
@@ -690,6 +717,10 @@
 </script>
 
 <style scoped lang="less">
+   /deep/ th.column-center,
+   /deep/ td.column-center {
+        text-align: center !important;
+    }
     .edit-dialog {
         .dialog-content {
             width: 1136px;