695593266@qq.com 2 luni în urmă
părinte
comite
e7cebb80fb
1 a modificat fișierele cu 7 adăugiri și 8 ștergeri
  1. 7 8
      src/views/bpm/message/index.vue

+ 7 - 8
src/views/bpm/message/index.vue

@@ -56,11 +56,11 @@
         </el-form>
       </div>
       <ele-pro-table ref="table" :columns="columns" :datasource="datasource">
-        <template v-slot:templateContent="{ row }">
+        <!-- <template v-slot:templateContent="{ row }">
           <el-link type="primary" :underline="false" @click="goDetail(row)">
             {{ row.templateContent }}
           </el-link>
-        </template>
+        </template> -->
 
         <!-- 操作列 -->
         <template v-slot:action="{ row }">
@@ -78,7 +78,7 @@
             :underline="false"
             icon="el-icon-view"
             v-if="row.formPath"
-            @click="goDetail(row)"
+            @click="handleAddOrEdit(row, row.formPath)"
           >
             处理
           </el-link>
@@ -179,8 +179,9 @@
         await updateNotifyMessageReadByIdAPI([row.id]);
         if (formPath) {
           // 跨子系统跳转:使用 location.href 整页跳转
-          window.location.href = formPath;
-          return;
+          this.goDetail(formPath);
+          // window.location.href = formPath;
+          // return;
         }
         this.$refs.table.reload();
       },
@@ -194,9 +195,7 @@
         this.$refs.table.reload({ page: 1, where: this.params });
       },
 
-      goDetail(row) {
-        console.log('row', row.formPath);
-        const formPath = row.formPath;
+      goDetail(formPath) {
         if (!formPath) return;
         // 获取当前子系统的路由 base 前缀
         const routerBase = this.$router.options.base || '/';