|
|
@ -7,11 +7,11 @@ |
|
|
|
<div class="defectInformation"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="tc-text2">堤防名称:</div> |
|
|
|
<div class="tc-text1">{{ form.dikeName }}</div> |
|
|
|
<div class="tc-text2">水闸名称:</div> |
|
|
|
<div class="tc-text1">{{ form.sluiceName }}</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="tc-text2">堤防巡查责任人:</div> |
|
|
|
<div class="tc-text2">水闸巡查责任人:</div> |
|
|
|
<div class="tc-text1">{{ form.createName }}</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
@ -21,7 +21,7 @@ |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="tc-text2">堤防巡查开始/结束时间:</div> |
|
|
|
<div class="tc-text2">水闸巡查开始/结束时间:</div> |
|
|
|
<div class="tc-text1">{{ form.startDate }}/{{ form.endDate }}</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
@ -116,7 +116,7 @@ |
|
|
|
style="margin-right: 16px;" |
|
|
|
size="small" |
|
|
|
type="primary" |
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:attachment']" |
|
|
|
v-hasPermi="['sz:run:patrol:maintenance:detail:attachment']" |
|
|
|
>上传</el-button> |
|
|
|
<div slot="tip" style="margin-top: 0" class="el-upload__tip">文件上传支持.jpg.png.tif.gif 单张图片5M以内,最多上传3张</div> |
|
|
|
</div> |
|
|
@ -155,7 +155,7 @@ |
|
|
|
size="small" |
|
|
|
style="margin-right: 10px;" |
|
|
|
type="text" |
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:item:upload']" |
|
|
|
v-hasPermi="['sz:run:patrol:maintenance:detail:item:upload']" |
|
|
|
>上传</el-button> |
|
|
|
</el-upload> |
|
|
|
<el-popconfirm |
|
|
@ -172,7 +172,7 @@ |
|
|
|
size="small" |
|
|
|
:disabled="$route.query.mode === 'check'" |
|
|
|
slot="reference" |
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:item:del']" |
|
|
|
v-hasPermi="['sz:run:patrol:maintenance:detail:item:del']" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</el-popconfirm> |
|
|
@ -185,13 +185,13 @@ |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
@click="handleSave(true)" |
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:submit']" |
|
|
|
v-hasPermi="['sz:run:patrol:maintenance:detail:submit']" |
|
|
|
>保存并提交</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
@click="handleSave(false)" |
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:save']" |
|
|
|
v-hasPermi="['sz:run:patrol:maintenance:detail:save']" |
|
|
|
>保存</el-button |
|
|
|
> |
|
|
|
<el-button @click="$router.go(-1)">返回</el-button> |
|
|
@ -203,7 +203,7 @@ import TopBackTitle from "@/components/TopBackTitle/index.vue"; |
|
|
|
import { calcTableHeight } from "@/mixins/calcTableHeight"; |
|
|
|
import SyMixMap from "@/views/components/SyMixMap.vue"; |
|
|
|
import { uploadFileData } from "@/api/system/upload"; |
|
|
|
import { getV2Yh, postV2Yh, gettV2Record } from "@/api/dike/patrolMaintenance"; |
|
|
|
import { getV2Yh, postV2Yh, gettV2Record } from "@/api/sluice/patrolMaintenance"; |
|
|
|
import { getDictMapData } from "@/api/system/dict/data"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
|
|
@ -237,7 +237,7 @@ export default { |
|
|
|
images: [], |
|
|
|
createName: '', |
|
|
|
userName: '', |
|
|
|
dikeName: '', |
|
|
|
sluiceName: '', |
|
|
|
category: '', |
|
|
|
parts: '', |
|
|
|
partsName: '', |
|
|
@ -247,8 +247,8 @@ export default { |
|
|
|
problemImages: '', |
|
|
|
problemLevel: '', |
|
|
|
createUid: '', |
|
|
|
dikeCode: '', |
|
|
|
dikeType: '', |
|
|
|
sluiceCode: '', |
|
|
|
sluiceType: '', |
|
|
|
type: '', |
|
|
|
time: [], |
|
|
|
scope: '', |
|
|
@ -256,7 +256,7 @@ export default { |
|
|
|
rules: { |
|
|
|
userName: [{required: true}], |
|
|
|
projectName: [{required: true}], |
|
|
|
dikeName: [{required: true}], |
|
|
|
sluiceName: [{required: true}], |
|
|
|
inspectionCategory: [{required: true}], |
|
|
|
time: [{required: true, message: "请选择巡查时间", trigger: "change"}], |
|
|
|
describe: [{required: true, message: "输入巡查详情", trigger: "change"}], |
|
|
@ -286,15 +286,15 @@ export default { |
|
|
|
this.form.createName = checking.data.createName |
|
|
|
this.form.userName = this.userName |
|
|
|
this.form.userId = this.userId |
|
|
|
this.form.dikeName = checking.data.dikeName |
|
|
|
this.form.sluiceName = checking.data.sluiceName |
|
|
|
this.form.checkingId = checking.data.checkingId |
|
|
|
this.form.checkingName = checking.data.checkingName |
|
|
|
this.form.status = checking.data.status |
|
|
|
this.form.problems = checking.data.problems |
|
|
|
this.form.category = checking.data.category |
|
|
|
this.form.createUid = checking.data.createUid |
|
|
|
this.form.dikeCode = checking.data.dikeCode |
|
|
|
this.form.dikeType = checking.data.dikeType |
|
|
|
this.form.sluiceCode = checking.data.sluiceCode |
|
|
|
this.form.sluiceType = checking.data.sluiceType |
|
|
|
this.form.type = checking.data.type |
|
|
|
this.form.startDate = checking.data.startDate |
|
|
|
this.form.endDate = checking.data.endDate |
|
|
@ -303,7 +303,7 @@ export default { |
|
|
|
this.form.content = item.content |
|
|
|
this.form.position = item.position |
|
|
|
this.form.parts = item.parts |
|
|
|
getDictMapData("df_xs_c_classfy").then((res) => { |
|
|
|
getDictMapData("sz_xs_c_classfy").then((res) => { |
|
|
|
let parts = '' |
|
|
|
item.parts.forEach((part) => { |
|
|
|
if (parts) { |
|
|
@ -404,9 +404,9 @@ export default { |
|
|
|
if (valid) { |
|
|
|
const data = { |
|
|
|
name: this.form.checkingName, |
|
|
|
dikeCode: this.form.dikeCode, |
|
|
|
dikeType: this.form.dikeType, |
|
|
|
dikeName: this.form.dikeName, |
|
|
|
sluiceCode: this.form.sluiceCode, |
|
|
|
sluiceType: this.form.sluiceType, |
|
|
|
sluiceName: this.form.sluiceName, |
|
|
|
status: this.form.status, |
|
|
|
type: this.form.type, |
|
|
|
category: this.form.category, |
|
|
|