APPbug反馈修改
This commit is contained in:
@@ -137,9 +137,9 @@ export default {
|
||||
{
|
||||
text: '功率',
|
||||
},
|
||||
{
|
||||
text: '波形',
|
||||
},
|
||||
// {
|
||||
// text: '波形',
|
||||
// },
|
||||
{
|
||||
text: 'I/O',
|
||||
},
|
||||
@@ -238,56 +238,29 @@ export default {
|
||||
uni.pageScrollTo({ scrollTop: 0, duration: 0 })
|
||||
},
|
||||
init() {
|
||||
switch (this.userInfo.authorities) {
|
||||
case 1:
|
||||
this.content.splice(0, 1)
|
||||
this.content.splice(
|
||||
0,
|
||||
0,
|
||||
{
|
||||
iconPath: '/static/version.png',
|
||||
text: '版本',
|
||||
},
|
||||
{
|
||||
iconPath: '/static/template.png',
|
||||
text: '模版',
|
||||
},
|
||||
)
|
||||
break
|
||||
case 2:
|
||||
this.content.splice(0, 1)
|
||||
break
|
||||
case 4:
|
||||
this.content.splice(
|
||||
1,
|
||||
0,
|
||||
{
|
||||
iconPath: '/static/delate.png',
|
||||
text: '报表',
|
||||
},
|
||||
|
||||
{
|
||||
iconPath: '/static/feedback.png',
|
||||
text: '反馈',
|
||||
},
|
||||
)
|
||||
break
|
||||
case 5:
|
||||
this.content.splice(
|
||||
2,
|
||||
0,
|
||||
{
|
||||
iconPath: '/static/table.png',
|
||||
text: '报表',
|
||||
},
|
||||
{
|
||||
iconPath: '/static/feedback.png',
|
||||
text: '反馈',
|
||||
},
|
||||
)
|
||||
break
|
||||
default:
|
||||
break
|
||||
if (this.isPrimaryUser == 1) {
|
||||
this.content.splice(
|
||||
0,
|
||||
0,
|
||||
{
|
||||
iconPath: '/static/transfer.png',
|
||||
text: '移交',
|
||||
},
|
||||
{
|
||||
iconPath: '/static/feedback.png',
|
||||
text: '编辑',
|
||||
},
|
||||
{
|
||||
iconPath: '/static/delate.png',
|
||||
text: '删除',
|
||||
},
|
||||
)
|
||||
if (this.userInfo.authorities === 'app_vip_user') {
|
||||
this.content.splice(3, 0, {
|
||||
iconPath: '/static/share.png',
|
||||
text: '分享',
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
renderFinish(e) {
|
||||
@@ -387,26 +360,7 @@ export default {
|
||||
|
||||
this.devId = options.id
|
||||
this.isPrimaryUser = options.isPrimaryUser
|
||||
if (this.isPrimaryUser == 1) {
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/delate.png',
|
||||
text: '删除',
|
||||
})
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/feedback.png',
|
||||
text: '编辑',
|
||||
})
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/transfer.png',
|
||||
text: '移交',
|
||||
})
|
||||
if (this.userInfo.authorities !== 'engineering_user') {
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/share.png',
|
||||
text: '分享',
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
this.init()
|
||||
queryTopologyDiagram(options.id).then((res) => {
|
||||
this.deviceInfo = res.data
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Cn-empty v-if="projectList.length == 0"></Cn-empty>
|
||||
<template v-else>
|
||||
<uni-card
|
||||
:title="item.equipmentName"
|
||||
:title="item.name"
|
||||
:sub-title="item.projectName"
|
||||
:extra="item.projectType"
|
||||
padding="0"
|
||||
@@ -76,6 +76,7 @@ export default {
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.device-list {
|
||||
padding-top: 20rpx;
|
||||
.header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
||||
Reference in New Issue
Block a user