From 15a79f18ace29e0c69d68c7fb5e3079b395ffecd Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 14 三月 2025 10:20:21 +0800 Subject: [PATCH] 外来文件确认记录分页修改 --- src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue | 51 +-------------------------------------------------- 1 files changed, 1 insertions(+), 50 deletions(-) diff --git a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue index d224ee2..4da0bf3 100644 --- a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue @@ -246,43 +246,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,9 +263,7 @@ this.outLoading = true exportOutManageRecordIssueRecycle(this.queryParams).then(res => { this.outLoading = false - if (res.code == 201) return this.$message.error('瀵煎嚭澶辫触') - let url = this.javaApi + '/word/' + res.data - this.$download.saveAs(url, '鏂囦欢鍙戞斁涓庡洖鏀惰褰�') + this.$download.saveAs(res.data, '鏂囦欢鍙戞斁涓庡洖鏀惰褰�') }) }, getList() { @@ -409,9 +370,6 @@ if (this.title == '鏂板') { addManageRecordIssueRecycle(obj).then(res => { this.addLoading = false - if (res.code == 201) { - return - } this.addDialogVisible = false this.$message({ type: 'success', @@ -422,9 +380,6 @@ } else { doManageRecordIssueRecycle(obj).then(res => { this.addLoading = false - if (res.code == 201) { - return - } this.addDialogVisible = false this.$message({ type: 'success', @@ -446,9 +401,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', @@ -472,7 +424,6 @@ }) .then(() => { delManageRecordIssueRecycle({ id: row.id }).then((res) => { - if (res.code == 201) return; this.$message.success("鍒犻櫎鎴愬姛"); this.refresh(); }); -- Gitblit v1.9.3