Browse Source

部署线上服务器

hzj18279462576@163.com 1 year ago
parent
commit
e6b9cebde5
4 changed files with 22 additions and 22 deletions
  1. 2 2
      src/store/modules/user.js
  2. 4 4
      src/views/home/home.vue
  3. 2 2
      src/views/waiting/waiting.vue
  4. 14 14
      vite.config.js

+ 2 - 2
src/store/modules/user.js

@@ -8,8 +8,8 @@ const state = {
   activeIndex: 0,
   activeIndex: 0,
   username: "",
   username: "",
   password: "",
   password: "",
-  // api: "/campusMaintenance/repair-api/repair/api", // 线上
-  api: "/alumnus/repairTest/repair/api", // 测试
+  api: "/campusMaintenance/repair-api/repair/api", // 线上
+  // api: "/alumnus/repairTest/repair/api", // 测试
   // api: "/repair/api/", // wxl 测试
   // api: "/repair/api/", // wxl 测试
   newsNum: "",
   newsNum: "",
   schoolId: "", // 管理员等级
   schoolId: "", // 管理员等级

+ 4 - 4
src/views/home/home.vue

@@ -449,7 +449,7 @@ const day4 = [
 ];
 ];
 let tabIndex4 = ref(2); // 表格4
 let tabIndex4 = ref(2); // 表格4
 let table4CurrentPage = ref(1);
 let table4CurrentPage = ref(1);
-let table4pageCount = ref(10);
+let table4pageCount = ref(20);
 let table4Total = ref();
 let table4Total = ref();
 const table4Load = ref(false);
 const table4Load = ref(false);
 const scrolltop4 = ref(false); // 控制切换日期滚动条置顶
 const scrolltop4 = ref(false); // 控制切换日期滚动条置顶
@@ -483,7 +483,7 @@ const day8 = [
 ];
 ];
 let tabIndex8 = ref(2); // 表格4
 let tabIndex8 = ref(2); // 表格4
 let table8CurrentPage = ref(1);
 let table8CurrentPage = ref(1);
-let table8pageCount = ref(10);
+let table8pageCount = ref(20);
 let table8Total = ref();
 let table8Total = ref();
 const table8Load = ref(false);
 const table8Load = ref(false);
 const scrolltop8 = ref(false); // 控制切换日期滚动条置顶
 const scrolltop8 = ref(false); // 控制切换日期滚动条置顶
@@ -554,7 +554,7 @@ const day6 = [
 ];
 ];
 let tabIndex6 = ref(2); // 表格4
 let tabIndex6 = ref(2); // 表格4
 let table6CurrentPage = ref(1);
 let table6CurrentPage = ref(1);
-let table6pageCount = ref(10);
+let table6pageCount = ref(20);
 let table6Total = ref();
 let table6Total = ref();
 const table6Load = ref(false);
 const table6Load = ref(false);
 const scrolltop6 = ref(false); // 控制切换日期滚动条置顶
 const scrolltop6 = ref(false); // 控制切换日期滚动条置顶
@@ -624,7 +624,7 @@ const day7 = [
 ];
 ];
 let tabIndex7 = ref(2); // 表格4
 let tabIndex7 = ref(2); // 表格4
 let table7CurrentPage = ref(1);
 let table7CurrentPage = ref(1);
-let table7pageCount = ref(10);
+let table7pageCount = ref(20);
 let table7Total = ref();
 let table7Total = ref();
 const table7Load = ref(false);
 const table7Load = ref(false);
 const scrolltop7 = ref(false); // 控制切换日期滚动条置顶
 const scrolltop7 = ref(false); // 控制切换日期滚动条置顶

+ 2 - 2
src/views/waiting/waiting.vue

@@ -166,12 +166,12 @@ onBeforeMount(() => {
   api.value = store.state.user.api;
   api.value = store.state.user.api;
   getlist();
   getlist();
 });
 });
-onUnmounted(() => { });
+onUnmounted(() => {});
 </script>
 </script>
 
 
 <style scoped lang="scss">
 <style scoped lang="scss">
 .content-box {
 .content-box {
-  width: 97.5%;
+  width:calc(100% - 40px);
   height: 89%;
   height: 89%;
   margin: 20px auto;
   margin: 20px auto;
   background-color: #fff;
   background-color: #fff;

+ 14 - 14
vite.config.js

@@ -23,26 +23,26 @@ export default defineConfig({
     // 是否开启 https
     // 是否开启 https
     // https: false,
     // https: false,
     // 测试地址
     // 测试地址
+    //proxy: {
+    //  "/alumnus/repairTest/repair/api": {
+    //    target:
+    //      "https://chtech.ncjti.edu.cn/alumnus/repairTest/repair/api",
+    //    changeOrigin: true,
+    //    rewrite: (path) =>
+    //      path.replace(/^\/alumnus\/repairTest\/repair\/api/, ""),
+    //  },
+    //},
+
+    // 在线地址
     proxy: {
     proxy: {
-      "/alumnus/repairTest/repair/api": {
+      "/campusMaintenance/repair-api/repair/api": {
         target:
         target:
-          "https://chtech.ncjti.edu.cn/alumnus/repairTest/repair/api",
+          "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api",
         changeOrigin: true,
         changeOrigin: true,
         rewrite: (path) =>
         rewrite: (path) =>
-          path.replace(/^\/alumnus\/repairTest\/repair\/api/, ""),
+          path.replace(/^\/campusMaintenance\/repair-api\/repair\/api/, ""),
       },
       },
     },
     },
-
-    // 在线地址
-    // proxy: {
-    //   "/campusMaintenance/repair-api/repair/api": {
-    //     target:
-    //       "https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api",
-    //     changeOrigin: true,
-    //     rewrite: (path) =>
-    //       path.replace(/^\/campusMaintenance\/repair-api\/repair\/api/, ""),
-    //   },
-    // },
     // wxl 服务器
     // wxl 服务器
     // proxy: {
     // proxy: {
     //   "/repair/api/": {
     //   "/repair/api/": {