fix:通知管理

This commit is contained in:
zhaohy
2024-07-17 15:54:35 +08:00
parent 5c902d174d
commit f10045b64d
4 changed files with 132 additions and 113 deletions

View File

@@ -44,7 +44,7 @@
width: 5px;
height: 15px;
background: inherit;
background-color: rgba(251, 156, 67, 1);
background-color: #2778ff;
border: none;
border-radius: 5px;
-moz-box-shadow: none;
@@ -66,6 +66,9 @@
:scroll="{ x: 800, y: 700 }"
:pagination="pagination">
<template #bodyCell="{ record, column }">
<template v-if="column.dataIndex === 'address'">
{{ record.userRoleInfos?.[0].deptRoleInfoList }}
</template>
<template v-if="column.dataIndex === 'operation'">
<a style="color: rgb(210, 0, 5)" @click="remove(record)">移除</a>
</template>
@@ -93,7 +96,7 @@
const columns = [
{
title: '序号',
dataIndex: 'address',
dataIndex: 'index',
width: 80,
fixed: 'left',
customRender: (text: any) => {
@@ -102,7 +105,7 @@
},
{
title: '姓名',
dataIndex: 'deviceName',
dataIndex: 'realName',
width: 80,
fixed: 'left',
key: 'deviceName',
@@ -115,13 +118,13 @@
},
{
title: '组织关系',
dataIndex: 'site',
dataIndex: 'orgName',
key: 'site',
},
{
title: '部门',
dataIndex: 'department',
key: 'department',
dataIndex: 'address',
key: 'address',
},
{
title: '操作',
@@ -155,7 +158,7 @@
visibleModel.value = true;
let ids = [];
dataSource.value.forEach((item) => {
ids.push(item.id);
ids.push(item.userId);
});
linkPeoples.value.getData({ id: ids, data: dataSource });
};
@@ -223,7 +226,7 @@
//移除数据
const remove = (data: any) => {
dataSource.value.forEach((item, index) => {
if (item.id === data.id) {
if (item.userId === data.userId) {
dataSource.value.splice(index, 1);
}
});
@@ -236,7 +239,7 @@
obj.selectList = [];
dataSource.value.forEach((item) => {
obj.selectList.push({
people: item.id,
userId: item.userId,
});
});
console.log(obj, '数据');