mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 22:48:27 +00:00
fix: 导出下载更新模版用不同的action 去对应后台serializer
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user