Procházet zdrojové kódy

Merge branch 'bind-all' of http://39.106.8.246:3003/web/wanda-editer into bind-all

zhangyu před 4 roky
rodič
revize
bce2fce27f
1 změnil soubory, kde provedl 37 přidání a 6 odebrání
  1. 37 6
      src/components/edit/edit-dialog.vue

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

@@ -189,14 +189,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: [
@@ -204,14 +213,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: [
@@ -219,14 +237,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: [],
@@ -1024,6 +1051,10 @@
 </script>
 
 <style scoped lang="less">
+   /deep/ th.column-center,
+   /deep/ td.column-center {
+        text-align: center !important;
+    }
     .edit-dialog {
         .dialog-content {
             width: 1136px;