Commit 056df20a authored by 张烨's avatar 张烨

feat: 去掉集成网站

parent 1447c58a
......@@ -61,14 +61,15 @@ const WebConfigPage = props => {
const updateModuleTree = (userModePrama, canceled = { cancel: false }) => {
getWebModuleTree(userModePrama).then(res => {
const websArr = [
res.data
.filter(d => d.id === 'Web4IntegrateStation')
.map(r =>
r.children.map(c => ({
...c,
subSystemValue: c.id.split(webMode.integration)[1],
})),
),
// 暂时不要集成网站
// res.data
// .filter(d => d.id === 'Web4IntegrateStation')
// .map(r =>
// r.children.map(c => ({
// ...c,
// subSystemValue: c.id.split(webMode.integration)[1],
// })),
// ),
res.data
.filter(d => d.id === 'Web4SingleStation')
.map(r =>
......
......@@ -98,7 +98,7 @@ export const getDefaultGetWebconfig = ({
value: webMode.single,
children: '一般网站',
},
].concat(typeContent(hasIntegerate)),
], // .concat(typeContent(hasIntegerate)),
},
shortcutIcon: {
label: '系统icon',
......@@ -276,19 +276,19 @@ export const getDefaultGetWebconfig = ({
if (k === 'alarmWays') {
config[k].initialValue = config[k].initialValue.split(',');
}
if (k === 'mode' && initialValues.mode) {
config[k].options = [
{
value: webMode.single,
children: '一般网站',
},
{
value: webMode.integration,
children: '集成网站',
},
];
config[k].initialValue = initialValues.mode;
}
// if (k === 'mode' && initialValues.mode) {
// config[k].options = [
// {
// value: webMode.single,
// children: '一般网站',
// },
// // {
// // value: webMode.integration,
// // children: '集成网站',
// // },
// ];
// config[k].initialValue = webMode.single; // initialValues.mode;
// }
});
}
return config;
......
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