guoxiaohuan преди 4 години
родител
ревизия
94bbc23df8

+ 1 - 1
src/components/Legend/src/legend.vue

@@ -223,7 +223,7 @@ export default {
         }
     },
     mounted() {
-        this.queryMarks()
+        // this.queryMarks()
     }
 }
 </script>

+ 36 - 5
src/views/other/gcfz1.vue

@@ -1,21 +1,24 @@
 <template>
     <el-table
+        v-if='hztjTable.length>0'
         :header-cell-style='{background:"rgba(245,246,247,1)",fontFamily:"MicrosoftYaHei",color:"rgba(100,108,115,1)",lineHeight:"16px",fontSize:"12px"}'
         v-loading='loading'
         :data='hztjTable'
         style='width: 100%'
+        :summary-method='getSummaries'
+        show-summary
     >
         <el-table-column label='序号' type='index'></el-table-column>
-        <el-table-column prop label='楼层'>
+        <el-table-column prop='floor' label='楼层'>
             <template slot-scope='{row}'>{{row.floor||'--'}}</template>
         </el-table-column>
-        <el-table-column prop label='总间数'>
+        <el-table-column prop='roomsl' label='总间数'>
             <template slot-scope='{row}'>{{row.roomsl||'--'}}</template>
         </el-table-column>
-        <el-table-column prop label='面积(㎡)'>
+        <el-table-column prop='area' label='面积(㎡)'>
             <template slot-scope='{row}'>{{row.area||'--'}}</template>
         </el-table-column>
-        <el-table-column prop label='记录日期'>
+        <el-table-column prop='changedate' label='记录日期'>
             <template slot-scope='{row}'>{{row.changedate||'--'}}</template>
         </el-table-column>
     </el-table>
@@ -26,7 +29,35 @@ export default {
         return {}
     },
     props: ['hztjTable', 'loading'],
-    methods: {}
+    methods: {
+        getSummaries(param) {
+            const { columns, data } = param
+
+            const sums = []
+            columns.forEach((column, index) => {
+                if (index === 0) {
+                    sums[index] = '小计'
+                    return
+                }
+                console.log(columns)
+                const values = data.map(item => Number(item[column.property]))
+                if (!values.every(value => isNaN(value))) {
+                    sums[index] = values.reduce((prev, curr) => {
+                        const value = Number(curr)
+                        if (!isNaN(value)) {
+                            return prev + curr
+                        } else {
+                            return prev
+                        }
+                    }, 0)
+                    sums[index]
+                } else {
+                    sums[index] = ''
+                }
+            })
+            return sums
+        }
+    }
 }
 </script>
 <style lang="less">

+ 23 - 7
src/views/other/gcfz2.vue

@@ -5,16 +5,24 @@
                 v-model='dateVal'
                 value-format='yyyyMMdd'
                 type='daterange'
-                @change='getZhjl'
                 size='small'
                 style='margin-right:12px;width:230px'
                 range-separator='-'
-                start-placeholder='开始日期'
-                end-placeholder='结束日期'
-                placeholder='记录日期'
+                start-placeholder='记录日期开始'
+                end-placeholder='记录日期结束'
             ></el-date-picker>
-            <Select width='146' tipPlace='top' caption='楼层:' size='small' style='margin-right:12px' :selectdata='floorSelect' :placeholder='"请选择"'></Select>
-            <el-input placeholder='搜索区域' size='small' style='width:192px' prefix-icon='el-icon-search' v-model='searVal'></el-input>
+            <Select
+                width='146'
+                tipPlace='top'
+                @change='changelc'
+                caption='楼层:'
+                v-model='cg.floors'
+                size='small'
+                style='margin-right:12px'
+                :selectdata='floorSelect'
+                :placeholder='"选择楼层"'
+            ></Select>
+            <el-input @change='changelc' placeholder='搜索区域' size='small' style='width:192px' prefix-icon='el-icon-search' v-model='cg.searVal'></el-input>
         </div>
         <div class='table-2-table'>
             <el-table
@@ -22,6 +30,7 @@
                 v-loading='loading'
                 :data='bgjlTable'
                 style='width: 100%'
+                border
             >
                 <el-table-column label='序号' type='index' width='50'></el-table-column>
                 <el-table-column prop label='楼层' width='130'>
@@ -71,7 +80,11 @@ export default {
     data() {
         return {
             dateVal: '',
-            searVal: ''
+            searVal: '',
+            cg: {
+                floors: '',
+                searVal: ''
+            }
         }
     },
     computed: {
@@ -83,6 +96,9 @@ export default {
         pageChanged(page) {
             this.page = page
             this.$emit('queryChange')
+        },
+        changelc() {
+            this.$emit('changeEmit', this.cg)
         }
     }
 }

+ 20 - 2
src/views/other/gcfzDialog.vue

@@ -15,6 +15,7 @@
                     :size='size'
                     :bgjlTable='bgjlTable'
                     @queryChange='queryChange'
+                    @changeEmit='changeEmit'
                 ></gcfz-table2>
             </div>
         </el-dialog>
@@ -38,7 +39,9 @@ export default {
             page: 1,
             size: 10,
             floor: '',
-            bgjlTable: []
+            bgjlTable: [],
+            floors: '',
+            searVal: ''
         }
     },
     mounted() {
@@ -60,6 +63,15 @@ export default {
                 }
             })
         },
