style:登记类型
Showing
1 changed file
with
8 additions
and
5 deletions
| ... | @@ -18,12 +18,12 @@ | ... | @@ -18,12 +18,12 @@ |
| 18 | <div class="right-type el-card box-card is-always-shadow" v-if="n == -1"> | 18 | <div class="right-type el-card box-card is-always-shadow" v-if="n == -1"> |
| 19 | <div class="right-title">登记类型</div> | 19 | <div class="right-title">登记类型</div> |
| 20 | <ul class="type-content"> | 20 | <ul class="type-content"> |
| 21 | <li :class="item.select ? 'cactive' : ''" @click="handleDjlxSelect(item)" v-for="(item, index) in djlxList" | 21 | <li :class="item.cselect ? 'cactive' : ''" @click="handleDjlxSelect(item)" v-for="(item, index) in djlxList" |
| 22 | :key="index"> | 22 | :key="index"> |
| 23 | <p> | 23 | <p> |
| 24 | {{ item.nodename }} | 24 | {{ item.nodename }} |
| 25 | </p> | 25 | </p> |
| 26 | <p v-if="item.sffqlc == 1" :class="item.select ? 'active' : ''"> | 26 | <p v-if="item.sffqlc == 1" :class="item.select ? 'active' : ''" @click.stop="handleCollection(item)"> |
| 27 | <i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i> | 27 | <i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i> |
| 28 | </p> | 28 | </p> |
| 29 | </li> | 29 | </li> |
| ... | @@ -154,6 +154,10 @@ export default { | ... | @@ -154,6 +154,10 @@ export default { |
| 154 | this.$set(item, 'cselect', false) | 154 | this.$set(item, 'cselect', false) |
| 155 | this.$set(item, 'select', false) | 155 | this.$set(item, 'select', false) |
| 156 | }) | 156 | }) |
| 157 | this.djlxList.forEach(item => { | ||
| 158 | this.$set(item, 'cselect', false) | ||
| 159 | this.$set(item, 'select', false) | ||
| 160 | }) | ||
| 157 | }) | 161 | }) |
| 158 | }, | 162 | }, |
| 159 | handleCollection (item) { | 163 | handleCollection (item) { |
| ... | @@ -169,9 +173,9 @@ export default { | ... | @@ -169,9 +173,9 @@ export default { |
| 169 | handleDjlxSelect (item) { | 173 | handleDjlxSelect (item) { |
| 170 | this.btnDisabled = true | 174 | this.btnDisabled = true |
| 171 | this.djlxList.forEach(item => { | 175 | this.djlxList.forEach(item => { |
| 172 | if (item.select) item.select = false | 176 | if (item.cselect) item.cselect = false |
| 173 | }) | 177 | }) |
| 174 | this.$set(item, 'select', true) | 178 | this.$set(item, 'cselect', true) |
| 175 | if (item.sffqlc == '1') { | 179 | if (item.sffqlc == '1') { |
| 176 | this.btnDisabled = false | 180 | this.btnDisabled = false |
| 177 | this.bsmSqyw = item.bsmSqyw | 181 | this.bsmSqyw = item.bsmSqyw |
| ... | @@ -186,7 +190,6 @@ export default { | ... | @@ -186,7 +190,6 @@ export default { |
| 186 | this.isDialog = true | 190 | this.isDialog = true |
| 187 | }, | 191 | }, |
| 188 | loadView (view) { | 192 | loadView (view) { |
| 189 | console.log(view); | ||
| 190 | return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`))) | 193 | return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`))) |
| 191 | }, | 194 | }, |
| 192 | } | 195 | } | ... | ... |
-
Please register or sign in to post a comment