Просмотр исходного кода

Merge branch '外墙设计设计风格文字显示优化' into uat

yanym 1 неделя назад
Родитель
Сommit
f21a3d8c0a
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      src/views/AIDesign/design.vue

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

@@ -660,8 +660,8 @@ export default class extends Vue {
       serviceCodeArray = userInfo.ServiceCode.split(',').map(item => item.trim()).filter(item => item !== '');
         userInfo.ServiceCode.split(',').forEach((item,index)=>{
             let obj = {};
-            obj.code = item;
-            obj.name = userInfo.ServiceName.split(',')[index];
+            obj.shop_code = item;
+            obj.shop_name = userInfo.ServiceName.split(',')[index];
             serviceObjArray.push(obj);
         })
     }
@@ -670,9 +670,11 @@ export default class extends Vue {
     if (checkedFwsInfo){
         that.fwsCode = checkedFwsInfo.shop_code;
         that.fwsName = checkedFwsInfo.shop_name;
+        that.fwsRadioValue = checkedFwsInfo.shop_code;
     } else {
         that.fwsCode = serviceObjArray[0].shop_code;
         that.fwsName = checkedFwsInfo[0].shop_name;
+        that.fwsRadioValue = serviceObjArray[0].shop_code;
     }
   }
   // 处理文件选择(对应 beforeRead + afterRead)
@@ -788,7 +790,7 @@ export default class extends Vue {
       let that = this;
         const formData = new FormData();
         formData.append('serviceCode', that.fwsCode);
-        GetPoints().then(response => {
+        GetPoints(formData).then(response => {
             if (response.StatusCode == 200) {
                 that.projectPoint = response.Data.point;
             }
@@ -1103,7 +1105,7 @@ export default class extends Vue {
           }else if (that.checkedProject != null && that.checkedProject.AvailableQuantity <= 0){
               const formData = new FormData();
               formData.append('serviceCode', that.fwsCode);
-              GetPoints().then(response => {
+              GetPoints(formData).then(response => {
                   if (response.StatusCode == 200) {
                       that.projectPoint = response.Data.point;
                       that.pointDialogShow1 = true;