|
|
|
@ -287,15 +287,6 @@ |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="item.columnProp === 'valueType'"> |
|
|
|
<span v-if="scope.row.valueType === 'text'"> |
|
|
|
文本 |
|
|
|
</span> |
|
|
|
<span v-else-if="scope.row.valueType === 'num'"> |
|
|
|
数字 |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<div v-if="item.columnProp !== 'textValue' && item.columnProp !== 'numValue'"> |
|
|
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
@ -303,7 +294,6 @@ |
|
|
|
<div v-else> |
|
|
|
{{ scope.row.textValue ? scope.row.textValue : scope.row.numValue }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -377,26 +367,17 @@ |
|
|
|
:label="item.columnLabel" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="item.columnProp === 'valueType'"> |
|
|
|
<span v-if="scope.row.valueType === 'text'"> |
|
|
|
文本 |
|
|
|
</span> |
|
|
|
<span v-else-if="scope.row.valueType === 'num'"> |
|
|
|
数字 |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<div v-if="item.columnProp !== 'textValue' && item.columnProp !== 'numValue'"> |
|
|
|
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<div v-if="scope.row.valueChooseFlag !== 'Y'"> |
|
|
|
<el-input-number v-model="scope.row.numValue" style="padding: 0;width: 100%" v-if="scope.row.valueType === 'num'" :controls="false"></el-input-number> |
|
|
|
<el-input-number v-model="scope.row.numValue" style="padding: 0;width: 100%" v-if="scope.row.valueTypeDb === 'N'" :controls="false"></el-input-number> |
|
|
|
<el-input v-model="scope.row.textValue" v-else></el-input> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<el-select style="width: 100%;" v-if="scope.row.valueType === 'text'" v-model="scope.row.textValue"> |
|
|
|
<el-select style="width: 100%;" v-if="scope.row.valueTypeDb === 'T'" v-model="scope.row.textValue"> |
|
|
|
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableValueList" :key="key"></el-option> |
|
|
|
</el-select> |
|
|
|
<el-select style="width: 100%;" v-else v-model="scope.row.numValue"> |
|
|
|
@ -404,7 +385,6 @@ |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|