清单增加适用认证展示编辑 导入 模板下载功能
This commit is contained in:
+10
-1
@@ -170,7 +170,16 @@ export function taskDel (data) {
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//模板下载
|
||||
//清单模板下载
|
||||
export function templateDownload(data) {
|
||||
return axios({
|
||||
url: '/api/sarLawsDetailedList/sar-laws-detailed-list/exportEmpty',
|
||||
method: 'get',
|
||||
responseType: 'blob',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//企标立项模板下载
|
||||
export function downloadStatus(data) {
|
||||
return axios({
|
||||
url: '/api/importWkExcel/exportqbzxdjh',
|
||||
|
||||
@@ -768,7 +768,7 @@ import {mapGetters} from "vuex";
|
||||
import {dicTypeData, StandardsInfoPage} from "@/api/unqualProcess";
|
||||
import {interfaceUrl} from "@/sysConfig";
|
||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||
import { downloadStatus } from "api/process";
|
||||
import { templateDownload } from "api/process";
|
||||
|
||||
export default {
|
||||
name: "ListOfStandardsAndRegulationsDetails",
|
||||
@@ -1017,7 +1017,7 @@ export default {
|
||||
methods: {
|
||||
//模板下载
|
||||
templateDownload(){
|
||||
downloadStatus().then(res => {
|
||||
templateDownload().then(res => {
|
||||
let blob = new Blob([res], { type: 'application/vnd.ms-excel' }); //以xls文件为例
|
||||
//浏览器兼容,Google和火狐支持a标签的download,IE不支持
|
||||
if (window.navigator && window.navigator.msSaveBlob) {
|
||||
|
||||
Reference in New Issue
Block a user