Commit c6c89088 by cwq0219

规格值-限制

1 parent 78e782b9
......@@ -189,11 +189,11 @@
<glsx-dialog title="规格" :isVisible.sync="isSpescVisible" width="70%" @confirmDialog="handleSpescConfirm" @closeDialog="handleSpescClose">
<el-form label-width="120px" :model="spescEditForm" :rules="spescRules" ref="spescRef">
<el-form-item label="规格名:" prop="specificationName">
<el-input class="w-320" :size="size" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
<el-input class="w-320" :size="size" maxlength="10" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
</el-form-item>
<el-form-item label="规格值:" prop="specificationValueList">
<el-tag style="margin-right: 10px;" v-for="(tag, i) in spescEditForm.specificationValueList" :key="i" closable :type="tag.type" @close="handleSpescDelete(tag)">{{ tag.specificationValue }}</el-tag>
<el-input class="input-new-tag" v-if="specsInputVisible" v-model="spescInputVal" ref="saveSpescInput" :size="size" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<el-input class="input-new-tag" v-if="specsInputVisible" v-model="spescInputVal" ref="saveSpescInput" maxlength="30" :size="size" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button>
</el-form-item>
</el-form>
......@@ -807,9 +807,9 @@ export default {
handleInputConfirm() {
let spescInputVal = this.spescInputVal
if (this.spescEditForm.specificationValueList.length == 8) {
if (this.spescEditForm.specificationValueList.length == 20) {
this.$message({
message: '规格值最多不能超过8个',
message: '规格值最多不能超过20个',
type: 'error',
customClass: 'message-Z-zinde'
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!