|
|
@ -234,8 +234,8 @@ |
|
|
|
确定要移除服务吗? |
|
|
|
</GuipDialog> |
|
|
|
</div> |
|
|
|
<div class="register-btns"> |
|
|
|
<GuipButton type="primary" :btnstyle="{ width: '144px', height: '46px' }" @click="jumpStep">添加完成</GuipButton> |
|
|
|
<div class="register-btns flex gap12"> |
|
|
|
<span class="service-open-num">已开启 {{addNum}}项 服务</span><GuipButton type="primary" :btnstyle="{ width: '144px', height: '46px' }" @click="jumpStep">返回服务列表</GuipButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -284,6 +284,7 @@ export default { |
|
|
|
dialogDelBindConfim: false, |
|
|
|
delRow: {}, |
|
|
|
dialogDelServiceConfim: false, |
|
|
|
addNum: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -325,6 +326,7 @@ export default { |
|
|
|
that.$nextTick(() => { |
|
|
|
that.menuList = response.data |
|
|
|
store.commit('SET_SECOND_MENU', response.data); |
|
|
|
that.setMenuList() |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
@ -505,11 +507,17 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
setMenuList(type, status) { |
|
|
|
this.addNum = 0 |
|
|
|
Object.values(this.menuList).forEach((item) => { |
|
|
|
let ver_select = false |
|
|
|
item.list.forEach((item1) => { |
|
|
|
if (item1.type === type) item1.is_select = status |
|
|
|
if (item1.is_select === true) ver_select = true |
|
|
|
if (item1.type === type) { |
|
|
|
item1.is_select = status |
|
|
|
} |
|
|
|
if (item1.is_select === true) { |
|
|
|
ver_select = true |
|
|
|
this.addNum++ |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if (ver_select) item.is_select = true |
|
|
@ -850,5 +858,11 @@ export default { |
|
|
|
button:nth-child(1) { |
|
|
|
margin-right: 56px; |
|
|
|
} |
|
|
|
|
|
|
|
.service-open-num{ |
|
|
|
color: #006AFF; |
|
|
|
letter-spacing: 0.08em; |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |