|
@@ -72,12 +72,13 @@
|
|
class="oper-span"
|
|
class="oper-span"
|
|
v-power="'disabled'"
|
|
v-power="'disabled'"
|
|
@click="changeUserStatus(row)"
|
|
@click="changeUserStatus(row)"
|
|
|
|
+ :class="{disable:user.info.id == row.id}"
|
|
style="color: var(--primaryColor)"
|
|
style="color: var(--primaryColor)"
|
|
>
|
|
>
|
|
{{ row.status ? "禁用" : "启用" }}
|
|
{{ row.status ? "禁用" : "启用" }}
|
|
</span>
|
|
</span>
|
|
|
|
|
|
- <span class="oper-span" style="color: var(--primaryColor)" @click="delInfo(row)" v-power="'del'">删除</span
|
|
|
|
|
|
+ <span :class="user.info.id == row.id?'disable oper-span':'oper-span'" style="color: var(--primaryColor)" @click="delInfo(row)" v-power="'del'">删除</span
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -106,7 +107,7 @@
|
|
maxlength="30"
|
|
maxlength="30"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="所属架构:" class="mandatory" v-if="user.roleKey !== 'admin-ordinary'">
|
|
|
|
|
|
+ <el-form-item label="所属架构" class="mandatory" v-if="user.roleKey !== 'admin-ordinary'">
|
|
<el-cascader
|
|
<el-cascader
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
v-model="editData.deptIdList"
|
|
v-model="editData.deptIdList"
|
|
@@ -136,11 +137,11 @@
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="所属架构:" class="mandatory" v-if="user.roleKey !== 'admin-ordinary'">
|
|
|
|
|
|
+ <el-form-item label="所属架构" class="mandatory" v-if="user.roleKey !== 'admin-ordinary'">
|
|
<el-cascader
|
|
<el-cascader
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
v-model="newData.deptIdList"
|
|
v-model="newData.deptIdList"
|
|
- @change="editChange"
|
|
|
|
|
|
+ @change="addChange"
|
|
:options="treedata"
|
|
:options="treedata"
|
|
:props="{ checkStrictly: true, label: 'name', value: 'id' }"
|
|
:props="{ checkStrictly: true, label: 'name', value: 'id' }"
|
|
></el-cascader>
|
|
></el-cascader>
|
|
@@ -207,7 +208,7 @@ export default {
|
|
roleId: "",
|
|
roleId: "",
|
|
maxlevel: 1,
|
|
maxlevel: 1,
|
|
},
|
|
},
|
|
- searchAttr: { nickName: "", status: "", deptId: "" },
|
|
|
|
|
|
+ searchAttr: { nickName: "", status: "", deptId: "",userName:"" },
|
|
});
|
|
});
|
|
const headList = ref([{ name: "用户管理", value: 2 }]);
|
|
const headList = ref([{ name: "用户管理", value: 2 }]);
|
|
const roleKey = ref({ 'admin': "admin-dept", 'admin-dept': 'admin-ordinary' });
|
|
const roleKey = ref({ 'admin': "admin-dept", 'admin-dept': 'admin-ordinary' });
|
|
@@ -217,10 +218,11 @@ export default {
|
|
return getApp().$message.error("请先启用用户", "提示");
|
|
return getApp().$message.error("请先启用用户", "提示");
|
|
}
|
|
}
|
|
console.log('updateInfo',row)
|
|
console.log('updateInfo',row)
|
|
|
|
+ let deplist = '1,DEP000011455793031868370944,DEP000011456084219309625344'
|
|
data.editData = {
|
|
data.editData = {
|
|
editName:row.nickName,
|
|
editName:row.nickName,
|
|
roleId:row.roleId,
|
|
roleId:row.roleId,
|
|
- deptIdList:row.deptIdList.split(','),
|
|
|
|
|
|
+ deptIdList:deplist.split(','),
|
|
}
|
|
}
|
|
operRoleId.value = row.roleId;
|
|
operRoleId.value = row.roleId;
|
|
state.oper.value.readyUpdate(row);
|
|
state.oper.value.readyUpdate(row);
|
|
@@ -373,6 +375,9 @@ export default {
|
|
editChange(val){
|
|
editChange(val){
|
|
console.log('relationDeptId',val);
|
|
console.log('relationDeptId',val);
|
|
this.relationDeptId = val&&val[val.length - 1] || '';
|
|
this.relationDeptId = val&&val[val.length - 1] || '';
|
|
|
|
+ },
|
|
|
|
+ addChange(val){
|
|
|
|
+ this.relationDeptId = val&&val[val.length - 1] || '';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|