mirror of
				https://github.com/nsnail/NetAdmin.git
				synced 2025-10-31 19:35:26 +08:00 
			
		
		
		
	chore: 🔨 导出文件时,如勾选,只导出勾选项 (#207)
This commit is contained in:
		| @@ -378,7 +378,7 @@ export default { | ||||
|                 return | ||||
|             } | ||||
|             if (command === 'export') { | ||||
|                 this.exportData() | ||||
|                 await this.exportData() | ||||
|                 return | ||||
|             } | ||||
|             if (command === 'edit') { | ||||
| @@ -439,6 +439,16 @@ export default { | ||||
|                 delete reqData[config.request.pageSize] | ||||
|             } | ||||
|             Object.assign(reqData, this.tableParams) | ||||
|  | ||||
|             const ids = [...new Set(this.$refs.scTable.getSelectionRows().map((x) => x.idd))].filter((x) => !!x) | ||||
|             if (ids.length > 0) { | ||||
|                 reqData.dynamicFilter = { | ||||
|                     filters: [reqData.dynamicFilter], | ||||
|                     field: 'id', | ||||
|                     operator: 'Any', | ||||
|                     value: ids, | ||||
|                 } | ||||
|             } | ||||
|             return reqData | ||||
|         }, | ||||
|         //获取数据 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub