Commit 0f3cb8a5 authored by 孙浩's avatar 孙浩

用户模块表单参数menuCheckStrictly更改类型

parent 2ae12971
...@@ -108,13 +108,13 @@ ...@@ -108,13 +108,13 @@
<!-- @click="handleUpdate(scope.row)"--> <!-- @click="handleUpdate(scope.row)"-->
<!-- >修改</el-button>--> <!-- >修改</el-button>-->
<coolbutton style="color: #49cec9" :type="typeParent" :name="updataName" :size="size" :haspermi="updateHaspermi" @btn-click="handleUpdate(scope.row)" /> <coolbutton style="color: #49cec9" :type="typeParent" :name="updataName" :size="size" :haspermi="updateHaspermi" @btn-click="handleUpdate(scope.row)" />
<!-- <el-button--> <el-button
<!-- v-hasPermi="['sys:role:update']"--> v-hasPermi="['sys:role:update']"
<!-- size="mini"--> size="mini"
<!-- type="text"--> type="text"
<!-- icon="el-icon-circle-check"--> icon="el-icon-circle-check"
<!-- @click="handleMenu(scope.row)"--> @click="handleMenu(scope.row)"
<!-- >数据权限</el-button>--> >数据权限</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
...@@ -428,7 +428,7 @@ export default { ...@@ -428,7 +428,7 @@ export default {
/** 查询菜单列表 */ /** 查询菜单列表 */
getMenuList(roleId) { getMenuList(roleId) {
roleMenuTreeselectMC(roleId).then(response => { roleMenuTreeselectMC(roleId).then(response => {
this.menuList = this.handleTree(response.data.menus, 'businessId') this.menuList = this.handleTree(response.data, 'businessId')
this.loading = false this.loading = false
}) })
}, },
...@@ -542,7 +542,7 @@ export default { ...@@ -542,7 +542,7 @@ export default {
menuIds: [], menuIds: [],
menuName: undefined, menuName: undefined,
deptIds: [], deptIds: [],
menuCheckStrictly: false, menuCheckStrictly: 0,
deptCheckStrictly: false, deptCheckStrictly: false,
remark: undefined remark: undefined
} }
...@@ -649,7 +649,7 @@ export default { ...@@ -649,7 +649,7 @@ export default {
submitForm: function() { submitForm: function() {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
this.form.menuCheckStrictly = false this.form.menuCheckStrictly = 0
if (this.form.businessId !== undefined) { if (this.form.businessId !== undefined) {
this.form.menuIds = this.getMenuAllCheckedKeys() this.form.menuIds = this.getMenuAllCheckedKeys()
updateRole(this.form).then(response => { updateRole(this.form).then(response => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment