fix:修改病害管理
This commit is contained in:
parent
09f3bbaa01
commit
9b6f34fe4e
@ -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
|
||||
* @Date: 2024-10-08 10:58:25
|
||||
* @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
|
||||
* @Description: 巡检信息管理-病害管理
|
||||
-->
|
||||
@ -19,13 +19,13 @@
|
||||
<el-date-picker v-model="dateTime" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期"
|
||||
format="yyyy-MM-dd" value-format="yyyy-MM-dd" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="病害类型" prop="paramsDefectType">
|
||||
<!-- <el-form-item label="病害类型" prop="paramsDefectType">
|
||||
<el-cascader v-model="paramsDefectType" :options="tableDefect" :props="{
|
||||
checkStrictly: true,
|
||||
emitPath: true,
|
||||
children: 'subTypes',
|
||||
}" clearable></el-cascader>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="病害状态" prop="state">
|
||||
<el-select
|
||||
v-model="queryParams.state"
|
||||
@ -154,7 +154,7 @@
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
scope.row.inspectDirection === "0" ? "上行" : "下行"
|
||||
}}</span>
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width">
|
||||
@ -426,8 +426,6 @@ export default {
|
||||
dateTime: [],
|
||||
// 巡检任务下拉数据
|
||||
taskList: [],
|
||||
// 病害类型级联下拉绑定
|
||||
paramsDefectType: [],
|
||||
// 新增/编辑表单参数
|
||||
form: {
|
||||
id: null,
|
||||
@ -709,7 +707,6 @@ export default {
|
||||
taskId: "",
|
||||
};
|
||||
this.pagination.page = 1;
|
||||
this.paramsDefectType = [];
|
||||
this.dateTime = [];
|
||||
this.getList();
|
||||
},
|
||||
@ -723,14 +720,8 @@ export default {
|
||||
const phonereg = /^K\d{4}\+\d{3}$/;
|
||||
if (this.queryParams.stakeStart) {
|
||||
if (phonereg.test(this.queryParams.stakeStart)) {
|
||||
this.queryParams.classType = this.paramsDefectType
|
||||
? this.paramsDefectType[0]
|
||||
: "";
|
||||
this.queryParams.defectType = this.paramsDefectType
|
||||
? this.paramsDefectType.length > 1
|
||||
? this.paramsDefectType[1]
|
||||
: ""
|
||||
: "";
|
||||
this.queryParams.classType = "2"
|
||||
this.queryParams.defectType = "910002";
|
||||
this.pagination.page = 1;
|
||||
this.getList();
|
||||
} else {
|
||||
@ -738,28 +729,16 @@ export default {
|
||||
}
|
||||
} else if (this.queryParams.stakeEnd) {
|
||||
if (phonereg.test(this.queryParams.stakeEnd)) {
|
||||
this.queryParams.classType = this.paramsDefectType
|
||||
? this.paramsDefectType[0]
|
||||
: "";
|
||||
this.queryParams.defectType = this.paramsDefectType
|
||||
? this.paramsDefectType.length > 1
|
||||
? this.paramsDefectType[1]
|
||||
: ""
|
||||
: "";
|
||||
this.queryParams.classType = "2"
|
||||
this.queryParams.defectType = "910002";
|
||||
this.pagination.page = 1;
|
||||
this.getList();
|
||||
} else {
|
||||
this.$modal.msgWarning("请按照格式填写公里桩进行修改");
|
||||
}
|
||||
} else {
|
||||
this.queryParams.classType = this.paramsDefectType
|
||||
? this.paramsDefectType[0]
|
||||
: "";
|
||||
this.queryParams.defectType = this.paramsDefectType
|
||||
? this.paramsDefectType.length > 1
|
||||
? this.paramsDefectType[1]
|
||||
: ""
|
||||
: "";
|
||||
this.queryParams.classType = "2"
|
||||
this.queryParams.defectType = "910002";
|
||||
this.pagination.page = 1;
|
||||
this.getList();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user