From cf96e155b6fd3cb3fce64b8f045ceb06e5c2f292 Mon Sep 17 00:00:00 2001 From: "@0Melon0" <576788380@qq.com> Date: Thu, 18 Jul 2024 16:32:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AF=B9=E6=8E=A5=E9=A6=96=E5=8F=B0?= =?UTF-8?q?=E7=8E=87=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.html | 105 +++++++------------ src/api/operation.js | 22 ++++ src/views/pageMonitor/topLeft/index.vue | 4 +- src/views/pageMonitor/topRight/index.vue | 32 +----- src/views/pageOperation/leftBottom/index.vue | 24 ++++- src/views/pageOperation/leftTop/index.vue | 32 ++++-- src/views/pageOperation/rightMid/index.vue | 62 +++++++++-- 7 files changed, 164 insertions(+), 117 deletions(-) create mode 100644 src/api/operation.js diff --git a/1.html b/1.html index 521fb16..faa04c6 100644 --- a/1.html +++ b/1.html @@ -1,69 +1,42 @@ - - - Speech Synthesis Example - - -

Speech Synthesis Example

- -
- - -
- - -
- - - - + .embed { + unicode-bidi: embed; + direction: rtl; + } + .isolate { + unicode-bidi: isolate; + direction: rtl; + } + .bidi-override { + unicode-bidi: bidi-override; + direction: rtl; + } + .isolate-override { + unicode-bidi: isolate-override; + direction: rtl; + } + .plaintext { + unicode-bidi: plaintext; + direction: rtl; + } + + + +

normal: This is an English text with عربى text embedded.

+

embed: This is an English text with عربى text embedded.

+

isolate: This is an English text with عربى text embedded.

+

bidi-override: This is an English text with عربى text embedded.

+

isolate-override: This is an English text with عربى text embedded.

+

plaintext: This is an English text with عربى text embedded.

+ diff --git a/src/api/operation.js b/src/api/operation.js new file mode 100644 index 0000000..1c4d90a --- /dev/null +++ b/src/api/operation.js @@ -0,0 +1,22 @@ +import _axios from '@/utils/_axios'; + +/** + * 获取首台准点率列表(右边) + */ +export const GetMonitorOperationCount = date => { + return _axios({ + url: '/api/QualityMicroservice/Monitor/GetMonitorFirstOperation', + params: { + date, + }, + }); +}; + +/** + * 半年内首台准点率(左下角) + */ +export const GetMonitorFirstOperationMonth = () => { + return _axios({ + url: '/api/QualityMicroservice/Monitor/GetMonitorFirstOperationMonth', + }); +}; diff --git a/src/views/pageMonitor/topLeft/index.vue b/src/views/pageMonitor/topLeft/index.vue index da3e743..91e3ff5 100644 --- a/src/views/pageMonitor/topLeft/index.vue +++ b/src/views/pageMonitor/topLeft/index.vue @@ -78,7 +78,9 @@ export default { methods: { onGetPageData() { let nowDay = dayjs().format('YYYY-MM-DD'); - nowDay = '2024-06-06'; + if (this.$store.getters.isMock) { + nowDay = '2024-06-06'; + } GetMonitorOperationCount(nowDay).then(res => { this.overviewData[0]['itemVal'] = res['data']['firstPunctualityRate'].slice(0, -1); this.overviewData[1]['itemVal'] = res['data']['roomUserRate'].slice(0, -1); diff --git a/src/views/pageMonitor/topRight/index.vue b/src/views/pageMonitor/topRight/index.vue index 4511919..dcdbc1b 100644 --- a/src/views/pageMonitor/topRight/index.vue +++ b/src/views/pageMonitor/topRight/index.vue @@ -13,34 +13,6 @@ {{ subItem['operStatusName'] }} - - @@ -62,7 +34,9 @@ export default { methods: { onGetPageData() { let nowDay = dayjs().format('YYYY-MM-DD'); - nowDay = '2024-06-06'; + if (this.$store.getters.isMock) { + nowDay = '2024-06-06'; + } GetMonitorOperationRoomStatus(nowDay).then(res => { this.formatData(res['data']); this.isLoading = false; diff --git a/src/views/pageOperation/leftBottom/index.vue b/src/views/pageOperation/leftBottom/index.vue index 25f24ee..325f732 100644 --- a/src/views/pageOperation/leftBottom/index.vue +++ b/src/views/pageOperation/leftBottom/index.vue @@ -1,11 +1,13 @@ diff --git a/src/views/pageOperation/leftTop/index.vue b/src/views/pageOperation/leftTop/index.vue index 255e2b3..4ad071b 100644 --- a/src/views/pageOperation/leftTop/index.vue +++ b/src/views/pageOperation/leftTop/index.vue @@ -1,13 +1,13 @@