diff --git a/.env.development b/.env.development
index 764306d..eb8185a 100644
--- a/.env.development
+++ b/.env.development
@@ -6,7 +6,7 @@ VITE_APP_ENV = 'development'
# 开发环境
# 李陈杰 209
-VITE_APP_BASE_API = 'http://192.168.110.149:8899'
+VITE_APP_BASE_API = 'http://192.168.110.188:8899'
# 曾涛
# VITE_APP_BASE_API = 'http://192.168.110.180:8899'
# 罗成
diff --git a/public/daolu.xlsx b/public/daolu.xlsx
new file mode 100644
index 0000000..b7f00ac
Binary files /dev/null and b/public/daolu.xlsx differ
diff --git a/public/dikuai.xlsx b/public/dikuai.xlsx
new file mode 100644
index 0000000..25d39e0
Binary files /dev/null and b/public/dikuai.xlsx differ
diff --git a/src/views/materials/materialsEquipment/materialIssue/index.vue b/src/views/materials/materialsEquipment/materialIssue/index.vue
index 37efac6..8d4cdff 100644
--- a/src/views/materials/materialsEquipment/materialIssue/index.vue
+++ b/src/views/materials/materialsEquipment/materialIssue/index.vue
@@ -202,28 +202,25 @@
-
+
-
+
-
+
-
+
-
- 注意:请上传doc/xls/ppt/txt/pdf/png/jpg/jpeg/zip格式文件 注意:pdf/png/jpg/jpeg格式文件
diff --git a/src/views/project/landTransfer/BasicData/enterRoad/index.vue b/src/views/project/landTransfer/BasicData/enterRoad/index.vue
index 268bacc..a553d98 100644
--- a/src/views/project/landTransfer/BasicData/enterRoad/index.vue
+++ b/src/views/project/landTransfer/BasicData/enterRoad/index.vue
@@ -39,14 +39,12 @@
:show-file-list="false"
>
- 导入excel
+ 导入excel
- 删除
+ 导出模版
@@ -210,7 +208,24 @@ const resetQuery = () => {
queryFormRef.value?.resetFields();
handleQuery();
};
-
+const exportFile = () => {
+ // 导出模版文件
+ try {
+ // 创建a标签
+ const link = document.createElement('a');
+ // 设置PDF文件路径 - 相对于public目录
+ link.href = '/daolu.xlsx';
+ // 设置下载后的文件名
+ link.download = '道路信息导入模版.xlsx';
+ // 触发点击
+ document.body.appendChild(link);
+ link.click();
+ // 清理
+ document.body.removeChild(link);
+ } catch (error) {
+ alert('下载失败,请重试');
+ }
+};
/** 多选框选中数据 */
const handleSelectionChange = (selection: EnterRoadVO[]) => {
ids.value = selection.map((item) => item.id);
diff --git a/src/views/project/landTransfer/BasicData/landBlock/index.vue b/src/views/project/landTransfer/BasicData/landBlock/index.vue
index 09bfb19..8c215a0 100644
--- a/src/views/project/landTransfer/BasicData/landBlock/index.vue
+++ b/src/views/project/landTransfer/BasicData/landBlock/index.vue
@@ -42,10 +42,13 @@
- 导入excel
+ 导入excel
+
+ 导出模版
+
@@ -521,7 +524,24 @@ const handleImport = (options: { file: File }) => {
loading.value = false;
});
};
-
+const exportFile = () => {
+ // 导出模版文件
+ try {
+ // 创建a标签
+ const link = document.createElement('a');
+ // 设置PDF文件路径 - 相对于public目录
+ link.href = '/dikuai.xlsx';
+ // 设置下载后的文件名
+ link.download = '地块信息导入模版.xlsx';
+ // 触发点击
+ document.body.appendChild(link);
+ link.click();
+ // 清理
+ document.body.removeChild(link);
+ } catch (error) {
+ alert('下载失败,请重试');
+ }
+};
/** 下载导入模板 */
const downloadTemplate = () => {
try {