feat: base myticket变更drawerName

This commit is contained in:
caoqianming 2025-11-09 23:15:56 +08:00
parent 83fe31b76a
commit 21d0ec18ff
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,7 @@
</el-main> </el-main>
<el-drawer v-model="drawer" size="90%" :show-close="false"> <el-drawer v-model="drawer" size="90%" :show-close="false">
<template #header="{ close, titleId, titleClass }"> <template #header="{ close, titleId, titleClass }">
<h4 :id="titleId" :class="titleClass">工单信息</h4> <h4 :id="titleId" :class="titleClass">{{drawerName}}</h4>
<el-button type="danger" @click="close">关闭</el-button> <el-button type="danger" @click="close">关闭</el-button>
</template> </template>
<component :is="currentComponent" :ticketId="ticketId" :t_id="t_id" @closed="drawer = false" <component :is="currentComponent" :ticketId="ticketId" :t_id="t_id" @closed="drawer = false"
@ -155,6 +155,7 @@ export default {
data() { data() {
return { return {
actStateEnum, interveneTypeEnum, actStateEnum, interveneTypeEnum,
drawerName: "工单详情",
drawer: false, drawer: false,
tvalue: "待办", tvalue: "待办",
toptions: { toptions: {
@ -231,6 +232,7 @@ export default {
this.drawer = true; this.drawer = true;
this.ticketId = row.id; this.ticketId = row.id;
this.t_id = row.ticket_data.t_id; this.t_id = row.ticket_data.t_id;
this.drawerName = row.title;
const viewPath = row.workflow_.view_path; const viewPath = row.workflow_.view_path;
// import // import
this.currentComponent = markRaw( this.currentComponent = markRaw(
@ -241,6 +243,7 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
this.drawer = true; this.drawer = true;
this.t_id = null; this.t_id = null;
this.drawerName = item.name;
const viewPath = item.view_path; const viewPath = item.view_path;
// import // import
this.currentComponent = markRaw( this.currentComponent = markRaw(