From c42294009ec00f4d9ee3a95a131252237aec3e7b Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 25 十一月 2024 14:31:54 +0800 Subject: [PATCH] 地址修改 --- .env.development | 2 vue.config.js | 2 src/utils/graphql.js | 4 +- src/views/student/components/upload-student.vue | 4 +- src/router/index.js | 45 +++++++++++++++------- src/views/student/components/details.vue | 6 +- 6 files changed, 40 insertions(+), 23 deletions(-) diff --git a/.env.development b/.env.development index 4b8f067..58bea65 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ ENV = 'development' # base api -VUE_APP_BASE_API = '/dream_dev' +VUE_APP_BASE_API = '/dream' diff --git a/src/router/index.js b/src/router/index.js index b259f99..1d6d96c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -30,8 +30,7 @@ * a base page that does not have permission requirements * all roles can be accessed */ -export const constantRoutes = [ - { +export const constantRoutes = [{ path: "/login", component: () => import("@/views/login/index"), hidden: true, @@ -73,12 +72,23 @@ path: "/", component: Layout, redirect: "/student", - children: [ - { + children: [{ path: "/student", name: "Student", component: () => import("@/views/student/index"), - meta: { title: "瀛﹀憳鍒楄〃", icon: "table" }, + meta: { + title: "瀛﹀憳鍒楄〃", + icon: "table" + }, + }, + { + path: "student/details", + name: "StudentDetails", + component: () => import("@/views/student/components/details.vue"), + meta: { + title: "瀛﹀憳璇︽儏" + }, + hidden: true, }, ], }, @@ -86,14 +96,15 @@ path: "/", component: Layout, redirect: "/class", - children: [ - { - path: "/class", - name: "Class", - component: () => import("@/views/class/index"), - meta: { title: "鐝骇鍒楄〃", icon: "table" }, + children: [{ + path: "/class", + name: "Class", + component: () => import("@/views/class/index"), + meta: { + title: "鐝骇鍒楄〃", + icon: "table" }, - ], + }, ], }, // { // path: "/educational", @@ -258,13 +269,19 @@ // }, // 404 page must be placed at the end !!! - { path: "*", redirect: "/404", hidden: true }, + { + path: "*", + redirect: "/404", + hidden: true + }, ]; const createRouter = () => new Router({ // mode: 'history', // require service support - scrollBehavior: () => ({ y: 0 }), + scrollBehavior: () => ({ + y: 0 + }), routes: constantRoutes, }); diff --git a/src/utils/graphql.js b/src/utils/graphql.js index 938c1f5..8019fde 100644 --- a/src/utils/graphql.js +++ b/src/utils/graphql.js @@ -6,8 +6,8 @@ // export default apolloClient; // 瀹氫箟涓嶅悓璇锋眰鍦板潃 -const EFORMURI = "/dream_dev/graphql"; -const IOTURI = "/dream_dev/graphql"; +const EFORMURI = "/dream/graphql"; +const IOTURI = "/dream/graphql"; // import ApolloClient from 'apollo-boost' //寮曞叆apollo-boost鎻掍欢 import { ApolloClient } from "apollo-client"; import { createHttpLink } from "apollo-link-http"; diff --git a/src/views/student/components/details.vue b/src/views/student/components/details.vue index 298efcc..e7048e5 100644 --- a/src/views/student/components/details.vue +++ b/src/views/student/components/details.vue @@ -89,7 +89,7 @@ <el-table-column label="鏁伴噺" prop="qty" /> <el-table-column label="閲戦" prop="amt" /> <el-table-column label="鍒版湡鏃堕棿" prop="endDate" /> - <el-table-column label="" prop=""> + <!-- <el-table-column label="" prop=""> <template slot-scope="scope"> <el-link type="primary" @@ -98,7 +98,7 @@ >鏌ョ湅鏄庣粏</el-link > </template> - </el-table-column> + </el-table-column> --> </el-table> </el-form-item> <el-form-item @@ -178,7 +178,7 @@ }); }, goDetails(row) { - this.$router.push("/details"); + // this.$router.push("/details"); }, }, }; diff --git a/src/views/student/components/upload-student.vue b/src/views/student/components/upload-student.vue index aa42e4d..abbaa1b 100644 --- a/src/views/student/components/upload-student.vue +++ b/src/views/student/components/upload-student.vue @@ -10,7 +10,7 @@ @fileSuccess="fatherMethod" @file-uploading="showUploadProcess" :type="'AUDIENCE'" - :action="'/dream_dev/player/importPlayer'" + :action="'/dream/player/importPlayer'" > <div class="uploading-btn-to"> <i class="iconfont iconAdd"></i> 涓婁紶 @@ -85,7 +85,7 @@ self.progressStatus = ""; setTimeout(function () { const eventSource = new EventSource( - "/dream_dev/sse-stream/" + + "/dream/sse-stream/" + JSON.parse(localStorage.getItem("selectStaff")).id ); diff --git a/vue.config.js b/vue.config.js index 05eac46..9dc35a2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -39,7 +39,7 @@ proxy: { [process.env.VUE_APP_BASE_API]: { // 鍖归厤鎵�鏈変互 '/dev-api'寮�澶寸殑璇锋眰璺緞 - target: "http://localhost:18080/dream_dev", //绫讳技浜嶯ginx鍙嶅悜浠g悊 + target: "http://localhost:18080/dream", //绫讳技浜嶯ginx鍙嶅悜浠g悊 changeOrigin: true, // 鏀寔璺ㄥ煙 pathRewrite: { // 閲嶅啓璺緞: 鍘绘帀璺緞涓紑澶寸殑'/dev-api' -- Gitblit v1.8.0