|
|
|
|
@ -77,14 +77,11 @@
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==1" type="warning">有</el-tag>
|
|
|
|
|
<el-tag v-else>无</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='old_type'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==1">雨水管道疏挖</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==2">雨水管道疏通</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==3">汛期助排</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==4">污泥外运</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==5">出水口排查</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==6">专项处理</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==7">维修</el-tag>
|
|
|
|
|
<div v-else-if="column.type=='old_type'">
|
|
|
|
|
<div v-for="item in selects.typeList">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==item.id">{{item.name}}</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='status'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==0">待审核</el-tag>
|
|
|
|
|
@ -128,13 +125,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<el-dialog title="雨管养护类型选择" :visible.sync="rainTypeVisible" width="60%">
|
|
|
|
|
<div class="dialogConcent">
|
|
|
|
|
<el-radio v-model="rainType" label="1">雨水管道疏挖</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" label="2">雨水管道疏通</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" label="3">汛期助排</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" label="4">污泥外运</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" label="5">出水口排查</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" label="6">专项处理</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" label="7">维修</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" :label="1">雨水管道疏挖</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" :label="2">雨水管道疏通</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" :label="3">汛期助排</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" :label="4">污泥外运</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" :label="5">出水口排查</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" :label="6">专项处理</el-radio>
|
|
|
|
|
<el-radio v-model="rainType" :label="7">维修</el-radio>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
@ -233,64 +230,30 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
reviewFormVisible: false,
|
|
|
|
|
reviewList: [],
|
|
|
|
|
reviewForm: {
|
|
|
|
|
ids: [],
|
|
|
|
|
audit_status: 0,
|
|
|
|
|
audit_reamrk: ""
|
|
|
|
|
return {
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
formLabelWidth: "120px",
|
|
|
|
|
tableData: [],
|
|
|
|
|
paginations: {
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 15,
|
|
|
|
|
total: 0
|
|
|
|
|
},
|
|
|
|
|
reviewStatusList: [{
|
|
|
|
|
id: 0,
|
|
|
|
|
value: "待复核"
|
|
|
|
|
}, {
|
|
|
|
|
id: 1,
|
|
|
|
|
value: "已复核"
|
|
|
|
|
}],
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
rainTypeVisible: false,
|
|
|
|
|
rainType: "1",
|
|
|
|
|
dialogFormVisible: false,
|
|
|
|
|
dialogFormDetailVisible: false,
|
|
|
|
|
formLabelWidth: "120px",
|
|
|
|
|
dialogImageUrl: "",
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
rainTitle: "雨水管道疏挖",
|
|
|
|
|
tableData: [],
|
|
|
|
|
mapparams: {
|
|
|
|
|
zoom: 11,
|
|
|
|
|
},
|
|
|
|
|
mapform: [],
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
rainType: 1,
|
|
|
|
|
|
|
|
|
|
datesearch: "",
|
|
|
|
|
baseurl: "",
|
|
|
|
|
searchFields: {
|
|
|
|
|
is_export: 0,
|
|
|
|
|
is_auth: 1
|
|
|
|
|
},
|
|
|
|
|
yhtypeList: [{
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "雨水管道疏挖"
|
|
|
|
|
}, {
|
|
|
|
|
id: 2,
|
|
|
|
|
name: "雨水管道疏通"
|
|
|
|
|
}, {
|
|
|
|
|
id: 3,
|
|
|
|
|
name: "汛期助排"
|
|
|
|
|
}, {
|
|
|
|
|
id: 4,
|
|
|
|
|
name: "污泥外运"
|
|
|
|
|
}, {
|
|
|
|
|
id: 5,
|
|
|
|
|
name: "出水口排查"
|
|
|
|
|
}, {
|
|
|
|
|
id: 6,
|
|
|
|
|
name: "专项处理"
|
|
|
|
|
}, {
|
|
|
|
|
id: 7,
|
|
|
|
|
name: "维修"
|
|
|
|
|
}],
|
|
|
|
|
baseurl: "",
|
|
|
|
|
|
|
|
|
|
searchFields: {
|
|
|
|
|
is_export: 0,
|
|
|
|
|
is_auth: 1
|
|
|
|
|
},
|
|
|
|
|
roadsList: [],
|
|
|
|
|
roadName: "",
|
|
|
|
|
roaddisabled: false,
|
|
|
|
|
roadloading: false,
|
|
|
|
|
selects: {
|
|
|
|
|
areasList: [{
|
|
|
|
|
id: "",
|
|
|
|
|
@ -352,76 +315,26 @@
|
|
|
|
|
name: "所有"
|
|
|
|
|
}],
|
|
|
|
|
},
|
|
|
|
|
paginations: {
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 15,
|
|
|
|
|
total: 0
|
|
|
|
|
},
|
|
|
|
|
filesList: [],
|
|
|
|
|
dealFilesList: [],
|
|
|
|
|
rainMaintainLogs: [],
|
|
|
|
|
end_types: 0,
|
|
|
|
|
disabled: false,
|
|
|
|
|
uploadOther: {
|
|
|
|
|
token: ""
|
|
|
|
|
},
|
|
|
|
|
idname: "",
|
|
|
|
|
nowstatus: 0,
|
|
|
|
|
maintaninList: [],
|
|
|
|
|
form: {
|
|
|
|
|
content: "",
|
|
|
|
|
title_id: "",
|
|
|
|
|
scope: "",
|
|
|
|
|
point_name: '',
|
|
|
|
|
is_solve: 0,
|
|
|
|
|
is_law: 0,
|
|
|
|
|
deal_content: "",
|
|
|
|
|
deal_result: "",
|
|
|
|
|
address: "",
|
|
|
|
|
longitude: "",
|
|
|
|
|
latitude: "",
|
|
|
|
|
files_list: [],
|
|
|
|
|
files_deal_list: [],
|
|
|
|
|
date: "",
|
|
|
|
|
address: "",
|
|
|
|
|
road_id: ""
|
|
|
|
|
},
|
|
|
|
|
allmaintaninList: [{
|
|
|
|
|
id: "",
|
|
|
|
|
value: "所有"
|
|
|
|
|
}],
|
|
|
|
|
roadsList: [],
|
|
|
|
|
roadName: "",
|
|
|
|
|
roaddisabled: false,
|
|
|
|
|
roadloading: false,
|
|
|
|
|
formdetail: {
|
|
|
|
|
status: 0,
|
|
|
|
|
end_type: 0,
|
|
|
|
|
content: "",
|
|
|
|
|
end_time: "",
|
|
|
|
|
remark: "",
|
|
|
|
|
type: 0
|
|
|
|
|
},
|
|
|
|
|
wf_type: 0,
|
|
|
|
|
titleArr: [],
|
|
|
|
|
rules: {
|
|
|
|
|
// scope: [{
|
|
|
|
|
// required: true,
|
|
|
|
|
// message: '请填写覆盖范围',
|
|
|
|
|
// trigger: 'blur',
|
|
|
|
|
// }],
|
|
|
|
|
// point_name: [{
|
|
|
|
|
// required: true,
|
|
|
|
|
// message: '请填写点位名称',
|
|
|
|
|
// trigger: 'blur',
|
|
|
|
|
// }],
|
|
|
|
|
// content: [{
|
|
|
|
|
// required: true,
|
|
|
|
|
// message: '请填写描述',
|
|
|
|
|
// trigger: 'blur',
|
|
|
|
|
// }]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
reviewFormVisible: false,
|
|
|
|
|
reviewList: [],
|
|
|
|
|
reviewForm: {
|
|
|
|
|
ids: [],
|
|
|
|
|
audit_status: 0,
|
|
|
|
|
audit_reamrk: ""
|
|
|
|
|
},
|
|
|
|
|
reviewStatusList: [{
|
|
|
|
|
id: 0,
|
|
|
|
|
value: "待复核"
|
|
|
|
|
}, {
|
|
|
|
|
id: 1,
|
|
|
|
|
value: "已复核"
|
|
|
|
|
}],
|
|
|
|
|
columns: [{
|
|
|
|
|
field: "address",
|
|
|
|
|
title: "地址/排放点",
|
|
|
|
|
@ -508,13 +421,6 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
mapform(newVal, oldVal) {
|
|
|
|
|
this.form.longitude = newVal[0];
|
|
|
|
|
this.form.latitude = newVal[1];
|
|
|
|
|
// if(this.rainType!=4){
|
|
|
|
|
this.form.address = newVal[2];
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
rainType() {
|
|
|
|
|
this.roadsList = []
|
|
|
|
|
},
|
|
|
|
|
@ -529,7 +435,7 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
'searchFields.type': function(val) {
|
|
|
|
|
if (val == 1 || val == 2 || val == 5 || val == 6 || val == 7) {
|
|
|
|
|
if (val == 1 || val == 2 || val == 3 || val == 5 || val == 6 || val == 7) {
|
|
|
|
|
getparameteritem('maintainContent_' + val).then(res => {
|
|
|
|
|
for (var m of res.detail) {
|
|
|
|
|
this.allmaintaninList.push(m)
|
|
|
|
|
@ -543,34 +449,78 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getUserName(row) {
|
|
|
|
|
if (row.admin) {
|
|
|
|
|
return row.admin.name;
|
|
|
|
|
} else if (row.user) {
|
|
|
|
|
return row.user.name;
|
|
|
|
|
} else {
|
|
|
|
|
return "未知";
|
|
|
|
|
}
|
|
|
|
|
methods: {
|
|
|
|
|
initLoad() {
|
|
|
|
|
var that = this;
|
|
|
|
|
var clientHeight = document.documentElement.clientHeight
|
|
|
|
|
var lxHeader_height = 96.5; //查询 头部
|
|
|
|
|
var paginationHeight = 37; //分页的高度
|
|
|
|
|
var topHeight = 50; //页面 头部
|
|
|
|
|
let tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight - 20;
|
|
|
|
|
that.tableHeight = tableHeight;
|
|
|
|
|
that.baseurl = location.host; //process.env.VUE_APP_BASE_API
|
|
|
|
|
// this.uploadOther.token = getToken();
|
|
|
|
|
listarea({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 99
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
|
|
for (var m of res.data) {
|
|
|
|
|
that.selects.areasList.push({
|
|
|
|
|
id: m.id,
|
|
|
|
|
name: m.name
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
listmaintain({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999,
|
|
|
|
|
}).then(response => {
|
|
|
|
|
for (var m of response.data) {
|
|
|
|
|
this.selects.maintaingroupList.push(m)
|
|
|
|
|
}
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
reject(error)
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(page) {
|
|
|
|
|
this.paginations.page = page;
|
|
|
|
|
this.load();
|
|
|
|
|
},
|
|
|
|
|
load(is_export) {
|
|
|
|
|
listmain({
|
|
|
|
|
page: this.paginations.page,
|
|
|
|
|
page_size: this.paginations.page_size,
|
|
|
|
|
...this.searchFields
|
|
|
|
|
}).then(response => {
|
|
|
|
|
let tokens = getToken();
|
|
|
|
|
if (is_export) {
|
|
|
|
|
var url = "/api/admin/rain-maintains/index?token=" + tokens
|
|
|
|
|
for (var m in this.searchFields) {
|
|
|
|
|
url += "&" + m + "=" + this.searchFields[m]
|
|
|
|
|
}
|
|
|
|
|
url = this.baseurl + url
|
|
|
|
|
console.log(url)
|
|
|
|
|
window.open("http://" + url, '_blank')
|
|
|
|
|
this.searchFields.is_export = 0
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.tableData = response.data;
|
|
|
|
|
this.paginations.total = response.total;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
reject(error)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
exportExcel() {
|
|
|
|
|
var that = this
|
|
|
|
|
that.searchFields.is_export = 1
|
|
|
|
|
that.load(true)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getMaintinName(row) {
|
|
|
|
|
if (row.user) {
|
|
|
|
|
if (row.user.maintain) {
|
|
|
|
|
return row.user.maintain.name;
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
exportExcel() {
|
|
|
|
|
var that = this
|
|
|
|
|
that.searchFields.is_export = 1
|
|
|
|
|
that.load(true)
|
|
|
|
|
},
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
|
console.log(val)
|
|
|
|
|
this.reviewList = val
|
|
|
|
|
@ -610,9 +560,6 @@
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
chooseRoad(val) {
|
|
|
|
|
this.form.road_id = val
|
|
|
|
|
},
|
|
|
|
|
remoteRoad() {
|
|
|
|
|
this.roadsList = []
|
|
|
|
|
},
|
|
|
|
|
@ -628,227 +575,44 @@
|
|
|
|
|
} else {
|
|
|
|
|
this.roadsList = []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
resetrainType() {
|
|
|
|
|
this.rainType = 1
|
|
|
|
|
this.rainTypeVisible = false
|
|
|
|
|
},
|
|
|
|
|
submitRainType() {
|
|
|
|
|
var that = this
|
|
|
|
|
this.rainTypeVisible = false
|
|
|
|
|
if (that.rainType == 1 || that.rainType == 2 || that.rainType == 3 || that.rainType == 5 || that.rainType ==
|
|
|
|
|
6 || that.rainType ==
|
|
|
|
|
7) {
|
|
|
|
|
this.$refs.editCirculation.rainType = that.rainType
|
|
|
|
|
this.$refs.editCirculation.getInfo()
|
|
|
|
|
this.$refs.editCirculation.isShow = true
|
|
|
|
|
} else if (that.rainType == 4) {
|
|
|
|
|
this.$refs.editMire.getInfo()
|
|
|
|
|
this.$refs.editMire.isShow = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
initLoad() {
|
|
|
|
|
var that = this;
|
|
|
|
|
var clientHeight = document.documentElement.clientHeight
|
|
|
|
|
var lxHeader_height = 96.5; //查询 头部
|
|
|
|
|
var paginationHeight = 37; //分页的高度
|
|
|
|
|
var topHeight = 50; //页面 头部
|
|
|
|
|
let tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight - 20;
|
|
|
|
|
that.tableHeight = tableHeight;
|
|
|
|
|
that.baseurl = location.host; //process.env.VUE_APP_BASE_API
|
|
|
|
|
this.uploadOther.token = getToken();
|
|
|
|
|
listarea({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 99
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
|
|
for (var m of res.data) {
|
|
|
|
|
that.selects.areasList.push({
|
|
|
|
|
id: m.id,
|
|
|
|
|
name: m.name
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
listmaintain({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999,
|
|
|
|
|
}).then(response => {
|
|
|
|
|
for (var m of response.data) {
|
|
|
|
|
this.selects.maintaingroupList.push(m)
|
|
|
|
|
}
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
reject(error)
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(page) {
|
|
|
|
|
this.paginations.page = page;
|
|
|
|
|
this.load();
|
|
|
|
|
},
|
|
|
|
|
load(is_export) {
|
|
|
|
|
listmain({
|
|
|
|
|
page: this.paginations.page,
|
|
|
|
|
page_size: this.paginations.page_size,
|
|
|
|
|
...this.searchFields
|
|
|
|
|
}).then(response => {
|
|
|
|
|
let tokens = getToken();
|
|
|
|
|
if (is_export) {
|
|
|
|
|
var url = "/api/admin/rain-maintains/index?token=" + tokens
|
|
|
|
|
for (var m in this.searchFields) {
|
|
|
|
|
url += "&" + m + "=" + this.searchFields[m]
|
|
|
|
|
}
|
|
|
|
|
url = this.baseurl + url
|
|
|
|
|
console.log(url)
|
|
|
|
|
window.open("http://" + url, '_blank')
|
|
|
|
|
this.searchFields.is_export = 0
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.tableData = response.data;
|
|
|
|
|
this.paginations.total = response.total;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
reject(error)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
info(obj) {
|
|
|
|
|
var that = this;
|
|
|
|
|
get(obj.id).then(res => {
|
|
|
|
|
let result = Object.assign(that.form, res);
|
|
|
|
|
that.rainType = result.old_type;
|
|
|
|
|
that.nowstatus = result.status;
|
|
|
|
|
that.formdetail.id = result.id
|
|
|
|
|
that.formdetail.end_type = result.end_type
|
|
|
|
|
// that.formdetail.type = parseInt(result.type)
|
|
|
|
|
that.wf_type = result.end_type
|
|
|
|
|
if (result.rain_maintain_logs) {
|
|
|
|
|
for (var k of result.rain_maintain_logs) {
|
|
|
|
|
k.adminName = k.admin ? k.admin.name : ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
that.rainMaintainLogs = result.rain_maintain_logs;
|
|
|
|
|
that.end_types = result.end_type
|
|
|
|
|
if (that.rainType == 1) {
|
|
|
|
|
that.rainTitle = "雨水管道疏挖"
|
|
|
|
|
} else if (that.rainType == 2) {
|
|
|
|
|
that.rainTitle = "雨水管道疏通"
|
|
|
|
|
} else if (that.rainType == 3) {
|
|
|
|
|
that.rainTitle = "汛期助排"
|
|
|
|
|
} else if (that.rainType == 4) {
|
|
|
|
|
that.rainTitle = "污泥外运"
|
|
|
|
|
} else if (that.rainType == 5) {
|
|
|
|
|
that.rainTitle = "出水口排查"
|
|
|
|
|
} else if (that.rainType == 6) {
|
|
|
|
|
that.rainTitle = "专项处理"
|
|
|
|
|
} else if (that.rainType == 7) {
|
|
|
|
|
that.rainTitle = "维修"
|
|
|
|
|
} else {
|
|
|
|
|
that.rainTitle = "雨管养护"
|
|
|
|
|
}
|
|
|
|
|
switch (result.old_type) {
|
|
|
|
|
case 1:
|
|
|
|
|
case 2:
|
|
|
|
|
case 6:
|
|
|
|
|
case 7:
|
|
|
|
|
that.form = result.circulation_info;
|
|
|
|
|
that.form.circulation_id = result.circulation_id;
|
|
|
|
|
that.roaddisabled = true
|
|
|
|
|
that.roadName = result.circulation_info.road ? result.circulation_info.road.name : ""
|
|
|
|
|
that.idname = "circulation_id"
|
|
|
|
|
that.mapform = [result.circulation_info.longitude, result.circulation_info.latitude, result
|
|
|
|
|
.circulation_info.address
|
|
|
|
|
]
|
|
|
|
|
let cir_arrs = result.circulation_info.title_id ? result.circulation_info.title_id.split(",") : []
|
|
|
|
|
for (var m of cir_arrs) {
|
|
|
|
|
that.titleArr.push(parseInt(m))
|
|
|
|
|
}
|
|
|
|
|
let _files = [];
|
|
|
|
|
for (var mod of result.circulation_info.circulation_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "before";
|
|
|
|
|
_files.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.filesList = _files;
|
|
|
|
|
|
|
|
|
|
let _filesafter = [];
|
|
|
|
|
for (var mod of result.circulation_info.circulation_deal_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "after";
|
|
|
|
|
_filesafter.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.dealFilesList = _filesafter;
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
that.form = result.help_discharge_info;
|
|
|
|
|
that.form.help_discharge_id = result.help_discharge_id;
|
|
|
|
|
that.roaddisabled = true
|
|
|
|
|
that.roadName = result.help_discharge_info.road ? result.help_discharge_info.road.name : ""
|
|
|
|
|
that.idname = "help_discharge_id"
|
|
|
|
|
that.mapform = [result.help_discharge_info.longitude, result.help_discharge_info.latitude, result
|
|
|
|
|
.help_discharge_info.address
|
|
|
|
|
]
|
|
|
|
|
let discharge_files = [];
|
|
|
|
|
for (var mod of result.help_discharge_info.help_discharge_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "before";
|
|
|
|
|
discharge_files.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.filesList = discharge_files;
|
|
|
|
|
|
|
|
|
|
let discharge_filesafter = [];
|
|
|
|
|
for (var mod of result.help_discharge_info.help_discharge_deal_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "after";
|
|
|
|
|
discharge_filesafter.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.dealFilesList = discharge_filesafter;
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
that.form = result.mire_info;
|
|
|
|
|
that.form.mire_id = result.mire_id;
|
|
|
|
|
that.roaddisabled = true
|
|
|
|
|
that.roadName = result.mire_info.road ? result.mire_info.road.name : ""
|
|
|
|
|
that.idname = "mire_id";
|
|
|
|
|
let mire_files = [];
|
|
|
|
|
for (var mod of result.mire_info.mire_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "before";
|
|
|
|
|
mire_files.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.filesList = mire_files;
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
that.form = result.out_water_info;
|
|
|
|
|
that.form.out_water_id = result.out_water_id;
|
|
|
|
|
that.idname = "out_water_id"
|
|
|
|
|
that.roaddisabled = true
|
|
|
|
|
that.roadName = result.out_water_info.road ? result.out_water_info.road.name : ""
|
|
|
|
|
that.mapform = [result.out_water_info.longitude, result.out_water_info.latitude, result.out_water_info
|
|
|
|
|
.address
|
|
|
|
|
]
|
|
|
|
|
let water_arrs = result.out_water_info.title_id ? result.out_water_info.title_id.split(",") : []
|
|
|
|
|
for (var m of water_arrs) {
|
|
|
|
|
that.titleArr.push(parseInt(m))
|
|
|
|
|
}
|
|
|
|
|
let water_files = [];
|
|
|
|
|
for (var mod of result.out_water_info.out_water_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "before";
|
|
|
|
|
water_files.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.filesList = water_files;
|
|
|
|
|
|
|
|
|
|
let water_filesafter = [];
|
|
|
|
|
for (var mod of result.out_water_info.out_water_deal_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "after";
|
|
|
|
|
water_filesafter.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.dealFilesList = water_filesafter;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
edit(obj) {
|
|
|
|
|
var that = this;
|
|
|
|
|
if (obj) {
|
|
|
|
|
if (obj.old_type == 1 || obj.old_type == 2 || obj.old_type == 3 || obj.old_type == 5 || obj.old_type == 6 ||
|
|
|
|
|
obj.old_type ==
|
|
|
|
|
7) {
|
|
|
|
|
this.$refs.editCirculation.rainType = obj.old_type
|
|
|
|
|
this.$refs.editCirculation.infoId = obj.id
|
|
|
|
|
this.$refs.editCirculation.getInfo(obj.id)
|
|
|
|
|
this.$refs.editCirculation.isShow = true
|
|
|
|
|
} else if (obj.old_type == 4) {
|
|
|
|
|
this.$refs.editMire.infoId = obj.id
|
|
|
|
|
this.$refs.editMire.getInfo(obj.id)
|
|
|
|
|
this.$refs.editMire.isShow = true
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
this.rainTypeVisible = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 查看 审核 办结
|
|
|
|
|
showInfo(obj, formtype) {
|
|
|
|
|
@ -869,25 +633,6 @@
|
|
|
|
|
this.$refs.showMireInfo.getInfo(obj.id)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
edit(obj) {
|
|
|
|
|
var that = this;
|
|
|
|
|
if (obj) {
|
|
|
|
|
if (obj.old_type == 1 || obj.old_type == 2 || obj.old_type == 3 || obj.old_type == 5 || obj.old_type == 6 ||
|
|
|
|
|
obj.old_type ==
|
|
|
|
|
7) {
|
|
|
|
|
this.$refs.editCirculation.rainType = obj.old_type
|
|
|
|
|
this.$refs.editCirculation.infoId = obj.id
|
|
|
|
|
this.$refs.editCirculation.getInfo(obj.id)
|
|
|
|
|
this.$refs.editCirculation.isShow = true
|
|
|
|
|
} else if (obj.old_type == 4) {
|
|
|
|
|
this.$refs.editMire.infoId = obj.id
|
|
|
|
|
this.$refs.editMire.getInfo(obj.id)
|
|
|
|
|
this.$refs.editMire.isShow = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
del(obj) {
|
|
|
|
|
var that = this;
|
|
|
|
|
if (obj) {
|
|
|
|
|
@ -907,282 +652,29 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getUserName(row) {
|
|
|
|
|
if (row.admin) {
|
|
|
|
|
return row.admin.name;
|
|
|
|
|
} else if (row.user) {
|
|
|
|
|
return row.user.name;
|
|
|
|
|
} else {
|
|
|
|
|
return "未知";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
getMaintinName(row) {
|
|
|
|
|
if (row.user) {
|
|
|
|
|
if (row.user.maintain) {
|
|
|
|
|
return row.user.maintain.name;
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
returnTitleId(arr) {
|
|
|
|
|
if (arr.length == 0) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let getArr = ""
|
|
|
|
|
for (var m of arr) {
|
|
|
|
|
getArr += m + ","
|
|
|
|
|
}
|
|
|
|
|
getArr = getArr.substring(0, getArr.length - 1)
|
|
|
|
|
return getArr
|
|
|
|
|
},
|
|
|
|
|
submitForm(formName) {
|
|
|
|
|
var that = this;
|
|
|
|
|
var listUrlbefore = []
|
|
|
|
|
for (var m of this.filesList) {
|
|
|
|
|
m.photoType = "before";
|
|
|
|
|
if (m.response)
|
|
|
|
|
listUrlbefore.push({
|
|
|
|
|
"upload_id": m.response.id
|
|
|
|
|
});
|
|
|
|
|
else
|
|
|
|
|
listUrlbefore.push({
|
|
|
|
|
"upload_id": m.id
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.form.files_list = listUrlbefore;
|
|
|
|
|
let listUrlafter = [];
|
|
|
|
|
for (var m of this.dealFilesList) {
|
|
|
|
|
if (m.response)
|
|
|
|
|
listUrlafter.push({
|
|
|
|
|
"upload_id": m.response.id
|
|
|
|
|
});
|
|
|
|
|
else
|
|
|
|
|
listUrlafter.push({
|
|
|
|
|
"upload_id": m.upload_id
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.form.files_deal_list = listUrlafter
|
|
|
|
|
that.form.title_id = this.returnTitleId(that.titleArr)
|
|
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
that.submitAll(that.rainType, that.form[this.idname])
|
|
|
|
|
} else {
|
|
|
|
|
this.$Message.error('数据校验失败');
|
|
|
|
|
console.log('error submit!!');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
submitFormDetail(formName, status) {
|
|
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
that.formdetail.status = status
|
|
|
|
|
console.log(that.formdetail)
|
|
|
|
|
// return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update(that.formdetail).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormDetailVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
resetForm(formName) {
|
|
|
|
|
var that = this;
|
|
|
|
|
that.filesList = [];
|
|
|
|
|
that.dealFilesList = [];
|
|
|
|
|
that.mapform = ['', '', ''];
|
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
that.dialogFormDetailVisible = false;
|
|
|
|
|
},
|
|
|
|
|
resetFormDetail(formName) {
|
|
|
|
|
var that = this;
|
|
|
|
|
that.filesList = [];
|
|
|
|
|
that.dealFilesList = [];
|
|
|
|
|
that.mapform = ['', '', ''];
|
|
|
|
|
that.form = {};
|
|
|
|
|
that.rainMaintainLogs = []
|
|
|
|
|
that.end_types = 0;
|
|
|
|
|
that.formdetail.type = 0
|
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
that.dialogFormDetailVisible = false;
|
|
|
|
|
},
|
|
|
|
|
handleRemove(file) {
|
|
|
|
|
if (file.photoType == "before") {
|
|
|
|
|
for (var i = 0; i < this.filesList.length; i++) {
|
|
|
|
|
if (this.filesList[i].url == file.url) {
|
|
|
|
|
this.filesList.splice(i, 1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else if (file.photoType == "after") {
|
|
|
|
|
for (var i = 0; i < this.dealFilesList.length; i++) {
|
|
|
|
|
if (this.dealFilesList[i].url == file.url) {
|
|
|
|
|
this.dealFilesList.splice(i, 1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handlePictureCardPreview(file) {
|
|
|
|
|
this.dialogImageUrl = file.url;
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
handlesuccess(response, file, fileList, index) {
|
|
|
|
|
if (index == 1) {
|
|
|
|
|
file.photoType = "before"
|
|
|
|
|
this.filesList = fileList;
|
|
|
|
|
// this.form.files_list = listUrl;
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
file.photoType = "after"
|
|
|
|
|
this.dealFilesList = fileList
|
|
|
|
|
}
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '上传成功',
|
|
|
|
|
type: 'success'
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleError(err, file, fileList) {
|
|
|
|
|
this.$message.error('上传失败,重新上传');
|
|
|
|
|
},
|
|
|
|
|
resetrainType() {
|
|
|
|
|
this.rainTypeVisible = false
|
|
|
|
|
},
|
|
|
|
|
submitRainType() {
|
|
|
|
|
var that = this
|
|
|
|
|
if (that.rainType == 1 || that.rainType == 2 || that.rainType == 3 || that.rainType == 5 || that.rainType ==
|
|
|
|
|
6 || that.rainType ==
|
|
|
|
|
7) {
|
|
|
|
|
this.$refs.editCirculation.rainType = that.rainType
|
|
|
|
|
this.$refs.editCirculation.getInfo()
|
|
|
|
|
this.$refs.editCirculation.isShow = true
|
|
|
|
|
} else if (that.rainType == 4) {
|
|
|
|
|
this.$refs.editMire.getInfo()
|
|
|
|
|
this.$refs.editMire.isShow = true
|
|
|
|
|
}
|
|
|
|
|
this.rainTypeVisible = false
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.rainTypeVisible = false
|
|
|
|
|
if (that.rainType == 1 || that.rainType == 2 || that.rainType == 5 || that.rainType == 6 || that.rainType ==
|
|
|
|
|
7 || that.rainType == 3) {
|
|
|
|
|
if (that.rainType == 1) {
|
|
|
|
|
that.rainTitle = "雨水管道疏挖"
|
|
|
|
|
} else if (that.rainType == 2) {
|
|
|
|
|
that.rainTitle = "雨水管道疏通"
|
|
|
|
|
} else if (that.rainType == 5) {
|
|
|
|
|
that.rainTitle = "出水口排查"
|
|
|
|
|
} else if (that.rainType == 3) {
|
|
|
|
|
that.rainTitle = "汛期助排"
|
|
|
|
|
} else if (that.rainType == 6) {
|
|
|
|
|
that.rainTitle = "专项处理"
|
|
|
|
|
} else if (that.rainType == 7) {
|
|
|
|
|
that.rainTitle = "维修"
|
|
|
|
|
} else {
|
|
|
|
|
that.rainTitle = "雨管养护"
|
|
|
|
|
}
|
|
|
|
|
getparameteritem('maintainContent_' + that.rainType).then(res => {
|
|
|
|
|
that.maintaninList = res.detail
|
|
|
|
|
})
|
|
|
|
|
} else if (that.rainType == 4) {
|
|
|
|
|
that.rainTitle = "污泥外运"
|
|
|
|
|
that.maintaninList = []
|
|
|
|
|
} else {
|
|
|
|
|
that.rainTitle = "雨水管道疏挖"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.dialogFormVisible = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
submitAll(type, id) {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
// return
|
|
|
|
|
that.form.type = type;
|
|
|
|
|
console.log(that.form.type)
|
|
|
|
|
switch (parseInt(type)) {
|
|
|
|
|
case 1:
|
|
|
|
|
case 2:
|
|
|
|
|
case 6:
|
|
|
|
|
case 7:
|
|
|
|
|
if (id) {
|
|
|
|
|
savecirculation(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
storecirculation(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
if (id) {
|
|
|
|
|
savedischarge(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
storedischarge(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
if (id) {
|
|
|
|
|
savemire(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
storemire(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
if (id) {
|
|
|
|
|
savewater(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
storewater(that.form).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.load();
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|