fix:工单同步相关逻辑

This commit is contained in:
zhangzq
2026-07-11 09:50:11 +08:00
parent 8fa31ae2e6
commit 58bb49bf8d
34 changed files with 338 additions and 336 deletions

View File

@@ -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++) {

View File

@@ -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
})