linwenxin hai 7 meses
pai
achega
708bd6c5a7

+ 4 - 1
src/packageMaterial/pages/newSale/index.vue

@@ -220,10 +220,13 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
        this.$api.get('/user/apply/websit')
        .then(res => {
          this.websitList = res.data;
+         if (this.websitList.length == 1) {
+          this.websit = this.websitList[0]
+         }
        })
      },
 
-     confirmWebsitDialog(e) {
+    confirmWebsitDialog(e) {
        this.websit = this.websitList[e[0]];
        this.isShowWebsitDialog = false;
      },

+ 3 - 0
src/packageMaterial/pages/sale/index.vue

@@ -190,6 +190,9 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
        this.$api.get('/user/apply/websit')
        .then(res => {
          this.websitList = res.data;
+         if (this.websitList.length == 1) {
+          this.websit = this.websitList[0]
+         }
        })
      },