瀏覽代碼

no message

linwenxin 7 月之前
父節點
當前提交
708bd6c5a7
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 4 1
      src/packageMaterial/pages/newSale/index.vue
  2. 3 0
      src/packageMaterial/pages/sale/index.vue

+ 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]
+         }
        })
      },