From 1259d382f686ea81732953afc46e822fb45cf509 Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期日, 10 八月 2025 11:56:53 +0800
Subject: [PATCH] 1
---
src/views/flowmgr/processQuery.vue | 96 ++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 88 insertions(+), 8 deletions(-)
diff --git a/src/views/flowmgr/processQuery.vue b/src/views/flowmgr/processQuery.vue
index 3b32f37..2a15b7a 100644
--- a/src/views/flowmgr/processQuery.vue
+++ b/src/views/flowmgr/processQuery.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2025-06-18 09:17:09
* @LastEditors: gaoshp
- * @LastEditTime: 2025-07-22 22:50:53
+ * @LastEditTime: 2025-08-09 20:55:52
* @FilePath: /mdmweb/src/views/flowmgr/processQuery.vue
-->
<template>
@@ -18,11 +18,12 @@
</el-button>
</template>
<template #menu="scope">
- <el-button type="danger" text size="default" @click.stop="handleAction(scope.row, scope.index, 0)">鍒犻櫎
- </el-button>
- <el-button type="danger" text size="default" v-if="scope.row.processDefinitionKey === 'dispatch'"
+ <el-button type="primary" text size="default" v-if="scope.row.processDefinitionKey === 'dispatch'"
@click.stop="handleAction(scope.row, scope.index, 1)">瀹℃壒琛ㄦ墦鍗�
</el-button>
+ <el-button type="danger" text size="default" @click.stop="handleAction(scope.row, scope.index, 0)">鍒犻櫎
+ </el-button>
+
</template>
</avue-crud>
<el-dialog title="鎸囨淳" append-to-body v-model="reassignBox" width="30%">
@@ -79,7 +80,7 @@
search: true,
searchType: 'select',
hide: true,
- dicUrl: `/blade-system/dict/dictionary?code=flow`,
+ dicUrl: `/blade-mdm/system/dict/dictionary?code=flow`,
props: {
label: 'dictValue',
value: 'remark',
@@ -101,7 +102,75 @@
search: true,
searchType: 'input',
hide: true,
+ viewDisplay: false,
},
+
+ {
+ label: '鏍囬',
+ prop: 'variables.title',
+ width: 150,
+ render: ({ row }) => {
+ return h('p',
+ {
+ attrs: {},
+ class: {},
+ style: {},
+ }, row?.variables?.title)
+ },
+ renderForm: ({ row }) => {
+ return h('span', {
+ attrs: {},
+ class: {},
+ style: {},
+ }, row?.variables?.title || '');
+ }
+ },
+ {
+ label: '娴佺▼鍚嶇О',
+ prop: 'processDefinitionName',
+ width: 80,
+ },
+ {
+ label: '鍥惧彿',
+ prop: '',
+ width: 100,
+ render: ({ row }) => {
+ return h('p',
+ {
+ attrs: {},
+ class: {},
+ style: {},
+ }, row?.variables?.drawingNo)
+ },
+ renderForm: ({ row }) => {
+ return h('span', {
+ attrs: {},
+ class: {},
+ style: {},
+ }, row?.variables?.drawingNo || '');
+ }
+ },
+ {
+ label: '浜у搧鍨嬪彿',
+ prop: '',
+ width: 100,
+ render: ({ row }) => {
+ return h('p',
+ {
+ attrs: {},
+ class: {},
+ style: {},
+ }, row?.variables?.productModel)
+ },
+ renderForm: ({ row }) => {
+ return h('span', {
+ attrs: {},
+ class: {},
+ style: {},
+ }, row?.variables?.productModel || '');
+ }
+ },
+
{
label: '鏈哄簥',
prop: '',
@@ -112,12 +181,20 @@
class: {},
style: {},
}, row?.variables?.machineCode)
+ },
+ renderForm: ({ row }) => {
+ return h('span', {
+ attrs: {},
+ class: {},
+ style: {},
+ }, row?.variables?.machineCode || '');
}
},
{
label: '鍒涘缓浜�',
prop: 'startUserName',
- },
+ width: 80,
+ },/*
{
label: '宸ュ簭鍚嶇О',
prop: '',
@@ -129,7 +206,7 @@
style: {},
}, row?.variables?.processName)
}
- },
+ },*/
{
label: '鍒涘缓鏃堕棿',
prop: 'processCreateTime',
@@ -137,6 +214,7 @@
{
label: '褰撳墠鑺傜偣',
prop: 'taskName',
+ width: 90
},
],
@@ -227,7 +305,9 @@
type: 'warning',
})
.then(() => {
- deleteRow({ processInstanceId: row.processInstanceId })
+ deleteRow({ processInstanceId: row.processInstanceId,id:row.processInstanceId }).then(res => {
+ this.onLoad(this.page, this.query);
+ })
})
} else if (flag === 1) {
printRow({ processInstanceId: row.processInstanceId })
--
Gitblit v1.9.3