|
@@ -6,6 +6,13 @@ export const confirm = (state,action) =>{
|
|
|
let res = Object.assign({},state);
|
|
|
let arr = res.data;
|
|
|
const {nones,exists,withs,ikey,exclusion,excluName,copyType} = action.data;
|
|
|
+ if((!exists||!withs||[...exists,...withs].length==0)&&!nones&&!exclusion){ //取消无殊的选中,空白提交
|
|
|
+ arr[ikey].value = '';
|
|
|
+ res.saveText[ikey] = '';
|
|
|
+ res.selecteds.splice(ikey,1);
|
|
|
+ res.update=Math.random();
|
|
|
+ return res;
|
|
|
+ }
|
|
|
//选中互斥项
|
|
|
if(exclusion){
|
|
|
arr[ikey].value = excluName;
|