update 标准征求意见流程
This commit is contained in:
@@ -38,7 +38,8 @@
|
||||
<template v-else-if="form.fieldShowType === 2">
|
||||
<j-upload
|
||||
v-model="record[form.dbFieldName]"
|
||||
:disabled="form.isDisabled || false">
|
||||
:disabled="form.isDisabled || false"
|
||||
:file-type="form.fileType || canUploadType">
|
||||
</j-upload>
|
||||
</template>
|
||||
<template v-else-if="form.fieldShowType === 3">
|
||||
@@ -76,7 +77,8 @@
|
||||
<template v-else-if="form.fieldShowType === 2">
|
||||
<j-upload
|
||||
v-model="record[form.dbFieldName]"
|
||||
:disabled="form.isDisabled || false">
|
||||
:disabled="form.isDisabled || false"
|
||||
:file-type="form.fileType || canUploadType">
|
||||
</j-upload>
|
||||
</template>
|
||||
<template v-else-if="form.fieldShowType === 3">
|
||||
@@ -208,15 +210,17 @@ export default {
|
||||
},
|
||||
wrapperCol: {
|
||||
sm: 16
|
||||
}
|
||||
},
|
||||
// 本系统限制可以上传的文件格式
|
||||
canUploadType: 'pdf,docx,doc,xlsx,xls,ppt,pptx,rar,zip,jpg,jpeg,png,avi,wmv,mov,rm,mp4,cad'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submit () {
|
||||
const arr = []
|
||||
for (const i in this.dataSource) {
|
||||
if (this.$refs[`ruleForm${i}`]) {
|
||||
this.$refs[`ruleForm${i}`].validate(valid => {
|
||||
if (this.$refs[`ruleForm${i}`][0]) {
|
||||
this.$refs[`ruleForm${i}`][0].validate(valid => {
|
||||
arr[i] = valid
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user