+        changeEmit(val) {
+            console.log(val)
+            if (val.floors) {
+                this.floor = val.floor
+            }
+            if (val.searVal) {
+                this.searVal = val.searVal
+            }
+        },
         // 变更记录
         queryChange() {
             let getParams = {
@@ -68,6 +80,12 @@ export default {
                 size: this.size,
                 floor: this.floor
             }
+            if (this.floors) {
+                getParams.floor = this.floors
+            }
+            if (this.searVal) {
+                getParams.keyword = `${this.searVal}:region`
+            }
             queryfzyfchange({ getParams }).then(res => {
                 if (res.result == 'success') {
                     console.log('变更记录', res)
@@ -91,7 +109,7 @@ export default {
 </script>
 <style lang="less" scoped>
 .top {
-    width: 1366px;
+    width: 100%;
     height: 1px;
     background: rgba(0, 0, 0, 0.06);
     margin-bottom: 20px;

+ 24 - 9
src/views/other/index.vue

@@ -17,19 +17,21 @@
             </div>
             <!-- 楼层 -->
             <div class='other-right' v-if='matterId!=1'>
-                <floor-list :floors='floors' @emitFloor='emitFloor'></floor-list>
+                <floor-list @emitFloor='emitFloor'></floor-list>
             </div>
             <!-- 图例 -->
-            <div class='legend-boxs' v-if='matterId!=1'>
+            <!-- <div class='legend-boxs' v-if='matterId!=1'>
                 <Legend></Legend>
-            </div>
+            </div>-->
         </div>
         <other-dialog ref='dialog' :systemName='systemName'></other-dialog>
         <!-- 综合事项管理 -->
         <zhsx-other v-if='matterId==1&&everySystem.length>0' :everySystem='everySystem'></zhsx-other>
         <!-- 辅助用房管理 -->
         <div class='qtfugl' v-if='matterId==2'>
-            <img src='../../assets/imgs/matter_floorB2.png' alt />
+            <div class='fzyfImg'>
+                <img :src='picFloorImg' alt />
+            </div>
         </div>
         <gcfz-dialog ref='gcfzDialog' :systemName='systemName'></gcfz-dialog>
     </div>
@@ -54,6 +56,8 @@ export default {
                 floorName: 'F1',
                 floorId: 'f1'
             },
+            picFloor: '',
+            picFloorImg: '',
             dialogInfo: {}
         }
     },
@@ -65,23 +69,29 @@ export default {
             this.systemName = item.name
         },
         emitFloor(item) {
+            console.log(item)
+            this.picFloor = item[1]
+            this.queryPicter()
             this.floorInfo = item
         },
         dialogVisible(item) {
             this.$refs.gcfzDialog.showModal(item)
         },
         queryPicter() {
+            this.picFloor = this.$cookie.get('floorNow')
             let getParams = {
-                data: { tyepcode: 2, floor: '4F', plazaId: '1001145' },
+                data: { tyepcode: 7, floor: this.picFloor, plazaId: this.$store.state.plazaId },
                 params: {}
             }
             queryPic(getParams).then(res => {
-                console.log('resres', res)
+                console.log('库房管理图', res)
+                this.picFloorImg = res.data
             })
         }
     },
     mounted() {
         this.everySystem = this.matter[0].children
+        this.queryPicter()
     }
 }
 </script>
@@ -146,10 +156,15 @@ export default {
         }
     }
     .qtfugl {
-        img {
-            width: 100%;
-            height: 100%;
+        .fzyfImg {
+            width: 1035px;
+            height: 544px;
             margin: 0 auto;
+            margin-top: 93px;
+            img {
+                width: 100%;
+                height: 100%;
+            }
         }
     }
 }

+ 1 - 1
src/views/other/otherDialog.vue

@@ -46,7 +46,7 @@ export default {
 </script>
 <style lang="less" scoped>
 .top {
-    width: 1366px;
+    width: 100%;
     height: 1px;
     background: rgba(0, 0, 0, 0.06);
     margin-bottom: 20px;

+ 13 - 4
src/views/other/zhsxOtherTable1.vue

@@ -1,28 +1,30 @@
 <template>
     <div class='tableZh'>
-        <div class='tab-top' style='display:flex;align-items: center;'>
+        <div class='tab-top' style='display:flex;'>
             <el-date-picker
                 v-model='dateVal'
                 value-format='yyyyMMdd'
                 type='daterange'
+                style='margin-right:12px;width:230px'
                 @change='getZhjl'
                 size='small'
-                style='margin-right:12px;width:230px'
                 range-separator='-'
                 start-placeholder='开始日期'
                 end-placeholder='结束日期'
             ></el-date-picker>
             <Select
+                @change='getZhjl'
                 width='146'
                 tipPlace='top'
                 caption='政府部门'
                 size='small'
+                v-model='searVal'
                 style='margin-right:12px'
                 v-if='department.length>0'
                 :selectdata='department'
-                :placeholder='"选择"'
+                :placeholder='"选择政府部门"'
             ></Select>
-            <el-input placeholder='搜索记录事项' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px'></el-input>
+            <el-input clearable placeholder='搜索记录事项' @change='getZhjl' size='small' prefix-icon='el-icon-search' v-model='ssjlsx' style='width:192px'></el-input>
         </div>
         <el-table
             @row-click='handdle'
@@ -81,6 +83,7 @@ export default {
             page: 1,
             size: 10,
             department: [],
+            ssjlsx: '',
             isOpen: true
         }
     },
@@ -104,6 +107,12 @@ export default {
                 page: this.page,
                 size: this.size
             }
+            if (this.searVal) {
+                getParams.department = this.searVal
+            }
+            if (this.ssjlsx) {
+                getParams.keyword = `${this.ssjlsx}:recordsx`
+            }
             queryGlams({ getParams }).then(res => {
                 if (res.result == 'success') {
                     this.loading = false

+ 24 - 3
src/views/other/zhsxOtherTable2.vue

@@ -6,22 +6,27 @@
                 tipPlace='top'
                 caption='状态'
                 size='small'
+                v-model='ztdsf'
                 style='margin-right:12px'
                 v-if='status2.length>0'
                 :selectdata='status2'
                 :placeholder='"请选择"'
+                @change='dsfjc'
             ></Select>
             <Select
+                @change='dsfjc'
                 width='146'
                 tipPlace='top'
                 caption='部门'
                 v-if='zgbm.length>0'
                 size='small'
+                v-model='bmdsf'
                 style='margin-right:12px'
                 :selectdata='zgbm'
                 :placeholder='"请选择"'
             ></Select>
             <Select
+                @change='dsfjc'
                 width='146'
                 tipPlace='top'
                 caption='检测结论'
@@ -30,8 +35,9 @@
                 v-if='conclusion.length>0'
                 :selectdata='conclusion'
                 :placeholder='"请选择"'
+                v-model='jcjldsf'
             ></Select>
-            <el-input placeholder='搜索任务名称' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px'></el-input>
+            <el-input clearable @change='dsfjc' placeholder='搜索任务名称' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px'></el-input>
         </div>
         <el-table
             row-key='id'
@@ -45,7 +51,7 @@
             <el-table-column prop='name' :show-overflow-tooltip='true' sortable label='任务名称'>
                 <template slot-scope='{row}'>{{row.description||'--'}}</template>
             </el-table-column>
-            <el-table-column prop='type' label='状态' width='90'>
+            <el-table-column prop='type' label='状态' min-width='90'>
                 <template slot-scope='{row}'>{{row.status2||'--'}}</template>
             </el-table-column>
             <el-table-column prop='thing' label='部门' min-width='90' :show-overflow-tooltip='true'>
@@ -90,7 +96,10 @@ export default {
             size: 10,
             status2: [],
             zgbm: [],
-            conclusion: []
+            conclusion: [],
+            ztdsf: '',
+            bmdsf: '',
+            jcjldsf: ''
         }
     },
     components: { Select },
@@ -102,6 +111,18 @@ export default {
                 page: this.page,
                 size: this.size
             }
+            if (this.searVal) {
+                getParams.keyword = `${this.searVal}:description`
+            }
+            if (this.ztdsf) {
+                getParams.status2 = this.ztdsf
+            }
+            if (this.bmdsf) {
+                getParams.status2 = this.bmdsf
+            }
+            if (this.jcjldsf) {
+                getParams.conclusion = this.jcjldsf
+            }
             queryDsfrw({ getParams }).then(res => {
                 if (res.result == 'success') {
                     this.loading = false

+ 9 - 7
src/views/room/detail.vue

@@ -37,10 +37,8 @@
             <el-input placeholder='搜索设备简称' style='width:196px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
             <el-input placeholder='搜索设备编号' style='width:196px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
             <el-input placeholder='搜索品牌' style='width:196px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
-            <el-input placeholder='搜索型号' style='width:196px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
-            <el-input placeholder='搜索安装位置' style='width:196px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
-            <el-input placeholder='搜索生产厂商' style='width:196px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
-            <el-input placeholder='搜索服务商' style='width:196px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='input'></el-input>
+
+            <input-dialog :keyword='keyword' @confirm='confirm'></input-dialog>
         </div>
         <el-table
             v-loading='loadingDetail'
@@ -101,6 +99,7 @@ import Select from '@/components/Select/Select.vue'
 import { querySelect } from '@/api/public.js'
 import { mapGetters } from 'vuex'
 import { queryHxsbDetail } from '@/api/room.js'
+import InputDialog from './inputDialog'
 
 export default {
     props: ['type_code'],
@@ -116,11 +115,13 @@ export default {
             totalDetail: 0,
             pageDetail: 1,
             sizeDetail: 10,
-            detailData: []
+            detailData: [],
+            keyword: ''
         }
     },
     components: {
-        Select
+        Select,
+        InputDialog
     },
     computed: {
         ...mapGetters(['floorSelect'])
@@ -218,7 +219,8 @@ export default {
                     }
                 }
             })
-        }
+        },
+        confirm() {}
     }
 }
 </script>

+ 546 - 6
src/views/room/index.vue

@@ -13,6 +13,54 @@
                         <room-table1></room-table1>
                     </el-tab-pane>
                     <el-tab-pane label='配电室低压柜及出线明细表' name='2'>
+                        <div class='compute-center'>
+                            <Select
+                                width='146'
+                                @change='Index1'
+                                v-model='floor2'
+                                tipPlace='top'
+                                caption='楼层:'
+                                :selectdata='floorSelect'
+                                :placeholder='"请选择"'
+                                style='margin-right:12px'
+                            ></Select>
+                            <el-input
+                                clearable
+                                @change='Index1'
+                                v-model='ctbhInput'
+                                placeholder='搜索抽屉编号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index1'
+                                v-model='cxggInput'
+                                placeholder='搜索出线规格'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index1'
+                                v-model='djbhInput'
+                                placeholder='搜索电井编号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index1'
+                                v-model='kzhlInput'
+                                placeholder='搜索控制回路'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                        </div>
                         <room-table2
                             v-if='table2.length>=0'
                             :table2='table2'
@@ -24,6 +72,45 @@
                         ></room-table2>
                     </el-tab-pane>
                     <el-tab-pane label='机房内核心设备' name='3'>
+                        <div class='compute-center'>
+                            <Select
+                                width='146'
+                                @change='Index2'
+                                tipPlace='top'
+                                v-model='floorChange'
+                                caption='楼层:'
+                                :selectdata='floorSelect'
+                                :placeholder='"请选择"'
+                                style='margin-right:12px'
+                            ></Select>
+                            <el-input
+                                clearable
+                                placeholder='搜索设备简称'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='sbjcInput'
+                                @change='Index2'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index2'
+                                placeholder='搜索品牌、型号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='ppxhInput'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index2'
+                                placeholder='搜索生产厂商'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='sccsInput'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                        </div>
                         <room-table3
                             v-if='table3.length>=0'
                             :table3='table3'
@@ -35,6 +122,90 @@
                         ></room-table3>
                     </el-tab-pane>
                     <el-tab-pane label='维修记录' name='4'>
+                        <div class='compute-center'>
+                            <el-date-picker
+                                clearable
+                                @change='Index3'
+                                v-model='tbsjDate'
+                                value-format='yyyyMMdd'
+                                type='daterange'
+                                size='small'
+                                style='margin-right:12px;width:320px'
+                                range-separator='-'
+                                start-placeholder='填报时间开始'
+                                end-placeholder='填报时间结束'
+                                placeholder='填报时间'
+                            ></el-date-picker>
+                            <el-date-picker
+                                clearable
+                                v-model='yssjDate'
+                                value-format='yyyyMMdd'
+                                type='daterange'
+                                @change='Index3'
+                                size='small'
+                                style='margin-right:12px;width:320px'
+                                range-separator='-'
+                                start-placeholder='验收时间开始'
+                                end-placeholder='验收时间结束'
+                                placeholder='验收时间'
+                            ></el-date-picker>
+                            <Select
+                                @change='Index3'
+                                width='146'
+                                tipPlace='top'
+                                caption='是否更换:'
+                                v-model='sfghSelect'
+                                :selectdata='isReplaceData'
+                                :placeholder='"请选择"'
+                                style='margin-right:12px'
+                            ></Select>
+                            <el-input
+                                clearable
+                                @change='Index3'
+                                placeholder='搜索设备名称'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='sbmcInput4'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index3'
+                                placeholder='搜索设备编号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='sbbhInput4'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <!-- <el-input
+                                clearable
+                                @change='Index3'
+                                placeholder='搜索重要事项记录'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='zysxInput4'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index3'
+                                placeholder='搜索描述'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='msInput4'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>
+                            <el-input
+                                clearable
+                                @change='Index3'
+                                placeholder='搜索工单编号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='gdbhInput4'
+                                style='width:192px;margin-right:12px'
+                            ></el-input>-->
+                        </div>
+                        <!-- <Input-dialog :type='type1' @changeIndex3='changeIndex3'></Input-dialog> -->
                         <room-table4
                             v-if='table4.length>=0'
                             :table4='table4'
@@ -46,6 +217,128 @@
                         ></room-table4>
                     </el-tab-pane>
                     <el-tab-pane label='维保记录' name='5'>
+                        <div class='compute-center'>
+                            <el-date-picker
+                                clearable
+                                value-format='yyyyMMdd'
+                                type='daterange'
+                                size='small'
+                                style='margin-right:12px;width:320px'
+                                range-separator='-'
+                                start-placeholder='开始日期'
+                                end-placeholder='结束日期'
+                                placeholder='开始时间'
+                            ></el-date-picker>
+                            <el-date-picker
+                                clearable
+                                value-format='yyyyMMdd'
+                                type='daterange'
+                                size='small'
+                                style='margin-right:12px;width:320px'
+                                range-separator='-'
+                                start-placeholder='开始日期'
+                                end-placeholder='结束日期'
+                                placeholder='完成时间'
+                            ></el-date-picker>
+                            <el-date-picker
+                                clearable
+                                value-format='yyyyMMdd'
+                                type='daterange'
+                                size='small'
+                                style='margin-right:12px;width:320px'
+                                range-separator='-'
+                                start-placeholder='开始日期'
+                                end-placeholder='结束日期'
+                                placeholder='填报时间'
+                            ></el-date-picker>
+                            <el-date-picker
+                                clearable
+                                value-format='yyyyMMdd'
+                                type='daterange'
+                                size='small'
+                                style='margin-right:12px;width:320px'
+                                range-separator='-'
+                                start-placeholder='开始日期'
+                                end-placeholder='结束日期'
+                                placeholder='验收时间'
+                            ></el-date-picker>
+                            <Select
+                                @change='Index4'
+                                width='146'
+                                tipPlace='top'
+                                caption='是否正常:'
+                                v-if='zt.length>0'
+                                :selectdata='zt'
+                                v-model='iszcSelect5'
+                                :placeholder='"请选择"'
+                                style='margin-right:12px'
+                            ></Select>
+                            <Select
+                                @change='Index4'
+                                width='146'
+                                tipPlace='top'
+                                v-model='statuSelect5'
+                                caption='任务状态:'
+                                v-if='status.length>0'
+                                :selectdata='status'
+                                :placeholder='"请选择"'
+                                style='margin-right:12px'
+                            ></Select>
+                            <el-input
+                                @change='Index4'
+                                clearable
+                                placeholder='搜索设备名称'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='sbmcInput5'
+                                style='margin-right:12px;width:192px;'
+                            ></el-input>
+                            <el-input
+                                @change='Index4'
+                                clearable
+                                placeholder='搜索设备编号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='sbbhInput5'
+                                style='margin-right:12px;width:192px;'
+                            ></el-input>
+                            <el-input
+                                @change='Index4'
+                                clearable
+                                placeholder='搜索核心维保事项记录'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='wbsxjlInput5'
+                                style='margin-right:12px;width:192px;'
+                            ></el-input>
+                            <el-input
+                                @change='Index4'
+                                clearable
+                                placeholder='搜索任务编号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='rwbhInput5'
+                                style='margin-right:12px;width:192px;'
+                            ></el-input>
+                            <el-input
+                                @change='Index4'
+                                clearable
+                                placeholder='搜索异常工单编号'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='ycgdbhInput5'
+                                style='margin-right:12px;width:192px;'
+                            ></el-input>
+                            <el-input
+                                @change='Index4'
+                                clearable
+                                placeholder='搜索描述'
+                                size='small'
+                                prefix-icon='el-icon-search'
+                                v-model='ssmsInput5'
+                                style='margin-right:12px;width:192px;'
+                            ></el-input>
+                        </div>
                         <room-table5
                             v-if='table5.length>=0'
                             :table5='table5'
@@ -69,6 +362,9 @@ import roomTable2 from './room2'
 import roomTable3 from './room3'
 import roomTable4 from './room4'
 import roomTable5 from './room5'
+import { mapGetters } from 'vuex'
+import { querySelect } from '@/api/public.js'
+import InputDialog from './inputDialog'
 
 export default {
     data() {
@@ -93,18 +389,53 @@ export default {
             total1: 0,
             page1: 1,
             size1: 10,
+            floor2: '',
+            ctbhInput: '',
+            cxggInput: '',
+            djbhInput: '',
+            kzhlInput: '',
             //
             total2: 0,
             page2: 1,
             size2: 10,
+            sccsInput: '',
+            ppxhInput: '',
+            sbjcInput: '',
+            floorChange: '',
             //
             total3: 0,
             page3: 1,
             size3: 10,
+            tbsjDate: '',
+            yssjDate: '',
+            // 是否更换配件
+            isReplaceData: [
+                { id: '1', name: '是' },
+                { id: '0', name: '否' }
+            ],
+            sfghSelect: '',
+            sbmcInput4: '',
+            sbbhInput4: '',
+            zysxInput4: '',
+            msInput4: '',
+            gdbhInput4: '',
+            type1: 'wx',
+
             //
             total4: 0,
             page4: 1,
-            size4: 10
+            size4: 10,
+            searVal: '',
+            status: [],
+            zt: [],
+            sbmcInput5: '',
+            sbbhInput5: '',
+            wbsxjlInput5: '',
+            rwbhInput5: '',
+            ycgdbhInput5: '',
+            ssmsInput5: '',
+            iszcSelect5: '',
+            statuSelect5: ''
         }
     },
     components: {
@@ -112,11 +443,14 @@ export default {
         roomTable2,
         roomTable3,
         roomTable4,
-        roomTable5
+        roomTable5,
+        InputDialog
+    },
+    computed: {
+        ...mapGetters(['floorSelect'])
     },
     methods: {
         handleClick(tab) {
-            console.log(tab.index)
             if (tab.index == '0') {
                 this.Index()
             } else if (tab.index == '1') {
@@ -127,6 +461,7 @@ export default {
                 this.Index3()
             } else if (tab.index == '4') {
                 this.Index4()
+                this.changeSelect()
             }
         },
         Index() {},
@@ -138,6 +473,37 @@ export default {
                 page: this.page1,
                 size: this.size1
             }
+            if (this.floor2) {
+                getParams.floor = this.floor2
+            }
+            if (this.ctbhInput) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.ctbhInput}:drawernum`
+                } else {
+                    getParams.keyword = `${this.ctbhInput}:drawernum`
+                }
+            }
+            if (this.cxggInput) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.cxggInput}:outspec`
+                } else {
+                    getParams.keyword = `${this.cxggInput}:outspec`
+                }
+            }
+            if (this.djbhInput) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.djbhInput}:wellnum`
+                } else {
+                    getParams.keyword = `${this.djbhInput}:wellnum`
+                }
+            }
+            if (this.kzhlInput) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.kzhlInput}:control`
+                } else {
+                    getParams.keyword = `${this.kzhlInput}:control`
+                }
+            }
             queryDygjcxline({ getParams }).then(res => {
                 if (res.result == 'success') {
                     this.loading1 = false
@@ -156,6 +522,40 @@ export default {
                 page: this.page2,
                 size: this.size2
             }
+            if (this.sbjcInput) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.sbjcInput}:sbjc`
+                } else {
+                    data.keyword = `${this.sbjcInput}:sbjc`
+                }
+            }
+            if (this.ppxhInput) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.ppxhInput}:brand,sbxh`
+                } else {
+                    data.keyword = `${this.ppxhInput}:brand,sbxh`
+                }
+            }
+            console.log(this.msInput4)
+
+            if (this.msInput4) {
+                console.log(this.msInput4)
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.msInput4}:description`
+                } else {
+                    data.keyword = `${this.msInput4}:manufacturer`
+                }
+            }
+            if (this.sccsInput) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.sccsInput}:manufacturer`
+                } else {
+                    data.keyword = `${this.sccsInput}:manufacturer`
+                }
+            }
+            if (this.floorChange) {
+                data.floor = this.floorChange
+            }
             queryHxsb({ data, postParams }).then(res => {
                 console.log('核心设备', res)
                 this.loading2 = false
@@ -171,11 +571,42 @@ export default {
         Index3() {
             let getParams = {
                 location: '1198',
-                plazaId: '1000388',
-                // plazaId: this.$store.state.plazaId,
+                // plazaId: '1000388',
+                plazaId: this.$store.state.plazaId,
                 page: this.page3,
                 size: this.size3
             }
+            if (this.sfghSelect) {
+                getParams.ismodel = this.sfghSelect
+            }
+            if (this.sbmcInput4) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.sbmcInput4}:sbmc`
+                } else {
+                    getParams.keyword = `${this.sbmcInput4}:sbmc`
+                }
+            }
+            if (this.sbbhInput4) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.sbbhInput4}:location`
+                } else {
+                    getParams.keyword = `${this.sbbhInput4}:location`
+                }
+            }
+            if (this.zysxInput4) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.zysxInput4}:matters`
+                } else {
+                    getParams.keyword = `${this.zysxInput4}:matters`
+                }
+            }
+            if (this.gdbhInput4) {
+                if (getParams.keyword) {
+                    getParams.keyword = `${getParams.keyword + ';' + this.gdbhInput4}:manufacturer`
+                } else {
+                    getParams.keyword = `${this.gdbhInput4}:manufacturer`
+                }
+            }
             queryWxjf({ getParams }).then(res => {
                 console.log('维修', res)
                 if (res.result == 'success') {
@@ -185,16 +616,82 @@ export default {
                 }
             })
         },
+        changeIndex3(val) {
+            console.log(val)
+            if (val.type == 'wx') {
+                if (val.msInput4) {
+                    this.msInput4 = val.msInput4
+                }
+                if (val.zysxInput4) {
+                    this.zysxInput4 = val.zysxInput4
+                }
+                if (val.gdbhInput4) {
+                    this.gdbhInput4 = val.gdbhInput4
+                }
+                this.Index3()
+            }
+        },
         // 维保
         Index4() {
             let postParams = {}
             let data = {
                 location: '1198',
-                plazaId: '1000288',
+                // plazaId: '1000288',
+                plazaId: this.$store.state.plazaId,
                 page: this.page4,
                 size: this.size4
                 // smsxt: '1001'
             }
+            // 是否正常
+            if (this.iszcSelect5) {
+                data.zt = this.iszcSelect5
+            }
+            // 任务状态
+            if (this.statuSelect5) {
+                data.status = this.statuSelect5
+            }
+            if (this.sbmcInput5) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.sbmcInput5}:sbmc`
+                } else {
+                    data.keyword = `${this.sbmcInput5}:sbmc`
+                }
+            }
+            if (this.sbbhInput5) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.sbbhInput5}:assetnum`
+                } else {
+                    data.keyword = `${this.sbbhInput5}:assetnum`
+                }
+            }
+            if (this.wbsxjlInput5) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.wbsxjlInput5}:matters`
+                } else {
+                    data.keyword = `${this.wbsxjlInput5}:matters`
+                }
+            }
+            if (this.rwbhInput5) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.rwbhInput5}:wb_gzglid`
+                } else {
+                    data.keyword = `${this.rwbhInput5}:wb_gzglid`
+                }
+            }
+            if (this.ycgdbhInput5) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.ycgdbhInput5}:wonum`
+                } else {
+                    data.keyword = `${this.ycgdbhInput5}:wonum`
+                }
+            }
+            if (this.ssmsInput5) {
+                if (data.keyword) {
+                    data.keyword = `${data.keyword + ';' + this.ssmsInput5}:description`
+                } else {
+                    data.keyword = `${this.ssmsInput5}:description`
+                }
+            }
             queryWb({ data, postParams }).then(res => {
                 console.log('维保', res)
                 this.loading4 = false
@@ -202,6 +699,44 @@ export default {
                 this.table5 = res.data.data ? res.data.data : []
             })
         },
