Commit 769d0e9c authored by xiexingan's avatar xiexingan

调整

parent 564c5197
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
v-for="item in typeList" v-for="item in typeList"
:key="item.id" :key="item.id"
:class="[ :class="[
item.id == currentId ? 'isActive' : '', item.id == currentId&&active? 'isActive' : '',
item.icon, item.icon,
]" ]"
> >
...@@ -166,24 +166,30 @@ export default { ...@@ -166,24 +166,30 @@ export default {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
totalSize: 0, totalSize: 0,
active: false,
typeList: [ typeList: [
{ {
id: 1, id: 1,
name: '供暖', name: '供暖',
src: require('../../home/image/nan_fan_icon.png'), src: require('../../home/image/nan_fan_icon.png'),
icon: 'el-icon-sunny' icon: 'el-icon-sunny',
status: null
}, },
{ {
id: 2, id: 2,
name: '机械通风', name: '机械通风',
src: require('../../home/image/fan_icon.png'), src: require('../../home/image/fan_icon.png'),
icon: 'iconfont icon-feng2' icon: 'iconfont icon-feng2',
status: null
}, },
{ {
id: 3, id: 3,
name: '自然通风', name: '自然通风',
src: require('../../home/image/fan_icon.png'), src: require('../../home/image/fan_icon.png'),
icon: 'iconfont icon-feng' icon: 'iconfont icon-feng',
status: null
} }
], ],
currentId: null, currentId: null,
...@@ -403,6 +409,7 @@ export default { ...@@ -403,6 +409,7 @@ export default {
this.hallModalVisible = true this.hallModalVisible = true
}, },
handleType(id) { handleType(id) {
this.active = !this.active
console.log('id:', id) console.log('id:', id)
this.$http({ this.$http({
url: this.$http.adornUrl('/equipment/checkModel'), url: this.$http.adornUrl('/equipment/checkModel'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment