From f2fbb3b07155274408d68084e2d607760c765ad6 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 14 三月 2025 11:09:51 +0800 Subject: [PATCH] 前端跳转路由修改 --- src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue | 50 ++------------------------------------------------ 1 files changed, 2 insertions(+), 48 deletions(-) diff --git a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue index 0cc82fa..f03e924 100644 --- a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue @@ -149,6 +149,7 @@ } from '@/api/cnas/systemManagement/documentControl.js' import { mapGetters } from "vuex"; export default { + name: 'DistributionCollectionRecord', components: { limsTable }, @@ -246,43 +247,6 @@ // this.selectTreeList() }, methods: { - getPower() { - let power = JSON.parse(sessionStorage.getItem('power')) - let add = false - let del = false - let up = false; - let out = false; - let edit = false - for (var i = 0; i < power.length; i++) { - if (power[i].menuMethod == 'addManageRecordIssueRecycle') { - add = true - } - if (power[i].menuMethod == 'delManageRecordIssueRecycle') { - del = true - } - if (power[i].menuMethod == 'exportInManageRecordIssueRecycle') { - up = true - } - if (power[i].menuMethod == 'doManageRecordIssueRecycle') { - edit = true - } - if (power[i].menuMethod == 'exportOutManageRecordIssueRecycle') { - out = true - } - } - if (!add) { - this.componentData.do.splice(2, 1) - } - if (!add) { - this.componentData.do.splice(1, 1) - } - if (!del) { - this.componentData.do.splice(0, 1) - } - this.addPower = add - this.outPower = out - this.upPower = up - }, // 鏂板 openAdd() { // this.$refs.ValueTable.openAddDia(this.$api.manageRecordIssueRecycle.addManageRecordIssueRecycle); @@ -300,7 +264,7 @@ this.outLoading = true exportOutManageRecordIssueRecycle(this.queryParams).then(res => { this.outLoading = false - this.$download.downloadFileFromUrl(res.data, '鏂囦欢鍙戞斁涓庡洖鏀惰褰�') + this.$download.saveAs(res.data, '鏂囦欢鍙戞斁涓庡洖鏀惰褰�') }) }, getList() { @@ -407,9 +371,6 @@ if (this.title == '鏂板') { addManageRecordIssueRecycle(obj).then(res => { this.addLoading = false - if (res.code == 201) { - return - } this.addDialogVisible = false this.$message({ type: 'success', @@ -420,9 +381,6 @@ } else { doManageRecordIssueRecycle(obj).then(res => { this.addLoading = false - if (res.code == 201) { - return - } this.addDialogVisible = false this.$message({ type: 'success', @@ -444,9 +402,6 @@ obj = { id, documentCode, documentName, documentVersion, pages, documentType, number, receiveUser, receiveDate, departLims, signedDate: getYearAndMonthAndDays(), signedUser: this.userId } doManageRecordIssueRecycle(obj).then(res => { this.addLoading = false - if (res.code == 201) { - return - } this.addDialogVisible = false this.$message({ type: 'success', @@ -470,7 +425,6 @@ }) .then(() => { delManageRecordIssueRecycle({ id: row.id }).then((res) => { - if (res.code == 201) return; this.$message.success("鍒犻櫎鎴愬姛"); this.refresh(); }); -- Gitblit v1.9.3