diff --git a/common/api/device.js b/common/api/device.js
index 72b555d..b76b0f9 100644
--- a/common/api/device.js
+++ b/common/api/device.js
@@ -76,7 +76,7 @@ export const queryByTopoId = (id) => {
},
})
}
-// 查询装置拓扑图
+// 查询设备拓扑图
export const queryTopologyDiagram = (devId) => {
return request({
url: '/cs-device-boot/lineTopologyDiagram/queryTopologyDiagram',
diff --git a/manifest.json b/manifest.json
index b21873f..e2c3c2c 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "灿能物联",
"appid" : "__UNI__88BC25B",
"description" : "",
- "versionName" : "1.1.4",
- "versionCode" : 114,
+ "versionName" : "1.1.5",
+ "versionCode" : 115,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
@@ -132,7 +132,7 @@
"/api" : {
"https" : true,
// "target" : "https://china.indpecker.com",
- "target" : "http://192.168.1.139:10215",
+ "target" : "http://192.168.1.115:10215",
"changOrigin" : true,
"pathRewrite" : {
"/api" : ""
diff --git a/pages.json b/pages.json
index fa10b19..331c439 100644
--- a/pages.json
+++ b/pages.json
@@ -198,19 +198,19 @@
{
"path": "pages/message/term",
"style": {
- "navigationBarTitleText": "终端状态消息"
+ "navigationBarTitleText": "设备状态消息"
}
},
{
"path": "pages/message/termList",
"style": {
- "navigationBarTitleText": "异常终端列表"
+ "navigationBarTitleText": "异常设备列表"
}
},
{
"path": "pages/message/termDetail",
"style": {
- "navigationBarTitleText": "异常终端详情"
+ "navigationBarTitleText": "异常设备详情"
}
},
{
@@ -253,7 +253,6 @@
"titleText": "灿能物联",
// 窗口的标题
"titleAlign": "center",
- "padding-left": "16rpx",
"padding-right": "20rpx",
"buttons": [
{
@@ -469,8 +468,9 @@
"navigationBarTextStyle": "black",
"navigationBarTitleText": "灿能电力",
"navigationBarBackgroundColor": "#ffffff",
- "backgroundColor": "#f3f4f5",
+ "backgroundColor": "#f3f4f5"
// #ifdef H5
+ ,
"navigationStyle": "custom"
// #endif
},
diff --git a/pages/device/APF/about.vue b/pages/device/APF/about.vue
index 36274a8..9188f2d 100644
--- a/pages/device/APF/about.vue
+++ b/pages/device/APF/about.vue
@@ -3,12 +3,12 @@
{{ deviceInfo.name }}
- 装置类型:{{ deviceInfo.devTypeName }}
- 装置型号:{{ deviceInfo.devModelName }}
+ 设备类型:{{ deviceInfo.devTypeName }}
+ 设备型号:{{ deviceInfo.devModelName }}
装置接入方式:{{ deviceInfo.devAccessMethod === 'cloud' ? '云直连' : 'mqtt' }}设备接入方式:{{ deviceInfo.devAccessMethod === 'cloud' ? '云直连' : 'mqtt' }}
-
+
程序版本:{{ deviceInfo.programVersionName }}
网络设备ID:{{ deviceInfo.ndid }}
diff --git a/pages/device/edit.vue b/pages/device/edit.vue
index 19364f4..240353f 100644
--- a/pages/device/edit.vue
+++ b/pages/device/edit.vue
@@ -112,7 +112,7 @@
{
+ return {
+ ...item,
+ disable: this.point.linePostion !== item.id && this.pointList.some(item2 => item2.linePostion === item.id)
+ }
+ })
+ }
+ },
onLoad(options) {
this.deviceInfo = JSON.parse(decodeURIComponent(options.deviceInfo))
console.log(this.deviceInfo)
diff --git a/pages/device/list.vue b/pages/device/list.vue
index 1f6c546..758420a 100644
--- a/pages/device/list.vue
+++ b/pages/device/list.vue
@@ -7,7 +7,7 @@
{
+ return {
+ ...item,
+ disable: this.point.linePostion !== item.id && this.pointList.some(item2 => item2.linePostion === item.id)
+ }
+ })
+ }
+ },
onLoad() {
-
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
dictData.forEach((item) => {
if (item.code == 'Line_Position') {
diff --git a/pages/engineering/detail.vue b/pages/engineering/detail.vue
index 2865642..97d0df3 100644
--- a/pages/engineering/detail.vue
+++ b/pages/engineering/detail.vue
@@ -26,7 +26,7 @@
{
diff --git a/pages/index/comp/indexGongCheng.vue b/pages/index/comp/indexGongCheng.vue
index 0765f75..4089563 100644
--- a/pages/index/comp/indexGongCheng.vue
+++ b/pages/index/comp/indexGongCheng.vue
@@ -67,7 +67,7 @@ export default {
uni.showModal({
title: '提示',
content: '请选择设备类型',
- confirmText: '直连装置',
+ confirmText: '直连设备',
cancelText: '网关接入',
cancelColor: '#007aff',
success: ({confirm, cancel}) => {
diff --git a/pages/index/comp/indexYouKe.vue b/pages/index/comp/indexYouKe.vue
index c4d7514..8962bd5 100644
--- a/pages/index/comp/indexYouKe.vue
+++ b/pages/index/comp/indexYouKe.vue
@@ -35,6 +35,13 @@
+
+
+
+
+
+
+
diff --git a/pages/index/comp/indexZhuYongHu.vue b/pages/index/comp/indexZhuYongHu.vue
index 5e13c3b..870cae9 100644
--- a/pages/index/comp/indexZhuYongHu.vue
+++ b/pages/index/comp/indexZhuYongHu.vue
@@ -67,7 +67,7 @@ export default {
uni.showModal({
title: '提示',
content: '请选择设备类型',
- confirmText: '直连装置',
+ confirmText: '直连设备',
cancelText: '网关接入',
cancelColor: '#007aff',
success: ({confirm, cancel}) => {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index caa46d5..7151a7b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -15,8 +15,11 @@
灿能物联
- {{ select.engineeringName }}
-
+ {{
+ select.engineeringName || '创建工程'
+ }}
+
+
@@ -71,11 +74,18 @@ export default {
navTabHeight: 0
}
},
+
methods: {
selectEngineering() {
- uni.navigateTo({
- url: '/pages/home/selectEngineering',
- })
+ if (this.select.engineeringName) {
+ uni.navigateTo({
+ url: '/pages/home/selectEngineering',
+ })
+ } else {
+ uni.navigateTo({
+ url: '/pages/engineering/new',
+ })
+ }
},
async init() {
let engineering = uni.getStorageSync('engineering')
diff --git a/pages/index/message.vue b/pages/index/message.vue
index 23039a2..0555a73 100644
--- a/pages/index/message.vue
+++ b/pages/index/message.vue
@@ -6,11 +6,7 @@
设备消息
-
-
- 反馈回复
-
-
+
稳态越限
@@ -25,7 +21,7 @@
- 终端状态
+ 设备状态
diff --git a/pages/index/mine.vue b/pages/index/mine.vue
index 961f52c..ebe7c8c 100644
--- a/pages/index/mine.vue
+++ b/pages/index/mine.vue
@@ -60,6 +60,11 @@
项目列表
+
+
+ 反馈列表
+
+