From d9095e14919aa04a98447734fbe73d7360bf7f20 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 01 九月 2025 09:02:16 +0800
Subject: [PATCH] 1.密码强校验
---
src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue | 122 ++++++----------------------------------
1 files changed, 19 insertions(+), 103 deletions(-)
diff --git a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
index e5fa49b..63aba6d 100644
--- a/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/revisionRecord.vue
@@ -1,22 +1,23 @@
<template>
<!-- 鏂囦欢淇鐢宠瀹℃壒璁板綍 -->
- <div class="DocumentRevisionRequestApprovalRecords">
+ <div class="capacity-scope">
<div class="search">
- <div class="search_thing">
- <div class="search_label">鏂囦欢缂栧彿锛�</div>
- <div class="search_input">
- <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.documentCode"
- @keyup.enter.native="refreshTable()"></el-input>
- </div>
+ <div>
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
+ <el-form-item label="鏂囦欢缂栧彿" prop="documentCode">
+ <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.documentCode"
+ @keyup.enter.native="refreshTable()"></el-input>
+ </el-form-item>
+ <el-form-item>
+ <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
+ <el-button size="mini" @click="refresh">閲嶇疆</el-button>
+ </el-form-item>
+ </el-form>
</div>
- <div class="search_thing" style="padding-left: 30px;">
- <el-button size="small" @click="refresh()">閲� 缃�</el-button>
- <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
- </div>
- <div class="btn">
+ <div>
<el-button size="small" type="primary" @click="openAdd" v-if="addPower">鏂板</el-button>
<el-button size="small" type="primary" @click="handleDown" :loading="outLoading" v-if="outPower"
- style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button>
+ style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button>
</div>
</div>
<div class="table">
@@ -341,10 +342,8 @@
selectUserCondition,
} from "@/api/business/inspectionTask.js";
export default {
- components: {
- filePreview,
- limsTable
- },
+ name: 'RevisionRecord',
+ components: {filePreview, limsTable},
data() {
return {
addPower: true,
@@ -484,59 +483,6 @@
this.selectTreeList()
},
methods: {
- getPower() {
- let power = JSON.parse(sessionStorage.getItem('power'))
- let add = false
- let del = false
- let out = false;
- let ratify = false
- let audit1 = false
- let audit2 = false
- let audit3 = false
- for (var i = 0; i < power.length; i++) {
- if (power[i].menuMethod == 'addManageRecordAudit') {
- add = true
- }
- if (power[i].menuMethod == 'delManageRecordAudit') {
- del = true
- }
- if (power[i].menuMethod == 'ratifyManageRecordAudit') {
- ratify = true
- }
- if (power[i].menuMethod == 'exportOutManageRecordAudit') {
- out = true
- }
- if (power[i].menuMethod == 'manageRecordAudit1') {
- audit1 = true
- }
- if (power[i].menuMethod == 'manageRecordAudit2') {
- audit2 = true
- }
- if (power[i].menuMethod == 'manageRecordAudit3') {
- audit3 = true
- }
- }
- if (!audit3) {
- this.componentData.do.splice(8, 1)
- }
- if (!audit2) {
- this.componentData.do.splice(7, 1)
- }
- if (!audit1) {
- this.componentData.do.splice(6, 1)
- }
- if (!ratify) {
- this.componentData.do.splice(5, 1)
- }
- if (!add) {
- this.componentData.do.splice(4, 1)
- }
- if (!del) {
- this.componentData.do.splice(3, 1)
- }
- this.addPower = add
- this.outPower = out
- },
openAdd() {
this.addInfo = {
method: '淇',
@@ -550,9 +496,7 @@
this.outLoading = true
exportOutManageRecordAudit(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() {
@@ -693,9 +637,6 @@
})
.then(() => {
ratifyManageRecordAudit({ id: row.id }).then(res => {
- if (res.code === 201) {
- return;
- }
this.$message.success('鎿嶄綔鎴愬姛');
this.refreshTable();
})
@@ -751,7 +692,6 @@
})
.then(() => {
delManageRecordAudit({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
@@ -763,17 +703,10 @@
</script>
<style scoped>
-.title {
- height: 60px;
- line-height: 60px;
-}
-
.search {
- background-color: #fff;
- height: 80px;
+ height: 46px;
display: flex;
- align-items: center;
- position: relative;
+ justify-content: space-between;
}
.search_thing {
@@ -790,14 +723,6 @@
.search_input {
width: calc(100% - 110px);
-}
-
-.table {
- margin-top: 10px;
- background-color: #fff;
- height: calc(100% - 60px - 80px - 10px - 40px);
- padding: 20px;
- padding-top: 0;
}
.tables {
@@ -857,13 +782,4 @@
left: 0;
}
->>>.el-dialog__body {
- height: auto;
-}
-
-.btn {
- position: absolute;
- right: 20px;
- top: 16px;
-}
</style>
--
Gitblit v1.9.3