From acb7c4c272aa02c2ed24cde72db429defef9fb8f Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期四, 27 七月 2023 13:54:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/template/Stage.vue | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Source/UBCS-WEB/src/components/template/Stage.vue b/Source/UBCS-WEB/src/components/template/Stage.vue index 3959152..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() { @@ -162,9 +164,10 @@ item = { oid, id, name, attributeGroup, ...{ checked: false } } if (dataRight.length !== 0) { dataRight.forEach(element => { if (item.id === element.attrId) item.checked = true }); - return item } + return item }) + console.log(datas) let dataValue = datas.map(item => item.checked ? item.oid : undefined) this.attributeValue = dataValue.filter(item => item) this.attributeData = datas @@ -187,8 +190,11 @@ handleMaintenance(row) { console.log(row) this.dialogNode = true + this.modelKey = row.modelKey this.saveParam.modelKey = row.modelKey + this.getStagelist() }, + // 缁存姢 handleMaintenanceTransfer(row) { this.saveParam.taskId = row.taskId this.saveParam.taskName = row.taskName -- Gitblit v1.9.3