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

fix: 'web配置无法提交bug修复'

parent 54e579a1
Pipeline #76099 passed with stages
......@@ -189,19 +189,21 @@ export default props => {
? config.headerPrimaryColor
: 'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)',
);
setCheckValue(config.afterSales);
debugger
setCheckValueList(config.afterSalesInfo);
if (!config.afterSales || config.afterSales === '') {
if (!config.afterSales || config.afterSales === '' || config.afterSales === null) {
setAftercare('请勾选不显示售后服务的用户');
setCheckValue([]);
setCheckValueList([]);
} else {
setCheckValue(config.afterSales);
setCheckValueList(config.afterSalesInfo);
GetUserName({ userIds: config.afterSales }).then(res => {
if (res.code === 0) {
let data = res.data.toString();
setAftercare(data);
form.setFieldsValue({ afterSales: data });
}
});
}
GetUserName({ userIds: config.afterSales }).then(res => {
if (res.code === 0) {
let data = res.data.toString();
setAftercare(data);
form.setFieldsValue({ afterSales: data });
}
});
} else {
setColor('linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)');
setVisibleChecked(false);
......@@ -304,7 +306,7 @@ export default props => {
validate.CloudStyle = visibleChecked1 ? '是' : '否';
validate.messageMarking = visibleChecked3 ? 'All' : 'One';
validate.menuState = visibleChecked5 ? 'open' : 'close';
validate.afterSales = checkValue.toString();
validate.afterSales = checkValue && checkValue.toString();
console.log(validate);
if (validate.homePage) {
......@@ -407,7 +409,7 @@ export default props => {
const rolCallBack = useCallback(list => {
console.log(list);
debugger
debugger;
setCheckValueList(list.checkList);
setAddVisible(false);
setAftercare(list.text === '' ? '请勾选不显示售后服务的用户' : list.text);
......
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