+        changeSelect() {
+            this.department = []
+            let postParams = [
+                {
+                    columnName: { status: 'status', zt: 'zt' },
+                    tableName: 'v_glsms_wbzy'
+                }
+            ]
+            let data = {
+                plazaId: '1000288'
+            }
+            querySelect({ data, postParams }).then(res => {
+                console.log('下拉框', res)
+                let status = [],
+                    zt = []
+
+                status = res.data.data.v_glsms_wbzy.status ? res.data.data.v_glsms_wbzy.status : []
+                zt = res.data.data.v_glsms_wbzy.zt ? res.data.data.v_glsms_wbzy.zt : []
+                if (status.length > 0) {
+                    status.forEach(el => {
+                        let obj = {
+                            id: el.key,
+                            name: el.value
+                        }
+                        this.status.push(obj)
+                    })
+                }
+                if (zt.length > 0) {
+                    zt.forEach(el => {
+                        let obj = {
+                            id: el.key,
+                            name: el.value
+                        }
+                        this.zt.push(obj)
+                    })
+                }
+            })
+        },
         open(name) {
             this.visible = true
             this.systemName = name
@@ -218,6 +753,11 @@ export default {
         background: rgba(0, 0, 0, 0.06);
         margin-bottom: 20px;
     }
+    .compute-center {
+        display: flex;
+        align-items: center;
+        margin-bottom: 12px;
+    }
 }
 </style>
 <style lang="less">

