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