|
@@ -43,6 +43,13 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="状态" prop="status">
|
|
|
+ <el-select size="mini" v-model="queryModel.status" clearable>
|
|
|
+ <el-option label="全部" value="" ></el-option>
|
|
|
+ <el-option label="未处理" value="0" ></el-option>
|
|
|
+ <el-option label="已处理" value="1" ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -90,42 +97,104 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
- <el-table-column prop="stationName" label="站点名称" width="180"></el-table-column>
|
|
|
- <el-table-column prop="stationNo" label="站点编号" width="180"></el-table-column>
|
|
|
- <el-table-column prop="errorCodeText" label="故障类型" width="180"></el-table-column>
|
|
|
- <el-table-column prop="errorDesc" label="故障描述" width="180"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="stationName"
|
|
|
+ label="站点名称"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="stationNo"
|
|
|
+ label="站点编号"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="errorCodeText"
|
|
|
+ label="故障类型"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="errorDesc"
|
|
|
+ label="故障描述"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column prop="errorImage" label="故障图片" width="180">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <template v-if="row.errorImage!=null">
|
|
|
- <el-image style="width: 50px; height: 50px" :src="url" fit="fit"
|
|
|
- :data-source="url"
|
|
|
- v-for="(url, index) in row.errorImage.split(',')" :key="index" v-viewer
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <template v-if="row.errorImage != null">
|
|
|
+ <el-image
|
|
|
+ style="width: 50px; height: 50px"
|
|
|
+ :src="url"
|
|
|
+ fit="fit"
|
|
|
+ :data-source="url"
|
|
|
+ v-for="(url, index) in row.errorImage.split(',')"
|
|
|
+ :key="index"
|
|
|
+ v-viewer
|
|
|
></el-image>
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="errorReportTime" label="故障上报时间"
|
|
|
- width="180"></el-table-column>
|
|
|
- <el-table-column prop="errorReportNames" label="故障上报人"
|
|
|
- width="180"></el-table-column>
|
|
|
- <el-table-column prop="statusN" label="状态"
|
|
|
- width="180"></el-table-column>
|
|
|
- <el-table-column prop="repairDesc" label="处理描述"
|
|
|
- width="180"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="errorReportTime"
|
|
|
+ label="故障上报时间"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="errorReportNames"
|
|
|
+ label="故障上报人"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="statusN"
|
|
|
+ label="状态"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="repairDesc"
|
|
|
+ label="处理描述"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column prop="repairImage" label="处理图片" width="180">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <template v-if="row.repairImage!=null">
|
|
|
- <a v-for="(url, index) in row.repairImage.split(',')" :href="url" target="_blank" :key="index">
|
|
|
- <el-image style="width: 50px; height: 50px" :src="url" fit="fit"></el-image>
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <template v-if="row.repairImage != null">
|
|
|
+ <a
|
|
|
+ v-for="(url, index) in row.repairImage.split(',')"
|
|
|
+ :href="url"
|
|
|
+ target="_blank"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <el-image
|
|
|
+ style="width: 50px; height: 50px"
|
|
|
+ :src="url"
|
|
|
+ fit="fit"
|
|
|
+ ></el-image>
|
|
|
</a>
|
|
|
</template>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="repairTime" label="处理时间" width="180"></el-table-column>
|
|
|
- <el-table-column prop="repairNames" label="故障处理人" width="180"></el-table-column>
|
|
|
- <el-table-column prop="overdueType" label="备注" width="120"></el-table-column>
|
|
|
- <el-table-column prop="overdueHours" label="超时时长(小时)" width="120"></el-table-column>
|
|
|
- <el-table-column prop="oveduerScore" label="超时扣除分数" width="120"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="repairTime"
|
|
|
+ label="处理时间"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="repairNames"
|
|
|
+ label="故障处理人"
|
|
|
+ width="180"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="overdueType"
|
|
|
+ label="备注"
|
|
|
+ width="120"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="overdueHours"
|
|
|
+ label="超时时长(小时)"
|
|
|
+ width="120"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="oveduerScore"
|
|
|
+ label="超时扣除分数"
|
|
|
+ width="120"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column label="操作" width="180">
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-button size="mini" type="warning" @click="handleEdit(row)"
|
|
@@ -146,17 +215,17 @@
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
></el-pagination>
|
|
|
<inspectionErrorRecord-detail
|
|
|
- v-if="showModal"
|
|
|
- :businessKey="businessKey"
|
|
|
- :title="modalTitle"
|
|
|
- @close="onDetailModalClose"
|
|
|
- ></inspectionErrorRecord-detail>
|
|
|
+ v-if="showModal"
|
|
|
+ :businessKey="businessKey"
|
|
|
+ :title="modalTitle"
|
|
|
+ @close="onDetailModalClose"
|
|
|
+ ></inspectionErrorRecord-detail>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import Constant from "@/constant";
|
|
|
import inspectionErrorRecordApi from "@/api/inspection/inspectionErrorRecord";
|
|
|
-import InspectionErrorRecordDetail from "./inspectionErrorRecord-detail";
|
|
|
+import inspectionErrorRecordDetail from "./inspectionErrorRecord-detail";
|
|
|
import dataDictionaryApi from "@/api/sys/dataDictionary";
|
|
|
import NProgress from "nprogress"; // progress bar
|
|
|
import "nprogress/nprogress.css"; // progress bar style
|
|
@@ -170,6 +239,7 @@ export default {
|
|
|
stationName: "",
|
|
|
stationNo: "",
|
|
|
errorCode: "",
|
|
|
+ status:"",
|
|
|
},
|
|
|
loading: false,
|
|
|
tableData: [],
|
|
@@ -206,10 +276,10 @@ export default {
|
|
|
formData.append("pageIndex", self.pageIndex);
|
|
|
formData.append("pageSize", self.pageSize);
|
|
|
|
|
|
-
|
|
|
formData.append("stationNo", self.queryModel.stationNo);
|
|
|
formData.append("stationName", self.queryModel.stationName);
|
|
|
formData.append("errorCode", self.queryModel.errorCode);
|
|
|
+ formData.append("status", self.queryModel.status);
|
|
|
|
|
|
if (this.field != null) {
|
|
|
formData.append("field", this.field);
|
|
@@ -329,7 +399,8 @@ export default {
|
|
|
this.changePage(1);
|
|
|
},
|
|
|
components: {
|
|
|
- "inspectionErrorRecord-detail": InspectionErrorRecordDetail},
|
|
|
+ "inspectionErrorRecord-detail": inspectionErrorRecordDetail,
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|