From 8d27f95cf6e3b3289e90828ecef72e0c74f804b0 Mon Sep 17 00:00:00 2001
From: wangyuhang <139@qq.com>
Date: 星期五, 18 七月 2025 15:42:47 +0800
Subject: [PATCH] 导入修改,修改项目名称

---
 /dev/null                                                      |   44 ----------------------
 src/api/system/manage.ts                                       |    9 ++++
 src/views/login.vue                                            |    2 
 src/views/system/manage/index.vue                              |   39 ++++++++++++++++---
 src/layout/components/Sidebar/Logo.vue                         |    4 +-
 src/views/infomanger/infoLook/components/createQrcode.vue      |    4 +-
 index.html                                                     |    2 
 src/views/infomanger/companymanger/components/createQrcode.vue |    4 +-
 package.json                                                   |    4 +-
 9 files changed, 52 insertions(+), 60 deletions(-)

diff --git a/index.html b/index.html
index 3c2e529..7fac20b 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
     <meta name="renderer" content="webkit" />
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
     <!-- <link rel="icon" href="/logo.ico" /> -->
-    <title>鎯犱紒鎵ф硶</title>
+    <title>瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴</title>
     <script src='//webapi.amap.com/maps?v=2.0&key=a3472b04ae282cabb61670b13c7b90ab' type="text/javascript"></script>
     <script src="//webapi.amap.com/ui/1.1/main.js"></script>
     <!--[if lt IE 11
diff --git a/package.json b/package.json
index f725384..38aadb9 100644
--- a/package.json
+++ b/package.json
@@ -1,8 +1,8 @@
 {
   "name": "ruoyi",
   "version": "3.8.5",
-  "description": "鎯犱紒鎵ф硶",
-  "author": "鎯犱紒鎵ф硶",
+  "description": "瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴",
+  "author": "瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴",
   "scripts": {
     "build:prod": "vite build",
     "build:stage": "vite build --mode staging",
diff --git a/src/api/system/manage.js b/src/api/system/manage.js
deleted file mode 100644
index 274c55a..0000000
--- a/src/api/system/manage.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import request from '@/utils/request'
-
-// 鏌ヨ璁″垝绠$悊鍒楄〃
-export function listManage(query) {
-  return request({
-    url: '/system/manage/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 鏌ヨ璁″垝绠$悊璇︾粏
-export function getManage(id) {
-  return request({
-    url: '/system/manage/' + id,
-    method: 'get'
-  })
-}
-
-// 鏂板璁″垝绠$悊
-export function addManage(data) {
-  return request({
-    url: '/system/manage',
-    method: 'post',
-    data: data
-  })
-}
-
-// 淇敼璁″垝绠$悊
-export function updateManage(data) {
-  return request({
-    url: '/system/manage',
-    method: 'put',
-    data: data
-  })
-}
-
-// 鍒犻櫎璁″垝绠$悊
-export function delManage(id) {
-  return request({
-    url: '/system/manage/' + id,
-    method: 'delete'
-  })
-}
diff --git a/src/api/system/manage.ts b/src/api/system/manage.ts
index 9450bb0..6e3a232 100644
--- a/src/api/system/manage.ts
+++ b/src/api/system/manage.ts
@@ -42,3 +42,12 @@
     method: "delete",
   });
 }
+
+// 涓嬭浇妯℃澘 /system/manage/exportTemplate
+export function exportTemplate(data) {
+  return request({
+    url: `/system/manage/exportTemplate`,
+    method: 'get',
+    params: data
+  })
+}
diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue
index 47ef6a1..51c3d04 100644
--- a/src/layout/components/Sidebar/Logo.vue
+++ b/src/layout/components/Sidebar/Logo.vue
@@ -7,7 +7,7 @@
       </router-link>
       <router-link v-else key="expand" class="sidebar-logo-link" to="/home">
         <!-- <img v-if="logotxt" :src="logotxt" class="sidebar-logo-txt" /> -->
-        鎯犱紒鎵ф硶
+        瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴
       </router-link>
     </transition>
   </div>
@@ -26,7 +26,7 @@
   },
 });
 
-const title = ref("鎯犱紒鎵ф硶");
+const title = ref("瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴");
 const settingsStore = useSettingsStore();
 const sideTheme = computed(() => settingsStore.sideTheme);
 </script>
diff --git a/src/views/infomanger/companymanger/components/createQrcode.vue b/src/views/infomanger/companymanger/components/createQrcode.vue
index fe492f9..cc08bd0 100644
--- a/src/views/infomanger/companymanger/components/createQrcode.vue
+++ b/src/views/infomanger/companymanger/components/createQrcode.vue
@@ -2,7 +2,7 @@
   <el-dialog title="浜岀淮鐮�"  v-model="dialogVisible" width="300px" @close="closeDialog"> 
     <div class="text-center">
       <vueQr ref="query" background="#fff" :text="info.companyCode"></vueQr>
-      <div style="font-weight: bold;margin-bottom: 10px;">娌堜笜鎯犱紒鎵ф硶</div>
+      <div style="font-weight: bold;margin-bottom: 10px;">瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴</div>
       <div>{{ info.companyName }}</div>
       <div style="margin-top: 10px;">
         <el-link @click="downImage" type="primary">涓嬭浇浼佷笟鐮�</el-link>
@@ -58,7 +58,7 @@
       ctx.fillStyle = '#000';
       // ctx.setFontWeight('bold')
       ctx.font ='bold 20px Arial'
