From 747d3139cfa2b56665b4aa232164c255e3ac5ecc Mon Sep 17 00:00:00 2001 From: guanj Date: Fri, 17 Apr 2026 08:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4app=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .continue/prompts/new-prompt.md | 7 + .continue/rules/new-rule.md | 5 + App.vue | 10 +- common/api/harmonic.js | 33 ++++ common/css/base.scss | 27 ++- components/Cn-device-card/Cn-device-card.vue | 41 ++--- .../Cn-filterCriteria/Cn-filterCriteria.vue | 73 ++++++-- components/Cn-icon-device/Cn-icon-device.vue | 130 +++++++++++++ components/Cn-icon-device/icon.svg | 41 +++++ .../Cn-icon-transient/Cn-icon-transient.vue | 146 +++++++++++++++ components/Cn-icon-transient/icon.svg | 41 +++++ pages/device/APF/about.vue | 138 +++++++------- pages/device/APF/detail.vue | 25 ++- pages/device/APF/report.vue | 50 ++--- pages/device/DVR/detail.vue | 6 +- pages/device/list.vue | 10 +- pages/device/realTime/index.vue | 89 ++++----- pages/index/comp/apply.vue | 92 ++++++--- pages/index/comp/engineering.vue | 28 ++- pages/index/comp/indexGongCheng.vue | 29 ++- pages/index/comp/indexYouKe.vue | 12 +- pages/index/comp/indexYunWei.vue | 36 ++-- pages/index/comp/indexZhuYongHu.vue | 40 ++-- pages/index/comp/indexZhuanZhi.vue | 36 ++-- pages/index/comp/steadyState.vue | 106 ++++++++--- pages/index/comp/transient.vue | 46 +++-- pages/index/index.vue | 14 +- pages/index/message1.vue | 22 ++- pages/index/mine.vue | 2 +- pages/message1/alarm.vue | 49 +++-- pages/message1/comp/F47.vue | 15 +- pages/message1/comp/ITIC.vue | 15 +- pages/message1/comp/alarmDetails.vue | 174 ++++++++---------- pages/message1/comp/steadyStateDetails.vue | 24 ++- pages/message1/comp/transientDetails.vue | 11 +- pages/message1/index.scss | 4 +- pages/message1/run.vue | 41 ++++- pages/message1/steadyState.vue | 147 ++++++++++++--- pages/message1/transient.vue | 83 ++++++--- static/tongji.png | Bin 0 -> 4186 bytes 40 files changed, 1345 insertions(+), 553 deletions(-) create mode 100644 .continue/prompts/new-prompt.md create mode 100644 .continue/rules/new-rule.md create mode 100644 components/Cn-icon-device/Cn-icon-device.vue create mode 100644 components/Cn-icon-device/icon.svg create mode 100644 components/Cn-icon-transient/Cn-icon-transient.vue create mode 100644 components/Cn-icon-transient/icon.svg create mode 100644 static/tongji.png diff --git a/.continue/prompts/new-prompt.md b/.continue/prompts/new-prompt.md new file mode 100644 index 0000000..9fd5bf2 --- /dev/null +++ b/.continue/prompts/new-prompt.md @@ -0,0 +1,7 @@ +--- +name: New prompt +description: New prompt +invokable: true +--- + +Please write a thorough suite of unit tests for this code, making sure to cover all relevant edge cases \ No newline at end of file diff --git a/.continue/rules/new-rule.md b/.continue/rules/new-rule.md new file mode 100644 index 0000000..4b20739 --- /dev/null +++ b/.continue/rules/new-rule.md @@ -0,0 +1,5 @@ +--- +description: A description of your rule +--- + +请用中文回答! \ No newline at end of file diff --git a/App.vue b/App.vue index 487d808..7537159 100644 --- a/App.vue +++ b/App.vue @@ -24,8 +24,14 @@ export default { console.log('收到推送消息:', res.data.payload.path) //监听推送消息 if (res.data.payload && res.data.payload.path) { uni.setStorageSync('messageParams', { - name: '', - id: '', + engineeringName: '', + engineeringId: '', //工程ID + projectName: '', + projectId:'', //項目ID + deviceName: '', + deviceId: '', //设备ID + lineName: '', + lineId: '', //测点ID type: res.data.payload.path.split('type=')[1], }) uni.switchTab({ diff --git a/common/api/harmonic.js b/common/api/harmonic.js index 8f25680..f620b72 100644 --- a/common/api/harmonic.js +++ b/common/api/harmonic.js @@ -13,4 +13,37 @@ export function getBaseRealData(id) { url: '/cs-harmonic-boot/realData/getBaseRealData?lineId='+id, method: 'post', }) +} +// 查询App暂态事件总数 +export function queryAppEventCounts(params) { + return request({ + url: '/cs-harmonic-boot/eventUser/queryAppEventCounts', + method: 'post', + data: params, + header: { + 'Content-Type': 'application/json', + }, + }) +} +// 查询App稳态事件总数 +export function queryAppHarmonicCounts(params) { + return request({ + url: '/cs-harmonic-boot/csHarmonic/queryAppHarmonicCounts', + method: 'post', + data: params, + header: { + 'Content-Type': 'application/json', + }, + }) +} +// 查询App稳态越限监测点 +export function queryAppHarmonicLine(params) { + return request({ + url: '/cs-harmonic-boot/csHarmonic/queryAppHarmonicLine', + method: 'post', + data: params, + header: { + 'Content-Type': 'application/json', + }, + }) } \ No newline at end of file diff --git a/common/css/base.scss b/common/css/base.scss index 0752fdb..5a3bc3d 100644 --- a/common/css/base.scss +++ b/common/css/base.scss @@ -152,7 +152,7 @@ page { margin: 0 20rpx; display: grid; grid-gap: 20rpx; - grid-template-columns: 1fr 1fr 1fr ; + grid-template-columns: 1fr 1fr 1fr; .header-item { display: flex; flex-direction: column; @@ -167,7 +167,7 @@ page { font-size: 44rpx; } .header-item-label { - font-size: 24rpx; + font-size: 26rpx; } } } @@ -277,14 +277,21 @@ page { } } - image { - will-change: transform;//解决加载时瞬间拉伸问题 - width: auto;//解决加载时瞬间拉伸问题 - height: auto;//解决加载时瞬间拉伸问题 - image-rendering:-moz-crisp-edges; - image-rendering:-o-crisp-edges; - image-rendering:-webkit-optimize-contrast; + will-change: transform; //解决加载时瞬间拉伸问题 + width: auto; //解决加载时瞬间拉伸问题 + height: auto; //解决加载时瞬间拉伸问题 + image-rendering: -moz-crisp-edges; + image-rendering: -o-crisp-edges; + image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; - -ms-interpolation-mode:nearest-neighbor; + -ms-interpolation-mode: nearest-neighbor; +} + +.canneng-index-title { + font-size: 30rpx; +} +.boxClick:active { + transform: scale(0.94); + opacity: 0.8; } diff --git a/components/Cn-device-card/Cn-device-card.vue b/components/Cn-device-card/Cn-device-card.vue index 2af202d..ac77081 100644 --- a/components/Cn-device-card/Cn-device-card.vue +++ b/components/Cn-device-card/Cn-device-card.vue @@ -5,6 +5,7 @@ :extra="device.isPrimaryUser == 1 ? '主设备' : '分享设备'" padding="0" @click="jump(device)" + class="boxClick" :thumbnail="deviceIcon(device.runStatus)" >