| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if ((ar.NotEmpty == '1' || ar.notempty == true) && !ar.Value) { |
| | | // if(ar.notEmpty=='1'){ |
| | | uni.hideLoading(); |
| | | // uni.showToast({title:ar.DispName+'不能为空!',icon:"success",duration:3000}); |
| | | uni.showModal({title:"提示",content:ar.DispName+'不能为空!',showCancel:false,confirmText:"取消"}); |
| | | return; |
| | | } |
| | | if(ar.Value=='请选择' || ar.Value=='——请选择——') ar.Value=''; |
| | | if(ar.Type=='引用对象(多个)') |
| | | if(ar.Value=='请') ar.Value=''; |
| | |
| | | req.push({ name: ar.Name, value: ar.Value?'1':'0'}); |
| | | else |
| | | req.push({ name: ar.Name, value: ar.Value ?ar.Value :''}); |
| | | |
| | | if ((ar.NotEmpty == '1' || ar.notempty == true) && !ar.Value) { |
| | | // if(ar.notEmpty=='1'){ |
| | | uni.hideLoading(); |
| | | // uni.showToast({title:ar.DispName+'不能为空!',icon:"success",duration:3000}); |
| | | uni.showModal({title:"提示",content:ar.DispName+'不能为空!',showCancel:false,confirmText:"取消"}); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | var enviroment = { |
| | |
| | | } |
| | | this.class_attr_init(); |
| | | }else{ |
| | | uni.hideLoading(); |
| | | uni.showModal({title:"错误",content:success.msg,showCancel:false,confirmText:"取消"}); |
| | | } |
| | | }).catch(ex=>{ |