+ 68 - 0
src/views/room/inputDialog.vue

@@ -0,0 +1,68 @@
+<template>
+    <div class='input-dialog'>
+        <div @click='show' style='color: #c3c7cb;cursor: pointer;position:absolute;top:-45px;right:0px;'>
+            <img src='@/assets/imgs/select.png' />
+            筛选
+        </div>
+        <div
+            v-if='dialogFormVisible'
+            style='width:280px;height:450px;background:rgba(255,255,255,1);
+            box-shadow:0px 2px 10px 0px rgba(31,35,41,0.1);border:1px solid rgba(228,229,231,1);z-index:9999;
+            position:absolute;top:0px;right:0px;'
+        >
+            <el-form style=' padding: 20px 24px;'>
+                <p style='margin:16px 0 8px 0'>安装位置</p>
+                <el-input placeholder='搜索安装位置' style='width:192px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='keyword'></el-input>
+                <p style='margin:16px 0 8px 0'>生产厂商</p>
+                <el-input placeholder='搜索生产厂商' style='width:192px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='keyword'></el-input>
+                <p style='margin:16px 0 8px 0'>服务商</p>
+                <el-input placeholder='搜索服务商' style='width:192px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='keyword'></el-input>
+                <p style='margin:16px 0 8px 0'>设备编号</p>
+                <el-input placeholder='搜索设备编号' style='width:192px;margin-right:12px' size='small' prefix-icon='el-icon-search' v-model='keyword'></el-input>
+            </el-form>
+
+            <div style='position:absolute;bottom:40px;right:47px;z-index:9999'>
+                <el-button @click='dialogFormVisible = false' size='small'>取 消</el-button>
+                <el-button type='primary' @click='confirm' size='small'>确 定</el-button>
+            </div>
+        </div>
+    </div>
+</template>
+
+<script>
+export default {
+    data() {
+        return {
+            dialogFormVisible: false,
+            form: {},
+            formLabelWidth: '232px',
+            search: {
+                type: 'wx',
+                msInput4: '',
+                zysxInput4: '',
+                gdbhInput4: ''
+            }
+        }
+    },
+    props: ['type'],
+    methods: {
+        show() {
+            this.dialogFormVisible = !this.dialogFormVisible
+        },
+        confirm() {
+            this.dialogFormVisible = false
+            console.log(this.type)
+            if (this.type == 'wx') {
+                this.$emit('changeIndex3', this.search)
+            }
+        }
+    },
+    mounted() {}
+}
+</script>
+
+<style lang="less" scoped>
+.input-dialog {
+    position: relative;
+}
+</style>

