From 6804f7887609dd881ed4b96a8acbb91524896a8d Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期三, 26 七月 2023 12:01:46 +0800
Subject: [PATCH] 取消模板状态验证

---
 Source/UBCS-WEB/src/components/template/Stage.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/template/Stage.vue b/Source/UBCS-WEB/src/components/template/Stage.vue
index 8fe6216..7d01c68 100644
--- a/Source/UBCS-WEB/src/components/template/Stage.vue
+++ b/Source/UBCS-WEB/src/components/template/Stage.vue
@@ -127,17 +127,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