feat: myticket不传入mode

This commit is contained in:
caoqianming 2025-11-07 23:24:11 +08:00
parent 7db573871d
commit def8713e8e
1 changed files with 2 additions and 4 deletions

View File

@ -131,7 +131,7 @@
<h4 :id="titleId" :class="titleClass">工单信息</h4> <h4 :id="titleId" :class="titleClass">工单信息</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" :mode="mode" <component :is="currentComponent" :ticketId="ticketId" :t_id="t_id" @closed="drawer = false"
@success="()=>{drawer = false; $refs.table.refresh()}"></component> @success="()=>{drawer = false; $refs.table.refresh()}"></component>
</el-drawer> </el-drawer>
</el-container> </el-container>
@ -189,8 +189,7 @@ export default {
currentComponent: null, currentComponent: null,
ticketId: null, ticketId: null,
t_id: null, t_id: null,
dialogVisible: false, dialogVisible: false
mode: "show"
}; };
}, },
mounted() { mounted() {
@ -242,7 +241,6 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
this.drawer = true; this.drawer = true;
this.t_id = null; this.t_id = null;
this.mode = "add"
const viewPath = item.view_path; const viewPath = item.view_path;
// import // import
this.currentComponent = markRaw( this.currentComponent = markRaw(