feat: base myticket创建时返回我的

This commit is contained in:
caoqianming 2025-11-09 22:36:58 +08:00
parent 84f0cef581
commit 714ab23cd6
1 changed files with 11 additions and 2 deletions

View File

@ -82,7 +82,7 @@
{{ scope.row.workflow_.name }}
</template>
</el-table-column>
<el-table-column label="节点状态">
<el-table-column label="节点状态" width="300">
<template #default="scope">
<el-tag :type="actStateEnum[scope.row.act_state]?.type">
{{ actStateEnum[scope.row.act_state]?.text }}
@ -132,7 +132,7 @@
<el-button type="danger" @click="close">关闭</el-button>
</template>
<component :is="currentComponent" :ticketId="ticketId" :t_id="t_id" @closed="drawer = false"
@success="()=>{drawer = false; $refs.table.refresh()}"></component>
@success="handleSuccess"></component>
</el-drawer>
</el-container>
<el-dialog v-model="dialogVisible" title="选择流程">
@ -246,6 +246,15 @@ export default {
this.currentComponent = markRaw(
defineAsyncComponent(() => import(`@/views${viewPath}.vue`))
);
},
handleSuccess(mode) {
this.drawer = false;
if (mode == "add") {
this.tvalue = "我的";
this.params.category = "owner";
this.query = {};
}
this.$refs.table.refresh()
}
},
};