Browse Source

Merge branch 'release-sy-v1.0.0' of ssh://gitlab.datameta.com:2224/project/water/shuili-vue into release-sy-v1.0.0

sy-water-data-board-ui
panyuyi 4 months ago
parent
commit
ff39f397d3
  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

@ -446,7 +446,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) {
@ -454,7 +463,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 }}
@ -501,7 +496,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) {
@ -509,7 +513,7 @@ export default {
},
//
engGradFormat(row, column) {
return this.selectDictLabel(this.engGradOptions, row.engGrad);
return this.selectDictLabel(this.engGradOptions, row.dikeGrad);
},
//
mainBuildGradFormat(row, column) {
@ -532,6 +536,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