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

feat: 去掉集成网站

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