|
|
|
@ -64,7 +64,8 @@
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<vxe-upload v-model="row['sign']" name-field="original_name" progress-text="{percent}%"
|
|
|
|
<vxe-upload v-model="row['sign']" name-field="original_name" progress-text="{percent}%"
|
|
|
|
:more-config="{ maxCount: 1, layout: 'horizontal' }" :show-button-text="false"
|
|
|
|
:more-config="{ maxCount: 1, layout: 'horizontal' }" :show-button-text="false"
|
|
|
|
:upload-method="({file}) => uploadMethod(file)" />
|
|
|
|
:upload-method="({file}) => uploadMethod(file)"
|
|
|
|
|
|
|
|
:remove-method="({file}) => removeMethod(file)"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
|
|
|
|
|
|
|
|
@ -259,6 +260,9 @@
|
|
|
|
}).catch(_ => {
|
|
|
|
}).catch(_ => {
|
|
|
|
window.$_uploading = false
|
|
|
|
window.$_uploading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
removeMethod(file){
|
|
|
|
|
|
|
|
console.log("file",file)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async saveRowEvent(row) {
|
|
|
|
async saveRowEvent(row) {
|
|
|
|
if (window.$_uploading) {
|
|
|
|
if (window.$_uploading) {
|
|
|
|
@ -280,8 +284,13 @@
|
|
|
|
form[key] = row[key]
|
|
|
|
form[key] = row[key]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("row",row)
|
|
|
|
console.log("row",row)
|
|
|
|
if (Array.isArray(row['sign']) && row['sign'].length > 0) {
|
|
|
|
if (Array.isArray(row['sign'])) {
|
|
|
|
form['sign_id'] = row['sign'][0]?.response?.id ?? ''
|
|
|
|
if(row['sign'].length > 0){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form['sign_id'] = row['sign'][0]?.response?.id ?? ''
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
form['sign_id'] = ''
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
await save(form)
|
|
|
|
await save(form)
|
|
|
|
|