Compare commits
	
		
			3 Commits
		
	
	
		
			641731dceb
			...
			ca99eb54b3
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | ca99eb54b3 | |
|  | 5b5ca62742 | |
|  | 9ebf3e232b | 
|  | @ -177,7 +177,7 @@ | ||||||
| 			</el-main> | 			</el-main> | ||||||
| 			<el-footer v-if="active === 1" style="text-align: center"> | 			<el-footer v-if="active === 1" style="text-align: center"> | ||||||
| 				<el-button @click="handleLastStep" style="margin-right: 4px">上一步</el-button> | 				<el-button @click="handleLastStep" style="margin-right: 4px">上一步</el-button> | ||||||
| 				<ticketd_b_start :workflow_key="'routepack'" :title="form.name" :t_id="form.id" | 				<ticketd_b_start :workflow_key="'routepack'" :title="form.name" :t_id="form.id" :ticketId="form.ticket" | ||||||
| 				@success="$emit('closed')"></ticketd_b_start> | 				@success="$emit('closed')"></ticketd_b_start> | ||||||
| 				<el-button @click="$emit('closed')" type="warning">退出</el-button> | 				<el-button @click="$emit('closed')" type="warning">退出</el-button> | ||||||
| 			</el-footer> | 			</el-footer> | ||||||
|  |  | ||||||
|  | @ -27,11 +27,11 @@ const props = defineProps({ | ||||||
| const workflow = ref(null); | const workflow = ref(null); | ||||||
| const transitions = ref([]); | const transitions = ref([]); | ||||||
| onMounted(async () => { | onMounted(async () => { | ||||||
|     if (props.ticketId) { |     if (props.ticketId != null && props.ticketId != undefined) { | ||||||
|         API.wf.ticket.ticketTransitions.req(props.ticketId).then(res => { |         API.wf.ticket.ticketTransitions.req(props.ticketId).then(res => { | ||||||
|             transitions.value = res; |             transitions.value = res; | ||||||
|         }); |         }); | ||||||
|     }else if (props.workflow_key) { |     }else if (props.workflow_key !=null && props.workflow_key != undefined) { | ||||||
|         let res = await API.wf.workflow.initkey.req(props.workflow_key); |         let res = await API.wf.workflow.initkey.req(props.workflow_key); | ||||||
|         transitions.value = res.transitions; |         transitions.value = res.transitions; | ||||||
|         workflow.value = res.workflow |         workflow.value = res.workflow | ||||||
|  | @ -49,7 +49,7 @@ const submit = async (transition_id) => { | ||||||
|         if (props.submit_b_func) { |         if (props.submit_b_func) { | ||||||
|             await props.submit_b_func(); |             await props.submit_b_func(); | ||||||
|         } |         } | ||||||
|     if (props.ticketId != null) { |     if (props.ticketId != null && props.ticketId != undefined) { | ||||||
|         let params = new Object(); |         let params = new Object(); | ||||||
|         params.transition = transition_id; |         params.transition = transition_id; | ||||||
|         if (props.ticket_data) { |         if (props.ticket_data) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue