| | |
| | | <div class="detail-container"> |
| | | <div class="detail-top-title"> |
| | | <div class="event-title-center event-orderNumber"> |
| | | {{ currentDetail.orderNumber || '工单编号' }} |
| | | {{ currentDetail.event_num || '工单编号' }} |
| | | </div> |
| | | <div class="event-title-center">{{ currentDetail.orderName || '事件名称' }}</div> |
| | | <div class="event-title-center">{{ currentDetail.event_name || '事件名称' }}</div> |
| | | </div> |
| | | <div v-if="totalTime" class="event-total-time">总耗时:{{ totalTime }}</div> |
| | | <!-- 工单状态流程 --> |
| | |
| | | " |
| | | > |
| | | <el-input |
| | | v-model="currentDetail.orderName" |
| | | v-model="currentDetail.event_name" |
| | | placeholder="请输入工单名称" |
| | | class="required-input" |
| | | /> |
| | |
| | | " |
| | | > |
| | | <el-select |
| | | v-model="currentDetail.aiType" |
| | | v-model="currentDetail.ai_types" |
| | | placeholder="请选择关联算法" |
| | | class="required-input" |
| | | > |
| | |
| | | import { ElMessage} from 'element-plus'; |
| | | const store = useStore() |
| | | const userInfo = computed(() => store.state.user.userInfo) |
| | | console.log('userInfo',userInfo.value); |
| | | // console.log('userInfo',userInfo.value); |
| | | // 定义props |
| | | const props = defineProps({ |
| | | modelValue: { |
| | |
| | | }) |
| | | const formattedDetailFields = computed(() => { |
| | | const fields = [ |
| | | { label: '工单名称', value: props.currentDetail.orderName }, |
| | | { label: '工单名称', value: props.currentDetail.event_name }, |
| | | { |
| | | label: '工单类型', |
| | | value: props.types.find(t => t.value === props.currentDetail.type)?.label || props.currentDetail.type, |
| | |
| | | { label: '事件地址', value: props.currentDetail.address || props.currentDetail.latAndLon }, |
| | | { |
| | | label: '关联算法', |
| | | value: props.algorithms.find(t => t.value === props.currentDetail.aiType)?.label || props.currentDetail.aiType, |
| | | value: props.algorithms.find(t => t.value === props.currentDetail.ai_types)?.label || props.currentDetail.ai_types, |
| | | }, |
| | | { label: '发起单位', value: props.currentDetail.department }, |
| | | { label: '发起任务时间', value: props.currentDetail.startTime }, |
| | |
| | | |
| | | const loadStepInfo = async () => { |
| | | try { |
| | | const stepResponse = await getStepInfo(props.currentDetail.orderNumber); |
| | | const stepResponse = await getStepInfo(props.currentDetail.event_num); |
| | | const steps = Array.isArray(stepResponse.data.data) |
| | | ? stepResponse.data.data |
| | | : stepResponse.data.data?.steps || []; |
| | |
| | | id: props.currentDetail.id, |
| | | status: props.currentDetail.status, |
| | | isPass: 0, |
| | | eventNum: props.currentDetail.orderNumber, |
| | | eventNum: props.currentDetail.event_num, |
| | | }; |
| | | |
| | | const response = await flowEvent(data); |
| | |
| | | id: props.currentDetail.id, |
| | | status: props.currentDetail.status, |
| | | processingDetails: props.currentDetail.processingDetail, |
| | | eventNum: props.currentDetail.orderNumber, |
| | | eventNum: props.currentDetail.event_num, |
| | | }; |
| | | |
| | | const file = props.currentDetail.photos?.[0]?.raw || null; |