diff --git a/common/api/dictionary.js b/common/api/dictionary.js
index d5bb284..b735e8e 100644
--- a/common/api/dictionary.js
+++ b/common/api/dictionary.js
@@ -1,71 +1,79 @@
-import request from '../js/request'
-import config from '../js/config'
-
-export function queryDictData(dictTypeName) {
- return request({
- url: '/dictData/getDicDataByTypeName',
- method: 'get',
- data: {
- dictTypeName,
- },
- })
-}
-
-export function queryDictDataCache(dictTypeName) {
- return request({
- url: '/system-boot/dictType/dictDataCache',
- method: 'get',
- })
-}
-
-// 字典树接口通过code
-export const queryByCode = (code) => {
- return request({
- url: '/system-boot/dictTree/queryByCode',
- method: 'post',
- data: {
- code,
- },
- })
-}
-
-// 字典树接口
-export const queryCsDictTree = (pid) => {
- return request({
- url: '/system-boot/dictTree/query',
- method: 'post',
- data: {
- pid,
- },
- })
-}
-
-// 字典树接口通过id
-export const queryByid = (id) => {
- return request({
- url: '/system-boot/dictTree/queryByid',
- method: 'post',
- data: {
- id,
- },
- })
-}
-
-// 程序版本
-export const queryEdDataPage = () => {
- return request({
- url: '/cs-device-boot/edData/queryEdDataPage',
- method: 'post',
- header: {
- 'Content-Type': 'application/json;charset=UTF-8',
- },
- data: {
- pageNum: 1,
- devName: '',
- devType: '',
- pageSize: 999,
- versionStartDate: '',
- versionendDate: '',
- },
- })
-}
+import request from '../js/request'
+import config from '../js/config'
+
+export function queryDictData(dictTypeName) {
+ return request({
+ url: '/dictData/getDicDataByTypeName',
+ method: 'get',
+ data: {
+ dictTypeName,
+ },
+ })
+}
+
+export function queryDictDataCache(dictTypeName) {
+ return request({
+ url: '/system-boot/dictType/dictDataCache',
+ method: 'get',
+ })
+}
+
+// 字典树接口通过code
+export const queryByCode = (code) => {
+ return request({
+ url: '/system-boot/dictTree/queryByCode',
+ method: 'post',
+ data: {
+ code,
+ },
+ })
+}
+
+// 字典树接口
+export const queryCsDictTree = (pid) => {
+ return request({
+ url: '/system-boot/dictTree/query',
+ method: 'post',
+ data: {
+ pid,
+ },
+ })
+}
+// 字典树接口
+export const queryStatistical = (data) => {
+ return request({
+ url: '/system-boot/csstatisticalset/queryStatistical',
+ method: 'post',
+ data: data,
+ })
+}
+
+// 字典树接口通过id
+export const queryByid = (id) => {
+ return request({
+ url: '/system-boot/dictTree/queryByid',
+ method: 'post',
+ data: {
+ id,
+ },
+ })
+}
+
+// 程序版本
+export const queryEdDataPage = () => {
+ return request({
+ url: '/cs-device-boot/edData/queryEdDataPage',
+ method: 'post',
+ header: {
+ 'Content-Type': 'application/json;charset=UTF-8',
+ },
+ data: {
+ pageNum: 1,
+ devName: '',
+ devType: '',
+ pageSize: 999,
+ versionStartDate: '',
+ versionendDate: '',
+ },
+ })
+}
diff --git a/common/js/mqtt.js b/common/js/mqtt.js
index 3b98bde..c736771 100644
--- a/common/js/mqtt.js
+++ b/common/js/mqtt.js
@@ -1,5 +1,5 @@
// export const MQTT_IP = 'pqmcn.com:8085/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
-export const MQTT_IP = '192.168.1.103:8083/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
+export const MQTT_IP = '192.168.1.103:38083/mqtt'//mqtt地址端口, 使用emqx时一定要加mqtt
const MQTT_USERNAME = 't_user'//mqtt用户名
const MQTT_PASSWORD = 'njcnpqs'//密码
diff --git a/components/Cn-MultipleTree/Cn-MultipleTree.vue b/components/Cn-MultipleTree/Cn-MultipleTree.vue
new file mode 100644
index 0000000..be863c8
--- /dev/null
+++ b/components/Cn-MultipleTree/Cn-MultipleTree.vue
@@ -0,0 +1,533 @@
+
+
+
+
+
+ 取消
+ {{ title }}
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/Cn-MultipleTree/style.css b/components/Cn-MultipleTree/style.css
new file mode 100644
index 0000000..0a00fb0
--- /dev/null
+++ b/components/Cn-MultipleTree/style.css
@@ -0,0 +1,195 @@
+.tki-tree-mask {
+ position: fixed;
+ top: 0rpx;
+ right: 0rpx;
+ bottom: 0rpx;
+ left: 0rpx;
+ z-index: 9998;
+ background-color: rgba(0, 0, 0, 0.6);
+ opacity: 0;
+ transition: all 0.3s ease;
+ visibility: hidden;
+}
+.tki-tree-mask.show {
+ visibility: visible;
+ opacity: 1;
+}
+.tki-tree-cnt {
+ position: fixed;
+ top: 0rpx;
+ right: 0rpx;
+ bottom: 0rpx;
+ left: 0rpx;
+ z-index: 9999;
+ top: 40%;
+ transition: all 0.3s ease;
+ transform: translateY(100%);
+}
+.tki-tree-cnt.show {
+ transform: translateY(0);
+}
+.tki-tree-bar {
+ background-color: #fff;
+ height: 72rpx;
+ padding-left: 20rpx;
+ padding-right: 20rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ box-sizing: border-box;
+ border-bottom-width: 1rpx !important;
+ border-bottom-style: solid;
+ border-bottom-color: #f5f5f5;
+ font-size: 32rpx;
+ color: #757575;
+ line-height: 1;
+}
+.tki-tree-bar1 {
+ background-color: #fff;
+}
+.tki-tree-bar-confirm {
+ color: #07bb07;
+}
+.tki-tree-view {
+ position: absolute;
+ top: 0rpx;
+ right: 0rpx;
+ bottom: 0rpx;
+ left: 0rpx;
+ top: 160rpx;
+ background-color: #fff;
+ padding-top: 20rpx;
+ padding-right: 20rpx;
+ padding-bottom: 20rpx;
+ padding-left: 20rpx;
+}
+.tki-tree-view-sc {
+ height: 100%;
+ overflow: hidden;
+}
+.tki-tree-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 26rpx;
+ /* color: #757575; */
+ line-height: 1;
+ height: 0;
+ opacity: 0;
+ transition: 0.2s;
+ position: relative;
+ overflow: hidden;
+}
+.tki-tree-item.show {
+ height: 80rpx;
+ opacity: 1;
+}
+.tki-tree-item.showchild:before {
+ transform: rotate(90deg);
+}
+.tki-tree-item.last:before {
+ opacity: 0;
+}
+.tki-tree-icon {
+ width: 26rpx;
+ height: 26rpx;
+ margin-right: 8rpx;
+}
+.tki-tree-label {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ height: 100%;
+ line-height: 1.2;
+}
+.tki-tree-check {
+ width: 40px;
+ height: 40px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.tki-tree-check-yes,
+.tki-tree-check-no {
+ width: 20px;
+ height: 20px;
+ border-top-left-radius: 20%;
+ border-top-right-radius: 20%;
+ border-bottom-right-radius: 20%;
+ border-bottom-left-radius: 20%;
+ border-top-width: 1rpx;
+ border-left-width: 1rpx;
+ border-bottom-width: 1rpx;
+ border-right-width: 1rpx;
+ border-style: solid;
+ border-color: #07bb07;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ box-sizing: border-box;
+}
+.tki-tree-check-yes-b {
+ width: 12px;
+ height: 12px;
+ border-top-left-radius: 20%;
+ border-top-right-radius: 20%;
+ border-bottom-right-radius: 20%;
+ border-bottom-left-radius: 20%;
+ background-color: #07bb07;
+}
+.tki-tree-check .radio {
+ border-top-left-radius: 50%;
+ border-top-right-radius: 50%;
+ border-bottom-right-radius: 50%;
+ border-bottom-left-radius: 50%;
+}
+.tki-tree-check .radio .tki-tree-check-yes-b {
+ border-top-left-radius: 50%;
+ border-top-right-radius: 50%;
+ border-bottom-right-radius: 50%;
+ border-bottom-left-radius: 50%;
+}
+.hover-c {
+ opacity: 0.6;
+}
+
+.search {
+ position: absolute;
+ left: 35rpx;
+}
+
+/* 基础输入框样式 */
+.uni-input {
+ width: 95%;
+ height: 60rpx;
+ line-height: 60rpx;
+ border-radius: 20rpx;
+ /* font-size: 32rpx;
+ color: #333;
+ background: #f5f5f5;
+ width: 100%;
+
+ padding: 0 24rpx 0 60rpx;
+ box-sizing: border-box;
+ border: none; */
+}
+
+/* 聚焦态样式 */
+.uni-input:focus {
+ background: #fff;
+ border: 2rpx solid #007aff;
+}
+
+/* 占位符样式 */
+.uni-input::placeholder {
+ color: #999;
+ font-size: 28rpx;
+}
+
+/* 兼容微信小程序 */
+.uni-input::-webkit-input-placeholder {
+ color: #999;
+ font-size: 28rpx;
+}
+
+
diff --git a/components/Cn-device-card/Cn-device-card.vue b/components/Cn-device-card/Cn-device-card.vue
index ce239c8..c0dc755 100644
--- a/components/Cn-device-card/Cn-device-card.vue
+++ b/components/Cn-device-card/Cn-device-card.vue
@@ -1,13 +1,6 @@
-
+
-
-
+
置顶
@@ -166,10 +162,10 @@ export default {
/deep/ .uni-card__header {
display: flex;
- border-bottom: 2rpx #ebeef5 solid;
+ // border-bottom: 2rpx #ebeef5 solid;
flex-direction: row;
align-items: center;
- padding: 20rpx 20rpx 10rpx 0;
+ padding: 20rpx 0;
overflow: hidden;
}
}
@@ -279,4 +275,16 @@ export default {
transform: rotate(45deg) translate(50rpx, -10rpx);
transform-origin: top right;
}
+
+.event-desc {
+ display: flex;
+ flex-direction: column;
+ gap: 8rpx;
+}
+
+.event-desc text {
+ font-size: 28rpx;
+ color: #666666;
+ line-height: 1.2;
+}
diff --git a/components/Cn-filterInformation/Cn-filterInformation.vue b/components/Cn-filterInformation/Cn-filterInformation.vue
new file mode 100644
index 0000000..2efcd15
--- /dev/null
+++ b/components/Cn-filterInformation/Cn-filterInformation.vue
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/Cn-icon-transient/Cn-icon-transient.vue b/components/Cn-icon-transient/Cn-icon-transient.vue
index 0d23ff7..f11ee7b 100644
--- a/components/Cn-icon-transient/Cn-icon-transient.vue
+++ b/components/Cn-icon-transient/Cn-icon-transient.vue
@@ -1,45 +1,45 @@
-
+
diff --git a/manifest.json b/manifest.json
index 1aad8c1..098e9e0 100644
--- a/manifest.json
+++ b/manifest.json
@@ -139,7 +139,8 @@
"/api" : {
"https" : true,
// "target" : "https://pqmcn.com:8092/api",
- "target" : "http://192.168.1.103:10215",
+ // "target" : "http://192.168.1.103:10215",
+ "target" : "http://192.168.1.103:10215",
"changOrigin" : true,
"pathRewrite" : {
"/api" : ""
diff --git a/pages.json b/pages.json
index d41fdfc..5f676a0 100644
--- a/pages.json
+++ b/pages.json
@@ -121,6 +121,13 @@
"navigationBarTitleText": "个性化推荐"
}
},
+
+ {
+ "path": "pages/index/comp/monitoringPoint",
+ "style": {
+ "navigationBarTitleText": "监测点电能质量信息"
+ }
+ },
{
"path": "pages/mine/system",
"style": {
@@ -420,6 +427,7 @@
"navigationBarTitleText": "关注工程配置"
}
},
+
{
"path": "pages/mine/serverSetting",
"style": {
diff --git a/pages/device/APF/comp/IO.vue b/pages/device/APF/comp/IO.vue
index a34c07d..e0ef3d4 100644
--- a/pages/device/APF/comp/IO.vue
+++ b/pages/device/APF/comp/IO.vue
@@ -6,20 +6,16 @@
温度
- {{ item[0].clDid }}
+ {{ item[0].clDid }}
(°C)
- {{ item[1].clDid }}
+ {{ item[1].clDid }}
(°C)
- {{ item[2].clDid }}
+ {{ item[2].clDid }}
(°C)
- {{ item[3].clDid }}
+ {{ item[3].clDid }}
(°C)
{{ item[0].clDid ? Math.round(item[0].value) || '-' : '' }}
@@ -30,27 +26,21 @@
-
+
状态
- {{ item[0].moduleName }}
+ {{ item[0].moduleName }}
- {{ item[1].moduleName }}
+ {{ item[1].moduleName }}
- {{ item[2].moduleName }}
+ {{ item[2].moduleName }}
- {{ item[3].moduleName }}
+ {{ item[3].moduleName }}
@@ -101,6 +91,7 @@ export default {
computed: {
renderData() {
let arr = []
+
// 把IOData转换成每4个一组的二维数组
for (let i = 0; i < this.IOData.length; i += 4) {
this.IOData.slice(i, i + 4).forEach((item) => {
@@ -120,7 +111,6 @@ export default {
}
}
})
- console.warn(arr)
return arr
},
moduleData() {
@@ -159,6 +149,5 @@ export default {
}
diff --git a/pages/device/APF/comp/basic.vue b/pages/device/APF/comp/basic.vue
index 1b33bc6..dcd051a 100644
--- a/pages/device/APF/comp/basic.vue
+++ b/pages/device/APF/comp/basic.vue
@@ -1,6 +1,7 @@
-
+
电网电流
@@ -12,10 +13,10 @@
{{ item.phase }}
{{
item['Apf_RmsI_Sys(A)'] > 0 ? item['Apf_RmsI_Sys(A)'].toFixed(2) : item['Apf_RmsI_Sys(A)']
- }}
+ }}
{{
item['Apf_ThdA_Sys(%)'] > 0 ? item['Apf_ThdA_Sys(%)'].toFixed(2) : item['Apf_ThdA_Sys(%)']
- }}
+ }}
@@ -30,13 +31,13 @@
{{ item.phase }}
{{
item['Apf_PhV_Sys(V)'] > 0 ? item['Apf_PhV_Sys(V)'].toFixed(2) : item['Apf_PhV_Sys(V)']
- }}
+ }}
{{
item['Apf_Freq(Hz)'] > 0 ? item['Apf_Freq(Hz)'].toFixed(2) : item['Apf_Freq(Hz)']
- }}
+ }}
{{
item['Apf_ThdU_Sys(%)'] > 0 ? item['Apf_ThdU_Sys(%)'].toFixed(2) : item['Apf_ThdU_Sys(%)']
- }}
+ }}
@@ -73,15 +74,15 @@
item['Apf_RmsI_TolOut(A)'] == 3.1415926
? '-'
: item['Apf_RmsI_TolOut(A)'] > 0
- ? item['Apf_RmsI_TolOut(A)'].toFixed(2)
- : item['Apf_RmsI_TolOut(A)']
+ ? item['Apf_RmsI_TolOut(A)'].toFixed(2)
+ : item['Apf_RmsI_TolOut(A)']
}}
{{
item['load_Rate'] == 3.1415926
? '-'
: item['load_Rate'] > 0
- ? item['load_Rate'].toFixed(2)
- : item['load_Rate']
+ ? item['load_Rate'].toFixed(2)
+ : item['load_Rate']
}}
@@ -179,6 +180,5 @@ export default {
}
diff --git a/pages/device/APF/comp/power.vue b/pages/device/APF/comp/power.vue
index 164192e..ea800d5 100644
--- a/pages/device/APF/comp/power.vue
+++ b/pages/device/APF/comp/power.vue
@@ -1,6 +1,6 @@
-
+
电网侧
@@ -12,14 +12,14 @@
功率因数
{{ item.phase }}
- {{ item['Apf_P_Sys(W)'] == '-' ? '-' : (item['Apf_P_Sys(W)'] / 1000).toFixed(2) }}
+ {{ item['Apf_P_Sys(W)'] == '-' ? '-' : (item['Apf_P_Sys(W)'] /
+ 1000).toFixed(2) }}
- {{ item['Apf_Q_Sys(Var)'] == '-' ? '-' : (item['Apf_Q_Sys(Var)'] / 1000).toFixed(2) }}
+ {{ item['Apf_Q_Sys(Var)'] == '-' ? '-' : (item['Apf_Q_Sys(Var)'] /
+ 1000).toFixed(2) }}
- {{ item['Apf_S_Sys(VA)'] == '-' ? '-' : (item['Apf_S_Sys(VA)'] / 1000).toFixed(2) }}
+ {{ item['Apf_S_Sys(VA)'] == '-' ? '-' : (item['Apf_S_Sys(VA)'] /
+ 1000).toFixed(2) }}
{{ item['Apf_PF_Sys(null)'] || '-' }}
@@ -35,14 +35,14 @@
功率因数
{{ item.phase }}
- {{ item['Apf_P_Load(W)'] == '-' ? '-' : (item['Apf_P_Load(W)'] / 1000).toFixed(2) }}
+ {{ item['Apf_P_Load(W)'] == '-' ? '-' : (item['Apf_P_Load(W)'] /
+ 1000).toFixed(2) }}
{{
item['Apf_Q_Load(Var)'] == '-' ? '-' : (item['Apf_Q_Load(Var)'] / 1000).toFixed(2)
- }}
- {{ item['Apf_S_Load(VA)'] == '-' ? '-' : (item['Apf_S_Load(VA)'] / 1000).toFixed(2) }}
+ }}
+ {{ item['Apf_S_Load(VA)'] == '-' ? '-' : (item['Apf_S_Load(VA)'] /
+ 1000).toFixed(2) }}
{{ item['Apf_PF_Load(null)'] || '-' }}
@@ -130,6 +130,5 @@ export default {
}
diff --git a/pages/device/APF/detail.vue b/pages/device/APF/detail.vue
index a6f3229..9c44a7c 100644
--- a/pages/device/APF/detail.vue
+++ b/pages/device/APF/detail.vue
@@ -5,18 +5,10 @@
- 指标越限详情(仅显示最严重的10组数据)
+ 指标越限详情(仅显示最严重的10组数据)
@@ -35,7 +33,7 @@
{{ value.statisticsTime }}
- {{ value.valueType }}
+ {{ value.valueType || '/' }}
{{ value.dataA }}
{{ value.dataB }}
{{ value.dataC }}
@@ -105,6 +103,7 @@ export default {
font-weight: 700;
}
}
+
.limit {
display: flex;
align-items: center;
@@ -112,46 +111,58 @@ export default {
width: 450rpx;
margin-left: auto;
}
+
.prompt {
font-size: 24rpx;
color: #111;
font-weight: 500;
}
}
+
.data-table {
margin-top: 20rpx;
background-color: #fff;
overflow: hidden;
+ color: #666;
+
.table-header,
.table-row {
display: flex;
justify-content: space-between;
- padding: 20rpx 0rpx;
+ padding: 15rpx 0rpx;
+ height: 20px;
border-bottom: 1rpx solid #eee;
+
text {
width: 100rpx;
text-align: center;
font-size: 28rpx;
+
// color: #333;
&:nth-child(1) {
flex: 1;
}
+
&:nth-child(2) {
flex: 1;
}
}
}
+
.table-header {
padding: 0rpx;
padding-bottom: 10rpx;
}
}
+
/deep/ .uni-collapse-item__title-text {
font-weight: 700;
+
span {
font-size: 28rpx;
}
}
+
.details {
max-height: 70px;
overflow-y: auto;
diff --git a/pages/message1/comp/transientDetails.vue b/pages/message1/comp/transientDetails.vue
index 5df5228..cbf6eac 100644
--- a/pages/message1/comp/transientDetails.vue
+++ b/pages/message1/comp/transientDetails.vue
@@ -16,42 +16,28 @@
相别:{{ detail.evtParamPhase }}
-
+
瞬时波形图
-
+
暂无
RMS波形图
-
+
暂无
-
+
-
+
@@ -143,4 +129,10 @@ export default {
padding: 20rpx;
}
}
+
+.segmented-control {
+ flex: 1;
+ margin-right: 24rpx;
+ height: 60rpx;
+}
\ No newline at end of file
diff --git a/pages/message1/steadyState.vue b/pages/message1/steadyState.vue
index 383daa5..8031b86 100644
--- a/pages/message1/steadyState.vue
+++ b/pages/message1/steadyState.vue
@@ -4,8 +4,8 @@
{{ item.label }}
-
+
{},
},
+ sortIndex: {
+ type: [Number,String],
+ // default: () => {},
+ },
},
mixins: [list],
data() {
@@ -150,7 +154,7 @@ export default {
this.store = this.DataSource('/cs-harmonic-boot/eventUser/queryEventpage')
this.store.params.type = 0
// this.store.params.pageSize = 10000
- this.store.params.sortField = this.sort
+ this.store.params.sortField = this.sortIndex
this.store.params.engineeringid = this.selectValue.engineeringId
this.store.params.projectId = this.selectValue.projectId
this.store.params.deviceId = this.selectValue.deviceId
@@ -224,7 +228,9 @@ export default {
uni.navigateTo({ url: '/pages/message1/comp/transientDetails?detail=' + encodeURIComponent(str) })
},
setSort(index) {
- this.sort = index
+ console.log(123,this.sortIndex);
+
+ // this.sort = index
this.init()
},
// 下拉
diff --git a/pages/project/detail.vue b/pages/project/detail.vue
index fff63b8..d74f72b 100644
--- a/pages/project/detail.vue
+++ b/pages/project/detail.vue
@@ -1,361 +1,350 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/project/list.vue b/pages/project/list.vue
index f91658f..e677930 100644
--- a/pages/project/list.vue
+++ b/pages/project/list.vue
@@ -8,7 +8,8 @@
-
+
diff --git a/uni_modules/uni-card/components/uni-card/uni-card.vue b/uni_modules/uni-card/components/uni-card/uni-card.vue
index 2a09a14..8cd6887 100644
--- a/uni_modules/uni-card/components/uni-card/uni-card.vue
+++ b/uni_modules/uni-card/components/uni-card/uni-card.vue
@@ -136,7 +136,7 @@
.uni-card {
margin: $uni-card-spacing;
padding: 0 $uni-spacing-sm;
- border-radius: 4px;
+ border-radius: 20rpx;
overflow: hidden;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
background-color: #fff;