Browse Source

字段修正

master_tdsql
zth 4 months ago
parent
commit
ebada89fc5
  1. 19
      src/views/dike/engineeringCondition/dikeBaseInfo/index.vue
  2. 229
      src/views/dike/engineeringCondition/dikeBaseInfo/options/basePage.vue

19
src/views/dike/engineeringCondition/dikeBaseInfo/index.vue

@ -6,7 +6,7 @@
v-for="(item, index) in routeList" v-for="(item, index) in routeList"
:key="item + index" :key="item + index"
:to="{ path: item.path }" :to="{ path: item.path }"
>{{ item.routeName }}</el-breadcrumb-item >{{ item.routeName }}</el-breadcrumb-item
> >
</el-breadcrumb> </el-breadcrumb>
<el-form <el-form
@ -73,7 +73,7 @@
>搜索</el-button >搜索</el-button
> --> > -->
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button >重置</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -155,7 +155,7 @@
icon="el-icon-view" icon="el-icon-view"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['yg:dikeInfo:view']" v-hasPermi="['yg:dikeInfo:view']"
>查看状况</el-button >查看状况</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
@ -468,7 +468,16 @@ export default {
}, },
// //
dikePattFormat(row, column) { dikePattFormat(row, column) {
return this.selectDictLabel(this.dikePattOptions, row.dikePatt); // row.dikePatt
let dikePattArray = row.dikePatt.split(',');
//
let formattedLabels = dikePattArray.map(code => {
return this.selectDictLabel(this.dikePattOptions, code);
});
//
return formattedLabels.join(', ');
}, },
// //
dikeTypeFormat(row, column) { dikeTypeFormat(row, column) {
@ -476,7 +485,7 @@ export default {
}, },
// //
engGradFormat(row, column) { engGradFormat(row, column) {
return this.selectDictLabel(this.engGradOptions, row.engGrad); return this.selectDictLabel(this.engGradOptions, row.dikeGrad);
}, },
// //
mainBuildGradFormat(row, column) { mainBuildGradFormat(row, column) {

229
src/views/dike/engineeringCondition/dikeBaseInfo/options/basePage.vue

@ -19,14 +19,14 @@
<template slot="label"> 堤防代码 </template> <template slot="label"> 堤防代码 </template>
{{ this.form.dikeCode }} {{ this.form.dikeCode }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 行政区划 </template>--> <!-- <template slot="label"> 行政区划 </template>-->
<!-- {{ $formatAdcd(this.form) }}--> <!-- {{ $formatAdcd(this.form) }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 安全类别 </template>--> <!-- <template slot="label"> 安全类别 </template>-->
<!-- {{ securityCategoryFormat(this.form) }}--> <!-- {{ securityCategoryFormat(this.form) }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 堤防型式 </template> <template slot="label"> 堤防型式 </template>
{{ dikePattFormat(this.form) }} {{ dikePattFormat(this.form) }}
@ -47,19 +47,19 @@
<template slot="label"> 终点纬度 </template> <template slot="label"> 终点纬度 </template>
{{ this.form.dikeEndLat }} {{ this.form.dikeEndLat }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤防所在位置 </template>--> <!-- <template slot="label"> 堤防所在位置 </template>-->
<!-- {{ this.form.dikeLoc }}--> <!-- {{ this.form.dikeLoc }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 堤防类型 </template> <template slot="label"> 堤防类型 </template>
{{ dikeTypeFormat(this.form) }} {{ dikeTypeFormat(this.form) }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤防用途 </template>--> <!-- <template slot="label"> 堤防用途 </template>-->
<!-- {{ this.form.dikeUse }}--> <!-- {{ this.form.dikeUse }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 堤防级别 </template> <template slot="label"> 堤防级别 </template>
{{ engGradFormat(this.form) }} {{ engGradFormat(this.form) }}
@ -72,60 +72,55 @@
<template slot="label"> 管理单位 </template> <template slot="label"> 管理单位 </template>
{{ this.form.mnun }} {{ this.form.mnun }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 主要建筑物级别 </template>--> <!-- <template slot="label"> 主要建筑物级别 </template>-->
<!-- {{ mainBuildGradFormat(this.form) }}--> <!-- {{ mainBuildGradFormat(this.form) }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 最大过闸流量 </template>--> <!-- <template slot="label"> 最大过闸流量 </template>-->
<!-- {{ this.form.desLockDisc }}--> <!-- {{ this.form.desLockDisc }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 闸孔数量 </template>--> <!-- <template slot="label"> 闸孔数量 </template>-->
<!-- {{ this.form.gaorNum }}--> <!-- {{ this.form.gaorNum }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 闸孔总净宽 </template>--> <!-- <template slot="label"> 闸孔总净宽 </template>-->
<!-- {{ this.form.gaorTotNetWid }}--> <!-- {{ this.form.gaorTotNetWid }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 工程建设情况 </template>--> <!-- <template slot="label"> 工程建设情况 </template>-->
<!-- {{ this.form.engStat }}--> <!-- {{ this.form.engStat }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 开工时间 </template>--> <!-- <template slot="label"> 开工时间 </template>-->
<!-- {{ this.form.startDate }}--> <!-- {{ this.form.startDate }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 建成时间 </template>--> <!-- <template slot="label"> 建成时间 </template>-->
<!-- {{ this.form.compDate }}--> <!-- {{ this.form.compDate }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 归口管理部门 </template>--> <!-- <template slot="label"> 归口管理部门 </template>-->
<!-- {{ this.form.admDep }}--> <!-- {{ this.form.admDep }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 是否为套闸工程 </template>--> <!-- <template slot="label"> 是否为套闸工程 </template>-->
<!-- {{ isGateProjectFormat(this.form) }}--> <!-- {{ isGateProjectFormat(this.form) }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 观测项目 </template>--> <!-- <template slot="label"> 观测项目 </template>-->
<!-- {{ this.form.observationProject }}--> <!-- {{ this.form.observationProject }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 水准基面 </template>--> <!-- <template slot="label"> 水准基面 </template>-->
<!-- {{ this.form.levelDatum }}--> <!-- {{ this.form.levelDatum }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 堤防概况 </template> <template slot="label"> 堤防概况 </template>
{{ this.form.sluiceOverview }} {{ this.form.sluiceOverview }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 堤防概况 </template>
{{ this.form.sluiceOverview }}
</el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 起点所在位置 </template> <template slot="label"> 起点所在位置 </template>
{{ this.form.startLoc }} {{ this.form.startLoc }}
@ -138,26 +133,26 @@
<template slot="label"> 堤防长度 </template> <template slot="label"> 堤防长度 </template>
{{ this.form.dikeLen }} {{ this.form.dikeLen }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤防起点桩号 </template>--> <!-- <template slot="label"> 堤防起点桩号 </template>-->
<!-- {{ this.form.dikeStartNum }}--> <!-- {{ this.form.dikeStartNum }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤防终点桩号 </template>--> <!-- <template slot="label"> 堤防终点桩号 </template>-->
<!-- {{ this.form.dikeEndNum }}--> <!-- {{ this.form.dikeEndNum }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 工程任务 </template> <template slot="label"> 工程任务 </template>
{{ engTaskFormat(this.form) }} {{ engTaskFormat(this.form) }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 所在河流 </template>--> <!-- <template slot="label"> 所在河流 </template>-->
<!-- {{ this.form.dikeRiver }}--> <!-- {{ this.form.dikeRiver }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 河流岸别 </template>--> <!-- <template slot="label"> 河流岸别 </template>-->
<!-- {{ this.form.dikeRvbk }}--> <!-- {{ this.form.dikeRvbk }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 规划防洪潮标准 </template> <template slot="label"> 规划防洪潮标准 </template>
{{ this.form.dikePlnStda }} {{ this.form.dikePlnStda }}
@ -175,10 +170,10 @@
<template slot="label"> 不达标长度 </template> <template slot="label"> 不达标长度 </template>
{{ this.form.dikeNotStdaLen }} {{ this.form.dikeNotStdaLen }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 不达标位置 </template>--> <!-- <template slot="label"> 不达标位置 </template>-->
<!-- {{ this.form.dikeNotStdaLoc }}--> <!-- {{ this.form.dikeNotStdaLoc }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 高程系统 </template> <template slot="label"> 高程系统 </template>
{{ elevSysFormat(this.form) }} {{ elevSysFormat(this.form) }}
@ -199,14 +194,14 @@
<template slot="label"> 防浪墙顶最高高程 </template> <template slot="label"> 防浪墙顶最高高程 </template>
{{ this.form.dikeWawaMaxElev }} {{ this.form.dikeWawaMaxElev }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 防浪墙顶最低高程位置 </template>--> <!-- <template slot="label"> 防浪墙顶最低高程位置 </template>-->
<!-- {{ this.form.dikeWawaMinLoc }}--> <!-- {{ this.form.dikeWawaMinLoc }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 防浪墙顶最高高程位置 </template>--> <!-- <template slot="label"> 防浪墙顶最高高程位置 </template>-->
<!-- {{ this.form.dikeWawaMaxLoc }}--> <!-- {{ this.form.dikeWawaMaxLoc }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 堤顶最低高程 </template> <template slot="label"> 堤顶最低高程 </template>
{{ this.form.dikeElevMin }} {{ this.form.dikeElevMin }}
@ -215,22 +210,22 @@
<template slot="label"> 堤顶最高高程 </template> <template slot="label"> 堤顶最高高程 </template>
{{ this.form.dikeElevMax }} {{ this.form.dikeElevMax }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤防最小高度 </template>--> <!-- <template slot="label"> 堤防最小高度 </template>-->
<!-- {{ this.form.dikeHeigMin }}--> <!-- {{ this.form.dikeHeigMin }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤防最大高度 </template>--> <!-- <template slot="label"> 堤防最大高度 </template>-->
<!-- {{ this.form.dikeHeigMax }}--> <!-- {{ this.form.dikeHeigMax }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤顶最小宽度 </template>--> <!-- <template slot="label"> 堤顶最小宽度 </template>-->
<!-- {{ this.form.dikeTopWidMin }}--> <!-- {{ this.form.dikeTopWidMin }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<!-- <el-descriptions-item>--> <!-- <el-descriptions-item>-->
<!-- <template slot="label"> 堤顶最大宽度 </template>--> <!-- <template slot="label"> 堤顶最大宽度 </template>-->
<!-- {{ this.form.dikeTopWidMax }}--> <!-- {{ this.form.dikeTopWidMax }}-->
<!-- </el-descriptions-item>--> <!-- </el-descriptions-item>-->
<el-descriptions-item> <el-descriptions-item>
<template slot="label"> 穿堤水闸数 </template> <template slot="label"> 穿堤水闸数 </template>
{{ this.form.sluicesAmount }} {{ this.form.sluicesAmount }}
@ -518,7 +513,16 @@ export default {
}, },
// //
dikePattFormat(row, column) { dikePattFormat(row, column) {
return this.selectDictLabel(this.dikePattOptions, row.dikePatt); // row.dikePatt
let dikePattArray = row.dikePatt.split(',');
//
let formattedLabels = dikePattArray.map(code => {
return this.selectDictLabel(this.dikePattOptions, code);
});
//
return formattedLabels.join(', ');
}, },
// //
dikeTypeFormat(row, column) { dikeTypeFormat(row, column) {
@ -526,7 +530,7 @@ export default {
}, },
// //
engGradFormat(row, column) { engGradFormat(row, column) {
return this.selectDictLabel(this.engGradOptions, row.engGrad); return this.selectDictLabel(this.engGradOptions, row.dikeGrad);
}, },
// //
mainBuildGradFormat(row, column) { mainBuildGradFormat(row, column) {
@ -549,6 +553,9 @@ export default {
}, },
// //
elevSysFormat(row, column) { elevSysFormat(row, column) {
if (row.elevSys.length < 2) {
row.elevSys = "0" + row.elevSys
}
return this.selectDictLabel(this.elevSysOptions, row.elevSys); return this.selectDictLabel(this.elevSysOptions, row.elevSys);
}, },
// //

Loading…
Cancel
Save