diff --git a/src/App.vue b/src/App.vue index 92a6174..5d8f146 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/history/components/lcenter.vue b/src/views/history/components/lcenter.vue new file mode 100644 index 0000000..eba8163 --- /dev/null +++ b/src/views/history/components/lcenter.vue @@ -0,0 +1,221 @@ + + + + + diff --git a/src/views/history/components/lineChart.vue b/src/views/history/components/lineChart.vue new file mode 100644 index 0000000..a562554 --- /dev/null +++ b/src/views/history/components/lineChart.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/history/components/stackBarChart.vue b/src/views/history/components/stackBarChart.vue new file mode 100644 index 0000000..147c602 --- /dev/null +++ b/src/views/history/components/stackBarChart.vue @@ -0,0 +1,61 @@ + + + + + \ No newline at end of file diff --git a/src/views/history/index.vue b/src/views/history/index.vue index 7aca718..0ad8e43 100644 --- a/src/views/history/index.vue +++ b/src/views/history/index.vue @@ -1,76 +1,321 @@ - - - - - \ No newline at end of file + + .right { + width: 37.7vw; + height: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; + + .rt { + width: 100%; + height: 31%; + } + + .rc { + width: 100%; + height: 31%; + } + + .rb { + width: 100%; + height: 34%; + } + } +} + \ No newline at end of file diff --git a/src/views/login.vue b/src/views/login.vue index 6dc7635..19a8046 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -8,13 +8,13 @@

{{ $t("login.用户登录") }}

