Commit ad0682c0 authored by 涂伟's avatar 涂伟

fix: '1.运维台账配置新增排序功能2.服务监控功能隐藏'

parent f7b40587
Pipeline #72534 waiting for manual action with stages
...@@ -283,6 +283,7 @@ const BookConfigNew = props => { ...@@ -283,6 +283,7 @@ const BookConfigNew = props => {
setIsVisible(false); setIsVisible(false);
let obj = {}; let obj = {};
obj[prop.pickItem] = prop.str; obj[prop.pickItem] = prop.str;
let allArr = prop.str.split(',');
let showArr = prop.str.split(','); let showArr = prop.str.split(',');
let editArr = tableRef.current.onFinish().map(item => { let editArr = tableRef.current.onFinish().map(item => {
return item.FieldName; return item.FieldName;
...@@ -290,13 +291,25 @@ const BookConfigNew = props => { ...@@ -290,13 +291,25 @@ const BookConfigNew = props => {
showArr = showArr.filter(item => { showArr = showArr.filter(item => {
return !editArr.includes(item); return !editArr.includes(item);
}); });
let tableArr = tableRef.current.onFinish().concat(
allData.filter(item => {
return showArr.includes(item.FieldName);
}),
);
let arr = [];
allArr.map(item => {
tableArr.map(ele => {
if (item === ele.FieldName) {
arr.push(ele);
}
});
});
tableRef.current.setTableData( tableRef.current.setTableData(
false, false,
tableRef.current.onFinish().concat( // tableArr.filter(item => {
allData.filter(item => { // return allArr.includes(item.FieldName);
return showArr.includes(item.FieldName); // }),
}), arr,
),
); );
form.setFieldsValue(obj); form.setFieldsValue(obj);
saveOutFieldsLength(prop.pickItem, allFileds); saveOutFieldsLength(prop.pickItem, allFileds);
......
...@@ -514,11 +514,11 @@ export default { ...@@ -514,11 +514,11 @@ export default {
name: '系统日志', name: '系统日志',
icon: <FileTextOutlined style={iconStyle} />, icon: <FileTextOutlined style={iconStyle} />,
routes: [ routes: [
{ // {
path: '/system/apiService', // path: '/system/apiService',
name: '服务监控', // name: '服务监控',
component: ServiceLog, // component: ServiceLog,
}, // },
{ {
path: '/system/loginLog', path: '/system/loginLog',
name: '登录日志', name: '登录日志',
......
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