diff --git a/manifest.json b/manifest.json index 45ec424..e03eb73 100644 --- a/manifest.json +++ b/manifest.json @@ -131,5 +131,5 @@ "uniStatistics" : { "enable" : false }, - "vueVersion" : "2" + "vueVersion" : "3" } diff --git a/pages.json b/pages.json index e44ebb7..6c431e6 100644 --- a/pages.json +++ b/pages.json @@ -184,19 +184,37 @@ { "path": "pages/message/incident", "style": { - "navigationBarTitleText": "系统消息" + "navigationBarTitleText": "暂态事件" + } + }, + { + "path": "pages/message/term", + "style": { + "navigationBarTitleText": "终端状态消息" + } + }, + { + "path": "pages/message/termList", + "style": { + "navigationBarTitleText": "异常终端列表" + } + }, + { + "path": "pages/message/termDetail", + "style": { + "navigationBarTitleText": "异常终端详情" } }, { "path": "pages/message/report", "style": { - "navigationBarTitleText": "告警" + "navigationBarTitleText": "稳态越限" } }, { "path": "pages/message/system", "style": { - "navigationBarTitleText": "事件" + "navigationBarTitleText": "系统消息" } }, { @@ -322,9 +340,8 @@ "navigationBarTextStyle": "black", "navigationBarTitleText": "灿能电力", "navigationBarBackgroundColor": "#ffffff", - "backgroundColor": "#f3f4f5" + "backgroundColor": "#f3f4f5", // #ifdef H5 - , "navigationStyle": "custom" // #endif }, diff --git a/pages/device/APF/detail.vue b/pages/device/APF/detail.vue index 140bb7b..7dda120 100644 --- a/pages/device/APF/detail.vue +++ b/pages/device/APF/detail.vue @@ -154,8 +154,11 @@ export default { } else if (e.item.text === '用户') { uni.navigateTo({ url: '/pages/device/user' }) } else if (e.item.text === '报表') { - // uni.navigateTo({ url: '/pages/device/user' }) this.$util.toast('效果是直接打开报表') + }else if (e.item.text === '版本') { + this.$util.toast('功能暂未开放') + }else if (e.item.text === '模版') { + this.$util.toast('效果是功能暂未开放直接打开报表') } this.$refs.fab.close() }, @@ -167,6 +170,15 @@ export default { let userInfo = uni.getStorageSync(this.$cacheKey.userInfo) console.log(userInfo.role); switch (userInfo.role) { + case 1: + this.content.splice(0, 0, { + iconPath: '/static/version.png', + text: '版本', + }, { + iconPath: '/static/template.png', + text: '模版', + }) + break; case 3: this.content.splice(0, 0, { iconPath: '/static/transfer.png', diff --git a/pages/device/DVR/detail.vue b/pages/device/DVR/detail.vue index 920def3..a2f2415 100644 --- a/pages/device/DVR/detail.vue +++ b/pages/device/DVR/detail.vue @@ -27,7 +27,7 @@ - + @@ -121,6 +121,15 @@ export default { let userInfo = uni.getStorageSync(this.$cacheKey.userInfo) console.log(userInfo.role); switch (userInfo.role) { + case 1: + this.content.splice(0, 0, { + iconPath: '/static/version.png', + text: '版本', + }, { + iconPath: '/static/template.png', + text: '模版', + }) + break; case 3: this.content.splice(1, 0, { iconPath: '/static/transfer.png', @@ -128,7 +137,7 @@ export default { }) break; case 4: - this.content.splice(0, 0,{ + this.content.splice(0, 0, { iconPath: '/static/subordinate.png', text: '用户', }, { diff --git a/pages/gateway/new.vue b/pages/gateway/new.vue index e7ef1f7..4a13b5d 100644 --- a/pages/gateway/new.vue +++ b/pages/gateway/new.vue @@ -3,9 +3,9 @@