export default {
data() {
let validateImage = (rule, value, callback) => {
if (this.addParams.distantViewPic1.length == 0) {
callback(new Error("请上传设备损坏位置照片"));
} else {
callback();
}
};
}
return {
rules: {
distantViewPic1:[
{ required: true, validator: validateImage, trigger: "change" }
]
}
}
}