From fc98e676332302c4b835f8fa4ed42d72e177801f Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期二, 14 十月 2025 16:57:02 +0800
Subject: [PATCH] 增加了对应的代码
---
src/views/archiveManager/archiveMaterial/index.vue | 65 ++++++++++++++++++---
src/views/archiveExport/index.vue | 38 +++++++++++-
src/views/archiveToUserStatistic/index.vue | 10 ++
src/views/archiveManager/index.vue | 16 +++--
src/views/archiveStatics/index.vue | 12 +++-
src/api/system/records.js | 4
6 files changed, 115 insertions(+), 30 deletions(-)
diff --git a/src/api/system/records.js b/src/api/system/records.js
index 76c791b..8ea0f1e 100644
--- a/src/api/system/records.js
+++ b/src/api/system/records.js
@@ -8,10 +8,10 @@
})
}
//鏇存柊鐘舵��
-export function updateStatusById(id)
+export function updateStatusById(status, id)
{
return request({
- url: '/system/records/updateStatusById/' + id,
+ url: '/system/records/updateStatusById/' + status+"/"+id,
method: 'get',
// data: data
})
diff --git a/src/views/archiveExport/index.vue b/src/views/archiveExport/index.vue
index 3eb3e61..25c45a9 100644
--- a/src/views/archiveExport/index.vue
+++ b/src/views/archiveExport/index.vue
@@ -217,7 +217,7 @@
@pagination="getList"
/>
<!-- 鏌ョ湅鏁版嵁鎸夐挳 -->
- <el-dialog :title="title" :visible.sync="open_check" width="800px" append-to-body>
+ <el-dialog :title="title" :visible.sync="open_check" width="880px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="妗f鍙�" >
@@ -238,7 +238,25 @@
/>
</el-select>
</el-col>
- <el-col :span="6">
+
+ <el-col :span="6">
+ <el-select
+
+ v-model="form.recordZone"
+ placeholder="閫夋嫨鍦板尯"
+ @change="handleRecordTypeChange"
+ disabled
+ >
+ <el-option
+ v-for="item in zoneTypeOptions"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+ </el-col>
+
+ <el-col :span="4">
<el-input
v-model="form.recordYear"
placeholder="杈撳叆骞翠唤"
@@ -616,8 +634,8 @@
},
methods: {
handleExportInfo(row) {
- alert(row.id)
- alert(row.recordId)
+ // alert(row.id)
+ // alert(row.recordId)
// alert(row.docum)
// archiveAllExport({'id':row.id}).then(response => {
// console.log(response)
@@ -814,12 +832,22 @@
console.log("----=============--------------")
this.form = response.data
if(this.recordTypeOptions.length > 0) {
+ alert(response.data.recordId)
const recordParts = response.data.recordId.split('-')
this.$set(this.form, 'recordType', recordParts[0])
- this.$set(this.form, 'recordZone', recordParts[1])
+
+ if(recordParts.length==4)
+ {
+ this.$set(this.form, 'recordZone', recordParts[1])
this.$set(this.form, 'recordYear', recordParts[2])
this.$set(this.form, 'recordSeq', recordParts[3])
+ }
+ else
+ {
+ this.$set(this.form, 'recordYear', recordParts[1])
+ this.$set(this.form, 'recordSeq', recordParts[2])
+ }
}
this.open_check = true
this.title = "鏌ョ湅妗f璁板綍"
diff --git a/src/views/archiveManager/archiveMaterial/index.vue b/src/views/archiveManager/archiveMaterial/index.vue
index 5130c0f..83b9619 100644
--- a/src/views/archiveManager/archiveMaterial/index.vue
+++ b/src/views/archiveManager/archiveMaterial/index.vue
@@ -162,6 +162,10 @@
<el-button type="primary" @click="resetForms">閲嶇疆</el-button>
<el-button @click="cancel">鍙� 娑�</el-button>
+
+
+ <el-button type="warning" @click="cancelAuthUser">閫�鍥炵鐞嗗憳</el-button>
+
</div>
@@ -689,7 +693,10 @@
<script>
import { listMaterials, enload, getMaterials, delMaterials, addMaterials, updateMaterials } from "@/api/system/materials"
import { getToken } from '@/utils/auth'
+import store from '@/store'
+import { updateStatusById } from "@/api/system/records"
+import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
export default {
name: "Materials",
data() {
@@ -865,8 +872,10 @@
this.$refs.upload.clearFiles();
// 鍏抽棴涓婁紶瀵硅瘽妗�
this.importDialogVisible = false;
- // 鍒锋柊鍒楄〃鏁版嵁
- this.getList(); // 杩欓噷鍙互璋冪敤鎺ュ彛鍏宠仈涓婁紶鐨勬枃浠跺拰褰撳墠璁板綍
+ // 鍒锋柊鍒楄〃鏁版嵁
+ this.getList(); // 杩欓噷鍙互璋冪敤鎺ュ彛鍏宠仈涓婁紶鐨勬枃浠跺拰褰撳墠璁板綍
+ //鏇存柊妗f鐨勭姸鎬�
+
} else {
// alert(234)
console.log(response)
@@ -925,6 +934,10 @@
if ((e.ctrlKey || e.metaKey) && e.key === 'd') {
e.preventDefault();
this.resetForms();
+ }
+ if ((e.ctrlKey || e.metaKey) && e.key === 'w') {
+ e.preventDefault();
+ this.closeCurrentTab();
}
},
/** 鏌ヨ銆愯濉啓鍔熻兘鍚嶇О銆戝垪琛� */
@@ -1038,15 +1051,19 @@
})
},
resetForms()
- {
+ {
this.reset()
- this.form.securityLevel = '鏅��' // 璁剧疆瀵硅瘽妗嗚〃鍗曢粯璁ゅ��
- this.form.isSensitive = '鍚�' // 璁剧疆瀵硅瘽妗嗚〃鍗曢粯璁ゅ��
- this.form.isCanceled = '鍚�' // 璁剧疆瀵硅瘽妗嗚〃鍗曢粯璁ゅ��
- this.form.isAttachment = '鍚�' // 璁剧疆瀵硅瘽妗嗚〃鍗曢粯璁ゅ��
- this.form.isDiagram = '鍚�' // 璁剧疆瀵硅瘽妗嗚〃鍗曢粯璁ゅ��
- this.form.retentionPeriod = '姘镐箙' // 璁剧疆瀵硅瘽妗嗚〃鍗曢粯璁ゅ��
- },
+ this.form.securityLevel = '鏅��'
+ this.form.isSensitive = '鍚�'
+ this.form.isCanceled = '鍚�'
+ this.form.isAttachment = '鍚�'
+ this.form.isDiagram = '鍚�'
+ this.form.retentionPeriod = '姘镐箙'
+ },
+ closeCurrentTab() {
+ this.$store.dispatch('tagsView/delView', this.$route)
+ this.$router.push('/archiveManager/infoManager')
+ },
submitForm()
{
console.log(this.form)
@@ -1133,7 +1150,33 @@
this.$message.error('瀵煎叆澶辫触: ' + (error.message || '鏈煡閿欒'));
});
- }
+ },
+ /** 鍙栨秷鎺堟潈鎸夐挳鎿嶄綔 */
+ cancelAuthUser(row) {
+ const recordId = this.recordId
+ var userId = store.state.user.id
+ var _this = this
+ // alert(userId)
+ // alert(userId)
+ // alert(this.queryParams.archiveRecordsId)
+ // alert(row.sysUser.userName)
+ this.$modal.confirm('纭瑕佸彇娑堣鐢ㄦ埛鐨�"' + '' + '"鎺堟潈鍚楋紵').then(function() {
+ return delArchiverecordstouserByReIdAndUid({ recordId: recordId, userId: userId })
+ }).then(() => {
+ // this.getList()
+ //淇敼妗堝嵎鐨勭姸鎬�
+ // var id = row.id
+ var status = '鏈笂浼犻檮浠�'
+ updateStatusById(status, recordId).then(response=>{
+ // this.$modal.msgSuccess("鎻愪氦鎴愬姛")
+ // this.getList()
+ _this.$store.dispatch('tagsView/delView', this.$route);
+ _this.$router.push('/archiveManager/infoManager')
+ _this.$modal.msgSuccess("鍙栨秷鎺堟潈鎴愬姛")
+ })
+
+ }).catch(() => {})
+ },
}
}
</script>
diff --git a/src/views/archiveManager/index.vue b/src/views/archiveManager/index.vue
index ee1f128..3db1b54 100644
--- a/src/views/archiveManager/index.vue
+++ b/src/views/archiveManager/index.vue
@@ -231,7 +231,7 @@
>瀵煎嚭</el-button>
</el-col>
- <el-col :span="1.5">
+ <el-col v-if="userId!=1" :span="1.5">
<el-button
type="warning"
plain
@@ -314,7 +314,7 @@
<el-table-column label="澶囨敞" align="center" prop="remarks" />
<el-table-column label="鍘嗗彶鐩稿叧鍙戞枃鍙�" align="center" prop="historicalReferenceNumber" />
- <el-table-column label="鐘舵��" align="center" prop="recordStatus">
+ <el-table-column label="鐘舵��" align="center" width="105" prop="recordStatus">
<template slot-scope="scope">
<el-button :type="scope.row.recordStatus === '鏈綍鍏�' ? 'danger' : 'success'" size="mini">
{{ scope.row.recordStatus }}
@@ -342,7 +342,7 @@
@click="handleCheck(scope.row)"
>鏌ョ湅</el-button>
<el-button
- v-if="userId!==1&&scope.row.ownData"
+ v-if="userId!==1&&scope.row.ownData&&scope.row.recordStatus!=='褰曞叆瀹屾垚'"
size="mini"
type="text"
@@ -1008,7 +1008,8 @@
{
// alert(row.id)
var id = row.id
- updateStatusById(id).then(response=>{
+ var status = '褰曞叆瀹屾垚'
+ updateStatusById(status, id).then(response=>{
this.$modal.msgSuccess("鎻愪氦鎴愬姛")
this.getList()
})
@@ -1028,7 +1029,7 @@
if(this.recordTypeOptions.length > 0) {
const recordParts = response.data.recordId.split('-')
this.$set(this.form, 'recordType', recordParts[0])
- if(this.recordTypeOptions.length==4)
+ if(recordParts.length==4)
{
this.$set(this.form, 'recordZone', recordParts[1])
@@ -1085,7 +1086,7 @@
if(this.recordTypeOptions.length > 0) {
const recordParts = response.data.recordId.split('-')
this.$set(this.form, 'recordType', recordParts[0])
- if(this.recordTypeOptions.length==4)
+ if(recordParts.length==4)
{
this.$set(this.form, 'recordZone', recordParts[1])
@@ -1150,7 +1151,8 @@
/** 鍒嗛厤鐢ㄦ埛鎿嶄綔 */
handleAuthUser: function(row) {
const roleId = 2
- var archiveRecordsId = row.recordId
+ // row.i
+ var archiveRecordsId = row.id
// alert(roleId)
this.$router.push("/archiveManager/infoManagerAu/user/" + roleId+"/"+archiveRecordsId)
},
diff --git a/src/views/archiveStatics/index.vue b/src/views/archiveStatics/index.vue
index fb9319d..f12700f 100644
--- a/src/views/archiveStatics/index.vue
+++ b/src/views/archiveStatics/index.vue
@@ -59,7 +59,11 @@
- <el-table-column label="鏈畬鎴愭鍗锋暟" align="center" prop="unfinished" />
+ <el-table-column label="鏈笂浼犻檮浠�" align="center" prop="unwf" />
+ <el-table-column label="寰呬慨鏀�" align="center" prop="dxg" />
+
+ <el-table-column label="鏈畬鎴愭鍗锋暟" align="center" prop="unfinished" />
+
<el-table-column label="瀹屾垚鐧惧垎姣�" align="center">
<template slot-scope="scope">
<el-progress
@@ -311,7 +315,7 @@
right: 10,
top: 'center'
},
- color: ['#67C23A', '#F56C6C'],
+ color: ['#67C23A','#F56C6C','#409EFF','#E6A23C'], // 缁裤�佺孩銆佽摑銆佹鍥涜壊
series: [{
name: '瀹屾垚鎯呭喌',
type: 'pie',
@@ -340,7 +344,9 @@
[{ value: 1, name: '鏆傛棤鏁版嵁', itemStyle: { color: '#909399' }}] :
[
{ value: row.finished, name: '宸插畬鎴�' },
- { value: row.cnt - row.finished, name: '鏈畬鎴�' }
+ { value: row.unfinished, name: '鏈畬鎴�' },
+ { value: row.unwf, name: '鏈笂浼犻檮浠�' },
+ { value: row.dxg, name: '寰呬慨鏀�' }
]
}]
};
diff --git a/src/views/archiveToUserStatistic/index.vue b/src/views/archiveToUserStatistic/index.vue
index fad4c33..c9d9e41 100644
--- a/src/views/archiveToUserStatistic/index.vue
+++ b/src/views/archiveToUserStatistic/index.vue
@@ -29,6 +29,10 @@
<el-table-column label="鏈畬鎴愭鍗锋暟" align="center" prop="swlr" />
+
+ <el-table-column label="鏈綍鍏ラ檮浠�" align="center" prop="wlrf" />
+
+ <el-table-column label="寰呬慨鏀�" align="center" prop="dxg" />
<el-table-column label="瀹屾垚鐧惧垎姣�" align="center">
<template slot-scope="scope">
<el-progress
@@ -160,7 +164,7 @@
right: 10,
top: 'center'
},
- color: ['#67C23A', '#F56C6C'],
+ color: ['#67C23A','#F56C6C','#409EFF','#E6A23C'], // 缁裤�佺孩銆佽摑銆佹鍥涜壊
series: [{
name: '瀹屾垚鎯呭喌',
type: 'pie',
@@ -189,7 +193,9 @@
[{ value: 1, name: '鏆傛棤鏁版嵁', itemStyle: { color: '#909399' }}] :
[
{ value: row.ylr, name: '宸插畬鎴�' },
- { value: row.cnt - row.ylr, name: '鏈畬鎴�' }
+ { value: row.swlr, name: '鏈畬鎴�' },
+ { value: row.wlrf, name: '鏈綍鍏ラ檮浠�' },
+ { value: row.dxg, name: '寰呬慨鏀�' }
]
}]
};
--
Gitblit v1.9.1