bdd9175b by 任超

style:登记类型

1 parent 5a982e1d
......@@ -18,12 +18,12 @@
<div class="right-type el-card box-card is-always-shadow" v-if="n == -1">
<div class="right-title">登记类型</div>
<ul class="type-content">
<li :class="item.select ? 'cactive' : ''" @click="handleDjlxSelect(item)" v-for="(item, index) in djlxList"
<li :class="item.cselect ? 'cactive' : ''" @click="handleDjlxSelect(item)" v-for="(item, index) in djlxList"
:key="index">
<p>
{{ item.nodename }}
</p>
<p v-if="item.sffqlc == 1" :class="item.select ? 'active' : ''">
<p v-if="item.sffqlc == 1" :class="item.select ? 'active' : ''" @click.stop="handleCollection(item)">
<i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i>
</p>
</li>
......@@ -154,6 +154,10 @@ export default {
this.$set(item, 'cselect', false)
this.$set(item, 'select', false)
})
this.djlxList.forEach(item => {
this.$set(item, 'cselect', false)
this.$set(item, 'select', false)
})
})
},
handleCollection (item) {
......@@ -169,9 +173,9 @@ export default {
handleDjlxSelect (item) {
this.btnDisabled = true
this.djlxList.forEach(item => {
if (item.select) item.select = false
if (item.cselect) item.cselect = false
})
this.$set(item, 'select', true)
this.$set(item, 'cselect', true)
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
......@@ -186,7 +190,6 @@ export default {
this.isDialog = true
},
loadView (view) {
console.log(view);
return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`)))
},
}
......