mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-05 08:51:41 +00:00
fix: 导出下载更新模版用不同的action 去对应后台serializer
This commit is contained in:
@@ -199,7 +199,8 @@ export default {
|
|||||||
},
|
},
|
||||||
async getDownloadTemplateUrl(tp) {
|
async getDownloadTemplateUrl(tp) {
|
||||||
const template = this.importOption === 'create' ? 'import' : 'update'
|
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) {
|
if (this.importOption === 'update' && this.selectedRows.length > 0) {
|
||||||
const resources = []
|
const resources = []
|
||||||
for (const item of this.selectedRows) {
|
for (const item of this.selectedRows) {
|
||||||
|
Reference in New Issue
Block a user