fix:工单同步相关逻辑
This commit is contained in:
@@ -90,7 +90,6 @@
|
||||
<span class="role-span">{{ $t('Role.title_right') }}</span>
|
||||
</el-tooltip>
|
||||
<el-button
|
||||
v-permission="['admin','roles:edit']"
|
||||
:disabled="!showButton"
|
||||
:loading="menuLoading"
|
||||
icon="el-icon-check"
|
||||
@@ -195,7 +194,7 @@ export default {
|
||||
|
||||
const _this = this
|
||||
crudMenu.getMenusByRole(param).then(res => {
|
||||
_this.menus = res
|
||||
_this.menus = res.data
|
||||
|
||||
// 初始化默认选中的key
|
||||
_this.menuIds = []
|
||||
@@ -230,7 +229,8 @@ export default {
|
||||
},
|
||||
menuChange(menu) {
|
||||
// 获取该节点的所有子节点,id 包含自身
|
||||
getChild(menu.menu_id).then(childIds => {
|
||||
getChild(menu.menu_id).then(res => {
|
||||
let childIds = res.data
|
||||
// 判断是否在 menuIds 中,如果存在则删除,否则添加
|
||||
if (this.menuIds.indexOf(menu.menu_id) !== -1) {
|
||||
for (let i = 0; i < childIds.length; i++) {
|
||||
|
||||
@@ -436,9 +436,11 @@ export default {
|
||||
allDiv() {
|
||||
this.loadingAlldiv = true
|
||||
checkoutbill.allDiv(this.mstrow).then(res => {
|
||||
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
this.queryTableDtl()
|
||||
this.loadingAlldiv = false
|
||||
if(res.code === 200) {
|
||||
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
this.queryTableDtl()
|
||||
this.loadingAlldiv = false
|
||||
}
|
||||
}).catch(() => {
|
||||
this.loadingAlldiv = false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user