up
This commit is contained in:
parent
fce14ea749
commit
9148e46211
@ -1,15 +1,11 @@
|
|||||||
<!-- 档位配置 插件 -->
|
<!-- 档位配置 插件 -->
|
||||||
<template>
|
<template>
|
||||||
<el-table-column :label="`选项${index + 1}:`" v-for="(item, index) in posNum" :key="item" class="m-t-20"
|
<el-table-column :label="`选项${index + 1}:`" v-for="(item, index) in posNum" :key="item" class="m-t-20"
|
||||||
:prop="`gearValue[${index}]`" :rules="ruleValidate.gearValue" align="center" prop="options">
|
:prop="`gearValue[${index}]`" :rules="ruleValidate" align="center" prop="options">
|
||||||
<el-input
|
<el-input :min="0" :formatter="value => `${value}`.replace(/([0-9]+\.[0-9]{2})[0-9]*/, '$1')" placeholder="请填写"
|
||||||
:min="0"
|
:disabled="isSee" class="w-200" v-model="form.value.options[index]" />
|
||||||
:formatter="value => `${value}`.replace(/([0-9]+\.[0-9]{2})[0-9]*/, '$1')"
|
<v-image v-if="!isSee && posNum < maxPosLen" :src="addImg" class="img-btn" @click="changePos(index, 'add')" />
|
||||||
placeholder="请填写" :disabled="isSee" class="w-200"
|
<v-image v-if="!isSee && posNum > 1" :src="delImg" @click="changePos(index, 'del')" class="img-btn" />
|
||||||
v-model="form.value.options[index]"
|
|
||||||
/>
|
|
||||||
<v-image v-if="!isSee&&posNum<maxPosLen" :src="addImg" class="img-btn" @click="changePos(index,'add')"/>
|
|
||||||
<v-image v-if="!isSee&&posNum>1" :src="delImg" @click="changePos(index,'del')" class="img-btn"/>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -43,9 +39,7 @@ export default {
|
|||||||
gearValue: [null] // null:为了不让显示默认1
|
gearValue: [null] // null:为了不让显示默认1
|
||||||
},
|
},
|
||||||
ruleValidate: {
|
ruleValidate: {
|
||||||
gearValue: [
|
required: true, message: '请填写选项'
|
||||||
{ required: true, message: '请填写档位值' }
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user