diff --git a/common/api/user.js b/common/api/user.js
index 92d24d4..98cdd4b 100644
--- a/common/api/user.js
+++ b/common/api/user.js
@@ -2,7 +2,7 @@ import request from '../js/request'
/**
* 发送验证码
- * @param {*} params.type 0:登录 1:注册 2:修改密码 3:忘记密码 4:更换手机号第二步获取验证码 5:更换手机号第一步获取验证码
+ * @param {*} params.type 0:登录 1:注册 2:修改密码 6:忘记密码 4:更换手机号第二步获取验证码 5:更换手机号第一步获取验证码
* @returns
*/
export function apiGetYms(params) {
diff --git a/manifest.json b/manifest.json
index a86dad9..0edfc10 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "灿能物联",
"appid" : "__UNI__88BC25B",
"description" : "",
- "versionName" : "1.0.9",
- "versionCode" : 109,
+ "versionName" : "1.1.0",
+ "versionCode" : 110,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages/device/APF/comp/basic.vue b/pages/device/APF/comp/basic.vue
index 119c49e..138888b 100644
--- a/pages/device/APF/comp/basic.vue
+++ b/pages/device/APF/comp/basic.vue
@@ -1,31 +1,5 @@
-
电网电流
@@ -34,8 +8,8 @@
THDI(%)
{{ item.phase }}
- {{ item['A(A)'] }}
- {{ item['ThdPhI(%)'] }}
+ {{ item['Pq_RmsI(A)'] || '-' }}
+ {{ item['Pq_ThdI(%)'] || '-'}}
@@ -48,9 +22,9 @@
THDU(%)
{{ item.phase }}
- {{ item['PhV(V)'] }}
- {{ item['Hz(Hz)'] }}
- {{ item['ThdPhV(%)'] }}
+ {{ item['Pq_RmsLU(V)'] || '-' }}
+ {{ item['Pq_Freq(Hz)'] || '-' }}
+ {{ item['Pq_ThdU(%)'] || '-' }}
@@ -62,8 +36,8 @@
THDI(%)
{{ item.phase }}
- {{ item['A(A)'] }}
- {{ item['ThdPhI(%)'] }}
+ {{ item['Pq_RmsI(A)'] || '-' }}
+ {{ item['Pq_ThdI(%)'] || '-' }}
@@ -75,7 +49,7 @@
负载率(%)
{{ item.phase }}
- {{ item['A(A)'] }}
+ {{ item['Apf_RmsI_Sys(A)'] || '-' }}
@@ -94,56 +68,49 @@ export default {
}
},
props: {
- deviceInfo: {
- type: Object,
+ basicData: {
+ type: Array,
default: () => {
- return {}
+ return []
},
},
},
watch: {
- deviceInfo: {
+ basicData: {
handler: function (newVal, oldVal) {
let arr = [
{
name: '电网侧',
- position: 'cb23b9ede3b652cd6da194fd7b318124',
+ linePostion: 'cb23b9ede3b652cd6da194fd7b318124',
},
{
name: '负载侧',
- position: '32624d4bb3a86f2b9a01bab272e50125',
+ linePostion: '32624d4bb3a86f2b9a01bab272e50125',
},
{
name: '输出侧',
- position: '26eae70fb5ff1c090d2dc7c3a0743948',
+ linePostion: '26eae70fb5ff1c090d2dc7c3a0743948',
},
]
- console.log(this.deviceInfo)
- this.deviceInfo.appsLineTopologyDiagramPO.forEach((item1) => {
- if (item1.value.length === 0) {
+ this.basicData.forEach((item) => {
+ if (item.phase === 'avg') {
return
}
let index = arr.findIndex((item2) => {
- return item2.position === item1.linePostion
+ return item2.linePostion === item.position
})
- if(index === -1) {
- return
- }
- item1.value.forEach((item) => {
- if(item.phase === 'avg'){
- return
- }
+ if (index > -1) {
if (this.renderData[arr[index]['name']][item.phase]) {
- this.renderData[arr[index]['name']][item.phase][item.statisticalName] = item.statisticalData
+ this.renderData[arr[index]['name']][item.phase][item.statisticalName] = item.statisticalData || '-'
} else {
this.renderData[arr[index]['name']][item.phase] = {
phase: item.phase,
- [item.statisticalName]: item.statisticalData,
+ [item.statisticalName]: item.statisticalData || '-',
}
}
- })
+ }
})
- console.warn(this.renderData)
+ console.log(this.renderData)
},
deep: true,
immediate: true,
diff --git a/pages/device/APF/comp/power.vue b/pages/device/APF/comp/power.vue
index b916f6a..933ea12 100644
--- a/pages/device/APF/comp/power.vue
+++ b/pages/device/APF/comp/power.vue
@@ -10,10 +10,10 @@
功率因数
{{ item.phase }}
- {{ item['W(W)'] }}
- {{ item['VAr(var)'] }}
- {{ item['VA(VA)'] }}
- {{ item['ThdPhI(%)'] }}
+ {{ item['Pq_P(W)'] || '-' }}
+ {{ item['Pq_Q(var)'] || '-' }}
+ {{ item['Pq_S(VA)'] || '-' }}
+ {{ item['Pq_PF(null)'] || '-' }}
@@ -27,10 +27,10 @@
功率因数
{{ item.phase }}
- {{ item['W(W)'] }}
- {{ item['VAr(var)'] }}
- {{ item['VA(VA)'] }}
- {{ item['ThdPhI(%)'] }}
+ {{ item['Pq_P(W)'] || '-' }}
+ {{ item['Pq_Q(var)'] || '-' }}
+ {{ item['Pq_S(VA)'] || '-' }}
+ {{ item['Pq_PF(null)'] || '-' }}
@@ -48,55 +48,49 @@ export default {
}
},
props: {
- deviceInfo: {
- type: Object,
+ basicData: {
+ type: Array,
default: () => {
- return {}
+ return []
},
},
},
watch: {
- deviceInfo: {
+ basicData: {
handler: function (newVal, oldVal) {
let arr = [
{
name: '电网侧',
- position: 'cb23b9ede3b652cd6da194fd7b318124',
+ linePostion: 'cb23b9ede3b652cd6da194fd7b318124',
},
{
name: '负载侧',
- position: '32624d4bb3a86f2b9a01bab272e50125',
+ linePostion: '32624d4bb3a86f2b9a01bab272e50125',
},
{
name: '输出侧',
- position: '26eae70fb5ff1c090d2dc7c3a0743948',
+ linePostion: '26eae70fb5ff1c090d2dc7c3a0743948',
},
]
- this.deviceInfo.appsLineTopologyDiagramPO.forEach((item1) => {
- if (item1.value.length === 0) {
+ this.basicData.forEach((item) => {
+ if (item.phase === 'avg') {
return
}
let index = arr.findIndex((item2) => {
- return item2.position === item1.linePostion
+ return item2.linePostion === item.position
})
- if (index === -1) {
- return
- }
- item1.value.forEach((item) => {
- if(item.phase === 'avg'){
- return
- }
+ if (index > -1) {
if (this.renderData[arr[index]['name']][item.phase]) {
- this.renderData[arr[index]['name']][item.phase][item.statisticalName] = item.statisticalData
+ this.renderData[arr[index]['name']][item.phase][item.statisticalName] = item.statisticalData || '-'
} else {
this.renderData[arr[index]['name']][item.phase] = {
phase: item.phase,
- [item.statisticalName]: item.statisticalData,
+ [item.statisticalName]: item.statisticalData || '-',
}
}
- })
+ }
})
- console.warn(this.renderData)
+ console.log(this.renderData)
},
deep: true,
immediate: true,
diff --git a/pages/device/APF/comp/xieBo.vue b/pages/device/APF/comp/xieBo.vue
index f03bf02..da9d492 100644
--- a/pages/device/APF/comp/xieBo.vue
+++ b/pages/device/APF/comp/xieBo.vue
@@ -2,32 +2,32 @@
-
+
\ No newline at end of file
diff --git a/pages/device/APF/detail.vue b/pages/device/APF/detail.vue
index c6c028d..d4a025b 100644
--- a/pages/device/APF/detail.vue
+++ b/pages/device/APF/detail.vue
@@ -14,14 +14,14 @@
{{ item.label }}
- {{ child.showText }}
+ {{ child }}
@@ -63,13 +63,13 @@
-
+
-
+
-
+
-
-
-
-
-
-
@@ -162,7 +144,6 @@ export default {
type: 2,
formData: {
nDid: '',
- area: '',
projectId: '',
topologyDiagramUrl: '',
topologyDiagram: '',
diff --git a/pages/device/new.vue b/pages/device/new.vue
index 9122144..f065be0 100644
--- a/pages/device/new.vue
+++ b/pages/device/new.vue
@@ -45,24 +45,24 @@
-->
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -169,10 +169,9 @@ export default {
data() {
return {
loading: false,
- type: 2,
+ type: 1,
formData: {
nDid: '',
- area: '',
projectId: '',
topologyDiagramUrl: '',
topologyDiagram: '',
diff --git a/pages/engineering/list.vue b/pages/engineering/list.vue
index b6dad29..83bd02e 100644
--- a/pages/engineering/list.vue
+++ b/pages/engineering/list.vue
@@ -75,9 +75,11 @@ export default {
uni.navigateBack()
},
add() {
- uni.navigateTo({
- url: `/pages/engineering/new`,
- })
+ if (this.userInfo.authorities === 'app_vip_user' || this.userInfo.authorities === 'engineering_user') {
+ uni.navigateTo({
+ url: `/pages/engineering/new`,
+ })
+ }
},
upgrade(code) {
console.log(code)
diff --git a/pages/index/comp/indexZhuanZhi.vue b/pages/index/comp/indexZhuanZhi.vue
index 6a3de0f..08ca7c6 100644
--- a/pages/index/comp/indexZhuanZhi.vue
+++ b/pages/index/comp/indexZhuanZhi.vue
@@ -23,7 +23,7 @@
-