fix: 导出下载更新模版用不同的action 去对应后台serializer

This commit is contained in:
feng
2024-02-05 17:49:22 +08:00
committed by Bryan
parent 527cc4d727
commit 3ff6c6fe2f

View File

@@ -199,7 +199,8 @@ export default {
},
async getDownloadTemplateUrl(tp) {
const template = this.importOption === 'create' ? 'import' : 'update'
let query = `format=${tp}&template=${template}`
const action = this.importOption === 'create' ? 'create' : 'partial_update'
let query = `format=${tp}&template=${template}&action=${action}`
if (this.importOption === 'update' && this.selectedRows.length > 0) {
const resources = []
for (const item of this.selectedRows) {