فهرست منبع

重新生成回到设计页面自动切换对应服务商

yanym 1 هفته پیش
والد
کامیت
5979548a8f
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      src/views/AIDesign/design.vue

+ 6 - 4
src/views/AIDesign/design.vue

@@ -754,7 +754,7 @@ export default class extends Vue {
     ImagePreview([url]);
   }
 
-    radioClick(code,value){
+    radioClick(code,value,isClearCheckedProject = true){
         let that = this;
         that.fwsName = value;
         that.fwsCode = code;
@@ -764,8 +764,10 @@ export default class extends Vue {
             shop_name:value
         }
         that.GetPointsFn();
-        that.checkedProject = null;
-        that.checkedProjectId = null;
+        if (isClearCheckedProject){
+            that.checkedProject = null;
+            that.checkedProjectId = null;
+        }
         window.localStorage.setItem("pageDesignfwsRadioValue", JSON.stringify(overviewRadioValue));
         that.overlayShow = false;
     }
@@ -1280,7 +1282,7 @@ export default class extends Vue {
     GetProjectlist(formData).then(response => {
       if (response.StatusCode == 200) {
         that.checkedProject = response.Data[0];
-        that.radioClick(response.Data[0].servicecode,'');
+        that.radioClick(response.Data[0].servicecode,'',false);
       } else {
         // console.log(response.Info)
       }