标准清单数据新增时的导出

This commit is contained in:
shen_yan_pu
2021-07-23 13:58:00 +08:00
parent a3c99aaec1
commit d48d54b4a7
3 changed files with 30 additions and 14 deletions
@@ -658,6 +658,7 @@ import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import stand from "../../../config/pages/attributeCustom/components/stand";
import { mapGetters } from 'vuex'
import { editDataInfo } from '@/api/unqualProcess'
import {interfaceUrl} from "@/sysConfig";
export default {
name: 'ListOfStandardsAndRegulationsDetails',
components: {
@@ -1512,7 +1513,6 @@ export default {
// 数据搜索 table select事件
sarAccessInfoSearchSelect (val) {
this.selectedAccInfoSearchList = val
console.log(val)
},
// 数据搜索 清单类型 table select事件
accessSarTypeSelect (selectData) {
@@ -1531,8 +1531,13 @@ export default {
},
// 点击 导出、全部导出按钮事件
exportAccessInfo (type) {
this.exportTestItemNameFlag = true
this.exportName = ''
if (this.sarAccessInfoListArry.length > 0) {
this.exportTestItemNameFlag = true
this.exportName = ''
}else {
this.$message.warning('请选择数据进行导出')
}
},
// 导出确定功能
exportTestItem () {
@@ -1548,10 +1553,9 @@ export default {
for (var accessInfo in exportList) {
accIdAndrestype.push(exportList[accessInfo].id)
}
window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&ids=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName
window.open(exportURL)
this.$message.success('导出信息成功')
} else {
this.$message.warning('当前没有需要导出的数据')
}
this.exportTestItemNameFlag = false
},
@@ -488,6 +488,7 @@ import CustomInputForPolicy from '@/components/CustomFormComponents/InputForPoli
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import stand from "../../../config/pages/attributeCustom/components/stand";
import { mapGetters } from 'vuex'
import {interfaceUrl} from "@/sysConfig";
export default {
name: 'OtherAddEit',
components: {
@@ -1284,8 +1285,12 @@ export default {
},
// 点击 导出、全部导出按钮事件
exportAccessInfo (type) {
this.exportTestItemNameFlag = true
this.exportName = ''
if (this.sarAccessInfoListArry.length > 0) {
this.exportTestItemNameFlag = true
this.exportName = ''
}else {
this.$message.warning('请选择数据进行导出')
}
},
// 导出确定功能
exportTestItem () {
@@ -1301,10 +1306,10 @@ export default {
for (var accessInfo in exportList) {
accIdAndrestype.push(exportList[accessInfo].id)
}
window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&ids=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName
window.open(exportURL)
// window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames
this.$message.success('导出信息成功')
} else {
this.$message.warning('当前没有需要导出的数据')
}
this.exportTestItemNameFlag = false
},
@@ -488,6 +488,7 @@ import CustomInputForPolicy from '@/components/CustomFormComponents/InputForPoli
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import stand from "../../../config/pages/attributeCustom/components/stand";
import { mapGetters } from 'vuex'
import {interfaceUrl} from "@/sysConfig";
export default {
name: 'OtherAddEit',
components: {
@@ -1285,8 +1286,12 @@ export default {
},
// 点击 导出、全部导出按钮事件
exportAccessInfo (type) {
this.exportTestItemNameFlag = true
this.exportName = ''
if (this.sarAccessInfoListArry.length > 0) {
this.exportTestItemNameFlag = true
this.exportName = ''
}else {
this.$message.warning('请选择数据进行导出')
}
},
// 导出确定功能
exportTestItem () {
@@ -1302,7 +1307,9 @@ export default {
for (var accessInfo in exportList) {
accIdAndrestype.push(exportList[accessInfo].id)
}
window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?'+ '&exportType=apart'+ '&ids=' + accIdAndrestype.join(',')+ '&exportName=' + this.exportName
window.open(exportURL)
// window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames
this.$message.success('导出信息成功')
} else {
this.$message.warning('当前没有需要导出的数据')