From bb6ca60d634fa9b844583feb4a37bb7f984ab132 Mon Sep 17 00:00:00 2001 From: zzq <a13193816592@163.com> Date: 星期四, 28 九月 2023 15:18:51 +0800 Subject: [PATCH] "报表路由跳转,api调用" --- src/views/overview/OverviewListView.vue | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index 51a2432..555dab7 100644 --- a/src/views/overview/OverviewListView.vue +++ b/src/views/overview/OverviewListView.vue @@ -3,7 +3,7 @@ <div class="top"> <SearchCommonView :add-title="'鏂板缓'" - :placeholder="'璇疯緭鍏ュ崟鍙�'" + :placeholder="'璇疯緭鍏ュ崟鍙�/鏉ユ簮鍗曟嵁'" :amount-view="false" @addCommonClick="addBtnClick" @searchClick="getList" @@ -59,7 +59,8 @@ title: "鏂板缓", infomation: {} }, - workType: this.$route.params.workType + workType: this.$route.params.workType, + keyword: "" } }, created() { @@ -156,7 +157,7 @@ // }, { label: "鍏ュ簱绫诲瀷", - prop: "faultTime", + prop: "operationTypeName", isShowColumn: showcol.includes("鍏ュ簱绫诲瀷"), default: false }, @@ -180,13 +181,15 @@ // 璇锋眰鏁版嵁 async getData() { await getOperation({ + number: this.keyword, operationTypeId: this.$route.params.id, page: this.pagerOptions.currPage, - pageSize: this.pagerOptions.pageSize + pageSize: this.pagerOptions.pageSize, + sourceNumber: this.keyword }).then((res) => { - console.log(res.data.data) - if (res.data.code === 200) { - const list = res.data.data.map((item) => { + console.log(res.data) + if (res.code === 200) { + const list = res.data.map((item) => { return { ...item, from: item.fromLocation.name, @@ -194,13 +197,14 @@ } }) this.tableList.tableInfomation = list || [] - this.pagerOptions.totalCount = res.data.total + this.pagerOptions.totalCount = res.total } }) }, // 鎼滅储 getList(val) { console.log(val) + this.keyword = val this.pagerOptions.currPage = 1 this.getData() }, -- Gitblit v1.8.0