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 @@ + + + + + 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 @@ 温度 @@ -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 @@