Browse Source

服务添加完成文案

pull/105/head
pengda 4 weeks ago
parent
commit
eca0c488a7
  1. 22
      src/views/agent/siteServiceAdd.vue

22
src/views/agent/siteServiceAdd.vue

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