diff --git a/src/components/dialog/FaultQueryDialog.vue b/src/components/dialog/FaultQueryDialog.vue index 8d28ecf..97eafb1 100644 --- a/src/components/dialog/FaultQueryDialog.vue +++ b/src/components/dialog/FaultQueryDialog.vue @@ -53,19 +53,18 @@ }}
- 消息名称(故障现象):{{ - clickRowInfo.faultNameShower - }} + {{ showTitle.faultNameShower }}:{{ clickRowInfo.faultNameShower }}
-
司机处理结果(服务故障现象)
+
{{ showTitle.faultDriverShower }}
{{ clickRowInfo.faultDriverShower }}
-
司机关键点(退出服务地点)
+
{{ showTitle.resultMsg }}
{{ clickRowInfo.resultMsg }}
@@ -199,6 +198,7 @@ const onRequest: QTable['onRequest'] = async (props) => { pagination.value.rowsNumber = resp.total; pagination.value.rowsPerPage = resp.size; rows.splice(0, rows.length, ...(resp.records as [])); + handleRowClick(rows[0]); } catch (err) { $q.notify({ type: 'negative', @@ -216,7 +216,21 @@ const clickRowInfo = reactive({ faultDriverShower: '', resultMsg: '', }); +const showTitle = reactive({ + faultNameShower: '', + faultDriverShower: '', + resultMsg: '', +}); function handleRowClick(row: FaultQueryListItem) { + if (row.faultType.includes('FAULT_EMERGENCY_GUIDE')) { + showTitle.faultNameShower = '故障现象'; + showTitle.faultDriverShower = '司机处理结果'; + showTitle.resultMsg = '行调提醒司机关键点'; + } else { + showTitle.faultNameShower = '故障名称'; + showTitle.faultDriverShower = '故障现象'; + showTitle.resultMsg = '退出服务地点'; + } clickRowInfo.id = row?.id as number; clickRowInfo.faultType = getFaultTypeName(row) as string; clickRowInfo.faultNameShower = row.faultNameShower; @@ -281,7 +295,7 @@ const onDialogShow = () => {