对接’我的布控的增删查改‘,布控审核送审

This commit is contained in:
jy
2025-05-26 21:03:06 +08:00
parent 64bbcd2a06
commit 65947c2eb4
18 changed files with 3332 additions and 890 deletions

View File

@ -44,7 +44,11 @@
style="width: 100%"
height="450"
>
<el-table-column type="selection" width="55" :reserve-selection="true" />
<el-table-column
type="selection"
width="55"
:reserve-selection="true"
/>
<el-table-column
prop="loginName"
align="center"
@ -131,7 +135,7 @@ const props = defineProps({
roleIds: {
type: Array,
default: []
},
}
});
const total = ref(0);
const listQuery = ref({
@ -163,16 +167,17 @@ const keyid = (row) => {
// 为用户分配角色
const onComfirm = () => {
const userList = multipleSelectionUser.value;
let list = []
let listId = []
userList.forEach(val=>{
if(listId.indexOf(val.id) == -1) {
let list = [];
let listId = [];
userList.forEach((val) => {
if (listId.indexOf(val.id) == -1) {
list.push(val);
listId.push(val.id);
}
})
});
emits("choosedUsers", list);
let data = { type: props.LeaderType, userList: userList };
emits("choosedUsersLeader", data);
closed();
};
@ -193,20 +198,20 @@ const handleCurrentChange = (currentPage) => {
};
const getListData = () => {
const params = listQuery.value;
selectUserDeptPage(params).then(res=>{
selectUserDeptPage(params).then((res) => {
tableData.value = res?.records;
total.value = Number(res.total);
multipleUser()
multipleUser();
});
};
//列表回显
function multipleUser() {
tableData.value.forEach(item=>{
if(props.roleIds.some(id=>id == item.id)){
tableData.value.forEach((item) => {
if (props.roleIds.some((id) => id == item.id)) {
multipleUserRef.value.toggleRowSelection(item, true);
}
})
});
}
const handleFilter = () => {
@ -226,7 +231,6 @@ const handleSelectionChange = (val) => {
} else {
multipleSelectionUser.value = val;
}
};
</script>
@ -241,10 +245,8 @@ const handleSelectionChange = (val) => {
.tabBoxRadio .el-table__header-wrapper .el-checkbox {
display: none;
}
.el-dialog{
background: #050e33;
}
.el-dialog__title{
color: #fff;
.el-dialog__title {
color: #fff;
}
</style>