| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = '/dream_dev' |
| | | VUE_APP_BASE_API = '/dream' |
| | |
| | | * 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, |
| | |
| | | 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, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | 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", |
| | |
| | | // }, |
| | | |
| | | // 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, |
| | | }); |
| | | |
| | |
| | | |
| | | // 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"; |
| | |
| | | <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" |
| | |
| | | >查看明细</el-link |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | }); |
| | | }, |
| | | goDetails(row) { |
| | | this.$router.push("/details"); |
| | | // this.$router.push("/details"); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | @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> 上传 |
| | |
| | | self.progressStatus = ""; |
| | | setTimeout(function () { |
| | | const eventSource = new EventSource( |
| | | "/dream_dev/sse-stream/" + |
| | | "/dream/sse-stream/" + |
| | | JSON.parse(localStorage.getItem("selectStaff")).id |
| | | ); |
| | | |
| | |
| | | proxy: { |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // 匹配所有以 '/dev-api'开头的请求路径 |
| | | target: "http://localhost:18080/dream_dev", //类似于Nginx反向代理 |
| | | target: "http://localhost:18080/dream", //类似于Nginx反向代理 |
| | | changeOrigin: true, // 支持跨域 |
| | | pathRewrite: { |
| | | // 重写路径: 去掉路径中开头的'/dev-api' |