|
|
|
|
@ -107,6 +107,7 @@ |
|
|
|
|
scopeMenuName: "菜单", |
|
|
|
|
scopeLoading: false, |
|
|
|
|
menu: true, |
|
|
|
|
watchMode: true, |
|
|
|
|
option: { |
|
|
|
|
tip: false, |
|
|
|
|
dialogWidth: "60%", |
|
|
|
|
@ -429,6 +430,7 @@ |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
initScope() { |
|
|
|
|
if (this.watchMode) { |
|
|
|
|
const scopeType = this.formScope.scopeType; |
|
|
|
|
let column = "-", name = "暂无"; |
|
|
|
|
if (scopeType === "1") { |
|
|
|
|
@ -461,6 +463,7 @@ |
|
|
|
|
item.display = scopeType === '5'; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 菜单管理模块 |
|
|
|
|
rowSave(row, loading, done) { |
|
|
|
|
@ -655,9 +658,11 @@ |
|
|
|
|
}, |
|
|
|
|
beforeOpenScope(done, type) { |
|
|
|
|
if (["add"].includes(type)) { |
|
|
|
|
this.watchMode = true; |
|
|
|
|
this.initScope(); |
|
|
|
|
} |
|
|
|
|
if (["edit", "view"].includes(type)) { |
|
|
|
|
this.watchMode = false; |
|
|
|
|
getMenuDataScope(this.formScope.id).then(res => { |
|
|
|
|
this.formScope = res.data.data; |
|
|
|
|
}); |
|
|
|
|
|