@ -260,6 +260,16 @@ export default {
< template slot -scope = " scope " >
< span v-if ="!item.columnHidden" >
< template v-if ="item.columnProp==='valueChooseFlag'" > {{ scope.row [ item.columnProp ] = = = ' Y ' ? ' 是 ' : ' 否 ' }} < / template >
< template v -else -if = " item.columnProp = = = ' value ' & & updateStatus = = = true & & scope.row.valueTypeDb = = = ' T ' & & scope.row.valueChooseFlag = = = ' Y ' " >
< el -select v-model ="scope.row['textValue']" placeholder="请选择" style="width: 100%" >
< el -option :label ="available.availableValue" :value ="available.availableValue" :key ="available.id" v-for ="(available) in scope.row.availableList" > < / el -option >
< / e l - s e l e c t >
< / template >
< template v -else -if = " item.columnProp = = = ' value ' & & updateStatus = = = true & & scope.row.valueTypeDb = = = ' N ' & & scope.row.valueChooseFlag = = = ' Y ' " >
< el -select v-model ="scope.row['numValue']" placeholder="请选择" style="width: 100%" >
< el -option :label ="available.availableValue" :value ="available.availableValue" :key ="available.id" v-for ="(available) in scope.row.availableList" > < / el -option >
< / e l - s e l e c t >
< / template >
< template v -else -if = " item.columnProp = = = ' value ' & & updateStatus = = = true & & scope.row.valueTypeDb = = = ' T ' " >
< el -input v-model ="scope.row['textValue']" > < / el -input >
< / template >
@ -267,10 +277,10 @@ export default {
< el -input -number style = "width: 100%" :controls ="false" :step ="0" v-model ="scope.row['numValue']" > < / el -input -number >
< / template >
< template v -else -if = " item.columnProp = = = ' value ' & & scope.row.valueTypeDb = = = ' T ' " >
{ { scope . row [ 'textValue' ] } }
< div style = "text-align: left" > { { scope . row [ 'textValue' ] } } < / div >
< / template >
< template v -else -if = " item.columnProp = = = ' value ' & & scope.row.valueTypeDb = = = ' N ' " >
{ { scope . row [ 'numValue' ] } }
< div style = "text-align: right" > { { scope . row [ 'numValue' ] } } < / div >
< / template >
< template v-else > {{ scope.row [ item.columnProp ] }} < / template >
< / span >