- - diff --git a/src/views/screen/components/devInfo.vue b/src/views/screen/components/devInfo.vue new file mode 100644 index 0000000..b8678e5 --- /dev/null +++ b/src/views/screen/components/devInfo.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/src/views/screen/components/imageCard.vue b/src/views/screen/components/imageCard.vue new file mode 100644 index 0000000..00ce287 --- /dev/null +++ b/src/views/screen/components/imageCard.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/views/screen/components/lcenter2.vue b/src/views/screen/components/lcenter2.vue index 73db653..e5a4676 100644 --- a/src/views/screen/components/lcenter2.vue +++ b/src/views/screen/components/lcenter2.vue @@ -4,7 +4,7 @@
{{ tLang('message', 'OEE综合设备效率') }}
- +
@@ -62,7 +62,7 @@
- +
diff --git a/src/views/screen/components/ltop1.vue b/src/views/screen/components/ltop1.vue index b6a87e2..2d9b753 100644 --- a/src/views/screen/components/ltop1.vue +++ b/src/views/screen/components/ltop1.vue @@ -106,15 +106,16 @@ const { proxy } = getCurrentInstance(); align-items: center; .top { - height: 100px; + height: 62%; width: 100%; + box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; .top-item { - width: 210px; - height: 100px; + width: 30%; + height: 100%; padding: 10px; box-sizing: border-box; background: #1F2937; @@ -122,7 +123,7 @@ const { proxy } = getCurrentInstance(); } .bottom { - height: 40px; + height: 23%; width: 100%; padding: 5px; box-sizing: border-box; diff --git a/src/views/screen/components/ltop2.vue b/src/views/screen/components/ltop2.vue index a1702b7..b00881c 100644 --- a/src/views/screen/components/ltop2.vue +++ b/src/views/screen/components/ltop2.vue @@ -11,11 +11,11 @@
{{ item['label'] }}
-
+
{{ statusList[item.value]['label'] }}
-
+
{{ item['value'] }}
@@ -55,7 +55,7 @@ let statusList = { width: 100%; height: 20px; line-height: 20px; - font-size: 14px; + font-size: 12px; color: #cfcfcf; } @@ -89,8 +89,8 @@ let statusList = { align-items: center; .speed-box { - width: 120px; - height: 120px; + width: 90px; + height: 90px; background: url('./../image/u65.png') no-repeat; background-size: 100%; display: flex; @@ -111,23 +111,22 @@ let statusList = { flex-wrap: wrap; .right-item { - width: 155px; - height: 74px; + width: 23%; + height: 46%; padding: 5px; box-sizing: border-box; background: #1F2937; - .content { + .right-item-content { display: flex; justify-content: space-around; align-items: center; flex-direction: column; .status-box { - width: 20px; - height: 20px; + width: 1em; + height: 1em; border-radius: 50%; - margin-bottom: 5px; } .status-title { diff --git a/src/views/screen/components/ltop3.vue b/src/views/screen/components/ltop3.vue index df9052f..0f9e002 100644 --- a/src/views/screen/components/ltop3.vue +++ b/src/views/screen/components/ltop3.vue @@ -11,11 +11,11 @@
{{ item['label'] }}
-
+
{{ statusList[item.value]['label'] }}
-
+
{{ item['value'] }}
@@ -50,7 +50,7 @@ let statusList = { width: 100%; height: 20px; line-height: 20px; - font-size: 14px; + font-size: 12px; color: #cfcfcf; } @@ -84,8 +84,8 @@ let statusList = { align-items: center; .speed-box { - width: 120px; - height: 120px; + width: 90px; + height: 90px; background: url('./../image/u65.png') no-repeat; background-size: 100%; display: flex; @@ -106,28 +106,30 @@ let statusList = { flex-wrap: wrap; .right-item { - width: 200px; - height: 120px; - padding: 15px; + width: 27%; + height: 55%; + padding: 5px; border-radius: 5px; box-sizing: border-box; background: #1F2937; - .content { + .right-item-content { + width: 100%; + height: calc(100% - 20px); display: flex; justify-content: space-around; align-items: center; flex-direction: column; .status-box { - width: 30px; - height: 30px; + width: 1em; + height: 1em; border-radius: 50%; margin-bottom: 5px; } .status-title { - font-size: 12px; + font-size: 10px; color: #e7e7e7; } diff --git a/src/views/screen/components/rbottom1.vue b/src/views/screen/components/rbottom1.vue new file mode 100644 index 0000000..6f1037d --- /dev/null +++ b/src/views/screen/components/rbottom1.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/src/views/screen/index.vue b/src/views/screen/index.vue index 341491a..d686625 100644 --- a/src/views/screen/index.vue +++ b/src/views/screen/index.vue @@ -2,9 +2,9 @@
- + - +
@@ -15,9 +15,15 @@
-
-
-
+
+ +
+
+ +
+
+ +
@@ -29,6 +35,9 @@ import Ltop3 from './components/ltop3.vue' import Lcenter1 from './components/lcenter1.vue' import Lcenter2 from './components/lcenter2.vue' import bottomTable from './components/bottomTable.vue' +import imageCard from './components/imageCard.vue' +import devInfo from './components/devInfo.vue' +import Rbottom1 from './components/rbottom1.vue' const columns = [ @@ -56,8 +65,8 @@ let tableData = ref([ overflow: hidden; } .container { - width: 1366px; - height: 718px; + width: 100vw; + height: calc(100vh - 50px); padding: 9px 8px; box-sizing: border-box; background: #131617; @@ -66,7 +75,7 @@ let tableData = ref([ justify-content: space-between; align-items: center; .left { - width: 895px; + width: 65.5vw; height: 100%; display: flex; flex-direction: column; @@ -74,19 +83,19 @@ let tableData = ref([ align-items: center; .lt { width: 100%; - height: 175px; + height: 24.4%; } .lc { width: 100%; - height: 260px; + height: 36.2%; } .lb { width: 100%; - height: 240px; + height: 33.4%; } } .right { - width: 445px; + width: 32.6vw; height: 100%; display: flex; flex-direction: column; @@ -94,15 +103,15 @@ let tableData = ref([ align-items: center; .rt { width: 100%; - height: 210px; + height: 29.2%; } .rc { width: 100%; - height: 200px; + height: 27.8%; } .rb { width: 100%; - height: 270px; + height: 37.6%; } } }