diff --git a/App.vue b/App.vue index 2093d48..75c5d91 100644 --- a/App.vue +++ b/App.vue @@ -15,7 +15,7 @@ */ //var that=this // 小程序自动登录 - uni.showLoading({ + /* uni.showLoading({ title: '微信自动登录中...', mask: true }) @@ -54,7 +54,17 @@ }) } }); - + */ + let accessToken = this.$store.state.vuex_token; + if(accessToken){ + uni.reLaunch({ + url:'/pages/home/home_' + }) + }else{ + uni.reLaunch({ + url:'/pages/login/login_' + }) + } }, } diff --git a/common/http.api.js b/common/http.api.js index 8c47a49..65e32e2 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -17,6 +17,7 @@ const install = (Vue, vm) => { let codeLogin = (data = {}) => vm.$u.post('/auth/login_sms_code/', data); //短信验证码登录 let login = (data = {}) => vm.$u.post('auth/token/', data); //账户密码登录 + let loginOut = () => vm.$u.post('/auth/logout/'); //账户密码退出 // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 let wxmplogin = (data = {}) => vm.$u.post('auth/login_wxmp/', data); //微信登录 @@ -25,14 +26,39 @@ const install = (Vue, vm) => { let unbindmp = (data = {}) => vm.$u.post('/system/user/unbind_wxmp/', data); //微信小程序解绑 let getDickey = (params={})=>vm.$u.get('/system/dict/', params);//查询字典 + let getTickets = (params={})=>vm.$u.get('/wf/ticket/', params);//工单查询/wf/ticket/{id}/ + let getTicketItem = (id)=>vm.$u.get(`/wf/ticket/${id}/`);//工单详情 + let getTicketTransitions = (id)=>vm.$u.get(`/wf/ticket/${id}/transitions/`);//工单按钮查询 + let getVisit = (id)=>vm.$u.get(`/vm/visit/${id}/`);//visit查询 + + let getRpj = (id)=>vm.$u.get(`/rpm/rpj/${id}`);//rpj查询 + let getOpreation = (id)=>vm.$u.get(`/opm/operation/${id}/`);//rpj查询 + let getOpl = (id)=>vm.$u.get(`/opm/opl/${id}/`);//opl作业许可证查询 + + + + + + + + + vm.$u.api = {getUserInfo, getCode, codeLogin, login, + loginOut, wxmplogin, bindmp, unbindmp, getDickey, + getTickets, + getTicketItem, + getTicketTransitions, + getVisit, + getRpj, + getOpreation, + getOpl }; } diff --git a/components/applyInfoItem/applyInfoItem.vue b/components/applyInfoItem/applyInfoItem.vue new file mode 100644 index 0000000..3f7e233 --- /dev/null +++ b/components/applyInfoItem/applyInfoItem.vue @@ -0,0 +1,203 @@ + + + + + diff --git a/components/customTitle/customTitle.vue b/components/customTitle/customTitle.vue new file mode 100644 index 0000000..c3659a9 --- /dev/null +++ b/components/customTitle/customTitle.vue @@ -0,0 +1,549 @@ + + + + + diff --git a/package.json b/package.json index 7929b77..a01ec6c 100644 --- a/package.json +++ b/package.json @@ -10,4 +10,4 @@ "UI框架", "uni-app" ] -} \ No newline at end of file +} diff --git a/pages.json b/pages.json index a5c2c2e..d2a00f0 100644 --- a/pages.json +++ b/pages.json @@ -10,71 +10,141 @@ // "query": "uuid=c4bba940-f69e-11ea-a419-6bafda9d095e&__id__=1" //启动参数,在页面的onLoad函数里面得到 // }] // }, - "pages": [ - { - "path" : "pages/login/login_password", - "style" : - { - "navigationBarTitleText": "密码登录", - "enablePullDownRefresh": false - } - + "pages": [{ + "path": "pages/login/login_", + "style": { + "navigationBarTitleText": "密码登录", + "enablePullDownRefresh": false + } }, { - "path" : "pages/login/login", - "style" : - { - "navigationBarTitleText": "验证码登录", - "enablePullDownRefresh": false - } - + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "验证码登录", + "enablePullDownRefresh": false + } }, { - "path" : "pages/home/home", - "style" : - { - "navigationBarTitleText": "曲阳金隅智慧安全", - "enablePullDownRefresh": false - } - + "path": "pages/home/home_", + "style": { + "navigationBarTitleText": "主页", + "enablePullDownRefresh": false + } }, - { - "path" : "pages/my/my", - "style" : - { - "navigationBarTitleText": "个人中心", - "enablePullDownRefresh": false - } - - } - ], + { + "path": "pages/home/list/ticket", + "style": { + "navigationBarTitleText": "代办事件", + "navigationStyle": "custom" + } + }, + { + "path": "pages/home/list/warning", + "style": { + "navigationBarTitleText": "实时报警", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/home/detail/ticketHandle", + "style": { + "navigationBarTitleText": "工作流审批", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/home/detail/addNode", + "style": { + "navigationBarTitleText": "加签", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/home/detail/warningHandle", + "style": { + "navigationBarTitleText": "报警处理", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/workSpace/workSpace", + "style": { + "navigationBarTitleText": "工作台", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/workSpace/newWork/work", + "style": { + "navigationBarTitleText": "作业管理", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/workSpace/newWork/relevant", + "style": { + "navigationBarTitleText": "入厂项目", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/workSpace/newWork/visit", + "style": { + "navigationBarTitleText": "来访项目", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/my/my", + "style": { + "navigationBarTitleText": "个人中心", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/my/myInfo", + "style": { + "navigationBarTitleText": "个人信息", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + } + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "曲阳金隅智慧安全", "navigationBarBackgroundColor": "#F8F8F8", + // "navigationStyle": "custom", "backgroundColor": "#F8F8F8" }, "tabBar": { - "color": "#909399", - "selectedColor": "#909399", - "backgroundColor": "#FFFFFF", + "color": "#a6a6a6", + "selectedColor": "#2c6fd9", "borderStyle": "black", + "backgroundColor": "#ffffff", "list": [{ - "pagePath": "pages/home/home", - "iconPath": "static/common/home.png", - "selectedIconPath": "static/common/homec.png", + "pagePath": "pages/home/home_", + "iconPath": "static/tabbar/shouye.png", + "selectedIconPath": "static/tabbar/shouye-select.png", "text": "主页" }, - /* { - "pagePath": "pages/vod/video", - "iconPath": "static/common/play.png", - "selectedIconPath": "static/common/playc.png", - "text": "点播" - }, */ + { + "pagePath": "pages/workSpace/workSpace", + "iconPath": "static/tabbar/gongzuotai.png", + "selectedIconPath": "static/tabbar/gongzuotai-select.png", + "text": "工作台" + }, { "pagePath": "pages/my/my", - "iconPath": "static/common/me.png", - "selectedIconPath": "static/common/mec.png", + "iconPath": "static/tabbar/wode.png", + "selectedIconPath": "static/tabbar/wode-select.png", "text": "个人中心" } ] diff --git a/pages/home/detail/addNode.vue b/pages/home/detail/addNode.vue new file mode 100644 index 0000000..9e1e5b1 --- /dev/null +++ b/pages/home/detail/addNode.vue @@ -0,0 +1,41 @@ +