-
+
+
+
-
-
diff --git a/ruoyi-ui/src/views/report/temppresspeed/index.vue b/ruoyi-ui/src/views/report/temppresspeed/index.vue
index 712513c..d695f11 100644
--- a/ruoyi-ui/src/views/report/temppresspeed/index.vue
+++ b/ruoyi-ui/src/views/report/temppresspeed/index.vue
@@ -1,313 +1,47 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('option.add') }}
-
-
-
- {{ t('option.edit') }}
-
-
-
- {{ t('option.remove') }}
-
-
-
- {{ t('option.export') }}
-
-
-
-
-
-
-
-
+
+
+ Header
+ Main
+
+
+
+
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue
index d12002b..357ff36 100644
--- a/ruoyi-ui/src/views/system/user/index.vue
+++ b/ruoyi-ui/src/views/system/user/index.vue
@@ -313,7 +313,7 @@
- 是否更新已经存在的用户数据
+ 是否更新已经存在的轮胎数据
仅允许导入xls、xlsx格式文件。
下载模板
diff --git a/ruoyi-ui/src/views/tireManagement/info/index.vue b/ruoyi-ui/src/views/tireManagement/info/index.vue
index 14e0cf3..db28194 100644
--- a/ruoyi-ui/src/views/tireManagement/info/index.vue
+++ b/ruoyi-ui/src/views/tireManagement/info/index.vue
@@ -96,6 +96,15 @@
>{{ t('option.remove') }}
+
+ 导入
+
+
+
+
+
+ 将文件拖到此处,或点击上传
+
+
+
+ 是否更新已经存在的用户数据
+
+
仅允许导入xls、xlsx格式文件。
+
下载模板
+
+
+
+
+
+
+
@@ -219,6 +261,7 @@ import {addBasetyre, delBasetyre, getBasetyre, listBasetyre, updateBasetyre} fro
import {useI18n} from 'vue-i18n';
import Cookies from "js-cookie";
+import { getToken } from "@/utils/auth";
const {t} = useI18n();
@@ -246,7 +289,20 @@ const multiple = ref(true);
const total = ref(0);
// 模态框标题
const title = ref("");
-
+const upload = reactive({
+ // 是否显示弹出层(用户导入)
+ open: false,
+ // 弹出层标题(用户导入)
+ title: "",
+ // 是否禁用上传
+ isUploading: false,
+ // 是否更新已经存在的用户数据
+ updateSupport: 0,
+ // 设置上传的请求头部
+ headers: { Authorization: "Bearer " + getToken() },
+ // 上传的地址
+ url: import.meta.env.VITE_APP_BASE_API + "/basetyre/tyre/importData"
+});
// 搜索参数
const queryParams = ref({
pageNum: 1,
@@ -405,10 +461,33 @@ function handleDelete(row) {
/** 导出按钮操作 */
function handleExport() {
- proxy.download("system/post/export", {
+ proxy.download("basetyre/tyre/export", {
...queryParams.value
}, `post_${new Date().getTime()}.xlsx`);
}
+/** 下载模板操作 */
+function importTemplate() {
+ proxy.download("basetyre/tyre/importTemplate", {
+ }, `轮胎信息导入模板_${new Date().getTime()}.xlsx`);
+};
+
+/** 文件上传成功处理 */
+const handleFileSuccess = (response, file, fileList) => {
+ upload.open = false;
+ upload.isUploading = false;
+ proxy.$refs["uploadRef"].handleRemove(file);
+ proxy.$alert("
" + response.msg + "
", "导入结果", { dangerouslyUseHTMLString: true });
+ getList();
+};
+/** 提交上传文件 */
+function submitFileForm() {
+ proxy.$refs["uploadRef"].submit();
+};
+/** 导入按钮操作 */
+function handleImport() {
+ upload.title = "轮胎信息导入";
+ upload.open = true;
+};
getList();
diff --git a/ruoyi-ui/src/views/tireManagement/salesData/index.vue b/ruoyi-ui/src/views/tireManagement/salesData/index.vue
index 0286d98..1595015 100644
--- a/ruoyi-ui/src/views/tireManagement/salesData/index.vue
+++ b/ruoyi-ui/src/views/tireManagement/salesData/index.vue
@@ -75,27 +75,27 @@
-
- {{ t('option.add') }}
-
-
-
- {{ t('option.remove') }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- {{ t('option.edit') }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+