fix:修改病害管理

This commit is contained in:
SunTao 2025-05-09 16:58:32 +08:00
parent 09f3bbaa01
commit 9b6f34fe4e

View File

@ -2,7 +2,7 @@
* @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
* @Date: 2024-10-08 10:58:25 * @Date: 2024-10-08 10:58:25
* @LastEditors: SunTao 328867980@qq.com * @LastEditors: SunTao 328867980@qq.com
* @LastEditTime: 2025-05-09 09:49:23 * @LastEditTime: 2025-05-09 16:54:05
* @FilePath: \znxjxt-ui\src\views\xj\inspection\disease-management\index.vue * @FilePath: \znxjxt-ui\src\views\xj\inspection\disease-management\index.vue
* @Description: 巡检信息管理-病害管理 * @Description: 巡检信息管理-病害管理
--> -->
@ -19,13 +19,13 @@
<el-date-picker v-model="dateTime" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期" <el-date-picker v-model="dateTime" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
format="yyyy-MM-dd" value-format="yyyy-MM-dd" clearable /> format="yyyy-MM-dd" value-format="yyyy-MM-dd" clearable />
</el-form-item> </el-form-item>
<el-form-item label="病害类型" prop="paramsDefectType"> <!-- <el-form-item label="病害类型" prop="paramsDefectType">
<el-cascader v-model="paramsDefectType" :options="tableDefect" :props="{ <el-cascader v-model="paramsDefectType" :options="tableDefect" :props="{
checkStrictly: true, checkStrictly: true,
emitPath: true, emitPath: true,
children: 'subTypes', children: 'subTypes',
}" clearable></el-cascader> }" clearable></el-cascader>
</el-form-item> </el-form-item> -->
<!-- <el-form-item label="病害状态" prop="state"> <!-- <el-form-item label="病害状态" prop="state">
<el-select <el-select
v-model="queryParams.state" v-model="queryParams.state"
@ -154,7 +154,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.inspectDirection === "0" ? "上行" : "下行" scope.row.inspectDirection === "0" ? "上行" : "下行"
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width">
@ -426,8 +426,6 @@ export default {
dateTime: [], dateTime: [],
// //
taskList: [], taskList: [],
//
paramsDefectType: [],
// / // /
form: { form: {
id: null, id: null,
@ -709,7 +707,6 @@ export default {
taskId: "", taskId: "",
}; };
this.pagination.page = 1; this.pagination.page = 1;
this.paramsDefectType = [];
this.dateTime = []; this.dateTime = [];
this.getList(); this.getList();
}, },
@ -723,14 +720,8 @@ export default {
const phonereg = /^K\d{4}\+\d{3}$/; const phonereg = /^K\d{4}\+\d{3}$/;
if (this.queryParams.stakeStart) { if (this.queryParams.stakeStart) {
if (phonereg.test(this.queryParams.stakeStart)) { if (phonereg.test(this.queryParams.stakeStart)) {
this.queryParams.classType = this.paramsDefectType this.queryParams.classType = "2"
? this.paramsDefectType[0] this.queryParams.defectType = "910002";
: "";
this.queryParams.defectType = this.paramsDefectType
? this.paramsDefectType.length > 1
? this.paramsDefectType[1]
: ""
: "";
this.pagination.page = 1; this.pagination.page = 1;
this.getList(); this.getList();
} else { } else {
@ -738,28 +729,16 @@ export default {
} }
} else if (this.queryParams.stakeEnd) { } else if (this.queryParams.stakeEnd) {
if (phonereg.test(this.queryParams.stakeEnd)) { if (phonereg.test(this.queryParams.stakeEnd)) {
this.queryParams.classType = this.paramsDefectType this.queryParams.classType = "2"
? this.paramsDefectType[0] this.queryParams.defectType = "910002";
: "";
this.queryParams.defectType = this.paramsDefectType
? this.paramsDefectType.length > 1
? this.paramsDefectType[1]
: ""
: "";
this.pagination.page = 1; this.pagination.page = 1;
this.getList(); this.getList();
} else { } else {
this.$modal.msgWarning("请按照格式填写公里桩进行修改"); this.$modal.msgWarning("请按照格式填写公里桩进行修改");
} }
} else { } else {
this.queryParams.classType = this.paramsDefectType this.queryParams.classType = "2"
? this.paramsDefectType[0] this.queryParams.defectType = "910002";
: "";
this.queryParams.defectType = this.paramsDefectType
? this.paramsDefectType.length > 1
? this.paramsDefectType[1]
: ""
: "";
this.pagination.page = 1; this.pagination.page = 1;
this.getList(); this.getList();
} }