修改
This commit is contained in:
parent
bdb0a7cc3b
commit
1316b81c25
@ -817,6 +817,15 @@ export default {
|
||||
name: "Propaganda",
|
||||
components: { stationAcatar },
|
||||
data() {
|
||||
//验证身份证
|
||||
var isimgPath = (rule, value, callback) => {
|
||||
console.log(value)
|
||||
if (!this.form.imgPath) {
|
||||
callback(new Error("素材选择不能为空"));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
return {
|
||||
itemname: null,
|
||||
departmentName: null,
|
||||
@ -978,7 +987,7 @@ export default {
|
||||
{ required: true, message: "封面不能为空", trigger: "blur" }
|
||||
],
|
||||
imgPath: [
|
||||
{ required: true, message: "素材选择不能为空", trigger: "blur" }
|
||||
{ required: true, message: "",validator: isimgPath, trigger: "blur" }
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user