From 3c4e059b2c47e3ba22b694805645b008c4276e25 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期一, 05 二月 2024 19:11:30 +0800 Subject: [PATCH] 添加修改密码,api拦截,bug修改 --- src/views/operate/scrap/AddScrapDialog.vue | 41 ++++++++++++++++++++++++++++------------- 1 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/views/operate/scrap/AddScrapDialog.vue b/src/views/operate/scrap/AddScrapDialog.vue index 3bc1094..626fb4a 100644 --- a/src/views/operate/scrap/AddScrapDialog.vue +++ b/src/views/operate/scrap/AddScrapDialog.vue @@ -113,7 +113,7 @@ style="width: 90%" :disabled="!showFooter" > - <el-option v-for="item in toLocationOptions" :key="item.id" :label="item.name" :value="item.id"> + <el-option v-for="item in toLocationOptions1" :key="item.id" :label="item.name" :value="item.id"> </el-option> </el-select> </el-form-item> @@ -180,6 +180,7 @@ memberOptions: [], productOptions: [], toLocationOptions: [], + toLocationOptions1: [], list: [ { label: "鑽夌", status: "todo", value: 1 }, { label: "灏辩华", status: "todo", value: 3 }, @@ -196,7 +197,16 @@ created() { this.setBottonView() this.getProductList() - this.getLocationList() + this.getLocationList({ + isScrapLocation: true, + page: 0, + pageSize: 0 + }) + this.getLocationList({ + // isScrapLocation: true, + page: 0, + pageSize: 0 + }) this.unit = this.editConfig.infomation.unit || "" this.formInfo() }, @@ -224,17 +234,22 @@ }) }, // 鑾峰彇浠撳簱浣嶇疆鍒楄〃 - async getLocationList() { - await getLocationList({ - isScrapLocation: true, - page: 0, - pageSize: 0 - }).then((res) => { - console.log(res) - if (res.code === 200) { - this.toLocationOptions = res.data - } - }) + async getLocationList(params) { + if(params.isScrapLocation){ + await getLocationList(params).then((res) => { + console.log(res) + if (res.code === 200) { + this.toLocationOptions1 = res.data + } + }) + }else{ + await getLocationList(params).then((res) => { + console.log(res) + if (res.code === 200) { + this.toLocationOptions = res.data + } + }) + } }, // 璁剧疆鍒犻櫎/鎵撳嵃/缂栬緫鏄惁鏄剧ず setBottonView() { -- Gitblit v1.8.0