Commit fa858fee authored by 皮倩雯's avatar 皮倩雯

fix: '权限配置关联站点允许为空'

parent 3e068430
Pipeline #82587 passed with stages
......@@ -165,28 +165,27 @@ const VectorData = props => {
const onPushSubmit = value => {
console.log(value, 'value');
setAddVisible(false);
if (value.length) {
let query = {
schemename: record.schemename,
terminalType: record.isStatus,
isBaseMap: false,
jsonCfg: JSON.stringify({
roles: value.join(','),
}),
};
SetServiceConfig(query)
.then(res => {
if (res.code == '0') {
prompt('success', '关联角色成功');
setFlag(flag + 1);
} else {
prompt('fail', '关联角色失败');
}
})
.catch(err => {
prompt('fail', '网络请求失败');
});
}
let query = {
schemename: record.schemename,
terminalType: record.isStatus,
isBaseMap: false,
jsonCfg: JSON.stringify({
roles: value.join(','),
}),
};
SetServiceConfig(query)
.then(res => {
if (res.code == '0') {
prompt('success', '关联角色成功');
setFlag(flag + 1);
} else {
prompt('fail', '关联角色失败');
}
})
.catch(err => {
prompt('fail', '网络请求失败');
});
};
const rolCallBack = useCallback(list => {
let strList = [];
......
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