|
|
|
@ -72,7 +72,7 @@
|
|
|
|
<div class="dashboard-card-image-wrapper" @click="handlePreview(item)">
|
|
|
|
<div class="dashboard-card-image-wrapper" @click="handlePreview(item)">
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
class="dashboard-card-image"
|
|
|
|
class="dashboard-card-image"
|
|
|
|
:src="item.indexImage || defaultImage"
|
|
|
|
:src="getDashboardImage(item)"
|
|
|
|
alt="封面图"
|
|
|
|
alt="封面图"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<div class="dashboard-card-state">
|
|
|
|
<div class="dashboard-card-state">
|
|
|
|
@ -208,6 +208,8 @@
|
|
|
|
import { getStrDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
|
import { getStrDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
|
import request from '@/config/axios'
|
|
|
|
import request from '@/config/axios'
|
|
|
|
import defaultImage from '@/assets/imgs/logo.png'
|
|
|
|
import defaultImage from '@/assets/imgs/logo.png'
|
|
|
|
|
|
|
|
import dashboardImage1 from '@/assets/imgs/dashboard1.png'
|
|
|
|
|
|
|
|
import dashboardImage2 from '@/assets/imgs/dashboard2.png'
|
|
|
|
import { OrganizationApi } from '@/api/mes/organization'
|
|
|
|
import { OrganizationApi } from '@/api/mes/organization'
|
|
|
|
import { handleTree } from '@/utils/tree'
|
|
|
|
import { handleTree } from '@/utils/tree'
|
|
|
|
import { DeviceApi } from '@/api/iot/device'
|
|
|
|
import { DeviceApi } from '@/api/iot/device'
|
|
|
|
@ -235,6 +237,16 @@ const loading = ref(false)
|
|
|
|
const list = ref<DashboardItem[]>([])
|
|
|
|
const list = ref<DashboardItem[]>([])
|
|
|
|
const total = ref(0)
|
|
|
|
const total = ref(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getDashboardImage = (item: DashboardItem) => {
|
|
|
|
|
|
|
|
if (item.name === '智能制造产线任务总览') {
|
|
|
|
|
|
|
|
return dashboardImage1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (item.name === '产线运行看板') {
|
|
|
|
|
|
|
|
return dashboardImage2
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return item.indexImage || defaultImage
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const queryParams = reactive({
|
|
|
|
const queryParams = reactive({
|
|
|
|
pageNo: 1,
|
|
|
|
pageNo: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
|