From cb1b2612dbba416341163ff09bf8f67af18e1c3e Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期五, 04 八月 2023 11:38:49 +0800
Subject: [PATCH] 1、对关键属性查询修改增加模板id的条件
---
Source/UBCS-WEB/src/components/template/Stage.vue | 27 +++++++++++++++++----------
1 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/template/Stage.vue b/Source/UBCS-WEB/src/components/template/Stage.vue
index 8fe6216..cce53f2 100644
--- a/Source/UBCS-WEB/src/components/template/Stage.vue
+++ b/Source/UBCS-WEB/src/components/template/Stage.vue
@@ -38,7 +38,11 @@
}
},
watch: {
-
+ code: {
+ handler(newval, oldval) {
+ this.getDataList()
+ }
+ }
},
data() {
const options = {
@@ -98,6 +102,7 @@
],
option: {
...options,
+ height: 383,
column: [
{ label: '妯℃澘缂栧彿', prop: 'modelKey' },
{ label: '妯℃澘鍚嶇О', prop: 'modelName' },
@@ -127,17 +132,19 @@
},
// 鑾峰彇鍒楄〃
async getDataList() {
- this.loading = false
- const { pageSize, currentPage } = this.page
- let param = { size: pageSize, current: currentPage }
- const response = await getFlowpathList({ ...param, ...{ templateId: this.code } })
+ this.loading = false
+ if (this.code) {
+ const {pageSize, currentPage} = this.page
+ let param = {size: pageSize, current: currentPage}
+ const response = await getFlowpathList({...param, ...{templateId: this.code}})
if (response.status === 200) {
- console.log(response)
- this.loading = false
- const data = response.data.data
- this.data = data.records
- this.page.total = data.total
+ console.log(response)
+ this.loading = false
+ const data = response.data.data
+ this.data = data.records
+ this.page.total = data.total
} else this.loading = false
+ }
},
// 鑾峰彇闃舵鍒楄〃
async getStagelist() {
--
Gitblit v1.9.3