export default{ data(){ return{ rules:{ "tdb2111.tdbVo.actiondesc": [{ validator: (rule, value, callback) => { let opertype = this.model.tdb2111.tdbVo.opertype; if (opertype == '2' || opertype == '3') { if (!value) { return callback(new Error('必输项')) } } callback() } }], } } } }