+ 0 - 7
src/views/room/room2.vue

@@ -1,12 +1,5 @@
 <template>
     <div class='compute-item'>
-        <div class='compute-center'>
-            <Select width='146' tipPlace='top' caption='楼层:' :selectdata='floorSelect' :placeholder='"请选择"' style='margin-right:12px'></Select>
-            <el-input placeholder='搜索抽屉编号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索出线规格' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索电井编号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索控制回路' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-        </div>
         <div class='compute-table'>
             <el-table
                 v-if='table2.length>=0'

+ 7 - 23
src/views/room/room3.vue

@@ -1,12 +1,5 @@
 <template>
     <div class='compute-item'>
-        <div class='compute-center'>
-            <Select width='146' tipPlace='top' caption='楼层:' :selectdata='floorSelect' :placeholder='"请选择"' style='margin-right:12px'></Select>
-            <el-input placeholder='搜索设备简称' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索品牌' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索型号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索生产厂商' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-        </div>
         <div class='compute-table'>
             <el-table
                 @row-click='innerTable'
@@ -16,22 +9,22 @@
                 :header-cell-style='{background:"rgba(245,246,247,1)",fontFamily:"MicrosoftYaHei",color:"rgba(100,108,115,1)",lineHeight:"16px",fontSize:"12px"}'
             >
                 <el-table-column type='index' label='序号' width='50'></el-table-column>
