diff --git a/src/assets/icons/svg/back.svg b/src/assets/icons/svg/back.svg
new file mode 100644
index 0000000..0ca0a9f
--- /dev/null
+++ b/src/assets/icons/svg/back.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/views/device/device/add_edit.vue b/src/views/device/device/add_edit.vue
index e0a43d7..28decae 100644
--- a/src/views/device/device/add_edit.vue
+++ b/src/views/device/device/add_edit.vue
@@ -10,7 +10,7 @@
-
diff --git a/src/views/device/device/index.vue b/src/views/device/device/index.vue
index 940a8a9..a6de208 100644
--- a/src/views/device/device/index.vue
+++ b/src/views/device/device/index.vue
@@ -159,6 +159,7 @@ let queryParams = reactive({
pageSize: 10,
name: null,
code: null,
+ label: null,
type: null,
workShop: null,
lineName: null,
@@ -258,6 +259,7 @@ function reset() {
id: null,
name: null,
code: null,
+ label: null,
workShop: null,
lineName: null,
maintenance: null,
diff --git a/src/views/screen/devItem/component/stackBarChart.vue b/src/views/screen/devItem/component/stackBarChart.vue
index 3567666..5181e00 100644
--- a/src/views/screen/devItem/component/stackBarChart.vue
+++ b/src/views/screen/devItem/component/stackBarChart.vue
@@ -39,7 +39,7 @@ const options = computed(() => {
data: prop.data.xAxis,
},
yAxis: {
- name: 'h',
+ name: 'min',
type: 'value',
axisLabel: {
color: '#fff',
diff --git a/src/views/screen/devItem/index.vue b/src/views/screen/devItem/index.vue
index 8dd912c..d588e5f 100644
--- a/src/views/screen/devItem/index.vue
+++ b/src/views/screen/devItem/index.vue
@@ -2,6 +2,8 @@
@@ -103,7 +105,7 @@
header-row-class-name="table_header" style="width: 100%;height: 100%;">
-
+
@@ -115,7 +117,7 @@
header-row-class-name="table_header" style="width: 100%;height: 100%;">
-
+
@@ -138,11 +140,12 @@ import Card from './component/card.vue';
import StackBarChart from './component/stackBarChart.vue';
import Progress from './component/Progress.vue';
import LineChart from './component/lineChart.vue';
-import { useRoute } from 'vue-router';
+import { useRoute,useRouter } from 'vue-router';
import { listDevice, deviceCheck, deviceRepair, deviceStatusById, deviceStatusChart,deviceRateChart,deviceElectChart } from '@/api/screen/micro'
const route = useRoute();
+const router = useRouter();
let id = ref(0)
const baseUrl = import.meta.env.VITE_APP_BASE_API;
@@ -232,6 +235,11 @@ function getdeviceElectChart() {
})
}
+
+//返回
+function handleBack() {
+ router.go(-1);
+}
onMounted(() => {
id.value = route.params.id;
getDeviceCheck();
@@ -251,6 +259,15 @@ onMounted(() => {
color: #21dadb;
text-align: center;
}
+.back_icon {
+ position: absolute;
+ top: 40px;
+ left: 20px;
+ width: 60px;
+ height: 60px;
+ color: #f9f8f4;
+ cursor: pointer;
+}
.container {
width: 1920px;
@@ -267,6 +284,7 @@ onMounted(() => {
background-position: center;
.header {
+ position: relative;
width: 100%;
height: 89px;
background-image: url('/src/assets/images/screen-header-bg1.png');
diff --git a/src/views/screen/microFactory/index.vue b/src/views/screen/microFactory/index.vue
index ad89c0c..af27b75 100644
--- a/src/views/screen/microFactory/index.vue
+++ b/src/views/screen/microFactory/index.vue
@@ -16,8 +16,16 @@
>
-
-
+
+
+ {{ row.runTime }}min
+
+
+
+
+ {{ row.rate }}%
+
+
@@ -120,17 +128,23 @@
-
+
+
-
+
@@ -138,7 +152,7 @@
-
+
@@ -165,7 +179,7 @@ import { listDevice, listElect, electMonitoring, deviceStatus, deviceRate,device
let {proxy} = getCurrentInstance()
let router = useRouter()
let radio_bar = ref('d')
-
+let radio_repair = ref('b')
let skinName = ref('');
let devStatus = reactive({
@@ -233,6 +247,13 @@ function handleChangeBar() {
getlistElect()
}
+function handleChangeRepair() {
+ if (radio_repair.value == 'b') {
+ getdeviceCheck()
+ } else {
+ getdeviceRepair()
+ }
+}
let powerMonitoring = ref([
{ label: '当天耗电量', value: 8 },