Browse Source

字段修正

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

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

@ -468,7 +468,16 @@ export default {
},
//
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) {
@ -476,7 +485,7 @@ export default {
},
//
engGradFormat(row, column) {
return this.selectDictLabel(this.engGradOptions, row.engGrad);
return this.selectDictLabel(this.engGradOptions, row.dikeGrad);
},
//
mainBuildGradFormat(row, column) {

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

@ -121,11 +121,6 @@
<template slot="label"> 堤防概况 </template>
{{ this.form.sluiceOverview }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 堤防概况 </template>
{{ this.form.sluiceOverview }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 起点所在位置 </template>
{{ this.form.startLoc }}
@ -518,7 +513,16 @@ export default {
},
//
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) {
@ -526,7 +530,7 @@ export default {
},
//
engGradFormat(row, column) {
return this.selectDictLabel(this.engGradOptions, row.engGrad);
return this.selectDictLabel(this.engGradOptions, row.dikeGrad);
},
//
mainBuildGradFormat(row, column) {
@ -549,6 +553,9 @@ export default {
},
//
elevSysFormat(row, column) {
if (row.elevSys.length < 2) {
row.elevSys = "0" + row.elevSys
}
return this.selectDictLabel(this.elevSysOptions, row.elevSys);
},
//

Loading…
Cancel
Save