|
|
@ -91,8 +91,6 @@ export default { |
|
|
|
return { |
|
|
|
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btnDisable: false, |
|
|
|
|
|
|
|
roleId: '', |
|
|
@ -230,19 +228,7 @@ export default { |
|
|
|
|
|
|
|
async addNat () { |
|
|
|
|
|
|
|
// let menuList1 = [ |
|
|
|
// ...this.$refs.menuListTree.getCheckedKeys(), |
|
|
|
// ...this.$refs.menuListTree.getHalfCheckedKeys(), |
|
|
|
// ] |
|
|
|
// let menuList2 = [ |
|
|
|
// ...this.$refs.menuListShujuTree.getCheckedKeys(), |
|
|
|
// ...this.$refs.menuListShujuTree.getHalfCheckedKeys() |
|
|
|
// ] |
|
|
|
|
|
|
|
// console.log('menuList1', menuList1) |
|
|
|
// console.log('menuList2', menuList2) |
|
|
|
// let menuAll=menuList1.concat(menuList2) |
|
|
|
// console.log('menuAll',menuAll) |
|
|
|
|
|
|
|
this.formData.menuIdList = [] |
|
|
|
this.formData.menuIdList = [ |
|
|
|
...this.$refs.menuListTree.getCheckedKeys(), |
|
|
@ -297,6 +283,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
resetData () { |
|
|
|
|
|
|
|
this.roleId = '' |
|
|
|
|
|
|
|
this.formData = { |
|
|
@ -307,6 +294,7 @@ export default { |
|
|
|
customerId: '' |
|
|
|
|
|
|
|
} |
|
|
|
this.$refs['ref_form'].resetFields() |
|
|
|
}, |
|
|
|
// 开启加载动画 |
|
|
|
startLoading () { |
|
|
|