|
@@ -72,14 +72,14 @@
|
|
|
|
|
|
<!-- 执行时间 -->
|
|
|
<el-table-column
|
|
|
- prop="operationTime"
|
|
|
+ prop="executeTime"
|
|
|
:label="$t('dispatch.table.exception.operationTime')"
|
|
|
width="150px"
|
|
|
></el-table-column>
|
|
|
|
|
|
<!-- 设备 -->
|
|
|
<el-table-column
|
|
|
- prop="device"
|
|
|
+ prop="resourceName"
|
|
|
:label="$t('dispatch.table.exception.device')"
|
|
|
:show-overflow-tooltip="true"
|
|
|
align="center"
|
|
@@ -87,7 +87,7 @@
|
|
|
|
|
|
<!-- 指令内容 -->
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
+ prop="instructionName"
|
|
|
:label="$t('dispatch.table.exception.name')"
|
|
|
:show-overflow-tooltip="true"
|
|
|
align="center"
|
|
@@ -96,14 +96,14 @@
|
|
|
|
|
|
<!-- 状态 -->
|
|
|
<el-table-column
|
|
|
- prop="status"
|
|
|
+ prop="exeResult"
|
|
|
:label="$t('dispatch.table.exception.status.normal')"
|
|
|
width="100px"
|
|
|
align="center"
|
|
|
>
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-tag :type="row.status=='1' ? 'success' : 'danger'">
|
|
|
- {{ row.status=='1' ? $t('dispatch.table.exception.status.running') : (row.status=='2') ? $t("dispatch.table.exception.status.runFail") : $t('dispatch.table.exception.status.sendFail') }}
|
|
|
+ <el-tag :type="row.exeResult=='1' ? 'success' : 'danger'">
|
|
|
+ {{ row.exeResult=='1' ? $t('dispatch.table.exception.status.running') : $t("dispatch.table.exception.status.runFail") }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -113,10 +113,10 @@
|
|
|
:label="$t('dispatch.table.exception.operation')"
|
|
|
width="300px" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button plain type="primary" size="medium" @click="resend">
|
|
|
+ <el-button plain type="primary" size="medium" @click.native="resend(row)">
|
|
|
{{ $t("dispatch.button.resend") }}
|
|
|
</el-button>
|
|
|
- <el-button plain type="primary" size="medium" @click="marked">
|
|
|
+ <el-button plain type="primary" size="medium" @click.native="marked(row)">
|
|
|
{{ $t("dispatch.button.marked") }}
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -149,10 +149,12 @@
|
|
|
<script>
|
|
|
import Pagination from "@/components/Pagination";
|
|
|
import dispatchMgrApi from "@/api/Dispatch";
|
|
|
+import qs from "qs";
|
|
|
|
|
|
import elDragDialog from "@/directive/el-drag-dialog";
|
|
|
import { initDicts, initQueryParams } from "@/utils/commons";
|
|
|
import { convertEnum } from "@/utils/utils";
|
|
|
+import warnLogApi from "@/api/lineSideLibrary/warnLog"
|
|
|
export default {
|
|
|
name: "dispatchExceptionMgr",
|
|
|
directives: { elDragDialog },
|
|
@@ -206,11 +208,31 @@ export default {
|
|
|
this.$refs.table.clearFilter();
|
|
|
this.search();
|
|
|
},
|
|
|
- resend(){
|
|
|
-
|
|
|
+ resend(row){
|
|
|
+ warnLogApi.resend({id: row.id}).then(response => {
|
|
|
+ const res = response.data
|
|
|
+ if (res.isSuccess) {
|
|
|
+ this.$message({
|
|
|
+ message: '重发成功',
|
|
|
+ type: "success"
|
|
|
+ })
|
|
|
+ this.fetch()
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
- marked(){
|
|
|
-
|
|
|
+ marked(row){
|
|
|
+ console.log(row);
|
|
|
+ console.log(row.id);
|
|
|
+ warnLogApi.complete({id: row.id}).then(response => {
|
|
|
+ const res = response.data
|
|
|
+ if (res.isSuccess) {
|
|
|
+ this.$message({
|
|
|
+ message: '标注成功',
|
|
|
+ type: "success"
|
|
|
+ })
|
|
|
+ this.fetch()
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
fetch(params = {}) {
|
|
|
this.loading = true;
|