Skip to content

Commit bafa4ee

Browse files
author
piexl
committed
fix:HXSecurity/DongTai#332
1 parent 1c5650c commit bafa4ee

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VUE_APP_ATOM_API = '/atom-webapi'
66

77
# target host
88

9-
VUE_TARGET_HOST = 'http://192.168.2.178:8000'
9+
VUE_TARGET_HOST = 'http://192.168.2.126:8001'
1010
#VUE_TARGET_HOST = 'https://iast-test.huoxian.cn'
1111
#VUE_TARGET_HOST = 'http://iast.huoxian.cn'
1212

src/services/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default () =>
9696

9797
exportList(params: any): Promise<iResponse> {
9898
return request.get(
99-
`project/report/list?page=${params.page}&page_size=${params.pageSize}`
99+
`project/report/list?page=${params.page}&page_size=${params.pageSize}&pid=${params.pid}`
100100
)
101101
}
102102

src/views/project/ProjectDetail.vue

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@
5151
></i>
5252
</div>
5353
<div class="operate">
54-
<el-button
55-
type="text"
56-
class="operateBtn"
57-
@click="exportDialog = true"
58-
>
54+
<el-button type="text" class="operateBtn" @click="openExport()">
5955
<i class="iconfont icondaochu-5"></i>
6056
{{ $t('views.projectDetail.export') }}
6157
</el-button>
@@ -417,6 +413,10 @@ export default class ProjectDetail extends VueBase {
417413
private enterVersionDialog() {
418414
this.versionFlag = false
419415
}
416+
private openExport() {
417+
this.getExportList()
418+
this.exportDialog = true
419+
}
420420
private async versionCurrent(item: any) {
421421
const res: any = await this.services.project.versionCurrent({
422422
version_id: item.version_id,
@@ -909,10 +909,6 @@ export default class ProjectDetail extends VueBase {
909909
})
910910
}
911911
}
912-
913-
created() {
914-
this.getExportList()
915-
}
916912
}
917913
</script>
918914

0 commit comments

Comments
 (0)