|
@ -259,6 +259,11 @@ const props = defineProps({ |
|
|
type:Boolean, |
|
|
type:Boolean, |
|
|
default:false |
|
|
default:false |
|
|
}, |
|
|
}, |
|
|
|
|
|
rules:{ |
|
|
|
|
|
type:Object, |
|
|
|
|
|
required: false, |
|
|
|
|
|
default: () => ({}) |
|
|
|
|
|
}, |
|
|
}) |
|
|
}) |
|
|
const importTemplateData = ref(props.importTemplateData) |
|
|
const importTemplateData = ref(props.importTemplateData) |
|
|
const accept = ref(props.accept) |
|
|
const accept = ref(props.accept) |
|
@ -319,6 +324,8 @@ const submitForm = async () => { |
|
|
const elForm = unref(formRef)?.getElFormRef() |
|
|
const elForm = unref(formRef)?.getElFormRef() |
|
|
if (!elForm) return |
|
|
if (!elForm) return |
|
|
const valid = await elForm.validate() |
|
|
const valid = await elForm.validate() |
|
|
|
|
|
console.log(valid) |
|
|
|
|
|
console.log(props.r) |
|
|
if (!valid) return |
|
|
if (!valid) return |
|
|
|
|
|
|
|
|
if (fileList.value.length == 0) { |
|
|
if (fileList.value.length == 0) { |
|
|