<el-form-item class="tiemlrbox" el-form-item label="试卷" prop="testName">
<div class='lrbox'>
<el-input style="width:653px" disabled placeholder="请输入选择试卷" v-model="datafromEditNew.testName" ></el-input>
<el-button type="primary" @click='dialogFormVisible = true'>选择试卷</el-button>
<el-button type="danger" @click='dialogFormclose'>删除试卷</el-button>
</div>
</el-form-item>
tName:[ { validator: testNames, trigger: 'change' }],
var testNames = (rule, value, callback) => {
if (!this.datafromEditNew.testName) {
return callback(new Error('请选择试卷'));
}else{
callback();
}
};
element提示字段
最新推荐文章于 2024-07-03 10:10:20 发布