diff --git a/src/pages.json b/src/pages.json index bf40a50..0792086 100644 --- a/src/pages.json +++ b/src/pages.json @@ -245,6 +245,38 @@ } }, { + "path": "pages/monitor_manage/monitor_manage", + "style" : { + "navigationBarTitleText": "监控管理" + } + }, + { + "path": "pages/monitor_manage/monitor_acount_list", + "style" : { + "navigationBarTitleText": "监控管理" + } + }, + { + "path": "pages/monitor_manage/monitor_acount_add", + "style" : { + "navigationBarTitleText": "监控管理" + } + }, + + { + "path": "pages/index/sunblind_manage", + "style" : { + "navigationBarTitleText": "窗帘管理" + } + }, + { + "path": "pages/index/lease_ball_box_manage", + "style" : { + "navigationBarTitleText": "租球机管理" + } + }, + + { "path": "pages/switch_manage/switch_manage", "style" : { "navigationBarTitleText": "管理" diff --git a/src/subpackage/device/pages/audio_manage/audio_manage.vue b/src/subpackage/device/pages/audio_manage/audio_manage.vue index e55849d..720929a 100644 --- a/src/subpackage/device/pages/audio_manage/audio_manage.vue +++ b/src/subpackage/device/pages/audio_manage/audio_manage.vue @@ -720,7 +720,7 @@ .slider-box{ margin-bottom: 40rpx; > text { - margin-left: 20rpx; + margin-left: 30rpx; font-size: 24rpx; color: #9C9C9F; } @@ -729,7 +729,7 @@ color: #9C9C9F; font-size: 28rpx; @include centerFlex(space-between); - padding: 0 24rpx; + padding: 0 34rpx; } } .sm-tit { diff --git a/src/subpackage/device/pages/index/index.vue b/src/subpackage/device/pages/index/index.vue index 749b243..9124623 100644 --- a/src/subpackage/device/pages/index/index.vue +++ b/src/subpackage/device/pages/index/index.vue @@ -50,11 +50,11 @@ const tabArr = [ {id: 10, name: '咖啡机', path: `/pages/device_manage/device_manage`}, {id: 11, name: '水阀', path: `/pages/switch_manage/switch_manage`}, {id: 12, name: '互动设备', path: `/pages/switch_manage/switch_manage`}, - {id: 13, name: '监控', path: ``}, + {id: 13, name: '监控', path: `/pages/switch_manage/switch_manage`}, {id: 14, name: '音响', path: `/pages/audio_manage/audio_manage`}, //audio_manage {id: 15, name: '机器人', path: ``}, {id: 16, name: '租球机', path: ``}, - {id: 17, name: '窗帘', path: ``}, + {id: 17, name: '窗帘', path: `/pages/switch_manage/switch_manage`}, {id: 18, name: '路由器', path: `/pages/switch_manage/switch_manage`}, {id: 19, name: '物联卡', path: `/pages/switch_manage/switch_manage`}, @@ -140,12 +140,14 @@ export default { e.id == 3 || // 风扇 e.id == 4 || // 门禁 e.id == 5 ||  // 门闸 - // e.id == 6 ||  // 平板 + e.id == 6 ||  // 平板 e.id == 8 ||  // 租售柜 e.id == 9 ||  // 储物柜 e.id == 10 ||  // 咖啡机 e.id == 11 ||  // 水阀 + e.id == 13 ||  // 监控 e.id == 14 ||  // 音响 + e.id == 17 ||  // 窗帘 e.id == 18 ||  // 路由 e.id == 19 ||  // 物联卡 e.id == 7   // 售货柜 diff --git a/src/subpackage/device/pages/index/lease_ball_box_manage.vue b/src/subpackage/device/pages/index/lease_ball_box_manage.vue new file mode 100644 index 0000000..b9d764a --- /dev/null +++ b/src/subpackage/device/pages/index/lease_ball_box_manage.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/src/subpackage/device/pages/index/sunblind_manage.vue b/src/subpackage/device/pages/index/sunblind_manage.vue new file mode 100644 index 0000000..2e954d6 --- /dev/null +++ b/src/subpackage/device/pages/index/sunblind_manage.vue @@ -0,0 +1,395 @@ + + + + + diff --git a/src/subpackage/device/pages/monitor_manage/monitor_acount_add.vue b/src/subpackage/device/pages/monitor_manage/monitor_acount_add.vue new file mode 100644 index 0000000..b9d764a --- /dev/null +++ b/src/subpackage/device/pages/monitor_manage/monitor_acount_add.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/src/subpackage/device/pages/monitor_manage/monitor_acount_list.vue b/src/subpackage/device/pages/monitor_manage/monitor_acount_list.vue new file mode 100644 index 0000000..573ba03 --- /dev/null +++ b/src/subpackage/device/pages/monitor_manage/monitor_acount_list.vue @@ -0,0 +1,245 @@ + + + + + diff --git a/src/subpackage/device/pages/monitor_manage/monitor_manage.vue b/src/subpackage/device/pages/monitor_manage/monitor_manage.vue new file mode 100644 index 0000000..3e859b4 --- /dev/null +++ b/src/subpackage/device/pages/monitor_manage/monitor_manage.vue @@ -0,0 +1,178 @@ + + + + + diff --git a/src/subpackage/device/pages/switch_manage/switch_manage.vue b/src/subpackage/device/pages/switch_manage/switch_manage.vue index bee063e..1640a17 100644 --- a/src/subpackage/device/pages/switch_manage/switch_manage.vue +++ b/src/subpackage/device/pages/switch_manage/switch_manage.vue @@ -90,11 +90,11 @@ const showArr = { closeIcon: '/subpackage/device/static/images/out.png', openName: '进', closeName: '出', hardware_type: 'GateControl',iconNum:2 }, - 's6': { + 's6': {//TODO 等待接口 id: 6, name: '平板管理', isOpen: false, isClose: false, openIcon: '/subpackage/device/static/images/open.png', closeIcon: '/subpackage/device/static/images/close.png', - openName: '开', closeName: '关', hardware_type: '',iconNum:2 + openName: '开', closeName: '关', hardware_type: 'Router4G',iconNum:2 }, 's11': { id: 11, name: '水阀管理', isOpen: true, isClose: true,isLongOpen:true, isTiming:true, @@ -109,6 +109,18 @@ const showArr = { closeIcon: '/subpackage/device/static/images/close.png', openName: '开', closeName: '关', hardware_type: '',iconNum:2 }, + 's13': {//TODO 等待接口 + id: 13, name: '监控管理', isOpen: false, isClose: false, isDetail:true, + openIcon: '/subpackage/device/static/images/open.png', + closeIcon: '/subpackage/device/static/images/close.png', + openName: '开', closeName: '关',detailName:"详情", hardware_type: 'IotSim',iconNum:2 + }, + 's17': {//TODO 等待接口 + id: 17, name: '窗帘管理', isOpen: false, isClose: false, isDetail:true, + openIcon: '/subpackage/device/static/images/open.png', + closeIcon: '/subpackage/device/static/images/close.png', + openName: '开', closeName: '关',detailName:"详情", hardware_type: 'Router4G',iconNum:2 + }, 's18': { id: 18, name: '路由器管理', isOpen: false, isClose: false, isDetail:true, openIcon: '/subpackage/device/static/images/open.png', @@ -121,6 +133,7 @@ const showArr = { closeIcon: '/subpackage/device/static/images/close.png', openName: '开', closeName: '关',detailName:"详情", hardware_type: 'IotSim',iconNum:2 }, + } import { mapState } from 'vuex'; @@ -185,14 +198,17 @@ export default { page = 1 }){ util.showLoad(); - deviceServer.get({ - url: deviceApi.hardwareList, - data: { + + let reqListData = { 'filter[hardware_type]': hardware_type, 'filter[stadium_id]': stadium_id, 'limit': limit, 'page': page, - }, + } + if(hardware_type=="WaterValve") reqListData.operating_status = 1; //0723 按测试要求 水阀这里加多一个状态 + deviceServer.get({ + url: deviceApi.hardwareList, + data: reqListData, failMsg: '加载失败!' }) .then(res=>{ @@ -221,8 +237,12 @@ export default { if(status == 2) return util.showNone("未对接,前端等待接口中...") if(status == 4){ + + // if(this.pageInfo.name=='监控管理')return util.routeTo(`/subpackage/device/pages/monitor_manage/monitor_manage?mac=${switchInfo.hardware_standard}`, 'nT'); + if(this.pageInfo.name=='窗帘管理')return util.routeTo(`/subpackage/device/pages/index/sunblind_manage?mac=${switchInfo.hardware_standard}`, 'nT'); if(this.pageInfo.hardware_type=='Router4G')return util.routeTo(`/subpackage/device/pages/index/router_manage?mac=${switchInfo.hardware_standard}`, 'nT'); if(this.pageInfo.hardware_type=='IotSim')return util.routeTo(`/subpackage/device/pages/index/lot_manage?mac=${switchInfo.hardware_standard}`, 'nT'); + } if(status == 3) return (()=>{ switchInfo.switchData = _data;//将中控组合数据传递到下层 diff --git a/src/subpackage/device/static/images/no-info.png b/src/subpackage/device/static/images/no-info.png new file mode 100644 index 0000000..c6b8760 Binary files /dev/null and b/src/subpackage/device/static/images/no-info.png differ diff --git a/src/subpackage/device/static/images/sunblind.png b/src/subpackage/device/static/images/sunblind.png new file mode 100644 index 0000000..a262889 Binary files /dev/null and b/src/subpackage/device/static/images/sunblind.png differ diff --git a/src/subpackage/device/static/images/sunblind_close.png b/src/subpackage/device/static/images/sunblind_close.png new file mode 100644 index 0000000..d42ff6b Binary files /dev/null and b/src/subpackage/device/static/images/sunblind_close.png differ diff --git a/src/subpackage/device/static/images/sunblind_open.png b/src/subpackage/device/static/images/sunblind_open.png new file mode 100644 index 0000000..bd3b110 Binary files /dev/null and b/src/subpackage/device/static/images/sunblind_open.png differ diff --git a/src/subpackage/device/static/images/windows.png b/src/subpackage/device/static/images/windows.png new file mode 100644 index 0000000..b402a33 Binary files /dev/null and b/src/subpackage/device/static/images/windows.png differ