Commit 5f3f16f2 authored by 皮倩雯's avatar 皮倩雯

fix: '巡维保前端界面优化'

parent 4ff2023e
Pipeline #54018 waiting for manual action with stages
......@@ -88,6 +88,7 @@ const ChangeAdd = props => {
console.log(indeterminate);
if (type == 'edit') {
if (isType != '' && isType === 'add') {
// 反馈名称
let checkArr = [];
console.log(newCheckedList);
newCheckedList.map(checkItem => {
......@@ -96,11 +97,12 @@ const ChangeAdd = props => {
}
});
setCheckedList(checkArr);
setIndeterminate(!!newCheckedList.length && newCheckedList.length < filed.length);
setCheckAll(newCheckedList.length === filed.length);
setIndeterminate(!!checkArr.length && checkArr.length < filed.length);
setCheckAll(checkArr.length === filed.length);
let newArr = characterValue.length ? characterValue.split(',') : [];
setSelectData(newArr);
} else if (isType === 'app') {
// 执行角色
let checkArr = [];
console.log(newCheckedList);
newCheckedList.map(checkItem => {
......@@ -109,26 +111,30 @@ const ChangeAdd = props => {
}
});
setCheckedList(checkArr);
setIndeterminate(!!newCheckedList.length && newCheckedList.length < ff.length);
setCheckAll(newCheckedList.length === ff.length);
setIndeterminate(!!checkArr.length && checkArr.length < ff.length);
setCheckAll(checkArr.length === ff.length);
let newArr = characterValue.length ? characterValue.split(',') : [];
setSelectData(newArr);
}
} else {
if (isType != '' && isType === 'add') {
// 反馈名称
let checkArr = [];
console.log(filed);
console.log(newCheckedList);
newCheckedList.map(checkItem => {
if (filed.includes(checkItem)) {
checkArr.push(checkItem);
}
});
console.log(checkArr);
setCheckedList(checkArr);
setIndeterminate(false);
setCheckAll(false);
setIndeterminate(!!checkArr.length && checkArr.length < filed.length);
setCheckAll(checkArr.length === filed.length);
let newArr = characterValue.length ? characterValue.split(',') : [];
setSelectData(newArr);
} else if (isType === 'app') {
// 执行角色
let checkArr = [];
console.log(newCheckedList);
newCheckedList.map(checkItem => {
......@@ -137,8 +143,8 @@ const ChangeAdd = props => {
}
});
setCheckedList(checkArr);
setIndeterminate(false);
setCheckAll(false);
setIndeterminate(!!checkArr.length && checkArr.length < ff.length);
setCheckAll(checkArr.length === ff.length);
let newArr = characterValue.length ? characterValue.split(',') : [];
setSelectData(newArr);
}
......
......@@ -48,7 +48,7 @@ const maintenance = () => {
title: '业务类型',
dataIndex: 'businessType',
key: 'businessType',
// width: 100,
width: 100,
onCell: () => ({
style: {
maxWidth: 100,
......@@ -69,26 +69,17 @@ const maintenance = () => {
title: '执行周期',
dataIndex: 'docycle',
key: 'docycle',
// width: 100,
onCell: () => ({
style: {
maxWidth: 100,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
width: 100,
align: 'center',
},
{
title: '台账名称',
dataIndex: 'accountName',
key: 'accountName',
// width: 100,
width: 200,
onCell: () => ({
style: {
maxWidth: 100,
maxWidth: 200,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
......@@ -106,10 +97,9 @@ const maintenance = () => {
title: '反馈名称',
dataIndex: 'feedbackName',
key: 'feedbackName',
width: 200,
onCell: () => ({
style: {
maxWidth: 200,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
......@@ -127,10 +117,10 @@ const maintenance = () => {
title: '台账过滤条件',
dataIndex: 'filterCondition',
key: 'filterCondition',
// width: 150,
width: 150,
onCell: () => ({
style: {
maxWidth: 200,
maxWidth: 150,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
......@@ -149,32 +139,22 @@ const maintenance = () => {
dataIndex: 'isSubmit',
key: 'isSubmit',
width: 80,
onCell: () => ({
style: {
maxWidth: 100,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center',
},
{
title: '执行角色',
dataIndex: 'doRole',
key: 'doRole',
width: 300,
align: 'center',
onCell: () => ({
style: {
maxWidth: 350,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
......@@ -186,32 +166,32 @@ const maintenance = () => {
dataIndex: 'produceDays',
key: 'produceDays',
width: 80,
align: 'center',
onCell: () => ({
style: {
maxWidth: 100,
maxWidth: 80,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center',
},
{
title: '在线任务量',
dataIndex: 'onLines',
key: 'onLines',
width: 80,
align: 'center',
onCell: () => ({
style: {
maxWidth: 100,
maxWidth: 80,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
align: 'center',
render: record => (
<Tooltip placement="topLeft" title={record}>
{record}
......@@ -222,16 +202,7 @@ const maintenance = () => {
title: '启停',
dataIndex: 'doNot',
key: 'doNot',
// width: 100,
onCell: () => ({
style: {
maxWidth: 100,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
}),
width: 80,
align: 'center',
},
{
......
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