From d48d54b4a7074ac2e7d0c898fb086f5acbf71fb0 Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Fri, 23 Jul 2021 13:58:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=B8=85=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=96=B0=E5=A2=9E=E6=97=B6=E7=9A=84=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/addEdit.vue | 16 ++++++++++------ .../pages/otherAddEit.vue | 15 ++++++++++----- .../pages/projectAddEit.vue | 13 ++++++++++--- 3 files changed, 30 insertions(+), 14 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 385a6e235..69bb4a9e0 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -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 }, diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue index bac9b5b5a..0ab7a1a5d 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue @@ -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 }, diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index 1825f39ed..d4970e303 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -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('当前没有需要导出的数据')