修改导出

master
夜笙歌 2 years ago
parent 6d4b97b733
commit 69153120bb

@ -161,13 +161,14 @@ function handleQuery() {
/** 重置按钮操作 */ /** 重置按钮操作 */
const resetQuery = () => { const resetQuery = () => {
dateRange.value = []
proxy.resetForm("queryRef"); proxy.resetForm("queryRef");
handleQuery(); handleQuery();
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("basetyre/CollectMachineGps/export", {
...queryParams.value ...queryParams.value
}, `post_${new Date().getTime()}.xlsx`); }, `post_${new Date().getTime()}.xlsx`);
} }

@ -301,7 +301,7 @@ function handleDelete(row) {
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("carqueue/carqueue/export", {
...queryParams.value ...queryParams.value
}, `post_${new Date().getTime()}.xlsx`); }, `post_${new Date().getTime()}.xlsx`);
} }

@ -403,7 +403,7 @@ function handleDelete(row) {
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("basecar/car/export", {
...queryParams.value ...queryParams.value
}, `post_${new Date().getTime()}.xlsx`); }, `post_${new Date().getTime()}.xlsx`);
} }

@ -409,7 +409,7 @@ function handleDelete(row) {
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("cartype/cartype/export", {
...queryParams.value ...queryParams.value
}, `post_${new Date().getTime()}.xlsx`); }, `post_${new Date().getTime()}.xlsx`);
} }

@ -370,7 +370,7 @@ function handleDelete(row) {
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("basedevice/basedevice/export", {
...queryParams.value ...queryParams.value
}, `post_${new Date().getTime()}.xlsx`); }, `post_${new Date().getTime()}.xlsx`);
} }

@ -151,12 +151,13 @@ function handleQuery() {
/** 重置按钮操作 */ /** 重置按钮操作 */
const resetQuery = () => { const resetQuery = () => {
dateRange.value = []
proxy.resetForm("queryRef"); proxy.resetForm("queryRef");
handleQuery(); handleQuery();
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("basetyre/CollectMachineGps/export", {
...queryParams.value ...queryParams.value
}, `post_${new Date().getTime()}.xlsx`); }, `post_${new Date().getTime()}.xlsx`);
} }

@ -14,7 +14,7 @@
</el-form-item> </el-form-item>
<el-form-item label="时间" prop="internationalization3"> <el-form-item label="时间" prop="internationalization3">
<el-date-picker <el-date-picker
v-model="queryParams.internationalization3" v-model="dateRange"
end-placeholder="结束时间" end-placeholder="结束时间"
range-separator="到" range-separator="到"
start-placeholder="开始时间" start-placeholder="开始时间"
@ -44,6 +44,7 @@ const {t} = useI18n();
const locale = (Cookies.get('language') || 'zhCn') === 'zhCn' const locale = (Cookies.get('language') || 'zhCn') === 'zhCn'
const {proxy} = getCurrentInstance(); const {proxy} = getCurrentInstance();
const queryParams = ref({}) const queryParams = ref({})
const dateRange = ref([])
let map = null let map = null
let polyEditor = null let polyEditor = null
@ -190,6 +191,13 @@ const getLine = () => {
}) })
console.log(params) console.log(params)
} }
/** 重置按钮操作 */
const resetQuery = () => {
dateRange.value = []
proxy.resetForm("queryRef");
handleQuery();
}
</script> </script>
<style> <style>
#container4 { #container4 {

@ -137,6 +137,13 @@ const handleQuery = () => {
polylinePath.value = pathRow polylinePath.value = pathRow
}) })
} }
/** 重置按钮操作 */
const resetQuery = () => {
dateRange.value = []
proxy.resetForm("queryRef");
handleQuery();
}
</script> </script>
<style> <style>
#container3 { #container3 {
@ -145,4 +152,4 @@ const handleQuery = () => {
width: 100%; width: 100%;
height: calc(100vh - 190px); height: calc(100vh - 190px);
} }
</style> </style>

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

@ -345,7 +345,6 @@ const form = ref({});
/** 查询岗位列表 */ /** 查询岗位列表 */
function getList() { function getList() {
loading.value = true; loading.value = true;
console.log(dateRange.value)
listBasetyre(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => { listBasetyre(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
postList.value = response.rows; postList.value = response.rows;
total.value = response.total; total.value = response.total;
@ -399,6 +398,7 @@ function handleQuery() {
/** 重置按钮操作 */ /** 重置按钮操作 */
const resetQuery = () => { const resetQuery = () => {
proxy.resetForm("queryRef"); proxy.resetForm("queryRef");
dateRange.value = []
handleQuery(); handleQuery();
} }

@ -229,7 +229,7 @@ function handleSelectionChange(selection) {
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("system/post/export", { proxy.download("basetyre/basetyre/export", {
...queryParams.value ...queryParams.value
}, `post_${new Date().getTime()}.xlsx`); }, `post_${new Date().getTime()}.xlsx`);
} }

Loading…
Cancel
Save