-                <el-table-column prop='sbjc' :show-overflow-tooltip='true' label='设备简称'>
+                <el-table-column prop :show-overflow-tooltip='true' label='设备简称'>
                     <template slot-scope='{row}'>{{row.sbjc||'--'}}</template>
                 </el-table-column>
-                <el-table-column prop='sl' label='数量'>
+                <el-table-column prop label='数量'>
                     <template slot-scope='{row}'>{{row.sl||'--'}}</template>
                 </el-table-column>
-                <el-table-column prop='brand' label='品牌'>
+                <el-table-column prop label='品牌'>
                     <template slot-scope='{row}'>{{row.brand||'--'}}</template>
                 </el-table-column>
-                <el-table-column prop='sbxh' label='型号'>
+                <el-table-column prop label='型号'>
                     <template slot-scope='{row}'>{{row.sbxh||'--'}}</template>
                 </el-table-column>
-                <el-table-column prop='floor' label='楼层'>
+                <el-table-column prop label='楼层'>
                     <template slot-scope='{row}'>{{row.floor||'--'}}</template>
                 </el-table-column>
-                <el-table-column prop='manufacturer' :show-overflow-tooltip='true' label='生产厂商'>
+                <el-table-column prop :show-overflow-tooltip='true' label='生产厂商'>
                     <template slot-scope='{row}'>{{row.manufacturer||'--'}}</template>
                 </el-table-column>
             </el-table>
