修改导出

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

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

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

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

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

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

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

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

@ -137,6 +137,13 @@ const handleQuery = () => {
polylinePath.value = pathRow
})
}
/** 重置按钮操作 */
const resetQuery = () => {
dateRange.value = []
proxy.resetForm("queryRef");
handleQuery();
}
</script>
<style>
#container3 {

@ -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() {
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)
}).finally(() => {
//loading.value = false;
});
})
}
})
//getList();
}
/** 搜索按钮操作 */
@ -111,8 +115,9 @@ function handleTyreMileage() {
}
/** 重置按钮操作 */
const resetQuery = () => {
dateRange.value = []
proxy.resetForm("queryRef");
handleQuery();
// handleQuery();
}
</script>
<style lang="scss" scoped>

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

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

Loading…
Cancel
Save