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 @@