|
@@ -5,7 +5,7 @@
|
|
|
<el-input v-model="queryParams.valveWellName" placeholder="请输入阀井名称" clearable size="small"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="队伍" >
|
|
|
- <el-select v-model="queryParams.ranks" clearable placeholder="请选择队伍" :disabled="postName.indexOf('xx') > -1">
|
|
|
+ <el-select v-model="queryParams.ranks" clearable placeholder="请选择队伍" :disabled="postName.indexOf('xx') > -1" @change="getWorkerList(queryParams.ranks);queryParams.createBy=undefined">
|
|
|
<el-option
|
|
|
v-for="item in postOptions"
|
|
|
:key="item.postId"
|
|
@@ -14,9 +14,17 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="上传人" prop="createBy">
|
|
|
+ <el-select v-model="queryParams.createBy" filterable placeholder="请选择上传人" clearable size="small">
|
|
|
+ <el-option v-for="item in workerList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"/>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="位置" prop="positionId">
|
|
|
<el-select v-model="queryParams.positionId" placeholder="请选择位置" filterable clearable size="small"
|
|
|
- @keyup.enter.native="handleQuery" style="width: 100%">
|
|
|
+ @keyup.enter.native="handleQuery" style="width: 100%" >
|
|
|
<el-option
|
|
|
v-for="item in listValveWellPositionList"
|
|
|
:key="item.id"
|
|
@@ -118,7 +126,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="审核状态" align="center" prop="processStatus">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.process_status" :value="scope.row.processStatus" v-if="scope.row.processStatus != null"/>
|
|
|
+ <dict-tag :options="dict.type.process_status" :value="scope.row.processStatus" v-if="scope.row.processStatus != null && scope.row.processStatus != '-1' "/>
|
|
|
<span v-else>未审核</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -153,7 +161,7 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- v-show="scope.row.processStatus == null"
|
|
|
+ v-show="scope.row.processStatus == null && scope.row.processStatus != '-1'"
|
|
|
icon="el-icon-edit"
|
|
|
@click="process(scope.row)"
|
|
|
v-hasPermi="['gas:regulatingBoxMaintenance:edit']"
|
|
@@ -270,6 +278,7 @@ import {listValveWellPosition} from "@/api/gas/valveWellPosition";
|
|
|
import Cookies from "js-cookie";
|
|
|
import {listPostAll} from "@/api/system/post";
|
|
|
import {updateRegulatingBoxMaintenance} from "@/api/gas/regulatingBoxMaintenance";
|
|
|
+import {getWorker} from "@/api/gas/user";
|
|
|
|
|
|
export default {
|
|
|
name: "ValveWellInspection",
|
|
@@ -306,6 +315,7 @@ export default {
|
|
|
total: 0,
|
|
|
// 阀井巡查表格数据
|
|
|
valveWellInspectionList: [],
|
|
|
+ workerList: [],
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
@@ -317,6 +327,7 @@ export default {
|
|
|
positionId: undefined,
|
|
|
discoverProblems: undefined,
|
|
|
discoverTime: undefined,
|
|
|
+ ranks:(Cookies.get("postName").indexOf('xx') > -1 ? parseInt(Cookies.get("postId")) : undefined),
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -339,8 +350,21 @@ export default {
|
|
|
this.listValveWellPosition();
|
|
|
this.getPostList();
|
|
|
this.getList();
|
|
|
+ this.getWorkerList();
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
+ getWorkerList(ranks) {
|
|
|
+ let data = null
|
|
|
+ if(ranks){
|
|
|
+ data = {
|
|
|
+ ranks:ranks
|
|
|
+ }
|
|
|
+ }
|
|
|
+ getWorker(data).then(req => {
|
|
|
+ this.workerList = req.data
|
|
|
+ })
|
|
|
+ },
|
|
|
getPostList(){
|
|
|
listPostAll({remark:'ranks'}).then(response => {
|
|
|
this.postOptions = response.data;
|
|
@@ -382,6 +406,7 @@ export default {
|
|
|
remark: undefined,
|
|
|
delFlag: undefined,
|
|
|
createBy: undefined,
|
|
|
+ photoList: [],
|
|
|
createTime: undefined,
|
|
|
updateBy: undefined,
|
|
|
updateTime: undefined
|
|
@@ -462,7 +487,8 @@ export default {
|
|
|
this.buttonLoading = false;
|
|
|
});
|
|
|
} else {
|
|
|
- this.form.photoList = this.form.photoList.split(',')
|
|
|
+ if (this.form.photoList.length > 0)
|
|
|
+ this.form.photoList = this.form.photoList.split(',')
|
|
|
addValveWellInspection(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|