From 3aaf68483a6f422beb235f661c1d9fddb735ee58 Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Fri, 30 Jul 2021 18:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=90=84=E7=A7=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=88=E6=9C=AA=E5=AE=8C=E5=96=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/certificate.js | 52 +++ src/api/common.js | 22 ++ src/api/dic_muti_level_directory.js | 48 +++ src/api/message.js | 2 +- src/components/Notice/message.vue | 33 +- src/main.js | 2 + src/router/index.js | 23 ++ src/views/archive/archive_scan.vue | 3 +- src/views/bggl/banjie_list.vue | 2 +- .../bggl/components/original_db_list.vue | 37 +- src/views/borrow/borrow.vue | 298 ++++++++++++++++ src/views/borrow/borrowing-history.vue | 298 ++++++++++++++++ src/views/borrow/returned.vue | 217 ++++++++++++ src/views/certificate/index.vue | 322 ++++++++++++++++++ src/views/certificate/show.vue | 89 +++++ src/views/device_management/index.vue | 10 +- src/views/flow/definition.vue | 319 ++++++++++++++--- src/views/flow/restart.vue | 2 +- src/views/monitor/log_error.vue | 56 ++- src/views/monitor/log_info.vue | 8 +- src/views/statistics/filing.vue | 17 +- src/views/ysjl/1000/dj/nb/gynb.vue | 21 +- 23 files changed, 1777 insertions(+), 105 deletions(-) create mode 100644 src/api/certificate.js create mode 100644 src/api/dic_muti_level_directory.js create mode 100644 src/views/borrow/borrow.vue create mode 100644 src/views/borrow/borrowing-history.vue create mode 100644 src/views/borrow/returned.vue create mode 100644 src/views/certificate/index.vue create mode 100644 src/views/certificate/show.vue diff --git a/package.json b/package.json index 8f858ee..d57a016 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "vcolorpicker": "^0.1.8", "vue": "^2.6.6", "vue-count-to": "1.0.13", + "vue-json-viewer": "^2.2.19", "vue-qr": "^2.3.0", "vue-router": "3.0.2", "vuedraggable": "2.23.2", diff --git a/src/api/certificate.js b/src/api/certificate.js new file mode 100644 index 0000000..cbc1e4e --- /dev/null +++ b/src/api/certificate.js @@ -0,0 +1,52 @@ +import api from '@/utils/api' +import qs from 'qs' + +export function add(data) { + return api({ + url: '/certificate', + method: 'post', + data + }) +} + +export function edit(data) { + return api({ + url: '/certificate', + method: 'put', + data + }) +} +export function del(params) { + return api({ + url: '/certificate', + method: 'delete', + params, + paramsSerializer: function(params) { + return qs.stringify(params, { indices: false }) + } + }) +} + +export function getList(params) { + return api({ + url: '/certificate', + method: 'get', + params + }) +} + +export function exportExcel(params, exportOptions) { + return api({ + url: '/certificate/exportExcel' + '?' + qs.stringify(params, { indices: false }), + method: 'get', + params: { + exportOptions: exportOptions + }, + paramsSerializer: function(params) { + return qs.stringify(params, { indices: false }) + }, + responseType: 'blob' + }) +} + +export default { add, edit, del, getList } diff --git a/src/api/common.js b/src/api/common.js index 740e874..0dfb026 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -1,5 +1,7 @@ import api from '@/utils/api' import apibjd from '@/utils/apibjd' +import preview from '@/utils/preview' + export function getOwnList(query) { return api({ url: '/renwu/ownList', @@ -166,4 +168,24 @@ export function rebutFn(params) { return require('qs').stringify(data, { indices: false }) } }) +} +export function getStaticsList(params) { + return api({ + url: '/statistic/filing', + method: 'get', + params: params + }) +} +export function exportFilingFn(params) { + return preview({ + url: '/download/filing', + method: 'get', + params: params + }) +} +export function getAssetTreeFn() { + return api({ + url: '/asset/tree', + method: 'get' + }) } diff --git a/src/api/dic_muti_level_directory.js b/src/api/dic_muti_level_directory.js new file mode 100644 index 0000000..eca8a6f --- /dev/null +++ b/src/api/dic_muti_level_directory.js @@ -0,0 +1,48 @@ +import api from '@/utils/api' +import qs from 'qs' + +const rootUrl = '/dicMutiLevelDirectory' + +export function add(data) { + return api({ + url: rootUrl, + method: 'post', + data + }) +} + +export function edit(data) { + return api({ + url: rootUrl, + method: 'put', + data + }) +} +export function del(params) { + return api({ + url: rootUrl, + method: 'delete', + params, + paramsSerializer: function(params) { + return qs.stringify(params, { indices: false }) + } + }) +} + +export function get(params) { + return api({ + url: rootUrl, + method: 'get', + params + }) +} + +export function getTreeList(params) { + return api({ + url: rootUrl + '/getTreeList', + method: 'get', + params + }) +} + +export default { add, edit, del, get } diff --git a/src/api/message.js b/src/api/message.js index 1bd5683..1608970 100644 --- a/src/api/message.js +++ b/src/api/message.js @@ -6,7 +6,7 @@ import api from '@/utils/api' */ export function findMessageById(messageId) { return api({ - url: '/message/getById', + url: '/message', method: 'get', params: { messageId } }) diff --git a/src/components/Notice/message.vue b/src/components/Notice/message.vue index 1631b14..b8cb5cf 100644 --- a/src/components/Notice/message.vue +++ b/src/components/Notice/message.vue @@ -203,6 +203,30 @@ export default { this.getRecycleList() } }, + getSystemMessageCountList() { + this.api({ + url: '/message/getUnReadSystemCount', + method: 'get' + }).then(data => { + this.systemMessageCount = data + }) + }, + getRecycleMessageCountList() { + this.api({ + url: '/message/getRecycleMessageCount', + method: 'get' + }).then(data => { + this.recycleMessageCount = data + }) + }, + getReadmessageCountList() { + this.api({ + url: '/message/getReadmessageCount', + method: 'get' + }).then(data => { + this.readMessageCount = data + }) + }, getReadList() { this.api({ url: '/message/readList', @@ -211,14 +235,17 @@ export default { }).then(data => { this.readMessage = data.list this.readMessageTotal = data.totalCount - this.systemMessageCount = data.systemMessageCount - this.readMessageCount = data.readMessageCount - this.recycleMessageCount = data.recycleMessageCount + // this.systemMessageCount = data.systemMessageCount + // this.readMessageCount = data.readMessageCount + // this.recycleMessageCount = data.recycleMessageCount }) }, handleReadFilter() { this.readListQuery.pageNum = 1 this.getReadList() + this.getSystemMessageCountList() + this.getRecycleMessageCountList() + this.getReadmessageCountList() }, moveToRecycle() { if (this.readMultipleSelection.length === 0) { diff --git a/src/main.js b/src/main.js index 2474f2c..e3c9db6 100644 --- a/src/main.js +++ b/src/main.js @@ -29,6 +29,8 @@ import controller from './controller' import permission from './directive/permission' import adaptive from './directive/el-table' import vueqr from 'vue-qr' +import JSONView from 'vue-json-viewer' +Vue.use(JSONView) Vue.use(permission) Vue.use(adaptive) diff --git a/src/router/index.js b/src/router/index.js index af0701c..38167c3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -117,6 +117,29 @@ export const constantRouterMap = [{ meta: { title: '个人中心', icon: 'profile', noCache: true } }] } + // { + // path: '/certificate', + // component: Layout, + // redirect: '/certificate/certificate-list', + // name: 'certificate', + // meta: { title: '证书管理', menus: 'certificate' }, + // children: [{ + // path: 'certificate-list', + // name: 'CertificateList', + // component: () => + // import ('@/views/certificate/index'), + // meta: { title: '证书管理', icon: 'certificate' } + // }, + // { + // path: 'certificateshow', + // name: 'CertificateShow', + // component: () => + // import ('@/views/certificate/show'), + // meta: { tite: '证书信息', icon: 'certificate' }, + // hidden: true + // } + // ] + // } ] const createRouter = () => new Router({ diff --git a/src/views/archive/archive_scan.vue b/src/views/archive/archive_scan.vue index c12ac99..2f8e543 100644 --- a/src/views/archive/archive_scan.vue +++ b/src/views/archive/archive_scan.vue @@ -1,11 +1,10 @@