diff --git a/components/Cn-device-card/Cn-device-card.vue b/components/Cn-device-card/Cn-device-card.vue index e095441..fca58f6 100644 --- a/components/Cn-device-card/Cn-device-card.vue +++ b/components/Cn-device-card/Cn-device-card.vue @@ -20,7 +20,7 @@ {{ device.projectName }} - 设备状态 + 调试阶段 {{ device.process == 2 ? '功能调试' : '出厂调试' }} diff --git a/manifest.json b/manifest.json index 93bf5cc..5982390 100644 --- a/manifest.json +++ b/manifest.json @@ -139,8 +139,8 @@ "proxy" : { "/api" : { "https" : true, - // "target" : "https://pqmcn.com:8092/api", - "target" : "http://192.168.1.115:10215", + "target" : "https://pqmcn.com:8092/api", + // "target" : "http://192.168.1.115:10215", "changOrigin" : true, "pathRewrite" : { "/api" : "" diff --git a/pages.json b/pages.json index b496051..2509f64 100644 --- a/pages.json +++ b/pages.json @@ -152,15 +152,13 @@ { "path": "pages/device/APF/report", "style": { - "navigationBarTitleText": "告警情况", - "navigationStyle": "custom" + "navigationBarTitleText": "告警情况" } }, { "path": "pages/device/DVR/report", "style": { - "navigationBarTitleText": "告警情况", - "navigationStyle": "custom" + "navigationBarTitleText": "告警情况" } }, { diff --git a/pages/device/APF/about.vue b/pages/device/APF/about.vue index 9188f2d..0233a96 100644 --- a/pages/device/APF/about.vue +++ b/pages/device/APF/about.vue @@ -6,7 +6,7 @@ 设备类型:{{ deviceInfo.devTypeName }} 设备型号:{{ deviceInfo.devModelName }} 设备接入方式:{{ deviceInfo.devAccessMethod === 'cloud' ? '云直连' : 'mqtt' }}设备接入方式:{{ deviceInfo.devAccessMethod === 'cloud' ? '云直连' : 'MQTT' }} 程序版本:{{ deviceInfo.programVersionName }} @@ -37,10 +37,6 @@ export default { this.deviceInfo.devModelName = resp[1].data.find( (item) => item.id === this.deviceInfo.devModel, )?.name - console.log(resp[2]) - this.deviceInfo.programVersionName = resp[2].data.records.find( - (item) => item.id === this.deviceInfo.programVersion, - )?.versionNo this.loading = false }) }) diff --git a/pages/device/APF/comp/xieBo.vue b/pages/device/APF/comp/xieBo.vue index 85f5931..30a16d6 100644 --- a/pages/device/APF/comp/xieBo.vue +++ b/pages/device/APF/comp/xieBo.vue @@ -1,9 +1,10 @@ @@ -26,7 +27,7 @@ export default { { text: '偶次', value: 1, - } + }, ], parity: 2, dataOptions: [], @@ -44,7 +45,8 @@ export default { chartData: {}, //您可以通过修改 config-ucharts.js 文件中下标为 ['column'] 的节点来配置全局默认参数,如都是默认参数,此处可以不传 opts 。实际应用过程中 opts 只需传入与全局默认参数中不一致的【某一个属性】即可实现同类型的图表显示不同的样式,达到页面简洁的需求。 opts: { - enableScroll: true, + // enableScroll: true, + dataLabel:false, color: [ '#1890FF', '#91CB74', @@ -68,18 +70,17 @@ export default { }, ], }, - yAxis: { - data: [ - { - min: 0, - tofix: 4, - }, - ], - }, + yAxis: {}, extra: { - column: { - width: 10, - categoryGap: 1, + bar: { + type: 'group', + width: 30, + meterBorde: 1, + meterFillColor: '#FFFFFF', + activeBgColor: '#000000', + activeBgOpacity: 0.08, + seriesGap: 2, + categoryGap: 6, }, }, }, @@ -127,8 +128,7 @@ export default { let name1 = have['name'] let name2 = have.key.split('_')[0] + '_' + have.key.split('_')[1] if (this.renderData[name1][name2][item.phase]) { - this.renderData[name1][name2][item.phase][item.statisticalName] = - item.statisticalData || 0 + this.renderData[name1][name2][item.phase][item.statisticalName] = item.statisticalData || 0 } else { this.renderData[name1][name2][item.phase] = { [item.statisticalName]: item.statisticalData || 0, @@ -145,10 +145,10 @@ export default { { name: '负载谐波电压含有率序列', key: 'Apf_HarmUR', - } + }, ] Object.keys(this.renderData['电网侧']['Apf_HarmI']).forEach((item, index) => { - type.forEach(item2 => { + type.forEach((item2) => { dataOptions.push({ text: item + '相' + item2.name, pointer: item2.key + '_' + item, @@ -159,7 +159,6 @@ export default { this.dataOptions = dataOptions console.log(dataOptions) this.initEcharts() - }, deep: true, immediate: true, @@ -168,19 +167,23 @@ export default { methods: { initEcharts() { let obj = JSON.parse( - JSON.stringify(this.renderData['电网侧']['Apf_HarmI'][Object.keys(this.renderData['电网侧']['Apf_HarmI'])[0]]), + JSON.stringify( + this.renderData['电网侧']['Apf_HarmI'][Object.keys(this.renderData['电网侧']['Apf_HarmI'])[0]], + ), ) let key = this.dataOptions[this.dataRadio].pointer.split('_') console.log(key) let name1 = key[0] + '_' + key[1] let name2 = key[2] this.chartData = { - categories: Object.keys(obj).map((item) => { - // Apf_HarmI_Sys_36(A) 匹配36 - return Number(item.match(/\d+/)[0]) - }).filter((item) => { - return item % 2 === this.parity - 1 - }), + categories: Object.keys(obj) + .map((item) => { + // Apf_HarmI_Sys_36(A) 匹配36 + return Number(item.match(/\d+/)[0]) + }) + .filter((item) => { + return item % 2 === this.parity - 1 + }), series: [ { name: '电网侧', @@ -196,14 +199,14 @@ export default { }, ], } - } - } + }, + }, } diff --git a/pages/device/list.vue b/pages/device/list.vue index 1c5f88f..5a55c81 100644 --- a/pages/device/list.vue +++ b/pages/device/list.vue @@ -113,7 +113,7 @@ export default { projectNameIndex: 0, projectSelect: false, engineeringName: '', - engineeringId: 0, + engineeringId: '', runStatusName: '', runStatusIndex: 0, runStatusSelect: false, diff --git a/pages/device/user.vue b/pages/device/user.vue index f81dfc0..81e0e04 100644 --- a/pages/device/user.vue +++ b/pages/device/user.vue @@ -18,7 +18,7 @@ v-for="item in renderData.subUsers" :key="item.id" > -