Explorar o código

服务商切换优化

yanym hai 3 semanas
pai
achega
37199dee32
Modificáronse 1 ficheiros con 3 adicións e 9 borrados
  1. 3 9
      src/views/AIDesign/design.vue

+ 3 - 9
src/views/AIDesign/design.vue

@@ -671,18 +671,12 @@ export default class extends Vue {
     if (checkedFwsInfo){
         const serviceCodeIndex = serviceObjArray.findIndex(item => item.shop_code == checkedFwsInfo.shop_code);
         if (serviceCodeIndex == -1){
-            that.fwsCode = serviceObjArray[0].shop_code;
-            that.fwsName = serviceObjArray[0].shop_name;
-            that.fwsRadioValue = serviceObjArray[0].shop_code;
+            that.radioClick(serviceObjArray[0].shop_code,serviceObjArray[0].shop_name,true);
         } else {
-            that.fwsCode = checkedFwsInfo.shop_code;
-            that.fwsName = checkedFwsInfo.shop_name;
-            that.fwsRadioValue = checkedFwsInfo.shop_code;
+            that.radioClick(checkedFwsInfo.shop_code,checkedFwsInfo.shop_name,true);
         }
     } else {
-        that.fwsCode = serviceObjArray[0].shop_code;
-        that.fwsName = serviceObjArray[0].shop_name;
-        that.fwsRadioValue = serviceObjArray[0].shop_code;
+        that.radioClick(serviceObjArray[0].shop_code,serviceObjArray[0].shop_name,true);
     }
   }
   // 处理文件选择(对应 beforeRead + afterRead)