diff --git a/common/api/device.js b/common/api/device.js
index b76b0f9..495f0f0 100644
--- a/common/api/device.js
+++ b/common/api/device.js
@@ -156,3 +156,23 @@ export const updateDevice = (params) => {
data: params,
})
}
+
+// 设备用户列表
+export const queryDeviceUser = (devId) => {
+ return request({
+ url: '/cs-device-boot/deviceUser/queryUserById',
+ method: 'POST',
+ data: {
+ devId
+ },
+ })
+}
+
+// 取消分享
+export const cancelShare = (params) => {
+ return request({
+ url: '/cs-device-boot/deviceUser/cancelShare',
+ method: 'POST',
+ data: params,
+ })
+}
\ No newline at end of file
diff --git a/components/Cn-img/Cn-img.vue b/components/Cn-img/Cn-img.vue
new file mode 100644
index 0000000..f1c4285
--- /dev/null
+++ b/components/Cn-img/Cn-img.vue
@@ -0,0 +1,15 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 11f904f..b3576aa 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "灿能物联",
"appid" : "__UNI__88BC25B",
"description" : "",
- "versionName" : "1.2.6",
- "versionCode" : 126,
+ "versionName" : "1.2.7",
+ "versionCode" : 127,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages.json b/pages.json
index 331c439..9fe6704 100644
--- a/pages.json
+++ b/pages.json
@@ -285,7 +285,7 @@
}
},
{
- "path": "pages/mine/user",
+ "path": "pages/device/user",
"style": {
"navigationBarTitleText": "子用户"
}
diff --git a/pages/device/APF/detail.vue b/pages/device/APF/detail.vue
index 4d05817..cfa6ba9 100644
--- a/pages/device/APF/detail.vue
+++ b/pages/device/APF/detail.vue
@@ -32,7 +32,7 @@
{{ item.clDid }}
- {{ item.value || '-'}}
+ {{ item.value || '-' }}
°C
@@ -225,7 +225,7 @@ export default {
} else if (e.item.text === '反馈') {
uni.navigateTo({url: '/pages/device/feedback'})
} else if (e.item.text === '用户') {
- uni.navigateTo({url: '/pages/device/user'})
+ uni.navigateTo({url: '/pages/device/user?id=' + this.devId + '&isPrimaryUser=' + this.isPrimaryUser})
} else if (e.item.text === '报表') {
this.$util.toast('效果是直接打开报表')
} else if (e.item.text === '版本') {
@@ -426,6 +426,13 @@ export default {
text: '分享',
})
}
+
+ }
+ if (this.userInfo.authorities !== 'tourist') {
+ this.content.splice(0, 0, {
+ iconPath: '/static/subordinate.png',
+ text: '用户',
+ })
}
this.init()
},
diff --git a/pages/device/DVR/detail.vue b/pages/device/DVR/detail.vue
index 9eaa327..85ba4cc 100644
--- a/pages/device/DVR/detail.vue
+++ b/pages/device/DVR/detail.vue
@@ -4,7 +4,7 @@