fix:修改页面 添加 计划添加页面

This commit is contained in:
zhaohy
2024-08-08 14:33:33 +08:00
parent 3672d6feb3
commit 7758049b28
12 changed files with 71 additions and 36 deletions

View File

@@ -145,8 +145,8 @@
return data.list.length === 0;
},
handle: (data: any) => {
let ids = [];
data.list.forEach((item) => {
let ids: any = [];
data.list.forEach((item: any) => {
ids.push(item.id);
});
data.list = [];

View File

@@ -123,8 +123,8 @@
return data.list.length === 0;
},
handle: (data: any) => {
let ids = [];
data.list.forEach((item) => {
let ids: any = [];
data.list.forEach((item: any) => {
ids.push(item.id);
});
data.list = [];

View File

@@ -180,10 +180,10 @@
//获取 通知方式
const getNotificationMethod = (data: any) => {
if (!data) return '';
const methods = [];
const methods: any = [];
const notifications = data.split(',');
notifications.forEach((notification) => {
notifications.forEach((notification: any) => {
if (notification === '1') {
methods.push('站内信息');
} else if (notification === '2') {

View File

@@ -90,9 +90,10 @@
{
title: '姓名',
dataIndex: 'realName',
width: 80,
width: 100,
fixed: 'left',
key: 'deviceName',
ellipsis: true,
},
{
title: '性别',
@@ -142,8 +143,8 @@
//点击联系人
const chengUser = () => {
visibleModel.value = true;
let ids = [];
dataSource.value.forEach((item) => {
let ids: any = [];
dataSource.value.forEach((item: any) => {
ids.push(item.userId);
});
// 传到子页面
@@ -311,4 +312,3 @@
width: 20%;
}
</style>
../../../../api/alarmManagement/alarmSettings/notificationManagements

View File

@@ -151,8 +151,8 @@
getList();
};
// 递归处理部门树数据
const processDepartmentTree = (tree) => {
tree.forEach((item) => {
const processDepartmentTree = (tree: any) => {
tree.forEach((item: any) => {
item.deptInfo = item.deptInfo;
item.key = item.deptInfo.deptId;
item.title = item.deptInfo.deptName;
@@ -162,9 +162,9 @@
};
// 获取部门树
const getDepartList = (params) => {
const getDepartList = (params: any) => {
return http.post(department.queryDeptTree, params).then((res) => {
const result = res.data.map((item) => ({
const result = res.data.map((item: any) => ({
key: item.orgInfo.orgId,
orgInfo: item.orgInfo,
title: item.orgInfo.orgName,
@@ -221,8 +221,8 @@
const onSelectChange = (selectedRowKeys: any, selectedRows: any) => {
selectedRowKey.value = selectedRowKeys;
// 使用 forEach 循环遍历 selectedRows 数组
let newSelectRows = [];
selectedRows.forEach((item, index) => {
let newSelectRows: any = [];
selectedRows.forEach((item: any) => {
if (item) {
newSelectRows.push(item);
}
@@ -244,6 +244,7 @@
{
title: '序号',
dataIndex: 'index',
width: 80,
customRender: (text: any) => {
return text.index + 1;
},
@@ -251,6 +252,8 @@
{
title: '姓名',
dataIndex: 'realName',
width: 100,
ellipsis: true,
},
{
title: '性别',