From f65a63bfb1d1bc31f3420c0282912fa79c81facd Mon Sep 17 00:00:00 2001 From: liuhuaizhi Date: Mon, 26 Jul 2021 13:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=A6=E5=9E=8B=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=BA=93=E7=9B=B8=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../localProductsOrProjectLibrary/index.vue | 3 +- .../pages/details.vue | 42 ++++++++++++++----- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue index 8fe0f3fb0..1b966f002 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue @@ -1278,13 +1278,14 @@ export default { }, res => { if (this.localProTableSearch.prodectCode === 'Maintenance') { this.localProTableList = res.data.Maintenance.records + this.total = res.data.Maintenance.total } else if (this.localProTableSearch.prodectCode === 'notMaintenance') { this.localProTableList = res.data.notMaintenance.records + this.total = res.data.notMaintenance.total } - this.total = res.data.count // this.localProTableList.map((item) => { // this.xmztOptions.map((opr) => { // if (item.productBrand === opr.value) { diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue index d50c934ca..9cf6991c4 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue @@ -78,47 +78,56 @@ > + + + @@ -451,10 +460,8 @@ export default { _this: this }, res => { if (res.ok) { - this.$message.success(res.message) + // this.$message.success(res.message) this.getDataList() - }else { - this.$message.warning(res.message) } }, e => { }); @@ -502,6 +509,17 @@ export default { this.$message.warning("请选择一条数据进行带入"); } }, + // 点击查看 + handlePreview (item) { + let routeUrl = this.$router.resolve({ + name: 'OtherStandardDetails', + params: { + id: item.id, + pageType: 'INLAND_STAND' + } + }) + window.open(routeUrl.href, '_blank') + }, back () { this.$router.push(this.$store.state.detailMap) this.$store.commit('setDetailMap', '') @@ -568,6 +586,7 @@ export default { } const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' + 'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName + console.log(exportURL + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM") window.open(exportURL) this.$message.success('导出信息成功') } @@ -575,6 +594,7 @@ export default { console.log(this.selectList); const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' + 'exportType' + this.saveExportType + '&ids=' + this.selectList.join(',') + '&exportName=' + this.exportName + console.log(exportURL + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM") window.open(exportURL) this.$message.success('导出信息成功') }