Compare commits
No commits in common. "d4459819293f73c070eaa8aada53a475732af77f" and "8922fb610ddc2e92ed1f5eed9e43ca737e4ff3a6" have entirely different histories.
d445981929
...
8922fb610d
|
@ -133,8 +133,7 @@
|
|||
<h4 :id="titleId" :class="titleClass">工单详情</h4>
|
||||
<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>
|
||||
<component :is="currentComponent" :ticketId="ticketId" :modelId="modelId"></component>
|
||||
</el-drawer>
|
||||
</el-container>
|
||||
</template>
|
||||
|
@ -180,7 +179,7 @@ export default {
|
|||
wfOptions: [],
|
||||
currentComponent: null,
|
||||
ticketId: null,
|
||||
t_id: null,
|
||||
modelId: null,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
@ -221,7 +220,7 @@ export default {
|
|||
handleShow(row) {
|
||||
this.drawer = true;
|
||||
this.ticketId = row.id;
|
||||
this.t_id = row.ticket_data.t_id;
|
||||
this.modelId = row.ticket_data.t_id;
|
||||
const viewPath = row.workflow_.view_path;
|
||||
// 动态 import
|
||||
this.currentComponent = markRaw(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<el-collapse v-model="activeNames" style="padding-left: 2px; padding-right: 2px;">
|
||||
<el-collapse v-model="activeNames">
|
||||
<el-collapse-item title="基本信息" name="1">
|
||||
<el-descriptions :column="1">
|
||||
<el-descriptions-item>
|
||||
|
@ -12,10 +12,6 @@
|
|||
{{ actStateEnum[ticketDetail.act_state]?.text }}
|
||||
</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="可处理人:"
|
||||
v-if="ticketDetail.participant_type == 2 || ticketDetail.participant_type == 1">
|
||||
<span v-for="item in ticketDetail.participant_" :key="item.id">{{ item.name }}/</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-collapse-item>
|
||||
<el-collapse-item title="操作" name="2" v-if="actionShow">
|
||||
|
@ -89,13 +85,12 @@ const handleForm = ref({
|
|||
suggestion: ""
|
||||
})
|
||||
onMounted(() => {
|
||||
console.log(props)
|
||||
console.log('props.ticketId', props.ticketId)
|
||||
if (props.ticketId) {
|
||||
getTicketDetail();
|
||||
getTicketLog();
|
||||
}
|
||||
});
|
||||
const emit = defineEmits(['success']);
|
||||
const refreshTicket = async () => {
|
||||
actionShow.value = false
|
||||
isOwn.value = false
|
||||
|
@ -105,7 +100,6 @@ const refreshTicket = async () => {
|
|||
activeNames.value = ['1', '3'] // 根据需要恢复初始展开项
|
||||
getTicketDetail()
|
||||
getTicketLog()
|
||||
emit('success')
|
||||
}
|
||||
|
||||
const getTicketDetail = () => {
|
||||
|
@ -168,7 +162,7 @@ const handleTransition = (transitionId) => {
|
|||
params.transition = transitionId;
|
||||
if (props.ticket_data) {
|
||||
params.ticket_data = props.ticket_data;
|
||||
} else {
|
||||
}else{
|
||||
params.ticket_data = {};
|
||||
}
|
||||
params.suggestion = handleForm.value.suggestion;
|
||||
|
|
|
@ -27,13 +27,9 @@ const props = defineProps({
|
|||
const workflow = ref(null);
|
||||
const transitions = ref([]);
|
||||
onMounted(async () => {
|
||||
init()
|
||||
})
|
||||
const init = async () => {
|
||||
if (props.ticketId != null && props.ticketId != undefined) {
|
||||
API.wf.ticket.ticketTransitions.req(props.ticketId).then(res => {
|
||||
transitions.value = res;
|
||||
console.log("res", res)
|
||||
});
|
||||
}else if (props.workflow_key !=null && props.workflow_key != undefined) {
|
||||
let res = await API.wf.workflow.initkey.req(props.workflow_key);
|
||||
|
@ -42,7 +38,8 @@ const init = async () => {
|
|||
}else{
|
||||
ElMessage.error("缺少workflow_key或ticketId");
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
const isSaveing = ref(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue