lvhao пре 1 недеља
родитељ
комит
c62376be0d
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      template/erp/whlabel_typejs.html

+ 3 - 1
template/erp/whlabel_typejs.html

@@ -378,10 +378,12 @@ $(".dccrtype").click(function() {
         let url = "/whlabel/"+$("select[name=dccz]").find("option:selected").data("url")+"js?excel="+$("select[name=dccz]").find("option:selected").val()+"&"+f;
         $("select[name=dccz] option:eq(0)").prop('selected','selected');
         $.get(url,{},function(res){
+            layx.destroy('loadId');
             if(res.code == 1){
                 importRukuData(res.data,res.title)
             }else{
-
+                layx.alert('错误',res.msg,function(id,button){
+                },{dialogIcon:'error'});
             }
         },'json')