parent
9f3953ed3f
commit
ae4b1d504b
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
v-loading="loading"
|
||||||
:visible.sync="visible"
|
:visible.sync="visible"
|
||||||
:append-to-body="appendToBody"
|
:append-to-body="appendToBody"
|
||||||
:before-close="beforeClose"
|
:before-close="beforeClose"
|
||||||
|
@ -50,7 +51,7 @@
|
||||||
:file-list.sync="form.APPOINT_ANNEX"
|
:file-list.sync="form.APPOINT_ANNEX"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
:accept="'.pdf,.jpg,.png,doc,docx'"
|
:accept="'.pdf,.jpg,.png,doc,docx'"
|
||||||
:limit="1"
|
:limit="20"
|
||||||
:size="1024"
|
:size="1024"
|
||||||
:upload-type="1"/>
|
:upload-type="1"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -193,7 +194,10 @@ export default {
|
||||||
Object.keys(this.form).map(key => {
|
Object.keys(this.form).map(key => {
|
||||||
formData.append(key, this.form[key])
|
formData.append(key, this.form[key])
|
||||||
})
|
})
|
||||||
formData.append('chenNuoShu', this.form.APPOINT_ANNEX[0].raw)
|
for (let i = 0; i < this.form.APPOINT_ANNEX.length; i++) {
|
||||||
|
formData.append('chenNuoShu', this.form.APPOINT_ANNEX[i].raw)
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
upload('/trainingbatch/sendMessage', formData
|
upload('/trainingbatch/sendMessage', formData
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
if (data.code !== '0') {
|
if (data.code !== '0') {
|
||||||
|
@ -203,6 +207,7 @@ export default {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.$emit('refresh', '')
|
this.$emit('refresh', '')
|
||||||
this.beforeClose()
|
this.beforeClose()
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue