养护新增

master
lion 3 years ago
parent baa8dd12b1
commit b9e5de2df9

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<!-- 疏通1 疏挖2 专项处理6 维修7 出水口5 汛期助排 3 --> <!-- 疏通1 疏挖2 专项处理6 维修7 出水口5 汛期助排 3 -->
<dialogShow :title="title" :is-show.sync="isShow" :width="width"> <dialogShow :title="title" :is-show.sync="isShow" :width="width" @resetform="resetForm('form')">
<template v-slot:content> <template v-slot:content>
<el-form :model="form" :rules="rules" ref="form" label-position="right" :label-width="labelwidth"> <el-form :model="form" :rules="rules" ref="form" label-position="right" :label-width="labelwidth">
<el-row> <el-row>
@ -236,13 +236,13 @@
infoId(val) { infoId(val) {
this.infoId = val this.infoId = val
}, },
rainType(val) { rainType(newval) {
var that = this var that = this
if (val) { if (newval) {
that.rainType = val that.rainType = newval
that.form.type = val that.form.type = newval
for (var m of that.yhtypeList) { for (var m of that.yhtypeList) {
if (m.id == val) { if (m.id == newval) {
that.title = m.name that.title = m.name
} }
} }
@ -251,7 +251,6 @@
that.form.type = 1 that.form.type = 1
that.title = "雨水管道疏挖" that.title = "雨水管道疏挖"
} }
}, },
mapform(newVal, oldVal) { mapform(newVal, oldVal) {
this.form.longitude = newVal[0]; this.form.longitude = newVal[0];
@ -284,7 +283,7 @@
}, },
getInfo(id) { getInfo(id) {
var that = this; var that = this;
this.resetForm() // this.resetForm()
// that.mainList = that.maintaninList['maintainContent_' + this.rainType] // that.mainList = that.maintaninList['maintainContent_' + this.rainType]
if (id) { if (id) {
that.form = {} that.form = {}
@ -460,7 +459,8 @@
that.filesList = []; that.filesList = [];
that.dealFilesList = []; that.dealFilesList = [];
that.titleArr = [] that.titleArr = []
that.roadName = "" that.roadName = ""
that.rainType = ""
that.roaddisabled = false that.roaddisabled = false
that.mapform = ['', '', '']; that.mapform = ['', '', ''];
this.form = { this.form = {

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<!--污泥外运 4 --> <!--污泥外运 4 -->
<dialogShow :title="title" :is-show.sync="isShow" :width="width"> <dialogShow :title="title" :is-show.sync="isShow" :width="width" @resetform="resetForm('form')">
<template v-slot:content> <template v-slot:content>
<el-form :model="form" :rules="rules" ref="form" label-position="right" :label-width="labelwidth"> <el-form :model="form" :rules="rules" ref="form" label-position="right" :label-width="labelwidth">
<el-row> <el-row>
@ -146,7 +146,7 @@
initload() {}, initload() {},
getInfo(id) { getInfo(id) {
var that = this; var that = this;
this.resetForm() // this.resetForm()
// that.mainList = that.maintaninList['maintainContent_' + this.rainType] // that.mainList = that.maintaninList['maintainContent_' + this.rainType]
if (id) { if (id) {
that.form = {} that.form = {}
@ -225,7 +225,8 @@
resetForm(formName) { resetForm(formName) {
var that = this; var that = this;
that.filesList = []; that.filesList = [];
that.roadName = "" that.roadName = ""
that.rainType = ""
that.roaddisabled = false that.roaddisabled = false
this.form = { this.form = {
type: 4 type: 4

@ -610,7 +610,8 @@
this.$refs.editMire.infoId = "" this.$refs.editMire.infoId = ""
this.$refs.editMire.getInfo() this.$refs.editMire.getInfo()
this.$refs.editMire.isShow = true this.$refs.editMire.isShow = true
} }
that.rainType = 1
}, },
edit(obj) { edit(obj) {
var that = this; var that = this;

Loading…
Cancel
Save