Skip to content

Commit

Permalink
sprintfix: Excel下载模板 区分DHCP
Browse files Browse the repository at this point in the history
  • Loading branch information
GONGONGONG authored and ZhuoZhuoCrayon committed Sep 14, 2022
1 parent fa35964 commit 7077457
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/views/agent/components/parser-excel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ export default class ParserExcel extends Vue {
*/
public handleDownload() {
// 待优化方案,前端传表头与数据给后端,直接产出对应的Excel,但不能包含IP等敏感信息
const url = `${window.PROJECT_CONFIG.STATIC_URL}download/bk_nodeman_info_${window.language}.xlsx`;
const suffix = window.PROJECT_CONFIG.BKAPP_ENABLE_DHCP === 'True' ? '_address' : '';
const url = `${window.PROJECT_CONFIG.STATIC_URL}download/bk_nodeman_info_${window.language}${suffix}.xlsx`;
const element = document.createElement('a');
element.setAttribute('href', url);
element.setAttribute('download', 'bk_nodeman_info.xlsx');
Expand Down
Binary file modified static/download/bk_nodeman_info_en.xlsx
Binary file not shown.
Binary file not shown.
Binary file modified static/download/bk_nodeman_info_zh.xlsx
Binary file not shown.
Binary file added static/download/bk_nodeman_info_zh_address.xlsx
Binary file not shown.

0 comments on commit 7077457

Please sign in to comment.