|
@@ -116,7 +116,7 @@
|
|
|
{{ getDateTime(row.durationInMillis) }}
|
|
{{ getDateTime(row.durationInMillis) }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:name="{ row }">
|
|
<template v-slot:name="{ row }">
|
|
|
- <el-link type="primary" :underline="false" @click="handleAudit(row)">
|
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="handleDetail(row)">
|
|
|
{{ row.name }}
|
|
{{ row.name }}
|
|
|
</el-link
|
|
</el-link
|
|
|
>
|
|
>
|
|
@@ -288,7 +288,7 @@
|
|
|
{{ getDateTime(row.durationInMillis) }}
|
|
{{ getDateTime(row.durationInMillis) }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:name="{ row }">
|
|
<template v-slot:name="{ row }">
|
|
|
- <el-link type="primary" :underline="false" @click="handleAudit(row)">
|
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="handleDetail(row)">
|
|
|
{{ row.name }}
|
|
{{ row.name }}
|
|
|
</el-link
|
|
</el-link
|
|
|
>
|
|
>
|
|
@@ -431,7 +431,7 @@
|
|
|
{{ getDateTime(row.durationInMillis) }}
|
|
{{ getDateTime(row.durationInMillis) }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:name="{ row }">
|
|
<template v-slot:name="{ row }">
|
|
|
- <el-link type="primary" :underline="false" @click="handleAudit(row)">
|
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="handleDetail(row)">
|
|
|
{{ row.name }}
|
|
{{ row.name }}
|
|
|
</el-link
|
|
</el-link
|
|
|
>
|
|
>
|
|
@@ -455,7 +455,9 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<process-submit-dialog :process-submit-dialog-flag.sync="processSubmitDialogFlag" v-if="processSubmitDialogFlag"
|
|
<process-submit-dialog :process-submit-dialog-flag.sync="processSubmitDialogFlag" v-if="processSubmitDialogFlag"
|
|
|
ref="processSubmitDialogRef" @reload="reload"></process-submit-dialog>
|
|
ref="processSubmitDialogRef" @reload="reload"></process-submit-dialog>
|
|
|
|
|
+
|
|
|
<detail ref="detailRef"></detail>
|
|
<detail ref="detailRef"></detail>
|
|
|
|
|
+ <formDetail v-if="formDetailDialogFlag" ref="formDetailDialogRef" :form-detail-dialog-flag.sync="formDetailDialogFlag"></formDetail>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -469,6 +471,7 @@ import {
|
|
|
import {getDate} from "@/utils/dateUtils";
|
|
import {getDate} from "@/utils/dateUtils";
|
|
|
import dictMixins from "@/mixins/dictMixins";
|
|
import dictMixins from "@/mixins/dictMixins";
|
|
|
import detail from "@/views/bpm/processInstance/detail.vue";
|
|
import detail from "@/views/bpm/processInstance/detail.vue";
|
|
|
|
|
+import formDetail from './detail.vue'
|
|
|
import {getByCode} from "@/api/system/dictionary-data";
|
|
import {getByCode} from "@/api/system/dictionary-data";
|
|
|
import {getFile} from "@/api/system/file";
|
|
import {getFile} from "@/api/system/file";
|
|
|
import {getUserPage} from '@/api/tickets';
|
|
import {getUserPage} from '@/api/tickets';
|
|
@@ -483,12 +486,14 @@ export default {
|
|
|
name: "index",
|
|
name: "index",
|
|
|
components: {
|
|
components: {
|
|
|
detail,
|
|
detail,
|
|
|
|
|
+ formDetail
|
|
|
},
|
|
},
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
configFormDialogFlag: false,
|
|
configFormDialogFlag: false,
|
|
|
processSubmitDialogFlag: false,
|
|
processSubmitDialogFlag: false,
|
|
|
|
|
+ formDetailDialogFlag: false,
|
|
|
templateList: {},
|
|
templateList: {},
|
|
|
dictList: {},
|
|
dictList: {},
|
|
|
defaultTemplateList: [],
|
|
defaultTemplateList: [],
|
|
@@ -573,16 +578,16 @@ export default {
|
|
|
// showOverflowTooltip: true,
|
|
// showOverflowTooltip: true,
|
|
|
// minWidth: 130
|
|
// minWidth: 130
|
|
|
// },
|
|
// },
|
|
|
- // {
|
|
|
|
|
- // columnKey: 'action',
|
|
|
|
|
- // label: '操作',
|
|
|
|
|
- // width: 230,
|
|
|
|
|
- // align: 'center',
|
|
|
|
|
- // resizable: false,
|
|
|
|
|
- // slot: 'action',
|
|
|
|
|
- // showOverflowTooltip: true,
|
|
|
|
|
- // fixed: 'right'
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ columnKey: 'action',
|
|
|
|
|
+ label: '操作',
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ resizable: false,
|
|
|
|
|
+ slot: 'action',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ fixed: 'right'
|
|
|
|
|
+ }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
deptColumns() {
|
|
deptColumns() {
|
|
@@ -856,10 +861,18 @@ export default {
|
|
|
this.params.formId = this.defaultTemplateList[0]?.id
|
|
this.params.formId = this.defaultTemplateList[0]?.id
|
|
|
this.noticeReload();
|
|
this.noticeReload();
|
|
|
},
|
|
},
|
|
|
- /** 处理审批按钮 */
|
|
|
|
|
|
|
+ /** */
|
|
|
handleAudit(row) {
|
|
handleAudit(row) {
|
|
|
this.$refs.detailRef.open(row.id);
|
|
this.$refs.detailRef.open(row.id);
|
|
|
},
|
|
},
|
|
|
|
|
+ /** */
|
|
|
|
|
+ handleDetail(row) {
|
|
|
|
|
+ this.formDetailDialogFlag = true
|
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
|
+ this.$refs.formDetailDialogRef.open(row);
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
getTimelineItemType(result) {
|
|
getTimelineItemType(result) {
|
|
|
if (result === '通过') {
|
|
if (result === '通过') {
|
|
|
return 'success';
|
|
return 'success';
|