|
@@ -2,7 +2,7 @@
|
|
<template>
|
|
<template>
|
|
<div class='zw-list'>
|
|
<div class='zw-list'>
|
|
<div class='eq-list-top'>
|
|
<div class='eq-list-top'>
|
|
- <el-date-picker size='small' v-model='nd' type='date' placeholder='请选择年度' @change='getList' style='width:180px;margin-right:12px'></el-date-picker>
|
|
|
|
|
|
+ <el-date-picker size='small' v-model='nd' type='year' placeholder='请选择年度' @change='getList' style='width:180px;margin-right:12px'></el-date-picker>
|
|
<Select width='146' tipPlace='top' caption='类别:' :selectdata='dataSelect2' :placeholder='"请选择"' @change='getList'></Select>
|
|
<Select width='146' tipPlace='top' caption='类别:' :selectdata='dataSelect2' :placeholder='"请选择"' @change='getList'></Select>
|
|
<Select width='120' tipPlace='top' caption='项目 :' :selectdata='floorSelect' style='margin:0 12px' @change='getList'></Select>
|
|
<Select width='120' tipPlace='top' caption='项目 :' :selectdata='floorSelect' style='margin:0 12px' @change='getList'></Select>
|
|
<Select width='180' tipPlace='top' caption='当前阶段' :selectdata='dataSelect2' :placeholder='"请选择"' @change='getList'></Select>
|
|
<Select width='180' tipPlace='top' caption='当前阶段' :selectdata='dataSelect2' :placeholder='"请选择"' @change='getList'></Select>
|
|
@@ -15,7 +15,14 @@
|
|
style='width:180px;margin-left:12px;margin-right:12px'
|
|
style='width:180px;margin-left:12px;margin-right:12px'
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
<el-date-picker size='small' v-model='yssjwcsj' type='date' placeholder='选择验收日期' @change='getList' style='width:180px;margin-right:12px'></el-date-picker>
|
|
<el-date-picker size='small' v-model='yssjwcsj' type='date' placeholder='选择验收日期' @change='getList' style='width:180px;margin-right:12px'></el-date-picker>
|
|
- <Select width='180' tipPlace='top' caption='验收结果' :selectdata='dataSelect2' :placeholder='"请选择"' @change='getList'></Select>
|
|
|
|
|
|
+ <Select
|
|
|
|
+ width='180'
|
|
|
|
+ tipPlace='top'
|
|
|
|
+ caption='验收结果'
|
|
|
|
+ :selectdata='dataSelect2'
|
|
|
|
+ :placeholder='"请选择"'
|
|
|
|
+ style='margin-right:12px'
|
|
|
|
+ >@change='getList'></Select>
|
|
<el-input
|
|
<el-input
|
|
placeholder='请按照按照实施方案说明搜索'
|
|
placeholder='请按照按照实施方案说明搜索'
|
|
size='small'
|
|
size='small'
|
|
@@ -68,7 +75,7 @@
|
|
<el-pagination
|
|
<el-pagination
|
|
background
|
|
background
|
|
layout='prev, pager, next'
|
|
layout='prev, pager, next'
|
|
- :total='total/size'
|
|
|
|
|
|
+ :total='total'
|
|
:page-size='size'
|
|
:page-size='size'
|
|
@prev-click='pageChanged'
|
|
@prev-click='pageChanged'
|
|
@next-click='pageChanged'
|
|
@next-click='pageChanged'
|
|
@@ -80,6 +87,7 @@
|
|
<script>
|
|
<script>
|
|
import Select from '@/components/Select/Select.vue'
|
|
import Select from '@/components/Select/Select.vue'
|
|
import { queryZw } from '@/api/equipmentList.js'
|
|
import { queryZw } from '@/api/equipmentList.js'
|
|
|
|
+import { querySelect } from '@/api/public.js'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
export default {
|
|
export default {
|
|
components: { Select },
|
|
components: { Select },
|
|
@@ -96,17 +104,18 @@ export default {
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
yssjwcsj: '',
|
|
yssjwcsj: '',
|
|
lxsjwcsj: '',
|
|
lxsjwcsj: '',
|
|
- size: 10
|
|
|
|
|
|
+ size: 10,
|
|
|
|
+ keyword: '',
|
|
|
|
+ nd: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(['floorSelect'])
|
|
...mapGetters(['floorSelect'])
|
|
},
|
|
},
|
|
- props: ['smsxt', ''],
|
|
|
|
|
|
+ props: ['smsxt', 'major'],
|
|
methods: {
|
|
methods: {
|
|
- pageChanged(page, size) {
|
|
|
|
|
|
+ pageChanged(page) {
|
|
this.currentPage = page
|
|
this.currentPage = page
|
|
- this.size = size
|
|
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
//下拉框查询
|
|
//下拉框查询
|
|
@@ -120,42 +129,44 @@ export default {
|
|
tableName: 'glsms_asset' //视图名称
|
|
tableName: 'glsms_asset' //视图名称
|
|
}
|
|
}
|
|
]
|
|
]
|
|
- // let major
|
|
|
|
- // if (this.major.slice(0, 2) == 'GD') {
|
|
|
|
- // major = '供电'
|
|
|
|
- // } else if (this.major.slice(0, 2) == 'XF') {
|
|
|
|
- // major = '消防'
|
|
|
|
- // } else if (this.major.slice(0, 2) == 'GPS') {
|
|
|
|
- // major = '给排水'
|
|
|
|
- // } else if (this.major.slice(0, 2) == 'DT') {
|
|
|
|
- // major = '电梯'
|
|
|
|
- // } else if (this.major.slice(0, 2) == 'RQ') {
|
|
|
|
- // major = '燃气'
|
|
|
|
- // } else {
|
|
|
|
- // major = this.major
|
|
|
|
- // }
|
|
|
|
|
|
+ let major
|
|
|
|
+ if (this.major.slice(0, 2) == 'GD') {
|
|
|
|
+ major = '供电'
|
|
|
|
+ } else if (this.major.slice(0, 2) == 'XF') {
|
|
|
|
+ major = '消防'
|
|
|
|
+ } else if (this.major.slice(0, 2) == 'GPS') {
|
|
|
|
+ major = '给排水'
|
|
|
|
+ } else if (this.major.slice(0, 2) == 'DT') {
|
|
|
|
+ major = '电梯'
|
|
|
|
+ } else if (this.major.slice(0, 2) == 'RQ') {
|
|
|
|
+ major = '燃气'
|
|
|
|
+ } else {
|
|
|
|
+ major = this.major
|
|
|
|
+ }
|
|
let data = {
|
|
let data = {
|
|
- major: this.major,
|
|
|
|
|
|
+ major: major,
|
|
plazaId: this.$store.state.plazaId
|
|
plazaId: this.$store.state.plazaId
|
|
}
|
|
}
|
|
querySelect({ data, postParams }).then(res => {
|
|
querySelect({ data, postParams }).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
- let sb_status = res.data.data.glsms_asset.sb_status
|
|
|
|
- let sbglgs = res.data.data.glsms_asset.sbglgs
|
|
|
|
- this.sbglgsOption = []
|
|
|
|
- this.statusOption = []
|
|
|
|
- sb_status.forEach(el => {
|
|
|
|
- this.statusOption.push({
|
|
|
|
- name: el.value,
|
|
|
|
- id: el.key
|
|
|
|
|
|
+ if (Object.key(res.data.data).length > 0) {
|
|
|
|
+ let sb_status = res.data.data.glsms_asset.sb_status
|
|
|
|
+ let sbglgs = res.data.data.glsms_asset.sbglgs
|
|
|
|
+ this.sbglgsOption = []
|
|
|
|
+ this.statusOption = []
|
|
|
|
+ sb_status.forEach(el => {
|
|
|
|
+ this.statusOption.push({
|
|
|
|
+ name: el.value,
|
|
|
|
+ id: el.key
|
|
|
|
+ })
|
|
})
|
|
})
|
|
- })
|
|
|
|
- sbglgs.forEach(el => {
|
|
|
|
- this.sbglgsOption.push({
|
|
|
|
- name: el.value,
|
|
|
|
- id: el.key
|
|
|
|
|
|
+ sbglgs.forEach(el => {
|
|
|
|
+ this.sbglgsOption.push({
|
|
|
|
+ name: el.value,
|
|
|
|
+ id: el.key
|
|
|
|
+ })
|
|
})
|
|
})
|
|
- })
|
|
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
@@ -178,6 +189,7 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
smsxt(newV, oldV) {
|
|
smsxt(newV, oldV) {
|
|
if (newV !== oldV) {
|
|
if (newV !== oldV) {
|
|
|
|
+ // this.tabFind()
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -192,8 +204,7 @@ export default {
|
|
.zw-list {
|
|
.zw-list {
|
|
.eq-list-top {
|
|
.eq-list-top {
|
|
display: flex;
|
|
display: flex;
|
|
- height: 90px;
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
|
|
+ margin-bottom: 12px;
|
|
}
|
|
}
|
|
td {
|
|
td {
|
|
overflow: hidden;
|
|
overflow: hidden;
|