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

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

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