|
@@ -53,6 +53,14 @@
|
|
|
>{{ row.code }}</el-link
|
|
>{{ row.code }}</el-link
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-slot:version="{ row }">
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleHistory(row)"
|
|
|
|
|
+ >{{ row.version }}</el-link
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link
|
|
<el-link
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -102,6 +110,8 @@
|
|
|
|
|
|
|
|
<!-- 新增/编辑弹窗 -->
|
|
<!-- 新增/编辑弹窗 -->
|
|
|
<seal-dialog ref="sealDialogRef" @reload="$refs.table.reload()" />
|
|
<seal-dialog ref="sealDialogRef" @reload="$refs.table.reload()" />
|
|
|
|
|
+ <!-- 历史版本弹窗 -->
|
|
|
|
|
+ <history-version-dialog ref="historyDialogRef" />
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<process-submit-dialog
|
|
<process-submit-dialog
|
|
|
:isNotNeedProcess="false"
|
|
:isNotNeedProcess="false"
|
|
@@ -115,6 +125,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import SealDialog from './sealDialog.vue';
|
|
import SealDialog from './sealDialog.vue';
|
|
|
|
|
+ import HistoryVersionDialog from './historyVersionDialog.vue';
|
|
|
import {
|
|
import {
|
|
|
getSealPage,
|
|
getSealPage,
|
|
|
deleteSeal,
|
|
deleteSeal,
|
|
@@ -128,6 +139,7 @@
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
SealDialog,
|
|
SealDialog,
|
|
|
|
|
+ HistoryVersionDialog,
|
|
|
processSubmitDialog
|
|
processSubmitDialog
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -183,6 +195,7 @@
|
|
|
label: '版本',
|
|
label: '版本',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 80,
|
|
minWidth: 80,
|
|
|
|
|
+ slot: 'version',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -420,6 +433,10 @@
|
|
|
handleReset() {
|
|
handleReset() {
|
|
|
this.$refs.table.reload({ page: 1 });
|
|
this.$refs.table.reload({ page: 1 });
|
|
|
},
|
|
},
|
|
|
|
|
+ // 历史版本
|
|
|
|
|
+ handleHistory(row) {
|
|
|
|
|
+ this.$refs.historyDialogRef.open(row.id);
|
|
|
|
|
+ },
|
|
|
// 表格数据源
|
|
// 表格数据源
|
|
|
async datasource({ page, limit, where }) {
|
|
async datasource({ page, limit, where }) {
|
|
|
return await getSealPage({ pageNum: page, size: limit, ...where });
|
|
return await getSealPage({ pageNum: page, size: limit, ...where });
|