diff --git a/common/config.js b/common/config.js index 4d73a40..b93d548 100644 --- a/common/config.js +++ b/common/config.js @@ -26,5 +26,5 @@ const config = { // 设置后台接口服务的基础地址 config.baseUrl = 'http://tc.cqsznc.com:7080/api'; // config.baseUrl = 'http://183.230.235.66:11010/api'; - +// config.baseUrl = 'http://58cbd58.r28.cpolar.top'; export default config; \ No newline at end of file diff --git a/common/http.api.js b/common/http.api.js index c5b828f..915e9d3 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -22,6 +22,9 @@ const install = (Vue, vm) => { //订单报事报修 getOrderList:(params = {})=>vm.$u.get(config.adminPath+'/property/workOrders/list',params), + //订单列表 + getOrderList2:(params = {})=>vm.$u.get(config.adminPath+'/property/mobile/workOrders/list',params), + //订单类型 getOrdersType:(params = {})=>vm.$u.get(config.adminPath+'/property/workOrdersType/list',params), //报事报修订单类型 @@ -33,6 +36,9 @@ const install = (Vue, vm) => { //修改订单 updateOrder:(params = {})=>vm.$u.put(config.adminPath+'/property/workOrders',params), + //获取处理人 + getHandler:(params = {})=>vm.$u.get(config.adminPath+'/property/enum-fetcher/enum-values/getServiceWorkOrdersHandler',params), + //会议列表 getMeetings:(params = {})=>vm.$u.get(config.adminPath+'/property/roomBooking/list',params), @@ -43,8 +49,13 @@ const install = (Vue, vm) => { getPlay:(params = {})=>vm.$u.post(config.adminPath+'/sis/stream/realtime/add',params), //获取预警列表 - getWarns:(params = {})=>vm.$u.get(config.adminPath+'/property/warning/list',params), + getWarns:(params = {})=>vm.$u.get(config.adminPath+'/sis/alarmEvents/list/curr',params), + //预警处理 + warnsProcess:(params = {})=>vm.$u.post(config.adminPath+'/sis/alarmEvents/complete',params), + + //巡检任务列表 + getInspection:(params = {})=>vm.$u.get(config.adminPath+'/property/item/list',params), // 基础服务:登录登出、身份信息、菜单授权、切换系统、字典数据等 lang: (params = {}) => vm.$u.get('/lang/'+params.lang), diff --git a/components/SelectUser.vue b/components/SelectUser.vue index dd0c995..a7f6b51 100644 --- a/components/SelectUser.vue +++ b/components/SelectUser.vue @@ -1,134 +1,214 @@ - + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index e078463..f8fc010 100644 --- a/pages.json +++ b/pages.json @@ -303,18 +303,18 @@ "style": { "navigationBarTitleText": "发起邀约" } - }, - { - "path": "pages/sys/user/myVisitor/creatVisitor2", - "style": { - "navigationBarTitleText": "发起邀约" - } - }, - { - "path": "pages/sys/user/myVisitor/selectRoom", - "style": { - "navigationBarTitleText": "选择服务地址" - } + }, + { + "path": "pages/sys/user/myVisitor/creatVisitor2", + "style": { + "navigationBarTitleText": "发起邀约" + } + }, + { + "path": "pages/sys/user/myVisitor/selectRoom", + "style": { + "navigationBarTitleText": "选择服务地址" + } }, { "path": "pages/sys/user/myVisitor/visitorInfo", @@ -333,12 +333,12 @@ "style": { "navigationBarTitleText": "缴费记录" } - }, - { - "path": "pages/sys/user/myPayment/myCarCode", - "style": { - "navigationBarTitleText": "我的车牌" - } + }, + { + "path": "pages/sys/user/myPayment/myCarCode", + "style": { + "navigationBarTitleText": "我的车牌" + } }, { "path": "pages/sys/user/myRepair/myRepair", @@ -351,12 +351,12 @@ "style": { "navigationBarTitleText": "新增" } - }, - { - "path": "pages/sys/user/myRepair/selectLocation", - "style": { - "navigationBarTitleText": "选择服务地址" - } + }, + { + "path": "pages/sys/user/myRepair/selectLocation", + "style": { + "navigationBarTitleText": "选择服务地址" + } }, { "path": "pages/sys/user/myRepair/repaired", @@ -388,82 +388,96 @@ "style": { "navigationStyle": "custom" } - }, - { - "path" : "pages/sys/workbench/order/order", - "style" : - { + }, + { + "path" : "pages/sys/workbench/order/order", + "style" : + { "navigationBarTitleText": "工单管理" - } + } + }, + { + "path" : "pages/sys/workbench/order/createOrder", + "style" : + { + "navigationBarTitleText": "创建工单" + } + }, + { + "path" : "pages/sys/workbench/order/orderDetail", + "style" : + { + "navigationBarTitleText": "工单详情" + } + }, + { + "path" : "pages/sys/workbench/meet/meet", + "style" : + { + "navigationBarTitleText" : "会议预约" + } + }, + { + "path" : "pages/sys/workbench/meet/createMeet", + "style" : + { + "navigationBarTitleText" : "会议室预约" + } + }, + { + "path" : "pages/sys/workbench/camera", + "style" : + { + "navigationStyle": "custom" + } + }, + { + "path" : "pages/sys/workbench/monitor/monitors", + "style" : + { + "navigationBarTitleText" : "监控室" + } + }, + { + "path" : "pages/sys/workbench/monitor/monitorplay", + "style" : + { + "navigationStyle": "custom" + } + }, + { + "path" : "pages/sys/workbench/earlyWarning/earlyWarning", + "style" : + { + "navigationStyle": "custom" + } + }, + { + "path" : "pages/sys/workbench/earlyWarning/warnDetail", + "style" : + { + "navigationBarTitleText" : "预警详情" + } + }, + { + "path" : "pages/sys/workbench/earlyWarning/warnStatistics", + "style" : + { + "navigationBarTitleText" : "预警统计" + } + }, + { + "path" : "pages/sys/workbench/inspection/inspection", + "style" : + { + "navigationBarTitleText" : "工作巡检" + } }, { - "path" : "pages/sys/workbench/order/createOrder", + "path" : "pages/sys/workbench/inspection/inspectionProcess", "style" : { - "navigationBarTitleText": "创建工单" - } - }, - { - "path" : "pages/sys/workbench/order/orderDetail", - "style" : - { - "navigationBarTitleText": "工单详情" - } - }, - { - "path" : "pages/sys/workbench/meet/meet", - "style" : - { - "navigationBarTitleText" : "会议预约" - } - }, - { - "path" : "pages/sys/workbench/meet/createMeet", - "style" : - { - "navigationBarTitleText" : "会议室预约" - } - }, - { - "path" : "pages/sys/workbench/camera", - "style" : - { - "navigationStyle": "custom" - } - }, - { - "path" : "pages/sys/workbench/monitor/monitors", - "style" : - { - "navigationBarTitleText" : "监控室" - } - }, - { - "path" : "pages/sys/workbench/monitor/monitorplay", - "style" : - { - "navigationStyle": "custom" - } - }, - { - "path" : "pages/sys/workbench/earlyWarning/earlyWarning", - "style" : - { - "navigationStyle": "custom" - } - }, - { - "path" : "pages/sys/workbench/earlyWarning/warnDetail", - "style" : - { - "navigationBarTitleText" : "预警详情" - } - }, - { - "path" : "pages/sys/workbench/earlyWarning/warnStatistics", - "style" : - { - "navigationBarTitleText" : "预警统计" + "navigationBarTitleText" : "巡检任务" } } ], @@ -502,13 +516,13 @@ "navigationBarTextStyle": "black", "navigationBarTitleText": "Aidex", "navigationBarBackgroundColor": "#ffffff" - }, - "easycom": { - "autoscan": true, - "custom": { - "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" - } - } - + }, + "easycom": { + "autoscan": true, + "custom": { + "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" + } + } + } \ No newline at end of file diff --git a/pages/sys/home/home.vue b/pages/sys/home/home.vue index d924f6d..73a742d 100644 --- a/pages/sys/home/home.vue +++ b/pages/sys/home/home.vue @@ -1,409 +1,467 @@ - - - - - \ No newline at end of file diff --git a/pages/sys/home/scan.vue b/pages/sys/home/scan.vue new file mode 100644 index 0000000..de001ad --- /dev/null +++ b/pages/sys/home/scan.vue @@ -0,0 +1,504 @@ + + + + + \ No newline at end of file diff --git a/pages/sys/user/mine.vue b/pages/sys/user/mine.vue index 69fe0d0..feba15d 100644 --- a/pages/sys/user/mine.vue +++ b/pages/sys/user/mine.vue @@ -26,7 +26,7 @@ - + @@ -35,10 +35,10 @@ export default { name: 'Mine', data() { - return { - userInfo:{ - nickname: '', - phone:'' + return { + userInfo:{ + nickname: '', + phone:'' }, list: [{ icon: '/static/ic_mine_info.png', @@ -76,8 +76,8 @@ ] } }, - onLoad() { - this.userInfo.nickname =this.vuex_user.nickName + onLoad() { + this.userInfo.nickname =this.vuex_user.nickName this.userInfo.phone = this.vuex_user.phonenumber }, methods: { @@ -111,6 +111,14 @@ url: '/pages/sys/user/myRecord/myRecord' }); } + }, + logout() { + // 清除用户信息并返回登录页 + this.$u.vuex('vuex_user', {}); + this.$u.vuex('vuex_token', ''); + uni.redirectTo({ + url: '/pages/sys/login/login' + }); } } } diff --git a/pages/sys/user/myVisitor/creatVisitor.vue b/pages/sys/user/myVisitor/creatVisitor.vue index 038396f..1c5168d 100644 --- a/pages/sys/user/myVisitor/creatVisitor.vue +++ b/pages/sys/user/myVisitor/creatVisitor.vue @@ -115,7 +115,6 @@ let images = ['']; let filePath = this.header.replace('file://', ''); images[0] = filePath; - console.log("t1", images) const result = await uploadFiles({ files: images, url: this.vuex_config.baseUrl + '/resource/oss/upload', @@ -125,7 +124,6 @@ if (result.code == '200') { data = result.data.url - console.log("t1", result.data.url) } this.form.facePictures = result.url diff --git a/pages/sys/workbench/earlyWarning/earlyWarning.vue b/pages/sys/workbench/earlyWarning/earlyWarning.vue index 0bbf9d7..1993e2e 100644 --- a/pages/sys/workbench/earlyWarning/earlyWarning.vue +++ b/pages/sys/workbench/earlyWarning/earlyWarning.vue @@ -16,19 +16,19 @@ - + - 事件预警类型 + {{item.smallTypeName}} - 紧急 + {{item.levelName}} - 预警内容 - 预警位置 - 预警时间 - 预警设备 - + 预警内容:{{ item.description }} + 预警位置:{{ item.deviceGroupName }} + 预警时间:{{ item.reportTime }} + 预警设备:{{ item.deviceName }} + 去处理 @@ -57,6 +57,11 @@ return this.tabData[this.activeTab]; }, }, + onShow() { + uni.$once('refreshData',s=> { + this.loadTabData(this.activeTab); + }); + }, created() { this.loadTabData(this.activeTab); }, @@ -74,8 +79,10 @@ async loadTabData(idx) { this.loading = true; let params = {}; - if(idx == 0){ - params = {'status':0} + if (idx == 0) { + params = { + 'states': [20, 30, 31, 32] + } } let res = await this.$u.api.getWarns(params); if (res.code == "200") { @@ -91,10 +98,16 @@ url: "/pages/sys/workbench/earlyWarning/warnDetail?item=" + itemStr, }); }, - goStatistics(){ + goDetail2(item) { + const itemStr = encodeURIComponent(JSON.stringify(item)); + uni.navigateTo({ + url: "/pages/sys/workbench/earlyWarning/warnDetail?item=" + itemStr+"&pageType=detail", + }); + }, + goStatistics() { uni.navigateTo({ url: "/pages/sys/workbench/earlyWarning/warnStatistics" - }); + }); } }, }; @@ -124,12 +137,14 @@ margin-left: 24rpx; margin-right: 78rpx; } - .warn-right-txt{ + + .warn-right-txt { font-size: 24rpx; color: #0090FF; margin-right: 24rpx; } - .warn-title{ + + .warn-title { font-size: 36rpx; color: #000; margin-left: auto; @@ -188,15 +203,15 @@ padding-top: 25rpx; padding-bottom: 32rpx; } - + .warn-eval-wrap { display: flex; justify-content: center; width: 100%; margin-top: 20rpx; } - - .warn-eval-btn{ + + .warn-eval-btn { width: 240rpx; height: 60rpx; text-align: center; diff --git a/pages/sys/workbench/earlyWarning/warnDetail.vue b/pages/sys/workbench/earlyWarning/warnDetail.vue index 40dc610..345d616 100644 --- a/pages/sys/workbench/earlyWarning/warnDetail.vue +++ b/pages/sys/workbench/earlyWarning/warnDetail.vue @@ -1,338 +1,360 @@ - - - - - \ No newline at end of file +}; + + + diff --git a/pages/sys/workbench/inspection/inspection.vue b/pages/sys/workbench/inspection/inspection.vue new file mode 100644 index 0000000..f2a6080 --- /dev/null +++ b/pages/sys/workbench/inspection/inspection.vue @@ -0,0 +1,222 @@ + + + + + \ No newline at end of file diff --git a/pages/sys/workbench/inspection/inspectionProcess.vue b/pages/sys/workbench/inspection/inspectionProcess.vue new file mode 100644 index 0000000..362ea78 --- /dev/null +++ b/pages/sys/workbench/inspection/inspectionProcess.vue @@ -0,0 +1,274 @@ + + + + + diff --git a/pages/sys/workbench/order/order.vue b/pages/sys/workbench/order/order.vue index 843e6a9..04790b0 100644 --- a/pages/sys/workbench/order/order.vue +++ b/pages/sys/workbench/order/order.vue @@ -18,13 +18,13 @@ - {{ !selectedFilters.status || selectedFilters.status === '全部' ? '工单状态' : selectedFilters.status }} + {{ !selectedFilters.status || selectedFilters.status.name === '全部' ? '工单状态' : selectedFilters.status.name }} + @click.stop="selectFilter('status', item)"> {{ item.name }} @@ -33,13 +33,13 @@ - {{ !selectedFilters.handler || selectedFilters.handler === '全部' ? '处理人' : selectedFilters.handler }} + {{ !selectedFilters.handler || selectedFilters.handler.name === '全部' ? '处理人' : selectedFilters.handler.name }} + @click.stop="selectFilter('handler', item)"> {{ item.name }} @@ -108,7 +108,11 @@ 'orderTypeName': '全部' }], statusList: [], - handlerList: [], + handlerList: [ + { + "name": '全部' + }, + ], }; }, computed: { @@ -116,7 +120,8 @@ return this.tabData[this.activeTab]; }, }, - created() { + created() { + console.log("t1","!1111") this.loadTabData(this.activeTab); this.loadFilterData(); }, @@ -141,13 +146,23 @@ await this.loadTabData(idx); } }, - async loadTabData(idx) { + async loadTabData(idx) { + this.loading = true; let params = {}; if (this.selectedFilters.type && this.selectedFilters.type.id) { params.type = this.selectedFilters.type.id + } + if(this.selectedFilters.status&&this.selectedFilters.status.id){ + params.status = this.selectedFilters.status.id + } + if(this.selectedFilters.handler&&this.selectedFilters.handler.value){ + params.handler = this.selectedFilters.handler.value + } + if(idx == 0){ + params.status = "1,2" } - let res = await this.$u.api.getOrderList(params); + let res = await this.$u.api.getOrderList2(params); if (res.code == "200") { this.$set(this.tabData, idx, res.rows); } @@ -203,63 +218,33 @@ let resType = await this.$u.api.getOrdersType(); if (resType.code === 200) { this.typeList = [...this.typeList, ...resType.rows]; + } + + let handlers = await this.$u.api.getHandler(); + if(handlers.code === 200){ + this.handlerList = [...this.handlerList,...handlers.data] } - this.statusList = [{ name: "全部" }, { - name: "创建工单" + name: "创建工单", + id:"0" }, { - name: "已接单" + name: "已接单", + id:"1,2" }, { - name: "处理中" + name: "处理中", + id:"3" }, { - name: "已完成" + name: "已完成", + id:"4" }, ]; - - - - // 处理人 - try { - let resHandler = await this.$u.api.getHandlers(); - if (resHandler.code === "200" && Array.isArray(resHandler.data)) { - this.handlerList = resHandler.data; - } else { - this.handlerList = [{ - name: "全部" - }, - { - name: "张三" - }, - { - name: "李四" - }, - { - name: "王五" - }, - ]; - } - } catch { - this.handlerList = [{ - name: "全部" - }, - { - name: "张三" - }, - { - name: "李四" - }, - { - name: "王五" - }, - ]; - } }, }, }; diff --git a/pages/sys/workbench/order/orderDetail.vue b/pages/sys/workbench/order/orderDetail.vue index 5584d49..f0ea5d1 100644 --- a/pages/sys/workbench/order/orderDetail.vue +++ b/pages/sys/workbench/order/orderDetail.vue @@ -89,7 +89,6 @@ this.detail = item; this.detail.orderImgUrl = "https://picsum.photos/80/80?random=3,https://picsum.photos/80/80?random=3,https://picsum.photos/80/80?random=3"; - console.log("t1", this.detail) // 现在可以使用item对象了 // 进度映射 if (item.status == 0) { diff --git a/pages/sys/workbench/workbench.vue b/pages/sys/workbench/workbench.vue index 1cb2dd7..90b46cb 100644 --- a/pages/sys/workbench/workbench.vue +++ b/pages/sys/workbench/workbench.vue @@ -47,45 +47,52 @@ name: 'Workbench', data() { return { - commonApps: [{ - icon: 'https://picsum.photos/80/80?random=3', - text: '审批' - }, - { - icon: 'https://picsum.photos/80/80?random=3', - text: '假勤', - url:'/pages/sys/workbench/camera' + commonApps: [ + // { + // icon: 'https://picsum.photos/80/80?random=3', + // text: '工作巡检', + // url:'/pages/sys/workbench/inspection/inspection' + // }, + // { + // icon: 'https://picsum.photos/80/80?random=3', + // text: '假勤', + // url:'/pages/sys/workbench/camera' - }, + // }, { - icon: 'https://picsum.photos/80/80?random=3', + icon: '/static/aaaa_gd.png', text: '工单', url:'/pages/sys/workbench/order/order' }, { - icon: 'https://picsum.photos/80/80?random=3', + icon: '/static/aaaa_yjcl.png', text: '预警处理', url:'/pages/sys/workbench/earlyWarning/earlyWarning' }, + // { + // icon: 'https://picsum.photos/80/80?random=3', + // text: '保洁' + // }, { - icon: 'https://picsum.photos/80/80?random=3', - text: '保洁' - }, - { - icon: 'https://picsum.photos/80/80?random=3', + icon: '/static/aaaa_jk.png', text: '监控', url:'/pages/sys/workbench/monitor/monitors' - }, - { - icon: 'https://picsum.photos/80/80?random=3', - text: '会议', - url:'/pages/sys/workbench/meet/meet' - }, - { - icon: 'https://picsum.photos/80/80?random=3', - text: '添加常用' + }, + { + icon: '/static/aaaa_bsbx.png', + text: '报事报修', + url:'/pages/sys/user/myRepair/myRepair' } + // { + // icon: 'https://picsum.photos/80/80?random=3', + // text: '会议', + // url:'/pages/sys/workbench/meet/meet' + // }, + // { + // icon: 'https://picsum.photos/80/80?random=3', + // text: '添加常用' + // } ], tabs: ['最近使用', 'OA 管理', '敏捷开发', '协同办公'], activeTab: 0, diff --git a/static/aaa_banner1.png b/static/aaa_banner1.png new file mode 100644 index 0000000..3f729cb Binary files /dev/null and b/static/aaa_banner1.png differ diff --git a/static/aaa_bsbx.png b/static/aaa_bsbx.png new file mode 100644 index 0000000..7f760e9 Binary files /dev/null and b/static/aaa_bsbx.png differ diff --git a/static/aaa_fkgl.png b/static/aaa_fkgl.png new file mode 100644 index 0000000..947d22f Binary files /dev/null and b/static/aaa_fkgl.png differ diff --git a/static/aaa_fwzx.png b/static/aaa_fwzx.png new file mode 100644 index 0000000..0d3d108 Binary files /dev/null and b/static/aaa_fwzx.png differ diff --git a/static/aaa_gdgl.png b/static/aaa_gdgl.png new file mode 100644 index 0000000..9a69b62 Binary files /dev/null and b/static/aaa_gdgl.png differ diff --git a/static/aaa_hd1.png b/static/aaa_hd1.png new file mode 100644 index 0000000..e4a1eca Binary files /dev/null and b/static/aaa_hd1.png differ diff --git a/static/aaa_hd2.png b/static/aaa_hd2.png new file mode 100644 index 0000000..78ae896 Binary files /dev/null and b/static/aaa_hd2.png differ diff --git a/static/aaa_hyyy.png b/static/aaa_hyyy.png new file mode 100644 index 0000000..1d5e966 Binary files /dev/null and b/static/aaa_hyyy.png differ diff --git a/static/aaa_jqqd.png b/static/aaa_jqqd.png new file mode 100644 index 0000000..11a2891 Binary files /dev/null and b/static/aaa_jqqd.png differ diff --git a/static/aaa_shfw.png b/static/aaa_shfw.png new file mode 100644 index 0000000..fcee458 Binary files /dev/null and b/static/aaa_shfw.png differ diff --git a/static/aaa_tcjf.png b/static/aaa_tcjf.png new file mode 100644 index 0000000..dea06ec Binary files /dev/null and b/static/aaa_tcjf.png differ diff --git a/static/aaaa_bsbx.png b/static/aaaa_bsbx.png new file mode 100644 index 0000000..d2a45da Binary files /dev/null and b/static/aaaa_bsbx.png differ diff --git a/static/aaaa_gd.png b/static/aaaa_gd.png new file mode 100644 index 0000000..2091bd6 Binary files /dev/null and b/static/aaaa_gd.png differ diff --git a/static/aaaa_jk.png b/static/aaaa_jk.png new file mode 100644 index 0000000..6b1c7df Binary files /dev/null and b/static/aaaa_jk.png differ diff --git a/static/aaaa_yjcl.png b/static/aaaa_yjcl.png new file mode 100644 index 0000000..2d8632b Binary files /dev/null and b/static/aaaa_yjcl.png differ