parent
9ae2a73fa0
commit
9ba101c1f8
@ -0,0 +1,62 @@
|
||||
<template>
|
||||
<el-dialog class="common-dialog" :title="title" :visible.sync="diaShow" @close="coloseDia" :width="width">
|
||||
<div class="dialogConcent">
|
||||
<el-scrollbar style="flex: 1">
|
||||
<slot name="content"></slot>
|
||||
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button v-if="type=='showinfo'" @click="coloseDia">关 闭</el-button>
|
||||
<slot name="footerbtn"></slot>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:"dialogShow",
|
||||
props:{
|
||||
title:{
|
||||
type:String,
|
||||
default:""
|
||||
},
|
||||
width:{
|
||||
type:String,
|
||||
default:"60%"
|
||||
},
|
||||
isShow: {
|
||||
type: Boolean,
|
||||
default: () => {
|
||||
return false
|
||||
}
|
||||
},
|
||||
type:{
|
||||
type:String,
|
||||
default:"showinfo"
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
diaShow:this.isShow,
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
isShow(val){
|
||||
this.diaShow = this.isShow
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
coloseDia(){
|
||||
this.$emit('update:isShow',false)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.dialogConcent {
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,102 @@
|
||||
<template>
|
||||
<!-- 工地巡查 -->
|
||||
<dialogShow :title="title" :is-show.sync="isShow" :width="width">
|
||||
<template v-slot:content>
|
||||
<el-form :model="form" :rules="{}" ref="formdetail" label-position="right"
|
||||
:label-width="labelwidth">
|
||||
<el-row>
|
||||
|
||||
|
||||
|
||||
</el-row>
|
||||
|
||||
</el-form>
|
||||
|
||||
</template>
|
||||
|
||||
<!-- <template v-slot:footerbtn>
|
||||
123
|
||||
</template> -->
|
||||
|
||||
</dialogShow>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
get
|
||||
} from '../../../../api/rain/maintain.js'
|
||||
import {
|
||||
getparameteritem
|
||||
} from '../../../../api/system/dictionary.js'
|
||||
import dialogShow from '@/components/dialogShow'
|
||||
export default {
|
||||
components: {
|
||||
dialogShow
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: "雨水管道疏挖",
|
||||
width: "60%",
|
||||
labelwidth:"120px",
|
||||
isShow: false,
|
||||
filesList: [],
|
||||
dealFilesList: [],
|
||||
yhtypeList: [{
|
||||
id: 1,
|
||||
name: "雨水管道疏挖"
|
||||
}, {
|
||||
id: 2,
|
||||
name: "雨水管道疏通"
|
||||
}, {
|
||||
id: 3,
|
||||
name: "汛期助排"
|
||||
}, {
|
||||
id: 4,
|
||||
name: "污泥外运"
|
||||
}, {
|
||||
id: 5,
|
||||
name: "出水口排查"
|
||||
}, {
|
||||
id: 6,
|
||||
name: "专项处理"
|
||||
}, {
|
||||
id: 7,
|
||||
name: "维修"
|
||||
}],
|
||||
form: {
|
||||
|
||||
},
|
||||
rules: {}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
created(){
|
||||
this.initload()
|
||||
},
|
||||
methods: {
|
||||
initload(){
|
||||
|
||||
},
|
||||
getSiteInfo(id) {
|
||||
if (id) {
|
||||
var that = this;
|
||||
that.form = {}
|
||||
get(id).then(res => {
|
||||
let result = Object.assign(that.form, res);
|
||||
|
||||
}).catch(error => {
|
||||
//reject(error)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Loading…
Reference in new issue