@@ -55,21 +48,17 @@
 
 <script>
 import Select from '@/components/Select/Select.vue'
-import { mapGetters } from 'vuex'
 import Detail from './detail'
 
 export default {
     props: ['table3', 'total', 'page', 'size', 'loading'],
     data() {
         return {
-            searVal: '',
             innerVisible: false,
             type_code: ''
         }
     },
-    computed: {
-        ...mapGetters(['floorSelect'])
-    },
+
     components: { Select, Detail },
     methods: {
         pageChanged(page) {
@@ -87,11 +76,6 @@ export default {
 </style>
 <style lang="less">
 .compute-item {
-    .compute-center {
-        display: flex;
-        align-items: center;
-        margin-bottom: 12px;
-    }
     .foot {
         height: 32px;
         display: flex;

+ 2 - 37
src/views/room/room4.vue

@@ -1,36 +1,5 @@
 <template>
     <div class='compute-item'>
-        <div class='compute-center'>
-            <el-date-picker
-                v-model='dateVal'
-                value-format='yyyyMMdd'
-                type='daterange'
-                @change='getZhjl'
-                size='small'
-                style='margin-right:12px;width:230px'
-                range-separator='-'
-                start-placeholder='开始日期'
-                end-placeholder='结束日期'
-                placeholder='填报时间'
-            ></el-date-picker>
-            <el-date-picker
-                v-model='dateVal'
-                value-format='yyyyMMdd'
-                type='daterange'
-                @change='getZhjl'
-                size='small'
-                style='margin-right:12px;width:230px'
-                range-separator='-'
-                start-placeholder='开始日期'
-                end-placeholder='结束日期'
-                placeholder='验收时间'
-            ></el-date-picker>
-            <Select width='146' tipPlace='top' caption='是否更换:' :selectdata='isReplaceData' :placeholder='"请选择"' style='margin-right:12px'></Select>
-            <el-input placeholder='搜索设备名称' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索设备编号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索重要事项记录' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-            <el-input placeholder='搜索描述工单编号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='width:192px;margin-right:12px'></el-input>
-        </div>
         <div class='compute-table'>
             <el-table
                 v-loading='loading'
@@ -103,13 +72,9 @@ export default {
     props: ['table4', 'total', 'page', 'size', 'loading'],
     data() {
         return {
+            dateVal: '',
             value1: '',
-            searVal: '',
-            // 是否更换配件
-            isReplaceData: [
-                { id: '1', name: '是' },
-                { id: '0', name: '否' }
-            ]
+            searVal: ''
         }
     },
     components: { Select },

+ 6 - 97
src/views/room/room5.vue

@@ -1,61 +1,12 @@
 <template>
     <div class='compute-item'>
-        <div class='compute-center'>
-            <el-date-picker
-                v-model='dateVal'
-                value-format='yyyyMMdd'
-                type='daterange'
-                @change='getZhjl'
-                size='small'
-                style='margin-right:12px;width:230px'
-                range-separator='-'
-                start-placeholder='开始日期'
-                end-placeholder='结束日期'
-                placeholder='开始时间'
-            ></el-date-picker>
-            <el-date-picker
-                v-model='dateVal'
-                value-format='yyyyMMdd'
-                type='daterange'
-                @change='getZhjl'
-                size='small'
-                style='margin-right:12px;width:230px'
-                range-separator='-'
-                start-placeholder='开始日期'
-                end-placeholder='结束日期'
-                placeholder='完成时间'
-            ></el-date-picker>
-            <el-date-picker
-                v-model='dateVal'
-                value-format='yyyyMMdd'
-                type='daterange'
-                @change='getZhjl'
-                size='small'
-                style='margin-right:12px;width:230px'
-                range-separator='-'
-                start-placeholder='开始日期'
-                end-placeholder='结束日期'
-                placeholder='填报时间'
-            ></el-date-picker>
-            <Select width='146' tipPlace='top' caption='是否正常:' v-if='zt.length>0' :selectdata='zt' :placeholder='"请选择"' style='margin-right:12px'></Select>
-            <Select
-                width='146'
-                tipPlace='top'
-                caption='任务状态:'
-                v-if='status.length>0'
-                :selectdata='status'
-                :placeholder='"请选择"'
-                style='margin-right:12px'
-            ></Select>
-            <el-input placeholder='搜索设备名称' size='small' prefix-icon='el-icon-search' v-model='searVal' style='margin-right:12px;width:192px;'></el-input>
-            <el-input placeholder='搜索设备编号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='margin-right:12px;width:192px;'></el-input>
-            <!-- 
+        <!-- <div class='compute-center'> -->
+        <!-- 
             <el-input placeholder='搜索核心维保事项记录' size='small' prefix-icon='el-icon-search' v-model='searVal' style='margin-right:12px;width:192px;'></el-input>
             <el-input placeholder='搜索任务编号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='margin-right:12px;width:192px;'></el-input>
             <el-input placeholder='搜索异常工单编号' size='small' prefix-icon='el-icon-search' v-model='searVal' style='margin-right:12px;width:192px;'></el-input>
-            <el-input placeholder='搜索描述' size='small' prefix-icon='el-icon-search' v-model='searVal' style='margin-right:12px;width:192px;'></el-input>-->
-        </div>
-        <div class='compute-center'></div>
+        <el-input placeholder='搜索描述' size='small' prefix-icon='el-icon-search' v-model='searVal' style='margin-right:12px;width:192px;'></el-input>-->
+        <!-- </div> -->
         <div class='compute-table'>
             <el-table
                 v-loading='loading'
@@ -131,7 +82,6 @@
 <script>
 import Select from '@/components/Select/Select.vue'
 import moment from 'moment'
-import { querySelect } from '@/api/public.js'
 
 export default {
     props: ['table5', 'total', 'page', 'size', 'loading'],
@@ -139,14 +89,11 @@ export default {
         return {
             value1: '',
             searVal: '',
-            status: [],
-            zt: []
+            dateVal: ''
         }
     },
     components: { Select },
-    mounted() {
-        this.changeSelect()
-    },
+    mounted() {},
     methods: {
         pageChanged(page) {
             this.page = page
@@ -154,44 +101,6 @@ export default {
         },
         formatter(date) {
             return moment.unix(date / 1000).format('YYYY.MM.DD')
-        },
-        changeSelect() {
-            this.department = []
-            let postParams = [
-                {
-                    columnName: { status: 'status', zt: 'zt' },
-                    tableName: 'v_glsms_wbzy'
-                }
-            ]
-            let data = {
-                plazaId: '1000288'
-            }
-            querySelect({ data, postParams }).then(res => {
-                console.log('下拉框', res)
-                let status = [],
-                    zt = []
-
-                status = res.data.data.v_glsms_wbzy.status ? res.data.data.v_glsms_wbzy.status : []
-                zt = res.data.data.v_glsms_wbzy.zt ? res.data.data.v_glsms_wbzy.zt : []
-                if (status.length > 0) {
-                    status.forEach(el => {
-                        let obj = {
-                            id: el.key,
-                            name: el.value
-                        }
-                        this.status.push(obj)
-                    })
-                }
-                if (zt.length > 0) {
-                    zt.forEach(el => {
-                        let obj = {
-                            id: el.key,
-                            name: el.value
-                        }
-                        this.zt.push(obj)
-                    })
-                }
-            })
         }
     }
 }

+ 2 - 1
vue.config.js

@@ -25,6 +25,7 @@ module.exports = {
             },
         },
         hot: true,
+        host: '192.168.200.82',
         open: true,
         port: 8080,
         // 关闭esline
@@ -45,4 +46,4 @@ module.exports = {
     },
     lintOnSave: false,
     publicPath: '/',
-}
+}