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

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

parent 2ae12971
......@@ -108,13 +108,13 @@
<!-- @click="handleUpdate(scope.row)"-->
<!-- >修改</el-button>-->
<coolbutton style="color: #49cec9" :type="typeParent" :name="updataName" :size="size" :haspermi="updateHaspermi" @btn-click="handleUpdate(scope.row)" />
<!-- <el-button-->
<!-- v-hasPermi="['sys:role:update']"-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-circle-check"-->
<!-- @click="handleMenu(scope.row)"-->
<!-- >数据权限</el-button>-->
<el-button
v-hasPermi="['sys:role:update']"
size="mini"
type="text"
icon="el-icon-circle-check"
@click="handleMenu(scope.row)"
>数据权限</el-button>
<el-button
size="mini"
type="text"
......@@ -428,7 +428,7 @@ export default {
/** 查询菜单列表 */
getMenuList(roleId) {
roleMenuTreeselectMC(roleId).then(response => {
this.menuList = this.handleTree(response.data.menus, 'businessId')
this.menuList = this.handleTree(response.data, 'businessId')
this.loading = false
})
},
......@@ -542,7 +542,7 @@ export default {
menuIds: [],
menuName: undefined,
deptIds: [],
menuCheckStrictly: false,
menuCheckStrictly: 0,
deptCheckStrictly: false,
remark: undefined
}
......@@ -649,7 +649,7 @@ export default {
submitForm: function() {
this.$refs['form'].validate(valid => {
if (valid) {
this.form.menuCheckStrictly = false
this.form.menuCheckStrictly = 0
if (this.form.businessId !== undefined) {
this.form.menuIds = this.getMenuAllCheckedKeys()
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