|
|
@ -259,18 +259,17 @@ export default { |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> |
|
|
<span v-if="!item.columnHidden"> |
|
|
<template v-if="item.columnProp==='valueType'">{{ scope.row[item.columnProp] === 'text' ? '文本' : '数字' }}</template> |
|
|
|
|
|
<template v-else-if="item.columnProp==='valueChooseFlag'">{{ scope.row[item.columnProp] === 'Y' ? '是' : '否' }}</template> |
|
|
|
|
|
<template v-else-if="item.columnProp==='value' && updateStatus === true && scope.row.valueType==='text'"> |
|
|
|
|
|
|
|
|
<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'"> |
|
|
<el-input v-model="scope.row['textValue']"></el-input> |
|
|
<el-input v-model="scope.row['textValue']"></el-input> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="item.columnProp==='value' && updateStatus === true && scope.row.valueType==='num'"> |
|
|
|
|
|
|
|
|
<template v-else-if="item.columnProp==='value' && updateStatus === true && scope.row.valueTypeDb==='N'"> |
|
|
<el-input-number style="width: 100%" :controls="false" :step="0" v-model="scope.row['numValue']"></el-input-number> |
|
|
<el-input-number style="width: 100%" :controls="false" :step="0" v-model="scope.row['numValue']"></el-input-number> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="item.columnProp==='value' && scope.row.valueType==='text'"> |
|
|
|
|
|
|
|
|
<template v-else-if="item.columnProp==='value' && scope.row.valueTypeDb==='T'"> |
|
|
{{ scope.row['textValue'] }} |
|
|
{{ scope.row['textValue'] }} |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="item.columnProp==='value' && scope.row.valueType==='num'"> |
|
|
|
|
|
|
|
|
<template v-else-if="item.columnProp==='value' && scope.row.valueTypeDb==='N'"> |
|
|
{{ scope.row['numValue'] }} |
|
|
{{ scope.row['numValue'] }} |
|
|
</template> |
|
|
</template> |
|
|
<template v-else>{{ scope.row[item.columnProp] }}</template> |
|
|
<template v-else>{{ scope.row[item.columnProp] }}</template> |
|
|
|