jt
2022-08-15 34187dc1b0ffa83511a55e35e14f2e10afee6bf7
pages/modal/classAttr.vue
@@ -688,13 +688,6 @@
               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='';
@@ -704,6 +697,14 @@
                     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 = {
@@ -736,7 +737,6 @@
                  }
                  this.class_attr_init();
               }else{
                  uni.hideLoading();
                  uni.showModal({title:"错误",content:success.msg,showCancel:false,confirmText:"取消"});
               }
            }).catch(ex=>{