diff --git a/src/App.vue b/src/App.vue index 90ed22f..ba2a868 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,7 +14,14 @@ getLocation() }, onShow: function (options) { - + if (uni.getStorageSync('logintime') && uni.getStorageSync('logintime') + 1800000 <= Date.now()) { //登录半小时自动注销 需重新登陆 + console.log('token超时',uni.getStorageSync('logintime')); + uni.removeStorageSync('logintime') + uni.navigateTo({ + url: '/pages/login/login' + }) + return + } // 首次进入页面时路由拦截 setTimeout(() => { const currentPage = options.path diff --git a/src/api/pages/file/index.ts b/src/api/pages/file/index.ts new file mode 100644 index 0000000..8774a94 --- /dev/null +++ b/src/api/pages/file/index.ts @@ -0,0 +1,41 @@ +import { http } from '@/utils/http'; + +export function queryDocumentApi(config) { // 公文列表 + return http({ + url: '/cxcoagwfb/cxcOaGwfb/bpmlist', + method: 'GET', + data: config + }) +} + +export function queryNoticeApi(config) { // 公告 + return http({ + url: '/cxctz/cxcTz/list', + method: 'GET', + data: config + }) +} + +export function querySuperiorSystemApi(config) { // 上级制度 + return http({ + url: '/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist', + method: 'GET', + data: config + }) +} + +export function queryFactorySystemApi(config) { // 厂级制度 + return http({ + url: '/cxczd/cxcZdgl/list', + method: 'GET', + data: config + }) +} + +export function queryRegulationsApi(config) { // 法律法规 + return http({ + url: '/cxcoaflgf/cxcOaFlgf/zslist', + method: 'GET', + data: config + }) +} \ No newline at end of file diff --git a/src/pages-user/location/location.vue b/src/pages-user/location/location.vue deleted file mode 100644 index bb5df7f..0000000 --- a/src/pages-user/location/location.vue +++ /dev/null @@ -1,89 +0,0 @@ - -{ - layout: 'default', - style: { - navigationBarTitleText: '', - navigationStyle: 'custom', - }, -} - - - - - - - diff --git a/src/pages.json b/src/pages.json index 70a1002..563c15d 100644 --- a/src/pages.json +++ b/src/pages.json @@ -172,6 +172,15 @@ "navigationBarTitleText": "工作台", "navigationStyle": "custom" } + }, + { + "path": "pages/operate/file/index", + "type": "page", + "layout": "default", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "公文/通知公告/法律法规/上级制度/厂级制度" + } } ], "subPackages": [ @@ -233,15 +242,6 @@ { "root": "pages-user", "pages": [ - { - "path": "location/location", - "type": "page", - "layout": "default", - "style": { - "navigationBarTitleText": "", - "navigationStyle": "custom" - } - }, { "path": "userEdit/userEdit", "type": "page", diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index fd29d2a..84474c7 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -8,7 +8,7 @@ }