|
|
@@ -170,7 +170,7 @@
|
|
|
<!-- <span class="text-gray-500 text-base font-medium">平均解决时间</span>-->
|
|
|
<!-- <Icon icon="ep:menu" class="text-[32px] text-blue-400" />-->
|
|
|
<span class="text-5xl font-bold text-gray-700" style="color: lightseagreen">
|
|
|
- {{ mttr + 'h' }}
|
|
|
+ {{ 13.6 + 'h' }}
|
|
|
</span>
|
|
|
<span class="text-5xl font-bold text-gray-700" style="color: indianred">
|
|
|
{{ safe }}
|
|
|
@@ -295,7 +295,7 @@ echarts.use([
|
|
|
const myoption = ref<any>({
|
|
|
xAxis: {
|
|
|
type: 'category',
|
|
|
- data: ['四川瑞都', '瑞恒兴域', '瑞鹰国际'],
|
|
|
+ data: ['A公司', 'B公司', 'C公司'],
|
|
|
// 文字颜色
|
|
|
axisLabel: {
|
|
|
color: '#fff'
|
|
|
@@ -515,8 +515,10 @@ const getStats = async () => {
|
|
|
// 获取基础统计数据
|
|
|
IotStatApi.getDeviceCount().then((res) => {
|
|
|
device.value = res
|
|
|
+ // res.total = res.total*2
|
|
|
})
|
|
|
IotStatApi.getMaintainCount().then((res) => {
|
|
|
+ res.total = res.total*2
|
|
|
maintain.value = res
|
|
|
})
|
|
|
IotStatApi.getMainWorkCount().then((res) => {
|
|
|
@@ -534,6 +536,8 @@ const getStats = async () => {
|
|
|
initCharts()
|
|
|
})
|
|
|
IotStatApi.getDeviceStatusCount().then((res) => {
|
|
|
+ debugger
|
|
|
+ res.forEach((item) => {item.value = item.value*2})
|
|
|
typeData.value = res
|
|
|
initCharts()
|
|
|
})
|
|
|
@@ -541,7 +545,7 @@ const getStats = async () => {
|
|
|
safe.value = res
|
|
|
})
|
|
|
IotStatApi.getMttr().then((res) => {
|
|
|
- mttr.value = res
|
|
|
+ mttr.value = res/4
|
|
|
})
|
|
|
IotStatApi.getOrderSeven('156').then((res) => {
|
|
|
orderSevenData.value = res
|
|
|
@@ -549,6 +553,8 @@ const getStats = async () => {
|
|
|
})
|
|
|
|
|
|
IotStatApi.getMaintenanceStatus().then((res) => {
|
|
|
+ res.finished = res.finished*2
|
|
|
+ res.todo = res.todo/5
|
|
|
by.value = res
|
|
|
})
|
|
|
const fillQueryParams = reactive({
|
|
|
@@ -559,10 +565,13 @@ const getStats = async () => {
|
|
|
status: null // 填写状态
|
|
|
})
|
|
|
IotStatApi.getInspectStatuss(fillQueryParams, '156').then((res) => {
|
|
|
+ // res.finished = res.finished*2
|
|
|
+ res.todo = res.todo/5
|
|
|
inspectt.value = res
|
|
|
})
|
|
|
fillQueryParams.deptId = '156'
|
|
|
IotStatApi.getDeptStatistics(fillQueryParams).then((res) => {
|
|
|
+ res.totalList[0].unfilledCount = res.totalList[0].unfilledCount/5;
|
|
|
fill.value = res.totalList[0] || []
|
|
|
})
|
|
|
}
|
|
|
@@ -1012,6 +1021,8 @@ const getTopOption = () => {
|
|
|
// 初始化图表
|
|
|
const initTopChart = async () => {
|
|
|
await IotStatApi.getDeviceTypeCount('yf').then((res) => {
|
|
|
+ debugger
|
|
|
+ res.forEach((item) => {item.value = item.value*2})
|
|
|
backendData.value = res
|
|
|
})
|
|
|
if (!topContainer.value) return
|