소스 검색

完善主要设备清单

zhangyu 4 년 전
부모
커밋
4c38b37823
2개의 변경된 파일98개의 추가작업 그리고 953개의 파일을 삭제
  1. 2 815
      src/utils/components.js
  2. 96 138
      src/views/equipmentFacilities/MainEquipment.vue

+ 2 - 815
src/utils/components.js

@@ -9,819 +9,6 @@
  * @param { string } difference 区分给排水 取值范围:给水;排水 给排水专用字段
  *
  */
-const system = [
-    {
-        name: '供电系统',
-        id: 1,
-        categoryId: 'GDXT',
-        smsxt: '1001',
-        icon: require('@/assets/imgs/cdgd.png'),
-        icon1: require('@/assets/imgs/cdgd2.png'),
-        children: [
-            {
-                label: '系统原理图',
-                children: [],
-                id: 'GDYL',
-                param: { tab_code: '1592', type_code: '2010' },
-            },
-            {
-                label: '主要设备清单',
-                children: [],
-                id: 'GDQD',
-                param: { tab_code: 'gd01' },
-            },
-            {
-                label: '楼层电井(间)控制商铺范围清单',
-                id: 'GJSP',
-                children: [],
-                param: { tab_code: '1592' },
-            },
-            {
-                label: '主要设备维保事项',
-                id: 'GDWB',
-                children: [
-                    {
-                        label: '配电室内重要维保',
-                        id: 'GDWB1',
-                        param: { tab_code: '1592', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '配电室外重要维保',
-                        id: 'GDWB2',
-                        param: { tab_code: '1593', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', diff: 'ourct2', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备维修事项',
-                id: 'GDWX',
-                children: [
-                    {
-                        label: '配电室内重要维修',
-                        id: 'GDWX1',
-                        param: { tab_code: '1592', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '配电室外重要维修',
-                        id: 'GDWX2',
-                        param: { tab_code: '1593', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', diff: 'rc', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '专维及其他事项',
-                id: 'GDZW',
-                children: [
-                    {
-                        label: '专项维修',
-                        id: 'GDZW',
-                        param: { tab_code: '1592', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'GDQT',
-                        param: { tab_code: '1593', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-            },
-            {
-                label: '查看图纸',
-                children: [],
-                id: 'GDTZ',
-                param: { tab_code: 'rd01' },
-            },
-        ],
-    },
-    {
-        name: '暖通系统',
-        smsxt: '1002',
-        id: 2,
-        categoryId: 'NTXT',
-        icon: require('@/assets/imgs/cdnt.png'),
-        icon1: require('@/assets/imgs/cdnt2.png'),
-        children: [
-            {
-                label: '系统原理图',
-                id: 'NTYL',
-                children: [
-                    {
-                        label: '空调系统原理图',
-                        id: 'NTYL1',
-                        param: { tab_code: '1572', type_code: '2011' },
-                    },
-                    {
-                        label: '采暖系统原理图',
-                        id: 'NTYL2',
-                        param: { tab_code: '1512', type_code: '2012' },
-                    },
-                    {
-                        label: '分水器支路分布明细',
-                        id: 'NTYL3',
-                        param: { tab_code: '1502', type_code: '2013' },
-                    },
-                    {
-                        label: '分水器支路分布图',
-                        id: 'NTYL4',
-                        param: { tab_code: '1542', type_code: 'FBT1' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备清单',
-                children: [
-                    {
-                        label: '冷热源机房内',
-                        id: 'NTQD1',
-                        param: { tab_code: 'nt01' },
-                    },
-                    {
-                        label: '楼层末端',
-                        id: 'NTQD2',
-                        param: { tab_code: 'nt02' },
-                    },
-                ],
-                id: 'NTQD',
-            },
-            {
-                label: '主要设备维保事项',
-                children: [
-                    {
-                        label: '冷源机房内重要维保',
-                        id: 'NTWB1',
-                        param: { tab_code: '1592', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '冷源机房外重要维保',
-                        id: 'NTWB2',
-                        param: { tab_code: '1593', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', diff: 'rb', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-                id: 'NTWB',
-            },
-            {
-                label: '主要设备维修事项',
-                children: [
-                    {
-                        label: '冷源机房内重要维修',
-                        id: 'NTWX1',
-                        param: { tab_code: '1592', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '冷源机房外重要维修',
-                        id: 'NTWX2',
-                        param: { tab_code: '1593', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', diff: 'rx', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-                id: 'NTWX',
-            },
-            {
-                label: '专维及其他事项',
-                children: [
-                    {
-                        label: '专项维修',
-                        id: 'NTZW',
-                        param: { tab_code: '1592', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'NTQT',
-                        param: { tab_code: '1593', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-                id: 'NTZW',
-            },
-            {
-                label: '查看图纸',
-                children: [],
-                param: { tab_code: 'rd01' },
-                id: 'NTTZ',
-            },
-        ],
-    },
-    {
-        name: '消防系统',
-        smsxt: '1003',
-        categoryId: 'XFXT',
-        icon: require('@/assets/imgs/cdxf.png'),
-        icon1: require('@/assets/imgs/cdxf2.png'),
-        id: 3,
-        children: [
-            {
-                label: '系统原理图',
-                children: [
-                    {
-                        label: '消防电系统原理示意图',
-                        id: 'XFYL1',
-                        param: { tab_code: '1572', type_code: '2014' },
-                    },
-                    {
-                        label: '消防喷淋系统示意图',
-                        id: 'XFYL2',
-                        param: { tab_code: '1552', type_code: '2015' },
-                    },
-                    {
-                        label: '消防窗喷系统示意图',
-                        id: 'XFYL3',
-                        param: { tab_code: '1542', type_code: '2016' },
-                    },
-                    {
-                        label: '消防栓系统示意图',
-                        id: 'XFYL4',
-                        param: { tab_code: '1545', type_code: '2017' },
-                    },
-                    {
-                        label: '消防泵房引出管路分布图',
-                        id: 'XFYL5',
-                        param: { type_code: 'FBT2' },
-                    },
-                ],
-                id: 'XFYL',
-            },
-            {
-                label: '主要设备清单',
-                children: [],
-                id: 'XFQD',
-                param: { tab_code: 'xf01' },
-            },
-            {
-                label: '主要设备维保事项',
-                id: 'XFWB',
-                children: [
-                    {
-                        label: '中控室/消防泵房内重要维保',
-                        id: 'XFWB1',
-                        param: { tab_code: '1573', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '中控室/消防泵房外重要维保',
-                        id: 'XFWB2',
-                        param: { tab_code: '1572', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', diff: 'rb', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备维修事项',
-                id: 'XFWX',
-                children: [
-                    {
-                        label: '中控室/消防泵房内重要维修',
-                        id: 'XFWX1',
-                        param: { tab_code: '1573', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '中控室/消防泵房外重要维修',
-                        id: 'XFWX2',
-                        param: { tab_code: '1572', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', diff: 'rx', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '专维及其他事项',
-                id: 'XFZW',
-                children: [
-                    {
-                        label: '专项维修',
-                        id: 'XFZW',
-                        param: { tab_code: '1576', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'XFQT',
-                        param: { tab_code: '1572', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-            },
-            {
-                label: '查看图纸',
-                children: [],
-                param: { tab_code: 'rd01' },
-                id: 'XFTZ',
-            },
-        ],
-    },
-    {
-        name: '弱电系统',
-        smsxt: '1004',
-        id: '1004',
-        categoryId: 'RDXT',
-        icon: require('@/assets/imgs/cdrd.png'),
-        icon1: require('@/assets/imgs/cdrd2.png'),
-        children: [
-            {
-                label: '系统原理图',
-                children: [
-                    {
-                        label: '门禁管理系统原理图',
-                        id: 'RDYL2',
-                        param: { tab_code: 'rd01', type_code: '2019' },
-                    },
-                    {
-                        label: '视频监控系统原理图',
-                        id: 'RDYL1',
-                        param: { tab_code: '1572', type_code: '2018' },
-                    },
-                    {
-                        label: 'BA楼宇智能化系统原理图',
-                        id: 'RDYL3',
-                        param: { tab_code: '1574', type_code: '2020' },
-                    },
-                ],
-                id: 'RDYL',
-            },
-            {
-                label: '主要设备清单',
-                id: 'RDQD',
-                children: [
-                    {
-                        label: '门禁管理',
-                        id: 'RDQD2',
-                        param: { tab_code: 'rd01' },
-                    },
-                    {
-                        label: '视频监控',
-                        id: 'RDQD3',
-                        param: { tab_code: 'rd02' },
-                    },
-                    {
-                        label: 'BA楼宇智能化',
-                        id: 'RDQD1',
-                        param: { tab_code: 'rd03' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备维保事项',
-                id: 'RDWB',
-                children: [
-                    {
-                        label: '慧云机房内重要维保',
-                        id: 'RDWB1',
-                        param: { tab_code: '1592', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '慧云机房外重要维保',
-                        id: 'RDWB2',
-                        param: { tab_code: '1593', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', diff: 'rb', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备维修事项',
-                id: 'RDWX',
-                children: [
-                    {
-                        label: '慧云机房内重要维修',
-                        id: 'RDWX1',
-                        param: { tab_code: '1592', diff: 'in', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '慧云机房外重要维修',
-                        id: 'RDWX2',
-                        param: { tab_code: '1593', diff: 'out', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', diff: 'rx', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '专维及其他事项',
-                id: 'RDZW',
-                children: [
-                    {
-                        label: '专项维修',
-                        id: 'RDZW',
-                        param: { tab_code: '1592', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'RDQT',
-                        param: { tab_code: '1593', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-            },
-            {
-                label: '查看图纸',
-                id: 'RDTZ',
-                param: { tab_code: 'rd01' },
-                children: [],
-            },
-        ],
-    },
-    {
-        name: '给排水',
-        smsxt: '1005',
-        categoryId: 'JPSXT',
-        id: 5,
-        icon: require('@/assets/imgs/cdgps.png'),
-        icon1: require('@/assets/imgs/cdgps2.png'),
-        children: [
-            {
-                label: '系统原理图',
-                id: 'GSYL',
-                children: [
-                    {
-                        label: '给水系统原理示意图',
-                        id: 'GSYL1',
-                        param: { tab_code: '1572', type_code: '2021', diff: '给水' },
-                    },
-                    {
-                        label: '排水系统原理示意图',
-                        id: 'GSYL2',
-                        param: { tab_code: '1542', type_code: '2022', diff: '排水' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备清单',
-                id: 'GSQD',
-                children: [],
-                param: { tab_code: 'gps01' },
-            },
-            {
-                label: '主要设备维保事项',
-                id: 'GSWB',
-                children: [
-                    {
-                        label: '给水系统重要维保',
-                        id: 'GSWB1',
-                        param: { tab_code: 'gps01', diff: 'gs', difference: '给水', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '排水系统重要维保',
-                        id: 'GSWB2',
-                        param: { tab_code: 'gps02', diff: 'ps', difference: '排水', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', diff: 'rb', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备维修事项',
-                id: 'GSWX',
-                children: [
-                    {
-                        label: '给水系统重要维修',
-                        id: 'GSWX1',
-                        param: { tab_code: '1592', diff: 'gs', difference: '给水', wznw: '内', apply: '维修维保' },
-                    },
-                    {
-                        label: '排水系统重要维修',
-                        id: 'GSWX2',
-                        param: { tab_code: '1593', diff: 'ps', difference: '排水', wznw: '外', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', diff: 'rx', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '专维及其他事项',
-                id: 'GSZW',
-                children: [
-                    {
-                        label: '给水系统专项维修',
-                        id: 'GSZW1',
-                        param: { tab_code: '1592', difference: '给水', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '排水系统专项维修',
-                        id: 'GSZW2',
-                        param: { tab_code: '1593', difference: '排水', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'GSQT',
-                        param: { tab_code: '1594', difference: '', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-            },
-            {
-                label: '查看图纸',
-                id: 'GSTZ',
-                param: { tab_code: 'rd01' },
-                children: [],
-            },
-        ],
-    },
-    {
-        name: '电梯系统',
-        smsxt: '1006',
-        id: 6,
-        categoryId: 'DTXT',
-        icon: require('@/assets/imgs/cddt.png'),
-        icon1: require('@/assets/imgs/cddt2.png'),
-        children: [
-            {
-                label: '系统原理图',
-                children: [
-                    {
-                        label: '扶梯原理图',
-                        id: 'DTYL1',
-                        param: { tab_code: '1572', type_code: '2023' },
-                    },
-                    {
-                        label: '直梯原理图',
-                        id: 'DTYL2',
-                        param: { tab_code: '1072', type_code: '2024' },
-                    },
-                ],
-                id: 'DTYL',
-            },
-            {
-                label: '主要设备清单',
-                id: 'DTQD',
-                children: [],
-                param: { tab_code: 'dt01' },
-            },
-            {
-                label: '主要设备维保事项',
-                id: 'DTWB',
-                children: [
-                    {
-                        label: '重要维保事项',
-                        id: 'DTWB1',
-                        param: { tab_code: 'dt01', wznw: '0', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备维修事项',
-                id: 'DTWX',
-                children: [
-                    {
-                        label: '重要维修事项',
-                        id: 'DTWX1',
-                        param: { tab_code: 'dt01', wznw: '0', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '专维及其他事项',
-                id: 'DTZW',
-                children: [
-                    {
-                        label: '专项维修',
-                        id: 'DTZW',
-                        param: { tab_code: 'dt01', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'DTQT',
-                        param: { tab_code: 'dt02', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-            },
-            {
-                label: '查看图纸',
-                id: 'DTTZ',
-                param: { tab_code: 'rd01' },
-                children: [],
-            },
-        ],
-    },
-    {
-        name: '燃气系统',
-        smsxt: '1007',
-        categoryId: 'RQXT',
-        id: 7,
-        icon: require('@/assets/imgs/cdrq.png'),
-        icon1: require('@/assets/imgs/cdrq2.png'),
-        children: [
-            {
-                label: '系统原理图',
-                children: [],
-                id: 'RQYL',
-                param: { tab_code: '234', type_code: '2025' },
-            },
-            {
-                label: '主要设备清单',
-                children: [],
-                id: 'RQQD',
-                param: { tab_code: 'rq01' },
-            },
-            {
-                label: '主要设备维保事项',
-                id: 'RQWB',
-                children: [
-                    {
-                        label: '重要维保事项',
-                        id: 'RQWB1',
-                        param: { tab_code: '1592', wznw: '0', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '主要设备维修事项',
-                id: 'RQWX',
-                children: [
-                    {
-                        label: '重要维修事项',
-                        id: 'RQWX1',
-                        param: { tab_code: '1592', wznw: '0', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '专维及其他事项',
-                id: 'RQZW',
-                children: [
-                    {
-                        label: '专项维修',
-                        id: 'RQZW',
-                        param: { tab_code: '1592', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'RQQT',
-                        param: { tab_code: '1593', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-            },
-            {
-                label: '查看图纸',
-                id: 'RQTZ',
-                param: { tab_code: 'rd01' },
-                children: [],
-            },
-        ],
-    },
-    {
-        name: '土建装饰',
-        smsxt: '1008',
-        categoryId: 'SCPZ',
-        icon: require('@/assets/imgs/cdtj.png'),
-        icon1: require('@/assets/imgs/cdtj2.png'),
-        id: 8,
-        children: [
-            {
-                label: '建筑立面图',
-                id: 'TJYL',
-                children: [
-                    {
-                        label: '北面外立面',
-                        id: 'RQYL',
-                        param: { tab_code: '2343', type_code: '2029' },
-                    },
-                    {
-                        label: '西面外立面',
-                        id: 'RQYL',
-                        param: { tab_code: '2340', type_code: '2027' },
-                    },
-                    {
-                        label: '南面外立面',
-                        id: 'RQYL',
-                        param: { tab_code: '2341', type_code: '2028' },
-                    },
-                    {
-                        label: '东面外立面',
-                        id: 'RQYL',
-                        param: { tab_code: '2342', type_code: '2026' },
-                    },
-                ],
-            },
-            {
-                label: '维保事项',
-                id: 'TJWB',
-                children: [
-                    {
-                        label: '重要维保事项',
-                        id: 'TJWB1',
-                        param: { tab_code: '1592', wznw: '0', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维保事项',
-                        id: 'RB',
-                        param: { tab_code: 'rb', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '维修事项',
-                id: 'TJWX',
-                children: [
-                    {
-                        label: '重要维修事项',
-                        id: 'TJWX1',
-                        param: { tab_code: '1592', wznw: '0', apply: '维修维保' },
-                    },
-                    {
-                        label: '日常维修事项',
-                        id: 'RX',
-                        param: { tab_code: 'rx', wznw: '-1', apply: '维修维保' },
-                    },
-                ],
-            },
-            {
-                label: '专维及其他事项',
-                id: 'TJZW',
-                children: [
-                    {
-                        label: '专项维修',
-                        id: 'TJZW',
-                        param: { tab_code: '1592', wznw: '0', apply: '专维及其它' },
-                    },
-                    {
-                        label: '其他事项',
-                        id: 'TJQT',
-                        param: { tab_code: '1593', wznw: '0', apply: '专维及其它' },
-                    },
-                ],
-            },
-            {
-                label: '查看图纸',
-                id: 'TJTZ',
-                param: { tab_code: 'rd01' },
-                children: [],
-            },
-        ],
-    },
-]
-// 事项
-const matter = [
-    {
-        icon: require('@/assets/imgs/zhsx.png'),
-        icon1: require('@/assets/imgs/zhsx2.png'),
-        name: '综合事项管理',
-        id: '1',
-        children: [
-            { label: '综合记录事项', type: 1 },
-            { label: '第三方检测事项', type: 2 },
-        ],
-    },
-    {
-        icon: require('@/assets/imgs/fuyfgl2.png'),
-        icon1: require('@/assets/imgs/fuyfgl.png'),
-        name: '辅助用房管理',
-        id: '2',
-        children: [
-            { label: '广场辅助用房汇总统计表', type: 1 },
-            { label: '广场辅助用房调改变更记录', type: 2 },
-        ],
-    },
-]
 // 主要设备使用的tab_code
 const tabCodeArr = {
     1001: [{ tab_code: 'gd01' }],
@@ -851,8 +38,8 @@ const tabCodeArr = {
         },
     ],
     1005: [{ tab_code: 'gps01' }],
-    1006: [{ ab_code: 'dt01' }],
+    1006: [{ tab_code: 'dt01' }],
     1007: [{ tab_code: 'rq01' }],
     1008: [],
 }
-export { system, matter, tabCodeArr }
+export { tabCodeArr }

+ 96 - 138
src/views/equipmentFacilities/MainEquipment.vue

@@ -13,6 +13,7 @@
       </template>
     </van-nav-bar>
     <van-tabs
+      v-if="tabData && tabData.length > 1"
       v-model="active"
       class="other-tabs"
       color="#025BAA"
@@ -20,11 +21,9 @@
       title-active-color="#025BAA"
       :line-width="60"
     >
-      <van-tab title="设备信息"> </van-tab>
-      <van-tab title="重要维保"> </van-tab>
-      <van-tab title="重要维修"> </van-tab>
+      <van-tab v-for="item in tabData" :title="item.label" :name="item.param.tab_code" :key="item.param.tab_code"> </van-tab>
     </van-tabs>
-    <div class="asset-information">
+    <div class="asset-information" :class="tabData && tabData.length > 1?'asset-tab':'asset-no-tab'">
       <div class="equipment-page">
         <!-- 搜索框 -->
         <div class="equipment-search-container">
@@ -46,6 +45,8 @@
               <template>
                 <h2 class="info-title">
                   {{ `${data.type_name} (${data.sl})` }}
+                  <span v-if="data.is_exception" class="info-card wx">维修</span>
+                  <span v-else-if="data.is_detecting" class="info-card wb">维保</span>
                 </h2>
                 <div class="cell">
                   <span class="left">{{ "型\u3000\u3000号:" }}</span>
@@ -63,31 +64,10 @@
                   <span class="left"><i class="iconfont wanda-dingwei" style="font-size: 14px;color: #C3C7CB;"></i> {{ "楼 层:" }}</span>
                   <span class="right">{{ data.floorcode || "--" }}</span>
                 </div>
+                <div style="padding-bottom:4px;"></div>
               </template>
             </van-cell>
-            <!-- <van-cell v-for="(data, index) in dataList" :key="index" :title="index" /> -->
           </van-list>
-          <!-- <div
-            class="info-box"
-            v-for="(data, index) in dataList"
-            :key="index"
-          >
-            <div class="info-box-border">
-              <h2 class="info-title">{{ `${data.type_name} (${data.sl})` }}</h2>
-              <div class="cell">
-                <span class="left">{{ "型\u3000\u3000号:" }}</span>
-                <span class="right">{{ data.sbxh || "--" }}</span>
-              </div>
-              <div class="cell">
-                <span class="left">{{ "品\u3000\u3000牌:" }}</span>
-                <span class="right">{{ data.brand || "--" }}</span>
-              </div>
-              <div class="cell">
-                <span class="left">{{ "生产厂商:" }}</span>
-                <span class="right">{{ data.manufacturer || "--" }}</span>
-              </div>
-            </div>
-          </div> -->
         </div>
         <!-- 无数据 -->
         <van-empty
@@ -113,17 +93,8 @@
         <div class="sbss">
           <h1 class="title">楼层</h1>
           <div class="system-btn-container">
-            <div
-              class="system-btn"
-              v-for="(item, index) in fillinList"
-              :key="index"
-            >
-              <van-button
-                class="m-btn"
-                :class="item.active"
-                @click="changeFillinDate(item)"
-                >{{ item.text }}
-              </van-button>
+            <div class="system-btn" v-for="(item, index) in floorList" :key="index">
+              <van-button class="m-btn" :class="item.active" @click="changeFloor(item)">{{ item.code }}</van-button>
             </div>
           </div>
         </div>
@@ -155,6 +126,7 @@ import { NavBar, Tab, Tabs, Popup, Button, Toast, List, Cell } from "vant";
 import RepairMaintenance from "@/components/equipmentFacilities/RepairMaintenance.vue";
 import { queryStatistics } from "@/api/equipmentList.js";
 import { getUpdateDetail1, getUpdateDetail4 } from "@/api/overview";
+import { tabCodeArr } from "@/utils/components.js"
 import moment from "moment";
 Vue.use(NavBar)
   .use(Tab)
@@ -169,22 +141,28 @@ export default {
   props: {},
   components: { RepairMaintenance },
   computed: {
-    ...mapGetters(["plazaId", "smsxt"]),
+    ...mapGetters(["plazaId", "smsxt", "floorsArr"]),
+    tabData() {
+      let arr = tabCodeArr[this.smsxt]
+      if (arr && arr.length === 1) {
+        this.tab_code = arr[0].tab_code;
+      } else if (arr && arr.length > 1) {
+        this.tab_code = arr[0].param.tab_code;
+      } else {
+        this.tab_code = "";
+      }
+      return arr
+    }
   },
   data() {
     return {
       active: 0,
+      tab_code: "",
       showPopup: false,
       dataList: [],
       keyword: "",
-      fillinList: [
-        { text: "全部", value: 0, active: "active" },
-        { text: "7天", value: 1, active: "" },
-        { text: "15天", value: 2, active: "" },
-        { text: "30天", value: 3, active: "" },
-        { text: "6个月", value: 4, active: "" },
-        { text: "1年", value: 5, active: "" },
-      ],
+      floorId: "",
+      floorList: [],
       loading: false,
       finished: false,
       fillinDate: 0,
@@ -194,7 +172,17 @@ export default {
   },
   props: {},
   beforeMount() {},
-  mounted() {},
+  created() {
+    // 设置 筛选抽屉中的 楼层
+    let floorList = [{ code: '全部', gcname: '全部', gcode: '全部', gname: '', seq: null, active: 'active' }]
+    this.floorsArr.map(({ code, gcname, gcode, gname, seq }) => {
+        floorList.push({ code, gcname, gcode, gname, seq, active: '' })
+    })
+    this.floorList = floorList
+  },
+  mounted() {
+    this.getData();
+  },
   methods: {
     backPage() {
       if (this.$route.query.first) {
@@ -205,7 +193,8 @@ export default {
     },
     // 切换tab
     changeTab(active) {
-      console.log(this.active);
+      this.tab_code = active;
+      this.getData();
     },
     /**
      * 点击右侧筛选
@@ -224,54 +213,19 @@ export default {
           page: this.page,
           size: this.size,
         },
-        postParams = {
-          tab_code: "gd01",
-        };
-      //查询关键字(设备名称)
+        postParams = {};
+      // tab_code
+      if (this.tab_code) {
+        postParams.tab_code = this.tab_code
+      }
+      // 查询关键字(设备名称)
       if (this.keyword) {
         data.keyword = `${this.keyword}:type_name`;
       }
-      //填报日期
-      //   switch (this.fillinDate) {
-      //     // 七天
-      //     case 1:
-      //       getParams.reportdateStartDate = moment()
-      //         .subtract(7, "days")
-      //         .format("YYYYMMDD000000");
-      //       getParams.reportdateEndDate = moment().format("YYYYMMDD000000");
-      //       break;
-      //     // 15天
-      //     case 2:
-      //       getParams.reportdateStartDate = moment()
-      //         .subtract(15, "days")
-      //         .format("YYYYMMDD000000");
-      //       getParams.reportdateEndDate = moment().format("YYYYMMDD000000");
-      //       break;
-      //     // 30天
-      //     case 3:
-      //       getParams.reportdateStartDate = moment()
-      //         .subtract(1, "months")
-      //         .format("YYYYMMDD000000");
-      //       getParams.reportdateEndDate = moment().format("YYYYMMDD000000");
-      //       break;
-      //     // 6个月
-      //     case 4:
-      //       getParams.reportdateStartDate = moment()
-      //         .subtract(6, "years")
-      //         .format("YYYYMMDD000000");
-      //       getParams.reportdateEndDate = moment().format("YYYYMMDD000000");
-      //       break;
-      //     // 一年
-      //     case 5:
-      //       getParams.reportdateStartDate = moment()
-      //         .subtract(1, "years")
-      //         .format("YYYYMMDD000000");
-      //       getParams.reportdateEndDate = moment().format("YYYYMMDD000000");
-      //       break;
-      //     // 默认 全部
-      //     default:
-      //       break;
-      //   }
+      // 选择楼层
+      if (this.floorId) {
+        postParams.gname = this.floorId;
+      }
       queryStatistics({ data, postParams }).then((res) => {
         if (res.data.result == "success" && res.data.data) {
           this.dataList = res.data.data;
@@ -291,13 +245,19 @@ export default {
           page: this.page,
           size: this.size,
         },
-        postParams = {
-          tab_code: "gd01",
-        };
+        postParams = {};
+      // tab_code
+      if (this.tab_code) {
+        postParams.tab_code = this.tab_code
+      }
       //查询关键字(设备名称)
       if (this.keyword) {
         data.keyword = `${this.keyword}:type_name`;
       }
+      // 选择楼层
+      if (this.floorId) {
+        postParams.gname = this.floorId;
+      }
       queryStatistics({ data, postParams }).then((res) => {
         if (res.data.result == "success" && res.data.data) {
           this.dataList = this.dataList.concat(res.data.data);
@@ -317,41 +277,26 @@ export default {
       this.$router.push({ path: "/mainEquipmentDetail", params: data});
     },
     // 修改楼层
-    changeFillinDate(data) {
-      console.log(data);
-      this.fillinDate = data.value;
-      this.fillinList.map((item) => {
-        item.active = "";
-        if (item.value === data.value) {
-          item.active = "active";
-        }
-      });
+    changeFloor(data) {
+      this.floorId = data.gname;
+      this.floorList.map((item) => {
+          item.active = ''
+          if (item.gname === data.gname) {
+              item.active = 'active'
+          }
+      })
     },
     /**
      * 重置
      */
     reset() {
-      this.sfghpjList.map((item, index) => {
-        item.active = "";
-        if (index === 0) {
-          item.active = "active";
-          this.isParts = item.value;
-        }
-      });
-      this.fillinList.map((item, index) => {
-        item.active = "";
-        if (index === 0) {
-          item.active = "active";
-          this.fillinDate = item.value;
-        }
-      });
-      this.acceptanceList.map((item, index) => {
-        item.active = "";
-        if (index === 0) {
-          item.active = "active";
-          this.acceptanceDate = item.value;
-        }
-      });
+      this.floorList.map((item, index) => {
+          item.active = ''
+          if (index === 0) {
+              item.active = 'active';
+              this.floorId = "";
+          }
+      })
       this.getData();
       this.showPopup = false;
     },
@@ -362,22 +307,14 @@ export default {
       this.getData();
       this.showPopup = false;
     },
-  },
-  watch: {
-    "$route.path": {
-      handler(path) {
-        this.getData();
-      },
-      immediate: true,
-      deep: true,
-    },
-  },
+  }
 };
 </script>
 <style lang='less' scoped>
 .asset-detail {
   width: 100%;
   height: 100%;
+
   .asset-information {
     height: calc(100% - 90px);
     background: #f5f6f7;
@@ -413,12 +350,27 @@ export default {
         color: #333333;
         .info-title {
           font-size: 16px;
+          margin-top: 2px;
           color: #333333;
+          .info-card {
+            float: right;
+            padding: 0 8px;
+            font-size: 14px;
+            font-weight: normal;
+          }
+          .wx {
+            color:  rgba(216, 57, 49, 1);
+            background-color: rgba(216, 57, 49, 0.09);
+          }
+          .wb {
+            color: rgba(4, 129, 225, 1);
+            background-color: rgba(4, 129, 225, 0.09);
+          }
         }
         .cell {
           width: 100%;
           min-height: 20px;
-          margin-top: 12px;
+          margin-top: 4px;
           display: flex;
           .left {
             width: 75px;
@@ -453,6 +405,12 @@ export default {
       }
     }
   }
+  .asset-tab {
+    height: calc(100% - 90px);
+  }
+  .asset-no-tab {
+    height: calc(100% - 46px);
+  }
 
   .other-tabs {
     /deep/ .van-tab__text {
@@ -465,7 +423,7 @@ export default {
       .van-tabs__nav--line {
         box-sizing: content-box;
         height: 100%;
-        width: 80%;
+        width: 90%;
         margin: 0 auto;
       }
     }