|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="dashboard-editor-container">
|
|
|
|
|
<!-- 搜索栏-->
|
|
|
|
|
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch"
|
|
|
|
|
<el-form :rules="rules" :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch"
|
|
|
|
|
:label-width=" locale ? '100px':'140px'">
|
|
|
|
|
<el-form-item label="外胎号" prop="outerTireNumber">
|
|
|
|
|
<el-input
|
|
|
|
@ -63,6 +63,7 @@ import PieChart from '@/views/dashboard/PieChart'
|
|
|
|
|
import BarChart from '@/views/dashboard/BarChart'
|
|
|
|
|
import {getTempdata} from "@/api/report/report";
|
|
|
|
|
import * as echarts from 'echarts'
|
|
|
|
|
import {addBasetyre, updateBasetyre} from "@/api/tireManagement/info";
|
|
|
|
|
provide('echart', echarts)
|
|
|
|
|
const {t} = useI18n();
|
|
|
|
|
const locale = (Cookies.get('language') || 'zhCn') === 'zhCn'
|
|
|
|
@ -73,6 +74,7 @@ const dateRange = ref([]);
|
|
|
|
|
const tempRef = ref();
|
|
|
|
|
const pieRef = ref();
|
|
|
|
|
const barRef = ref()
|
|
|
|
|
const queryRef = ref()
|
|
|
|
|
|
|
|
|
|
// 搜索参数
|
|
|
|
|
const queryParams = ref({
|
|
|
|
@ -96,13 +98,15 @@ function reset() {
|
|
|
|
|
}
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
function handleQuery() {
|
|
|
|
|
getTempdata(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
|
|
|
|
tempRef.value.setData(response.data);
|
|
|
|
|
pieRef.value.setData(response?.data?.WarnData);
|
|
|
|
|
barRef.value.setData(response?.data?.patternTextureList)
|
|
|
|
|
}).finally(() => {
|
|
|
|
|
//loading.value = false;
|
|
|
|
|
});
|
|
|
|
|
proxy.$refs["queryRef"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
getTempdata(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
|
|
|
|
tempRef.value.setData(response.data);
|
|
|
|
|
pieRef.value.setData(response?.data?.WarnData);
|
|
|
|
|
barRef.value.setData(response?.data?.patternTextureList)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
//getList();
|
|
|
|
|
}
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
@ -111,8 +115,9 @@ function handleTyreMileage() {
|
|
|
|
|
}
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
const resetQuery = () => {
|
|
|
|
|
dateRange.value = []
|
|
|
|
|
proxy.resetForm("queryRef");
|
|
|
|
|
handleQuery();
|
|
|
|
|
// handleQuery();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|