-      wrapText(ctx, "娌堜笜鎯犱紒鎵ф硶", 180, 320, 350, 40)
+      wrapText(ctx, "瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴", 180, 320, 350, 40)
       // ctx.setFontWeight('normal')
       ctx.font ="20px Arial"
       wrapText(ctx, text, 180, 350, 350, 20)
diff --git a/src/views/infomanger/infoLook/components/createQrcode.vue b/src/views/infomanger/infoLook/components/createQrcode.vue
index 87aa2da..16b4410 100644
--- a/src/views/infomanger/infoLook/components/createQrcode.vue
+++ b/src/views/infomanger/infoLook/components/createQrcode.vue
@@ -2,7 +2,7 @@
   <el-dialog title="浜岀淮鐮�"  v-model="dialogVisible" width="300px" @close="closeDialog"> 
     <div class="text-center">
       <vueQr ref="query" background="#fff" :text="info.companyCode"></vueQr>
-      <div style="font-weight: bold;margin-bottom: 10px;">娌堜笜鎯犱紒鎵ф硶</div>
+      <div style="font-weight: bold;margin-bottom: 10px;">瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴</div>
 
       <div>{{ info.companyName }}</div>
       <div style="margin-top: 10px;">
@@ -59,7 +59,7 @@
       ctx.fillStyle = '#000';
       // ctx.setFontWeight('bold')
       ctx.font ='bold 20px Arial'
-      wrapText(ctx, "娌堜笜鎯犱紒鎵ф硶", 180, 320, 350, 40)
+      wrapText(ctx, "瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴", 180, 320, 350, 40)
       // ctx.setFontWeight('normal')
       ctx.font ="20px Arial"
       wrapText(ctx, text, 180, 350, 350, 20)
diff --git a/src/views/login.vue b/src/views/login.vue
index c197700..2092eea 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -4,7 +4,7 @@
     <Particles id="tsparticles" :particlesInit="particlesInit" :particlesLoaded="particlesLoaded" :options="options" />
 
     <el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
-      <h3 class="title">娌堜笜鎯犱紒鎵ф硶</h3>
+      <h3 class="title">瀵熷幙鎵爜鍏ヤ紒鐩戠潱骞冲彴</h3>
       <el-form-item prop="username">
         <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" placeholder="璐﹀彿">
           <template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
diff --git a/src/views/system/manage/index.vue b/src/views/system/manage/index.vue
index 118edb2..d452151 100644
--- a/src/views/system/manage/index.vue
+++ b/src/views/system/manage/index.vue
@@ -170,12 +170,19 @@
 
 <script setup name="Dept">
 import { getToken } from "@/utils/auth";
-import { listCompany, addCompany, updStatus, delCompany, updateCompany, getCompany } from "@/api/system/company/company";
-import { listManage } from "@/api/system/manage";
+import {
+  listCompany,
+  addCompany,
+  updStatus,
+  delCompany,
+  updateCompany,
+  getCompany
+} from "@/api/system/company/company";
+import { listManage ,exportTemplate} from "@/api/system/manage";
 import { computed } from "vue";
 import { judgeStatus, companyStatus, scopeList } from '@/utils/mapList/index.ts'
 import useSettingsStore from "@/store/modules/settings";
-import { download } from '@/utils/request'; // 涓嬭浇鏂囦欢
+import {download as downloadHttp, download} from '@/utils/request'; // 涓嬭浇鏂囦欢
 const thcolor = computed(() => useSettingsStore().theme);
 const { proxy } = getCurrentInstance();
 const { sys_normal_disable } = proxy.useDict("sys_normal_disable");
@@ -239,9 +246,22 @@
   // 璁剧疆涓婁紶鐨勮姹傚ご閮�
   headers: { Authorization: "Bearer " + getToken() },
   // 涓婁紶鐨勫湴鍧�
-  url: import.meta.env.VITE_APP_BASE_API + "/system/user/importData",
+  url: import.meta.env.VITE_APP_BASE_API + "/system/manage/importData",
 });
-
+/**鏂囦欢涓婁紶涓鐞� */
+const handleFileUploadProgress = (event, file, fileList) => {
+  upload.isUploading = true;
+};
+/** 鏂囦欢涓婁紶鎴愬姛澶勭悊 */
+const handleFileSuccess = (response, file, fileList) => {
+  upload.open = false;
+  upload.isUploading = false;
+  proxy.$refs["uploadRef"].handleRemove(file);
+  proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "瀵煎叆缁撴灉", {
+    dangerouslyUseHTMLString: true,
+  });
+  getList();
+};
 const { queryParams, form, rules } = toRefs(data);
 const recordRow = ref([])
 /** 鏌ヨ浼佷笟鍒楄〃 */
@@ -353,9 +373,16 @@
 
 /** 涓嬭浇妯℃澘鎿嶄綔 */
 function importTemplate() {
-  proxy.download("system/user/importTemplate", {}, `user_template_${new Date().getTime()}.xlsx`);
+  exportTemplate().then(val => {
+    downloadHttp('/tool/file/download', {
+      fileName: val.msg,
+      delete: true
+    }, "璁″垝淇℃伅妯℃澘.xlsx")
+  })
 }
 
+
+
 // 淇敼浼佷笟淇℃伅
 function changeCompanyNews(row, event) {
   if (loading.value) {

--
Gitblit v1.9.1