赞
踩
- <el-dialog title="编辑" :visible.sync="editdialogFormVisible">
- <el-form
- ref="dataForm"
- :rules="rules"
- :model="temp"
- label-position="left"
- label-width="70px"
- style="width: 400px; margin-left: 50px"
- >
- <el-form-item label="编号">
- <el-input v-model="addform.input1" @input="change($event)" />
- </el-form-item>
- <el-form-item label="环节名称">
- <el-input v-model="addform.input2" @input="change($event)" />
- </el-form-item>
- <el-form-item label="操作">
- <el-select v-model="value4" placeholder="请选择" @change="getValue()">
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </el-form-item>
有可能是v-model绑定错了,绑定了数组或者对象啥的,让他绑定个空就行,如:vlaue:“”
就可以了
- <el-input v-model="addform.input1" @input="change($event)" />
-
- methods: {
- change() {
- this.$forceUpdate();
- },
- }
或者给input写上@input="change($event)",这样也可以
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。