Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
39c16fac
Commit
39c16fac
authored
Jul 03, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '维保模板配置优化,全局分页切换'
parent
ce438be4
Pipeline
#75333
waiting for manual action with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
60 deletions
+64
-60
AddModal.jsx
...ages/bsmanager/patrolMaintenance/maintenance/AddModal.jsx
+55
-53
ChangeRoles.jsx
...smanager/patrolMaintenance/patrolFeedback/ChangeRoles.jsx
+1
-1
ChangeAddFlows.jsx
src/pages/bsmanager/workOrder/incident/ChangeAddFlows.jsx
+1
-1
index.jsx
src/pages/log/omsLog/index.jsx
+1
-1
ModelFileManage.jsx
...er/baseFrameContainer/modelFileManage/ModelFileManage.jsx
+1
-1
NewSelectUser.jsx
src/pages/userCenter/roleManage/SelectUser/NewSelectUser.jsx
+2
-1
UserModal.jsx
src/pages/userCenter/roleManage/UserModal.jsx
+2
-1
UserManage.jsx
src/pages/userCenter/userManage/UserManage.jsx
+1
-1
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/AddModal.jsx
View file @
39c16fac
/* eslint-disable no-else-return */
/* eslint-disable prefer-promise-reject-errors */
/* eslint-disable indent */
/* eslint-disable camelcase */
...
...
@@ -153,6 +154,7 @@ const AddModal = props => {
setType2
(
''
);
setFiled1
({});
}
else
if
(
type
===
'edit'
)
{
onChangeFeed
(
formObj
.
feedbackName
,
''
,
JSON
.
parse
(
formObj
.
mappingFields
));
CM_XWBPlan_DataList
({
id
:
formObj
.
id
}).
then
(
res
=>
{
let
data
=
res
.
data
[
0
];
if
(
data
.
isSubmit
===
'是'
)
{
...
...
@@ -160,10 +162,8 @@ const AddModal = props => {
}
else
{
setAutoFlag
(
false
);
}
onChangeFeed
(
data
.
feedbackName
);
setVisibleChecked
(
data
.
isSubmit
===
'是'
);
setVisibleChecked1
(
data
.
autoAssign
===
'是'
);
console
.
log
(
data
);
data
&&
form
.
setFieldsValue
({
...
data
});
if
(
data
.
parentBusinessName
)
{
form
.
setFieldsValue
({
parentId
:
data
.
parentId
});
...
...
@@ -171,8 +171,6 @@ const AddModal = props => {
form
.
setFieldsValue
({
parentId
:
''
});
}
let
mappingFields
=
JSON
.
parse
(
data
.
mappingFields
);
getGetTaskSyncField
(
mappingFields
);
// 获取字段名数据
onChangeEvent
(
data
.
relationEvent
,
mappingFields
);
// 改变关联事件类型
setType1
(
data
.
businessType
);
...
...
@@ -198,6 +196,8 @@ const AddModal = props => {
getFeedbackTable
();
},
[]);
useEffect
(()
=>
{},
[
keepData
]);
const
getParentList
=
()
=>
{
GetParentDeviceTemplate
({
id
:
formObj
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
...
...
@@ -239,15 +239,6 @@ const AddModal = props => {
if
(
validate
)
{
let
obj
=
form
.
getFieldsValue
();
let
mappingFields
=
formAdd
.
getFieldValue
(
'parmars'
);
// mappingFields &&
// mappingFields.forEach(i => {
// keep.forEach(j => {
// if (j === i.fromField) {
// i.fromField = j;
// }
// });
// });
mappingFields
&&
mappingFields
.
forEach
(
i
=>
{
let
data
=
i
.
fromField
.
split
(
'%'
);
...
...
@@ -279,10 +270,8 @@ const AddModal = props => {
});
}
if
(
type
===
'edit'
)
{
console
.
log
(
obj
.
isSubmit
);
obj
.
isSubmit
=
visibleChecked
===
true
?
'是'
:
'否'
;
obj
.
autoAssign
=
visibleChecked1
===
true
?
'是'
:
'否'
;
console
.
log
(
obj
);
CM_XWBPlan_DataEditORAdd
({
...
obj
,
id
:
formObj
.
id
,
...
...
@@ -446,7 +435,6 @@ const AddModal = props => {
};
const
onOK1
=
prop
=>
{
console
.
log
(
prop
);
setIsVisible
(
false
);
let
inputText
=
{};
inputText
[
prop
.
pickItem
]
=
prop
.
str
;
...
...
@@ -464,13 +452,11 @@ const AddModal = props => {
if
(
e
===
true
)
{
setVisibleChecked1
(
false
);
}
console
.
log
(
e
);
setVisibleChecked
(
e
);
setAutoFlag
(
e
);
};
const
change1
=
e
=>
{
console
.
log
(
e
);
setVisibleChecked1
(
e
);
};
...
...
@@ -513,44 +499,42 @@ const AddModal = props => {
};
// 获取字段名数据
const
getGetTaskSyncField
=
e
=>
{
// 编辑时处理数据为下拉框过滤调已选数据
const
getGetTaskSyncField
=
(
e
,
newKeep
)
=>
{
// 编辑时初始处理数据为下拉框过滤调已选数据
let
dataList
=
newKeep
?
newKeep
:
keep
;
if
(
e
)
{
// 编辑时
let
datalist
=
[...
e
];
// datalist.forEach(i => {
// keep.forEach(j => {
// if (j === i.fromField) {
// i.fromField = j;
// }
// });
// });
let
arr
=
[];
datalist
.
forEach
(
i
=>
{
if
(
i
.
fromTable
)
{
arr
.
push
({
fromField
:
`
${
i
.
fromField
}
%
${
i
.
fromTable
}
`
,
toField
:
i
.
toField
});
}
else
{
arr
.
push
({
fromField
:
i
.
fromField
,
toField
:
i
.
toField
});
}
});
formAdd
.
setFieldsValue
({
parmars
:
arr
});
// 处理数据让下拉框回显title值
let
aa
=
e
;
let
from
=
[];
aa
.
forEach
(
i
=>
{
if
(
i
&&
i
.
fromField
)
{
from
.
push
(
i
.
fromField
);
from
.
push
(
`
${
i
.
fromField
}
%
${
i
.
fromTable
}
`
);
}
});
let
lastFrom
=
[];
keep
.
forEach
(
j
=>
{
dataList
.
forEach
(
j
=>
{
if
(
from
.
indexOf
(
j
)
===
-
1
)
{
lastFrom
.
push
(
j
);
}
});
// let bb = detailData(dataList, from);
// setKeepData(lastFrom);
// setKeep(lastFrom);
let
arr
=
[];
datalist
.
forEach
(
i
=>
{
if
(
i
.
fromTable
)
{
arr
.
push
({
fromField
:
`
${
i
.
fromField
}
%
${
i
.
fromTable
}
`
,
toField
:
i
.
toField
});
}
else
{
arr
.
push
({
fromField
:
i
.
fromField
,
toField
:
i
.
toField
});
}
});
setTimeout
(()
=>
{
formAdd
.
setFieldsValue
({
parmars
:
arr
});
// 处理数据让下拉框回显title值
},
0
);
}
else
{
setKeepData
(
keep
);
setKeepData
(
dataList
);
}
// setKeep(res.data);
};
const
changeValue
=
()
=>
{
...
...
@@ -566,16 +550,15 @@ const AddModal = props => {
to
.
push
(
i
.
toField
);
}
});
let
lastFrom
=
[];
let
lastTo
=
[];
let
lastFrom
=
[];
keep
.
forEach
(
j
=>
{
if
(
from
.
indexOf
(
j
)
===
-
1
)
{
lastFrom
.
push
(
j
);
}
});
let
bb
=
detailData
(
keep
,
from
);
setKeepData
(
lastFrom
);
// let bb = detailData(keep, from);
// setKeepData(lastFrom);
keepAll
.
forEach
(
j
=>
{
if
(
to
.
indexOf
(
j
.
name
)
===
-
1
)
{
lastTo
.
push
(
j
);
...
...
@@ -597,12 +580,11 @@ const AddModal = props => {
// newKeep[i.TableName].push(j);
// }
// }
if
(
from
.
indexOf
(
data
)
===
-
1
)
{
if
(
!
newKeep
[
i
.
TableName
])
{
newKeep
[
i
.
TableName
]
=
[
j
];
}
else
{
newKeep
[
i
.
TableName
].
push
(
j
);
}
j
.
show
=
true
;
}
else
{
j
.
show
=
false
;
}
});
});
...
...
@@ -611,7 +593,7 @@ const AddModal = props => {
keys
.
forEach
(
item
=>
{
arr
.
push
({
TableName
:
item
,
TableFields
:
newKeep
[
item
]
});
});
return
arr
;
return
val
;
};
// 改变关联事件类型
...
...
@@ -698,7 +680,7 @@ const AddModal = props => {
return
arr
;
};
const
onChangeFeed
=
val
=>
{
const
onChangeFeed
=
(
val
,
flag
,
str
)
=>
{
GetFeedbackTableFields
({
feedbackName
:
val
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
let
newData
=
[
res
.
data
.
DeviceData
];
...
...
@@ -707,7 +689,12 @@ const AddModal = props => {
newData
.
push
(
i
);
});
setKeepData
(
newData
);
debugger
;
setKeep
(
newData
);
if
(
str
)
{
// 编辑初次回显处理过滤下拉款数据
getGetTaskSyncField
(
str
,
newData
);
}
}
});
GetAccountConfigInfo
({
accountName
:
val
}).
then
(
res
=>
{
...
...
@@ -718,6 +705,9 @@ const AddModal = props => {
setFieldList
(
data
);
}
});
if
(
flag
)
{
formAdd
.
setFieldsValue
({
parmars
:
[]
});
}
};
const
saveRule
=
e
=>
{
...
...
@@ -898,7 +888,7 @@ const AddModal = props => {
placeholder=
"请选择反馈名称"
showSearch
allowClear
onChange=
{
e
=>
onChangeFeed
(
e
)
}
onChange=
{
e
=>
onChangeFeed
(
e
,
1
)
}
>
{
filed
?
filed
.
map
((
item
,
index
)
=>
(
...
...
@@ -1117,7 +1107,19 @@ const AddModal = props => {
name=
{
[
name
,
'fromField'
]
}
fieldKey=
{
[
fieldKey
,
'key'
]
}
validateTrigger=
{
[
'onChange'
,
'onBlur'
]
}
rules=
{
[{
required
:
true
,
message
:
'请填写字段名'
}]
}
rules=
{
[
{
required
:
true
,
message
:
'请填写字段名'
},
{
validator
:
(
rule
,
value
)
=>
{
let
filterValue
=
formAdd
.
getFieldsValue
().
parmars
;
let
num
=
filterValue
.
findIndex
(
i
=>
i
.
fromField
===
value
);
if
(
num
!==
undefined
&&
num
!==
fieldKey
)
{
return
Promise
.
reject
(
'字段重复'
);
}
return
Promise
.
resolve
();
},
},
]
}
>
<
TreeSelect
showSearch
...
...
src/pages/bsmanager/patrolMaintenance/patrolFeedback/ChangeRoles.jsx
View file @
39c16fac
...
...
@@ -549,7 +549,7 @@ const ChangeRoles = props => {
showTotal=
{
item
=>
`共 ${item} 条`
}
defaultPageSize=
{
pageSize
}
defaultCurrent=
{
1
}
pageSizeOptions=
{
[
10
,
20
,
4
0
,
100
]
}
pageSizeOptions=
{
[
10
,
20
,
5
0
,
100
]
}
current=
{
currentPage
}
onChange=
{
paginationChange
}
style=
{
{
marginBottom
:
'10px'
}
}
...
...
src/pages/bsmanager/workOrder/incident/ChangeAddFlows.jsx
View file @
39c16fac
...
...
@@ -593,7 +593,7 @@ const ChangeAddFlows = props => {
defaultCurrent=
{
1
}
current=
{
currentPage
}
onChange=
{
paginationChange
}
pageSizeOptions=
{
[
10
,
20
,
4
0
,
100
]
}
pageSizeOptions=
{
[
10
,
20
,
5
0
,
100
]
}
style=
{
{
marginBottom
:
'10px'
}
}
size=
"small"
showQuickJumper
...
...
src/pages/log/omsLog/index.jsx
View file @
39c16fac
...
...
@@ -384,7 +384,7 @@ const OmsLog = () => {
showTotal=
{
(
aa
,
range
)
=>
`第${range[0]}-${range[1]} 条/共 ${total} 条`
}
defaultPageSize=
{
pageSize
}
defaultCurrent=
{
1
}
pageSizeOptions=
{
[
10
,
20
,
4
0
,
100
]
}
pageSizeOptions=
{
[
10
,
20
,
5
0
,
100
]
}
current=
{
currentPage
}
onChange=
{
paginationChange
}
size=
"small"
...
...
src/pages/platformCenter/baseFrameContainer/modelFileManage/ModelFileManage.jsx
View file @
39c16fac
...
...
@@ -500,7 +500,7 @@ const ModelFileManage = () => {
showTotal=
{
(
aa
,
range
)
=>
`第${range[0]}-${range[1]} 条/共 ${total} 条`
}
defaultPageSize=
{
pageSize
}
defaultCurrent=
{
1
}
pageSizeOptions=
{
[
10
,
20
,
4
0
,
100
]
}
pageSizeOptions=
{
[
10
,
20
,
5
0
,
100
]
}
current=
{
currentPage
}
onChange=
{
paginationChange
}
size=
"small"
...
...
src/pages/userCenter/roleManage/SelectUser/NewSelectUser.jsx
View file @
39c16fac
...
...
@@ -302,13 +302,14 @@ const NewSelectUser = props => {
total=
{
total
}
showTotal=
{
(
totals
,
range
)
=>
`第${range[0]}-${range[1]} 条/共 ${totals} 条`
}
defaultPageSize=
{
pageSize
}
pageSizeOptions=
{
[
10
,
20
]
}
pageSizeOptions=
{
[
10
,
20
,
50
,
100
]
}
defaultCurrent=
{
1
}
current=
{
currentPage
}
onChange=
{
paginationChange
}
style=
{
{
marginBottom
:
'10px'
,
width
:
'70%'
}
}
size=
"small"
showQuickJumper
showSizeChanger
/>
{
/* </Modal> */
}
...
...
src/pages/userCenter/roleManage/UserModal.jsx
View file @
39c16fac
...
...
@@ -320,7 +320,8 @@ const UserModal = props => {
current=
{
page
.
pageNum
}
defaultPageSize=
"5"
onChange=
{
handleChangePage
}
pageSizeOptions=
{
[
'5'
]
}
// pageSizeOptions={['5']}
pageSizeOptions=
{
[
10
,
20
,
40
,
100
]
}
/>
</
div
>
</
Card
>
...
...
src/pages/userCenter/userManage/UserManage.jsx
View file @
39c16fac
...
...
@@ -1844,7 +1844,7 @@ const UserManage = () => {
defaultPageSize=
{
pageSize
}
defaultCurrent=
{
1
}
showSizeChanger
pageSizeOptions=
{
[
10
,
20
,
4
0
,
100
]
}
pageSizeOptions=
{
[
10
,
20
,
5
0
,
100
]
}
current=
{
currentPage
}
onChange=
{
paginationChange
}
style=
{
{
marginBottom
:
'10px'
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment