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