From 3f335bbc97cea5faf0d73f202f3849232f0ecbde Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Mon, 27 Jun 2022 17:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/archivesManage/archivesList.js | 81 ++- src/assets/styles/archives-manage.scss | 53 +- src/assets/styles/yxk-admin.scss | 49 +- src/utils/index.js | 15 + .../archivesList/archivesDetail.vue | 164 +++--- .../archivesManage/archivesList/index.vue | 183 ++++++- .../module/archivesAnjuan/index.vue | 517 ++++++++++++++++++ .../module/archivesInfo/index.vue | 147 +++-- .../module/archivesJuannei/index.vue | 453 +++++++++++++++ .../module/archivesProject/index.vue | 369 +++++++++++++ .../archivesList/module/table/index.vue | 230 ++++++++ src/views/components/category/PreviewForm.vue | 99 ++-- 12 files changed, 2184 insertions(+), 176 deletions(-) create mode 100644 src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue create mode 100644 src/views/archivesManage/archivesList/module/archivesJuannei/index.vue create mode 100644 src/views/archivesManage/archivesList/module/archivesProject/index.vue create mode 100644 src/views/archivesManage/archivesList/module/table/index.vue diff --git a/src/api/archivesManage/archivesList.js b/src/api/archivesManage/archivesList.js index c2a3c43..5d95330 100644 --- a/src/api/archivesManage/archivesList.js +++ b/src/api/archivesManage/archivesList.js @@ -2,14 +2,14 @@ import request from '@/utils/request' import qs from 'qs' // import { form } from '../../components/Crud/crud' -export function getTableDisplayFields(params) { +export function FetchTableDisplayFields(params) { return request({ url: 'api/archives/initArchivesViewTable' + '?' + qs.stringify(params, { indices: false }), method: 'get' }) } -export function getFormDisplayFields(params) { +export function FetchFormDisplayFields(params) { return request({ url: 'api/archives/doedit' + '?' + qs.stringify(params, { indices: false }), method: 'get' @@ -28,6 +28,7 @@ export function edit(parameter) { }) } +// 档案删除 export function del(parameter) { return request({ url: 'api/archives/delete', @@ -36,6 +37,23 @@ export function del(parameter) { }) } +// 档案回收站删除 +export function FetchCompletelyDelete(parameter) { + return request({ + url: 'api/archives/completelyDelete', + method: 'post', + data: parameter + }) +} + +// 档案列表 +export function FetchInitArchivesView(params) { + return request({ + url: 'api/archives/initArchivesView' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + // 档案判断值是否重复 export function FetchDoeditIsRepeat(parameter) { return request({ @@ -45,12 +63,65 @@ export function FetchDoeditIsRepeat(parameter) { }) } -export function initArchivesView(params) { +// 档案详情 +export function FetchArchivesDetails(params) { return request({ - url: 'api/archives/initArchivesView' + '?' + qs.stringify(params, { indices: false }), + url: 'api/archives/archivesDetails' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +// 档案元数据 +export function FetchArchivesMetadata(params) { + return request({ + url: 'api/archives/archivesMetadata' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +// 初始化档案附件列表 +export function FetchInitArchiveFilesView(params) { + return request({ + url: 'api/archives/initArchiveFilesView' + '?' + qs.stringify(params, { indices: false }), method: 'get' }) } -export default { add, edit, del, getTableDisplayFields, getFormDisplayFields, FetchDoeditIsRepeat } +// 编辑附件 +export function FetchEditFile(parameter) { + return request({ + url: 'api/archives/editFile', + method: 'post', + data: parameter + }) +} + +// 删除附件 +export function FetchDeleteFile(parameter) { + return request({ + url: 'api/archives/deleteFile', + method: 'post', + data: parameter + }) +} + +// 档案还原 +export function FetchReduction(parameter) { + return request({ + url: 'api/archives/reduction', + method: 'post', + data: parameter + }) +} + +// 根据门类导出数据 +// export function FetchExportArchives(params) { +// return request({ +// url: 'api/archives/exportArchives?' + qs.stringify(params, { indices: false }), +// method: 'get', +// responseType: 'blob' +// }) +// } + +export default { add, edit, del, FetchInitArchivesView, FetchTableDisplayFields, FetchFormDisplayFields, FetchDoeditIsRepeat } diff --git a/src/assets/styles/archives-manage.scss b/src/assets/styles/archives-manage.scss index 6003f19..bf44ada 100644 --- a/src/assets/styles/archives-manage.scss +++ b/src/assets/styles/archives-manage.scss @@ -6,9 +6,26 @@ $arcRed:#F65163; $arcGreen: #1AAE93; $arcCyan: #0FBED9; +.head-archives{ + padding: 0 0 20px 0; + .archives-crud{ + float: left; + } + .head-search{ + float: left; + margin-left: 10px; + margin-bottom: 0 !important; + .filter-item{ + margin-right: 5px !important; + } + } + .archives-handler-btn{ + float: right; + } +} ::v-deep.input-prepend{ position: relative; - z-index: 1001; + z-index: 99; .el-input__inner { padding-left: 80px; } @@ -58,18 +75,26 @@ $arcCyan: #0FBED9; background-color: #02255F; } } - -.head-archives-top{ +.archives-warp{ + margin-bottom: 20px; +} +.archives-top{ display: flex; - justify-content: space-between; - .head-search{ - flex: 1; - } + justify-content: right; + margin-bottom: 10px; ::v-deep .el-checkbox .el-checkbox__label{ color: #fff; } } - +.archives-right-list{ + position: relative; +} +.archives-fixed-top{ + position: absolute; + right: 0; + top: 6px; + margin-bottom: 0; +} .crud-opts{ justify-content: space-between; } @@ -175,7 +200,7 @@ $arcCyan: #0FBED9; ::v-deep .is-scrolling-left, ::v-deep .is-scrolling-middle, ::v-deep .is-scrolling-right{ - min-height: calc(100vh - 434px) !important; + max-height: calc(100vh - 434px) !important; } } ::v-deep .archives-table.el-table .el-table__fixed-right{ @@ -289,15 +314,17 @@ $arcCyan: #0FBED9; span{ display: block; width: 160px; + margin-right: 5px; text-align: right; color: #3A99FD; } p{ - flex: 1; + // flex: 1; } } } ::v-deep.hljs{ + padding: 0 30px; color: #fff; background-color: transparent; } @@ -506,4 +533,10 @@ $arcCyan: #0FBED9; background-color: #031435; } } +} + +.item-content{ + max-height: calc(100vh - 410px); + overflow: hidden; + overflow-y: scroll; } \ No newline at end of file diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index a810fff..1e62026 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -424,7 +424,7 @@ .el-checkbox__inner{ background: transparent; - border-color: #339CFF; + border-color: $inputBorder; } .el-icon-arrow-right:before{ @@ -436,26 +436,43 @@ padding: 2px 10px; margin: 10px 0 !important; .el-pagination__total{ - color: #fff; + color: $inputBorder; } button{ + height: 24px; + line-height: 24px; background-color: transparent; &:disabled{ background-color: transparent; } } + .el-pager li{ + min-width: 24px; + height: 24px; + line-height: 24px; + color: $inputBorder; + background-color: transparent; + } .el-pager li.active{ color: #fff; - background-color: transparent; + background-color: #2072D2; } .el-select .el-input .el-input__inner{ background-color: transparent; - color: #fff; + color: $inputBorder; + border-color: $inputBorder; + } + .el-icon-arrow-right:before{ + color: $inputBorder; } .btn-prev, .btn-next{ + color: $inputBorder; background-color: transparent; } + .el-select .el-input .el-select__caret{ + color: $inputBorder; + } } // 弹框 @@ -931,3 +948,27 @@ input[type='number'] { color: #fff; } } +.el-message-box .el-button, +.el-popover .el-button{ + color: #fff; + border-color: #339cff; + background-color: transparent; +} + +.el-message-box .el-button:hover, +.el-popover .el-button:focus{ + color: #fff; + background-color: #02255F; + border-color: #339CFF; +} +.el-message-box .el-button--primary, +.el-message-box .el-button--primary:focus, +.el-message-box .el-button--primary:hover { + background: #46a6ff; + border-color: #46a6ff; + color: #fff; +} +.el-table__header-wrapper{ + background-color: #02255f; + border-top: 1px solid #113d72; +} \ No newline at end of file diff --git a/src/utils/index.js b/src/utils/index.js index ab7ad30..f80cab8 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -377,6 +377,7 @@ export function regMobile(mobile) { // 下载文件 export function downloadFile(obj, name, suffix) { const url = window.URL.createObjectURL(new Blob([obj])) + console.log(url) const link = document.createElement('a') link.style.display = 'none' link.href = url @@ -386,3 +387,17 @@ export function downloadFile(obj, name, suffix) { link.click() document.body.removeChild(link) } + +// new - 导出 - TEST +export function exportFile(StingParams, fileName) { + const baseURL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_BASE_API : 'http://192.168.99.84:7070/' + const url = baseURL + StingParams + const link = document.createElement('a') + link.style.display = 'none' + link.href = url + link.setAttribute('target', '_blank') + link.setAttribute('download', fileName) + document.body.appendChild(link) + link.click() + document.body.removeChild(link) +} diff --git a/src/views/archivesManage/archivesList/archivesDetail.vue b/src/views/archivesManage/archivesList/archivesDetail.vue index c94ce16..20c2290 100644 --- a/src/views/archivesManage/archivesList/archivesDetail.vue +++ b/src/views/archivesManage/archivesList/archivesDetail.vue @@ -1,39 +1,41 @@ + + diff --git a/src/views/archivesManage/archivesList/module/archivesProject/index.vue b/src/views/archivesManage/archivesList/module/archivesProject/index.vue new file mode 100644 index 0000000..8369ac2 --- /dev/null +++ b/src/views/archivesManage/archivesList/module/archivesProject/index.vue @@ -0,0 +1,369 @@ + + + + + diff --git a/src/views/archivesManage/archivesList/module/table/index.vue b/src/views/archivesManage/archivesList/module/table/index.vue new file mode 100644 index 0000000..5027e49 --- /dev/null +++ b/src/views/archivesManage/archivesList/module/table/index.vue @@ -0,0 +1,230 @@ + + + + + diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue index 2b5daaa..df4004f 100644 --- a/src/views/components/category/PreviewForm.vue +++ b/src/views/components/category/PreviewForm.vue @@ -70,7 +70,7 @@
- + @@ -83,7 +83,7 @@