|
|
@ -142,6 +142,12 @@ |
|
|
|
<el-input v-model="form.pageName" /> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr v-show="editMenuType=='2'"> |
|
|
|
<td>按钮Key</td> |
|
|
|
<td> |
|
|
|
<el-input v-model="form.btnKey" style="width:300px" /> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr v-show="editMenuType=='2'"> |
|
|
|
<td>权限标识</td> |
|
|
|
<td> |
|
|
@ -258,10 +264,16 @@ |
|
|
|
<el-input v-model="form.pageName" style="width:300px" /> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr v-show="addMenuType=='2'"> |
|
|
|
<td>按钮Key</td> |
|
|
|
<td> |
|
|
|
<el-input v-model="form.btnKey" style="width:300px" /> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr v-show="addMenuType=='2'"> |
|
|
|
<td>权限标识</td> |
|
|
|
<td> |
|
|
|
<el-input v-model="form.cid" /> |
|
|
|
<el-input v-model="form.cid" style="width:300px" /> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
@ -336,9 +348,10 @@ |
|
|
|
remarks: '', |
|
|
|
sortNo: 0, |
|
|
|
cid: '', |
|
|
|
btnKey: "", |
|
|
|
sourceName: 'wms', |
|
|
|
phoneFunction: "0", |
|
|
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33' |
|
|
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa44' |
|
|
|
}, |
|
|
|
tableData: [], |
|
|
|
page: { |
|
|
@ -349,7 +362,7 @@ |
|
|
|
name: '', |
|
|
|
psid: '', |
|
|
|
sourceName: 'wms', |
|
|
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33' |
|
|
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa44' |
|
|
|
} |
|
|
|
}, |
|
|
|
rank: '1', |
|
|
@ -414,10 +427,16 @@ |
|
|
|
|
|
|
|
menuTypeChangeRadio(val) { |
|
|
|
console.log('menuTypeChangeRadio', val) |
|
|
|
if (val != '2') { |
|
|
|
this.form.btnKey = "" |
|
|
|
} |
|
|
|
this.form.menuType = val |
|
|
|
}, |
|
|
|
menuTypeChangeRadio2(val) { |
|
|
|
console.log('menuTypeChangeRadio2', val) |
|
|
|
if (val != '2') { |
|
|
|
this.form.btnKey = "" |
|
|
|
} |
|
|
|
this.form.menuType = val |
|
|
|
}, |
|
|
|
changeRadio(val) { |
|
|
@ -446,6 +465,7 @@ |
|
|
|
}, |
|
|
|
getPageList() { // 获取列表 |
|
|
|
this.loading = true |
|
|
|
this.page.params.orgSid = window.sessionStorage.getItem('orgSid') |
|
|
|
pageList(this.page).then((res) => { |
|
|
|
this.loading = false |
|
|
|
console.log('这里是条件查询', this.page) |
|
|
@ -467,12 +487,13 @@ |
|
|
|
}, |
|
|
|
handleClick(tab, event) { |
|
|
|
if (tab.name == 'addrole') { |
|
|
|
this.form = {} |
|
|
|
this.dialogTitle = '新增' |
|
|
|
this.form.isShow = '1' |
|
|
|
this.form.menuType = '0' |
|
|
|
// this.form.psid = row.sid || 0 |
|
|
|
this.form.sourceName = 'wms' |
|
|
|
this.form.sourceSid = 'd936f1ba-03c3-11ec-bf08-48452053aa33' |
|
|
|
this.form.sourceSid = 'd936f1ba-03c3-11ec-bf08-48452053aa44' |
|
|
|
this.form.pname = '' |
|
|
|
this.form.psid = '0' |
|
|
|
// this.sourceMenus() |
|
|
@ -492,8 +513,8 @@ |
|
|
|
this.form.isShow = '1' |
|
|
|
this.form.menuType = '0' |
|
|
|
// this.form.psid = row.sid || 0 |
|
|
|
this.form.pname = '' |
|
|
|
this.form.psid = '' |
|
|
|
this.form.pname = row.name |
|
|
|
this.form.psid = row.sid |
|
|
|
this.form.sourceName = row.sourceName |
|
|
|
this.form.sourceSid = row.sourceSid |
|
|
|
if (row.isSource == '1') { |
|
|
@ -501,6 +522,10 @@ |
|
|
|
} else { |
|
|
|
this.form.psid = row.sid |
|
|
|
} |
|
|
|
let arr = [] |
|
|
|
arr = [row.sid]; |
|
|
|
this.$refs.Tree.setCheckedKeys(arr); |
|
|
|
|
|
|
|
}, |
|
|
|
editRow(row) { |
|
|
|
console.log("editRow", row); |
|
|
@ -510,11 +535,34 @@ |
|
|
|
|
|
|
|
this.editShow = this.form.isShow |
|
|
|
this.editMenuType = this.form.menuType |
|
|
|
let arr = [] |
|
|
|
arr = [row.sid]; |
|
|
|
this.$refs.Tree.setCheckedKeys(arr); |
|
|
|
|
|
|
|
// this.form.isShow = 1 |
|
|
|
this.form.pname = row.psid == '0' ? '顶级菜单' : row.pname |
|
|
|
}, |
|
|
|
save() { |
|
|
|
if (this.form.name == '') { |
|
|
|
this.$message({ |
|
|
|
message: '菜单名称不能为空', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (this.form.menuType == '2') { |
|
|
|
|
|
|
|
if (this.form.btnKey == '') { |
|
|
|
this.$message({ |
|
|
|
message: '按钮Key不能为空', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.form.sid) { |
|
|
|
putMenusInfo(this.form).then(res => { |
|
|
|
this.editDialog = false |
|
|
@ -556,7 +604,7 @@ |
|
|
|
sortNo: 0, |
|
|
|
sourceName: 'wms', |
|
|
|
phoneFunction: "0", |
|
|
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa33' |
|
|
|
sourceSid: 'd936f1ba-03c3-11ec-bf08-48452053aa44' |
|
|
|
} |
|
|
|
}, |
|
|
|
deleteRow(row) { |
|
|
|