From f129f5f30f6e2539ff7d1ece17e10c00dfccc146 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 04 八月 2023 11:34:06 +0800
Subject: [PATCH] 克隆模板后success的回调reload从表

---
 Source/UBCS-WEB/src/views/work/done.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/work/done.vue b/Source/UBCS-WEB/src/views/work/done.vue
index 83ceea1..09160ea 100644
--- a/Source/UBCS-WEB/src/views/work/done.vue
+++ b/Source/UBCS-WEB/src/views/work/done.vue
@@ -12,6 +12,7 @@
                @current-change="currentChange"
                @size-change="sizeChange"
                @refresh-change="refreshChange"
+               @row-click="clickRowChange"
                @on-load="onLoad">
       <template slot-scope="scope" slot="menu">
         <el-button type="text"
@@ -59,7 +60,7 @@
         workBox: false,
         option: {
           height: 'auto',
-          calcHeight: 30,
+          calcHeight: 0,
           tip: false,
           searchShow: true,
           searchMenuSpan: 6,
@@ -78,7 +79,7 @@
               label: "娴佺▼鍒嗙被",
               type: "select",
               row: true,
-              dicUrl: "/api/blade-system/dict/dictionary?code=flow",
+              dicUrl: "/api/ubcs-system/dict/dictionary?code=flow",
               props: {
                 label: "dictValue",
                 value: "dictKey"
@@ -136,15 +137,22 @@
         this.onLoad(this.page, params);
         done();
       },
+      clickRowChange(row){
+        this.$refs.crud.toggleSelection();
+        this.selectionList = row;
+        this.$refs.crud.setCurrentRow(row);
+        this.$refs.crud.toggleRowSelection(row); //閫変腑褰撳墠琛�
+      },
       selectionChange(list) {
         this.selectionList = list;
+        this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]);
       },
       selectionClear() {
         this.selectionList = [];
         this.$refs.crud.toggleSelection();
       },
       handleDetail(row) {
-        this.$router.push({path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}`});
+        this.$router.push({path: `/work/process/${flowRoute(this.flowRoutes, row.category)}/detail/${row.processInstanceId}/${row.businessId}?name=` +row.categoryName+'璇︽儏'});
       },
       handleImage(row) {
         this.processInstanceId = row.processInstanceId;

--
Gitblit v1.9.3