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)" >