|
@@ -472,8 +472,6 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import axios from 'axios'
|
|
|
|
-import { mockUrl } from '@/apiConfig/api'
|
|
|
|
import BugDetails from './details/index'
|
|
import BugDetails from './details/index'
|
|
import createdBug from '@/views/projectManage/bugList/file/createdBug'
|
|
import createdBug from '@/views/projectManage/bugList/file/createdBug'
|
|
import {
|
|
import {
|
|
@@ -483,7 +481,8 @@ import {
|
|
settingGetBizList,
|
|
settingGetBizList,
|
|
taskListCreate,
|
|
taskListCreate,
|
|
releaseList,
|
|
releaseList,
|
|
- settingQueryBizModuleList
|
|
|
|
|
|
+ settingQueryBizModuleList,
|
|
|
|
+ bugDownload
|
|
} from '@/api/defectManage'
|
|
} from '@/api/defectManage'
|
|
import { memberQueryMemberInfoByIDAPorName } from '@/api/projectIndex'
|
|
import { memberQueryMemberInfoByIDAPorName } from '@/api/projectIndex'
|
|
import '@/views/projectManage/bugList/css/index.css'
|
|
import '@/views/projectManage/bugList/css/index.css'
|
|
@@ -831,12 +830,7 @@ export default {
|
|
)
|
|
)
|
|
},
|
|
},
|
|
async download() { // 下载导出Excel
|
|
async download() { // 下载导出Excel
|
|
- const res = await axios({
|
|
|
|
- method: 'post',
|
|
|
|
- url: mockUrl + '/bug/downLoad', // 请求地址
|
|
|
|
- data: this.indexPage, // 参数
|
|
|
|
- responseType: 'blob' // 表明返回服务器返回的数据类型
|
|
|
|
- })
|
|
|
|
|
|
+ const res = await bugDownload(this.indexPage)
|
|
const aLink = document.createElement('a')
|
|
const aLink = document.createElement('a')
|
|
const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
|
|
const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
|
|
aLink.href = URL.createObjectURL(blob)
|
|
aLink.href = URL.createObjectURL(blob)
|