diff --git a/src/views/wf/myticket.vue b/src/views/wf/myticket.vue
index c33e81f4..2d5a193d 100644
--- a/src/views/wf/myticket.vue
+++ b/src/views/wf/myticket.vue
@@ -133,7 +133,8 @@
工单详情
关闭
-
+ {drawer = false; $refs.table.refresh()}">
@@ -179,7 +180,7 @@ export default {
wfOptions: [],
currentComponent: null,
ticketId: null,
- modelId: null,
+ t_id: null,
};
},
mounted() {
@@ -220,7 +221,7 @@ export default {
handleShow(row) {
this.drawer = true;
this.ticketId = row.id;
- this.modelId = row.ticket_data.t_id;
+ this.t_id = row.ticket_data.t_id;
const viewPath = row.workflow_.view_path;
// 动态 import
this.currentComponent = markRaw(
diff --git a/src/views/wf/ticketd.vue b/src/views/wf/ticketd.vue
index cdf0f515..6f4b8a66 100644
--- a/src/views/wf/ticketd.vue
+++ b/src/views/wf/ticketd.vue
@@ -1,5 +1,5 @@
-
+
@@ -12,6 +12,10 @@
{{ actStateEnum[ticketDetail.act_state]?.text }}
+
+ {{ item.name }}/
+
@@ -85,12 +89,13 @@ const handleForm = ref({
suggestion: ""
})
onMounted(() => {
- console.log('props.ticketId', props.ticketId)
+ console.log(props)
if (props.ticketId) {
getTicketDetail();
getTicketLog();
}
});
+const emit = defineEmits(['success']);
const refreshTicket = async () => {
actionShow.value = false
isOwn.value = false
@@ -100,6 +105,7 @@ const refreshTicket = async () => {
activeNames.value = ['1', '3'] // 根据需要恢复初始展开项
getTicketDetail()
getTicketLog()
+ emit('success')
}
const getTicketDetail = () => {
@@ -162,7 +168,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;
diff --git a/src/views/wf/ticketd_b_start.vue b/src/views/wf/ticketd_b_start.vue
index b6683c95..f8876fe2 100644
--- a/src/views/wf/ticketd_b_start.vue
+++ b/src/views/wf/ticketd_b_start.vue
@@ -27,9 +27,13 @@ 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);
@@ -38,8 +42,7 @@ onMounted(async () => {
}else{
ElMessage.error("缺少workflow_key或ticketId");
}
-
-})
+}
const isSaveing = ref(false);