|
|
@ -29,8 +29,8 @@ |
|
|
|
<RoadStateCard v-for="(item, index) in data" :key="index" v-bind="getStateCardBind(item)" |
|
|
|
@firstBtnClick="firstBtnClick" @lastBtnClick="onLastBtnClick" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 分页 --> |
|
|
|
<div class="footer"> |
|
|
|
<Pagination @current-change="getData" @size-change="onSizeChange" width="'100%'" |
|
|
@ -58,7 +58,14 @@ import { tabMap,searchFormList } from "./data"; |
|
|
|
import request from "@/utils/request"; |
|
|
|
import { Message } from "element-ui"; |
|
|
|
import { Loading } from 'element-ui'; |
|
|
|
import { WarningType as warningTypeMapping, WarningSubclass as warningSubclassTypeMapping, DirectionTypes as gzDirectionMapping, warningSourceMapping, warningStateMapping } from "@screen/utils/enum.js" |
|
|
|
import { |
|
|
|
WarningType as warningTypeMapping, |
|
|
|
WarningSubclass as warningSubclassTypeMapping, |
|
|
|
DirectionTypes as gzDirectionMapping, |
|
|
|
warningSourceMapping, |
|
|
|
warningStateMapping, |
|
|
|
auditType |
|
|
|
} from "@screen/utils/enum.js" |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "RoadNetworkMonitoring2", |
|
|
@ -108,7 +115,7 @@ export default { |
|
|
|
data: { ...this.searchData } |
|
|
|
}).then((result) => { |
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
|
|
|
|
|
|
|
|
|
result.rows.forEach(it => { |
|
|
|
it.stringEventSource = it?.warningSource ? warningSourceMapping[it?.warningSource] : ''; |
|
|
|
it.stringDirection = gzDirectionMapping[it.direction] || it.direction; |
|
|
@ -148,7 +155,7 @@ export default { |
|
|
|
text: "文件正在下载...", |
|
|
|
}); |
|
|
|
// request.post(url, {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, responseType: 'blob' }) |
|
|
|
|
|
|
|
|
|
|
|
request({ |
|
|
|
url: url,//感知事件 |
|
|
|
method: "post", |
|
|
@ -190,6 +197,9 @@ export default { |
|
|
|
data.stringEventState = warningStateMapping[data.warningState]; |
|
|
|
data.stringEventType = warningTypeMapping[data.warningType]; |
|
|
|
data.stringDirection = gzDirectionMapping[data.direction] || data.direction; |
|
|
|
data.auditFlags=auditType[data.auditFlag]; |
|
|
|
data.auditor=data.auditor; |
|
|
|
data.auditTime=data.auditTime; |
|
|
|
let eventInfo = await request({ |
|
|
|
url: `/dc/system/event/eventSubclass/${id}`, |
|
|
|
method: "GET", |
|
|
@ -236,13 +246,14 @@ export default { |
|
|
|
if (dendStakeMark) { |
|
|
|
endStakeMark = dendStakeMark[0] ? `K${dendStakeMark[0].padStart(3,'0')}+${dendStakeMark[1].padStart(3,'0')}` : ''; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.searchData = { |
|
|
|
...this.searchData, |
|
|
|
warningState: data.warningState, |
|
|
|
warningType: data.warningType, |
|
|
|
warningSource: data?.warningSource || '', |
|
|
|
direction: data.direction, |
|
|
|
auditFlag:data.auditFlag, |
|
|
|
startTime: daterange && daterange.length > 0 ? daterange[0] : "", |
|
|
|
// endTime: this.activeName != "-1" && daterange && daterange.length > 0 ? daterange[1] : "", |
|
|
|
completeTime: daterange && daterange.length > 0 ? daterange[1] : "", |
|
|
|