yujialong 3 years ago
parent ccf44dc223
commit 2e880f52f2
  1. 13
      src/components/page/AddCustomer.vue
  2. 2
      src/components/page/AddLink.vue
  3. 4
      src/components/page/AddOrder.vue
  4. 17
      src/components/page/Configure.vue
  5. 6
      src/components/page/Login.vue
  6. 22
      src/components/page/User.vue
  7. 63
      src/config/index.js
  8. 4
      src/main.js
  9. 161
      src/utils/api.js
  10. 7
      vue.config.js

@ -335,7 +335,6 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getSchoolData()
this.getIndustryClass() this.getIndustryClass()
if(this.customerId){ if(this.customerId){
let data = { let data = {
@ -360,8 +359,11 @@ export default {
this.coursePermissionss = res.message[0].coursePermissionss this.coursePermissionss = res.message[0].coursePermissionss
this.getCityData() this.getCityData()
this.changIndustryData() this.changIndustryData()
this.getSchoolData()
}).catch((res) => { }).catch((res) => {
}) })
}else{
this.getSchoolData()
} }
}, },
methods: { methods: {
@ -447,6 +449,15 @@ export default {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
if(this.NoAdd){ if(this.NoAdd){
let obj = {};
obj = this.schoolList.find((item)=>{
return item.schoolId === this.form.schoolId;
});
this.form.customerName = obj.schoolName
this.form.level = obj.level
this.form.provinces = obj.provinceId
this.getCityData()
this.form.city = obj.cityId
let data = { let data = {
customerName: this.form.customerName, customerName: this.form.customerName,
schoolId: this.form.schoolId, schoolId: this.form.schoolId,

@ -35,6 +35,7 @@
<el-form-item label="资源添加" :prop="'courseList.' + index + '.fileLink'" :rules="{required: true, message: '请添加文件', trigger: 'blur'}"> <el-form-item label="资源添加" :prop="'courseList.' + index + '.fileLink'" :rules="{required: true, message: '请添加文件', trigger: 'blur'}">
<el-upload <el-upload
class="link_upload" class="link_upload"
:headers="{token}"
:action="api.uploadFiles" :action="api.uploadFiles"
:on-remove="(file, fileList)=>{return handleRemove(file, fileList, index)}" :on-remove="(file, fileList)=>{return handleRemove(file, fileList, index)}"
:on-error="uploadError" :on-error="uploadError"
@ -64,6 +65,7 @@
export default { export default {
data (){ data (){
return { return {
token: this.$store.state.loginToken,
form: { form: {
courseList: [{ courseList: [{
projectId: this.$store.state.systemId, projectId: this.$store.state.systemId,

@ -166,12 +166,13 @@
<el-col :span="6" :offset="2"> <el-col :span="6" :offset="2">
<el-form-item label="合同编号"> <el-form-item label="合同编号">
<el-input v-model="contractInformation.contractInformationNumber" disabled placeholder="请输入合同编号"></el-input> <el-input v-model="contractInformation.contractInformationNumber" placeholder="请输入合同编号"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="上传合同"> <el-form-item label="上传合同">
<el-upload <el-upload
class="contract" class="contract"
:headers="{token}"
:on-remove="handleRemove" :on-remove="handleRemove"
:on-error="uploadError" :on-error="uploadError"
:on-success="uploadSuccess" :on-success="uploadSuccess"
@ -293,6 +294,7 @@
export default { export default {
data() { data() {
return { return {
token: this.$store.state.loginToken,
form: { form: {
orderNumber: '', orderNumber: '',
orderDate: '', orderDate: '',

@ -87,6 +87,7 @@ export default {
data() { data() {
return { return {
userId: this.$store.state.userLoginId, userId: this.$store.state.userLoginId,
token: btoa(this.$store.state.loginToken),
systemAttribution: '', systemAttribution: '',
systemType: '', systemType: '',
systemSearch: '', systemSearch: '',
@ -144,14 +145,18 @@ export default {
this.$router.push('/addconfigure'); this.$router.push('/addconfigure');
}, },
getIntoProject(row){ getIntoProject(row){
window.location.href = `http://39.108.250.202/Projectmanagement/#/?userId=${this.userId}&systemId=${row.systemId}&systemName=${row.systemName}` if(process.env.NODE_ENV === 'development'){
// window.location.href = `http://192.168.31.154:8083/#/?userId=${this.userId}&systemId=${row.systemId}&systemName=${row.systemName}` location.href = `http://192.168.31.154:8088/#/?userId=${this.userId}&systemId=${row.systemId}&systemName=${row.systemName}&token=${this.token}`
}else{
location.href = `http://39.108.250.202/Projectmanagement/#/?userId=${this.userId}&systemId=${row.systemId}&systemName=${row.systemName}&token=${this.token}`
}
}, },
getIntoJudgement(row){ getIntoJudgement(row){
this.setCookie("userId",this.userId) if(process.env.NODE_ENV === 'development'){
this.setCookie("systemId",row.systemId) location.href = `http://192.168.31.154:8087/#?systemId=${row.systemId}&userId=${this.userId}&systemName=${row.systemName}&token=${this.token}&referrer=${btoa(location.href)}`
this.setCookie("systemName",row.systemName) }else{
window.location.href = "http://39.108.250.202/Score/"; location.href = `http://39.108.250.202/Score/#?systemId=${row.systemId}&userId=${this.userId}&systemName=${row.systemName}&token=${this.token}&referrer=${btoa(location.href)}`
}
}, },
 setCookie(name, value) {  setCookie(name, value) {
      if (value) {       if (value) {

@ -39,8 +39,8 @@ export default {
data: function() { data: function() {
return { return {
param: { param: {
username: 'admin', username: '13444444444',
password: 'admin', password: '111aaa',
}, },
rules: { rules: {
username: [{ required: true, message: '请输入用户名', trigger: 'blur' }], username: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
@ -61,7 +61,7 @@ export default {
password: this.param.password, password: this.param.password,
source: 0 source: 0
} }
this.$get(this.api.logins,data).then(res => { this.$post(this.api.logins,data).then(res => {
if(res.message.retvalue.roleId == 1){ if(res.message.retvalue.roleId == 1){
this.$message.success('登录成功'); this.$message.success('登录成功');
localStorage.setItem('ms_username', this.param.username); localStorage.setItem('ms_username', this.param.username);

@ -114,6 +114,7 @@
<!-- <el-button type="text">查看</el-button> --> <!-- <el-button type="text">查看</el-button> -->
<el-button type="text" @click="edit(scope.row)">编辑</el-button> <el-button type="text" @click="edit(scope.row)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button> <el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
<el-button type="text" @click="resetPassword(scope.row)">重置密码</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -152,11 +153,11 @@ export default {
}, },
{ {
name: '管理员', name: '管理员',
value: 2 value: 13
}, },
{ {
name: '教师', name: '教师',
value: 3 value: 14
}, },
{ {
name: '学生', name: '学生',
@ -322,6 +323,23 @@ export default {
}) })
.catch(() => {}); .catch(() => {});
}, },
resetPassword(row){
this.$confirm(`重置后的密码为:${this.$config.initialPassword},确定重置?`, '提示', {
}).then(() => {
let data = {
newPwd: this.$config.initialPassword,
userId: row.userId,
}
this.$get(this.api.resetPwd,data).then(res => {
if(res.errmessage == 'success'){
this.$message.success('重置成功')
}else{
this.$message.error('重置失败')
}
}).catch(res => {});
}).catch(() => {
});
},
getRowKeys(row) { getRowKeys(row) {
return row.userId; return row.userId;
}, },

@ -0,0 +1,63 @@
export default {
/**
* @description 配置显示在浏览器标签的title
*/
title: 'saas平台服务端管理系统',
/**
* @description 是否使用国际化默认为false
* 如果不使用则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
* 用来在菜单中显示文字
*/
locale: 'zh',
/**
* @description 长时间未操作自动退出登录时间
*/
autoLogoutTime: 3600000,
/**
* @description 默认密码
*/
initialPassword: '111aaa',
/**
* @description 系统列表
*/
systemList: [
{
id: 1,
label: 'Python程序设计教学系统'
}
// ,{
// id: 2,
// label: '跨国仿真系统'
// },{
// id: 3,
// label: '期权期货系统'
// }
,{
id: 4,
label: '经济金融建模实验教学系统'
},{
id: 5,
label: 'Python可视化实验教学系统'
},{
id: 6,
label: '金融随机过程实验教学系统'
},{
id: 7,
label: '量化投资策略建模实验教学系统'
},{
id: 8,
label: '大数据分析实验教学系统'
},
{
id: 9,
label: 'Python数据清洗教学实验系统'
},{
id: 10,
label: 'Python数据采集(爬虫)教学实验系统'
}
],
/**
* @description 是否使用动态路由
*/
dynamicRoute: false
}

@ -14,6 +14,7 @@ import './util/rem';
import {post,get,del,put} from './utils/http'; import {post,get,del,put} from './utils/http';
import api from './utils/api'; import api from './utils/api';
import store from './store' import store from './store'
import config from '@/config'
import { systemStatus, systemTypeStatus, systemAttributionStatus, courseTypeStatus, import { systemStatus, systemTypeStatus, systemAttributionStatus, courseTypeStatus,
hoursStatus, roleStatus, orderTypeFn, orderStatusFn, orderNatureFn, Percentage, removeByValue, isIE } from './utils/core'; hoursStatus, roleStatus, orderTypeFn, orderStatusFn, orderNatureFn, Percentage, removeByValue, isIE } from './utils/core';
import preventReClick from './store/preventReClick' //防多次点击,重复提交 import preventReClick from './store/preventReClick' //防多次点击,重复提交
@ -25,6 +26,7 @@ Vue.prototype.$post = post;
Vue.prototype.$del = del; Vue.prototype.$del = del;
Vue.prototype.$put = put; Vue.prototype.$put = put;
Vue.prototype.$config = config
Vue.prototype.systemStatus = systemStatus; Vue.prototype.systemStatus = systemStatus;
Vue.prototype.systemTypeStatus = systemTypeStatus; Vue.prototype.systemTypeStatus = systemTypeStatus;
Vue.prototype.systemAttributionStatus = systemAttributionStatus; Vue.prototype.systemAttributionStatus = systemAttributionStatus;
@ -48,7 +50,7 @@ const i18n = new VueI18n({
//使用钩子函数对路由进行权限跳转 //使用钩子函数对路由进行权限跳转
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
document.title = `${to.meta.title} | saas平台服务端管理系统`; document.title = `${to.meta.title} | ${config.title}`;
const role = localStorage.getItem('ms_username'); const role = localStorage.getItem('ms_username');
if (!role && to.path !== '/login') { if (!role && to.path !== '/login') {
next('/login'); next('/login');

@ -1,98 +1,99 @@
// let host = 'http://192.168.31.117:8080' // let host = 'http://192.168.31.117:8080'
// let host = 'http://www.huorantech.cn/liuwanr' // let host = 'http://www.huorantech.cn/liuwanr'
let host = 'http://39.108.250.202/liuwanr' let host = 'http://39.108.250.202'
// let host = 'http://www.liuwanr.cn:8080' // let host = 'http://www.liuwanr.cn:8080'
export default { export default {
logins: `${host}/userInfo/adminLogins`, //登录 logins: `${host}/liuwanr/userInfo/adminLogins`, //登录
// addUser: `${host}/user/addUser`, //增加用户 // addUser: `${host}/liuwanr/user/addUser`, //增加用户
addUser: `${host}/userInfo/addUser`, //增加用户新版 addUser: `${host}/liuwanr/userInfo/addUser`, //增加用户新版
// queryUser: `${host}/user/queryUser`, //查询用户 // queryUser: `${host}/liuwanr/user/queryUser`, //查询用户
queryUser: `${host}/userInfo/queryUserInfo`, //查询用户新版 queryUser: `${host}/liuwanr/userInfo/queryUserInfo`, //查询用户新版
// deleteUser: `${host}/user/deleteUser`, //删除用户 // deleteUser: `${host}/liuwanr/user/deleteUser`, //删除用户
deleteUser: `${host}/userInfo/deleteUserInfo`, //删除用户新版 deleteUser: `${host}/liuwanr/userInfo/deleteUserInfo`, //删除用户新版
updateUser: `${host}/user/updateUser`, //编辑用户 updateUser: `${host}/liuwanr/user/updateUser`, //编辑用户
// queryUserDetails: `${host}/user/queryUserDetails`, //查询用户详情 // queryUserDetails: `${host}/liuwanr/user/queryUserDetails`, //查询用户详情
queryUserInfoDetails: `${host}/userInfo/queryUserInfoDetails`, //查询用户详情新版 queryUserInfoDetails: `${host}/liuwanr/userInfo/queryUserInfoDetails`, //查询用户详情新版
queryAccountIsExist: `${host}/userInfo/queryServerAccountIsExist`, //查询账号是否存在 queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在
queryUserOR: `${host}/userInfo/queryUserOR`, //查询系统列表详情 queryUserOR: `${host}/liuwanr/userInfo/queryUserOR`, //查询系统列表详情
queryWorkNumberIsExist:`${host}/userInfo/queryWorkNumberIsExist`,//查询学号、工号是否存在 queryWorkNumberIsExist:`${host}/liuwanr/userInfo/queryWorkNumberIsExist`,//查询学号、工号是否存在
queryCustomerUser: `${host}/user/queryCustomer`, //用户模块查询客户接口 queryCustomerUser: `${host}/liuwanr/user/queryCustomer`, //用户模块查询客户接口
queryStaffPro: `${host}/staffProfessionalArchitecture/queryAllStaffProfessionalArchitecture`, //查询一级部门 queryStaffPro: `${host}/liuwanr/staffProfessionalArchitecture/queryAllStaffProfessionalArchitecture`, //查询一级部门
queryStaffGrade: `${host}/staffGrade/queryStaffGrade`, //查询二级部门 queryStaffGrade: `${host}/liuwanr/staffGrade/queryStaffGrade`, //查询二级部门
queryStuPro: `${host}/stuProfessionalArchitecture/queryStuProfessionalArchitecture`, //查询学生专业 queryStuPro: `${host}/liuwanr/stuProfessionalArchitecture/queryStuProfessionalArchitecture`, //查询学生专业
queryStuGrade: `${host}/stuProfessionalArchitecture/queryStuGrade`, //查询学生年级 queryStuGrade: `${host}/liuwanr/stuProfessionalArchitecture/queryStuGrade`, //查询学生年级
queryStuClass: `${host}/stuProfessionalArchitecture/queryStuClass`, //查询学生班级 queryStuClass: `${host}/liuwanr/stuProfessionalArchitecture/queryStuClass`, //查询学生班级
userQueryCustomer: `${host}/userInfo/queryCustomer`, //查询客户列表 userQueryCustomer: `${host}/liuwanr/userInfo/queryCustomer`, //查询客户列表
updateUserInfo: `${host}/userInfo/updateUserInfo`, //查询更新用户 updateUserInfo: `${host}/liuwanr/userInfo/updateUserInfo`, //查询更新用户
updateUserProfiles: `${host}/userInfo/updateUserProfiles`, //更新用户个人档案 updateUserProfiles: `${host}/liuwanr/userInfo/updateUserProfiles`, //更新用户个人档案
updateOR: `${host}/userInfo/updateOR`, //更新用户组织架构 updateOR: `${host}/liuwanr/userInfo/updateOR`, //更新用户组织架构
deletePlatform: `${host}/userInfo/deletePlatform`, //更新用户组织架构 deletePlatform: `${host}/liuwanr/userInfo/deletePlatform`, //更新用户组织架构
updateUserRoleId: `${host}/userInfo/updateUserRoleId`, //更新用户角色id接口 updateUserRoleId: `${host}/liuwanr/userInfo/updateUserRoleId`, //更新用户角色id接口
resetPwd:`${host}/evaluation/tms/system/resetPwd`,
deleteCustomer: `${host}/customer/deleteCustomer`, //删除客户 deleteCustomer: `${host}/liuwanr/customer/deleteCustomer`, //删除客户
updateCustomer: `${host}/customer/updateCustomer`, //更新客户 updateCustomer: `${host}/liuwanr/customer/updateCustomer`, //更新客户
addCustomer: `${host}/customer/addCustomer`, //添加客户 addCustomer: `${host}/liuwanr/customer/addCustomer`, //添加客户
queryCustomer: `${host}/customer/queryCustomer`, //查询客户 queryCustomer: `${host}/liuwanr/customer/queryCustomer`, //查询客户
queryCustomerIsExists: `${host}/customer/queryCustomerIsExists`, //查询客户是否存在 queryCustomerIsExists: `${host}/liuwanr/customer/queryCustomerIsExists`, //查询客户是否存在
queryCustomerDetails: `${host}/customer/queryCustomerDetails`, //查询客户详情 queryCustomerDetails: `${host}/liuwanr/customer/queryCustomerDetails`, //查询客户详情
queryCustomerIndustryClass: `${host}/customer/queryCustomerIndustryClass`, //查询行业类 queryCustomerIndustryClass: `${host}/liuwanr/customer/queryCustomerIndustryClass`, //查询行业类
queryCustomerIndustry: `${host}/customer/queryCustomerIndustry`, //查询行业 queryCustomerIndustry: `${host}/liuwanr/customer/queryCustomerIndustry`, //查询行业
queryPhone: `${host}/user/queryPhone`, //查询电话 queryPhone: `${host}/liuwanr/user/queryPhone`, //查询电话
querySchoolData: `${host}/customer/querySchool`, //根据学校名称查询学校信息 querySchoolData: `${host}/liuwanr/customer/querySchool`, //根据学校名称查询学校信息
queryPlatform: `${host}/userInfo/queryPlatform`, //查询系统列表 queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`, //查询系统列表
queryOrder: `${host}/order/queryOrder`, //查询订单 queryOrder: `${host}/liuwanr/order/queryOrder`, //查询订单
queryOrderDetails: `${host}/order/queryOrderDetails`, //查询订单详情 queryOrderDetails: `${host}/liuwanr/order/queryOrderDetails`, //查询订单详情
queryOrderCustomer: `${host}/order/queryOrderCustomer`, //查询订单客户 queryOrderCustomer: `${host}/liuwanr/order/queryOrderCustomer`, //查询订单客户
queryOrderCustomerContact: `${host}/order/queryOrderCustomerContact`, //查询订单客户联系人 queryOrderCustomerContact: `${host}/liuwanr/order/queryOrderCustomerContact`, //查询订单客户联系人
addOrder: `${host}/order/addOrder`, //添加订单 addOrder: `${host}/liuwanr/order/addOrder`, //添加订单
updateOrder: `${host}/order/updateOrder`, //编辑订单 updateOrder: `${host}/liuwanr/order/updateOrder`, //编辑订单
deleteOrder: `${host}/order/deleteOrder`, //删除订单 deleteOrder: `${host}/liuwanr/order/deleteOrder`, //删除订单
bindingApplication: `${host}/order/bindingApplicationPermissions`, //绑定应用权限 bindingApplication: `${host}/liuwanr/order/bindingApplicationPermissions`, //绑定应用权限
queryCoursePermissions: `${host}/order/queryCoursePermissions`, //查询应用权限 queryCoursePermissions: `${host}/liuwanr/order/queryCoursePermissions`, //查询应用权限
queryCourseList: `${host}/order/queryCourseList`, //查询订单课程列表 queryCourseList: `${host}/liuwanr/order/queryCourseList`, //查询订单课程列表
isDeliverGoods: `${host}/order/isDeliverGoods`, //是否上架课程 isDeliverGoods: `${host}/liuwanr/order/isDeliverGoods`, //是否上架课程
deleteCourse: `${host}/course/deleteCourse`, //删除课程 deleteCourse: `${host}/liuwanr/course/deleteCourse`, //删除课程
updateCourse: `${host}/course/updateCourse`, //更新课程 updateCourse: `${host}/liuwanr/course/updateCourse`, //更新课程
addCourse: `${host}/course/addCourse`, //添加课程 addCourse: `${host}/liuwanr/course/addCourse`, //添加课程
queryCourse: `${host}/course/queryCourse`, //查询课程 queryCourse: `${host}/liuwanr/course/queryCourse`, //查询课程
queryCourseDetails: `${host}/course/queryCourseDetails`, //查询课程详情 queryCourseDetails: `${host}/liuwanr/course/queryCourseDetails`, //查询课程详情
isShelves: `${host}/course/isShelves`, //是否上架课程 isShelves: `${host}/liuwanr/course/isShelves`, //是否上架课程
queryCourseNameIsExists: `${host}/course/queryCourseNameIsExists`, //查询课程名称是否存在 queryCourseNameIsExists: `${host}/liuwanr/course/queryCourseNameIsExists`, //查询课程名称是否存在
deleteServiceConfig: `${host}/serviceConfig/deleteServiceConfig`, //删除服务配置 deleteServiceConfig: `${host}/liuwanr/serviceConfig/deleteServiceConfig`, //删除服务配置
updateServiceConfig: `${host}/serviceConfig/updateServiceConfig`, //更新服务配置 updateServiceConfig: `${host}/liuwanr/serviceConfig/updateServiceConfig`, //更新服务配置
addServiceConfig: `${host}/serviceConfig/addServiceConfig`, //添加服务配置 addServiceConfig: `${host}/liuwanr/serviceConfig/addServiceConfig`, //添加服务配置
queryServiceConfig: `${host}/serviceConfig/queryServiceConfig`, //查询服务配置 queryServiceConfig: `${host}/liuwanr/serviceConfig/queryServiceConfig`, //查询服务配置
queryServiceConfigDetails: `${host}/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情 queryServiceConfigDetails: `${host}/liuwanr/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情
deleteSchool: `${host}/school/deleteSchool`, //删除学校 deleteSchool: `${host}/liuwanr/school/deleteSchool`, //删除学校
updateSchool: `${host}/school/updateSchool`, //更新学校 updateSchool: `${host}/liuwanr/school/updateSchool`, //更新学校
addSchool: `${host}/school/addSchool`, //添加学校 addSchool: `${host}/liuwanr/school/addSchool`, //添加学校
querySchool: `${host}/school/querySchool`, //查询学校 querySchool: `${host}/liuwanr/school/querySchool`, //查询学校
querySchoolDetails: `${host}/school/querySchoolDetails`, //查询学校详情 querySchoolDetails: `${host}/liuwanr/school/querySchoolDetails`, //查询学校详情
queryProvince: `${host}/province/queryProvince`, //查询省份 queryProvince: `${host}/liuwanr/province/queryProvince`, //查询省份
queryCity: `${host}/city/queryCity`, //查询城市 queryCity: `${host}/liuwanr/city/queryCity`, //查询城市
queryCourseDiscipline: `${host}/course/queryCourseDiscipline`, //查询课程学科 queryCourseDiscipline: `${host}/liuwanr/course/queryCourseDiscipline`, //查询课程学科
queryCourseProfessionalClass: `${host}/course/queryCourseProfessionalClass`, //查询专业类 queryCourseProfessionalClass: `${host}/liuwanr/course/queryCourseProfessionalClass`, //查询专业类
queryCourseProfessional: `${host}/course/queryCourseProfessional`, //查询专业 queryCourseProfessional: `${host}/liuwanr/course/queryCourseProfessional`, //查询专业
queryAppConfig: `${host}/course/queryAppConfig`, //查询应用配置 queryAppConfig: `${host}/liuwanr/course/queryAppConfig`, //查询应用配置
queryTrainingConfig: `${host}/course/queryConfig`, //查询实训配置 queryTrainingConfig: `${host}/liuwanr/course/queryConfig`, //查询实训配置
deleteTrainingConfig: `${host}/course/deleteTrainingConfig`, //删除实训配置 deleteTrainingConfig: `${host}/liuwanr/course/deleteTrainingConfig`, //删除实训配置
isShow: `${host}/course/isShow`, //是否展示项目控制 isShow: `${host}/liuwanr/course/isShow`, //是否展示项目控制
queryCourseDetailsTC: `${host}/course/queryCourseDetailsTC`, //查询课程详情课程权限 queryCourseDetailsTC: `${host}/liuwanr/course/queryCourseDetailsTC`, //查询课程详情课程权限
queryLinkDetails: `${host}/course/queryLinkDetails`, //查询环节详情 queryLinkDetails: `${host}/liuwanr/course/queryLinkDetails`, //查询环节详情
addCourseLink: `${host}/course/addCourseLink`, //添加课程环节 addCourseLink: `${host}/liuwanr/course/addCourseLink`, //添加课程环节
updateLink: `${host}/course/updateLink`, //更新环节 updateLink: `${host}/liuwanr/course/updateLink`, //更新环节
uploadFiles: `${host}/aliyun/uploadFiles`, //上传文件 uploadFiles: `${host}/liuwanr/aliyun/uploadFiles`, //上传文件
downloadFiles: `${host}/aliyun/downloadFiles`, //下载文件 downloadFiles: `${host}/liuwanr/aliyun/downloadFiles`, //下载文件
} }

@ -21,8 +21,9 @@ module.exports = {
}, },
publicPath: './', publicPath: './',
  outputDir: 'dist',   outputDir: 'dist',
  assetsDir: 'static'   assetsDir: 'static',
// devServer: { devServer: {
port: 8086
// proxy: { // proxy: {
// "/api": { // "/api": {
// target: "http://192.168.0.106:8080", // target: "http://192.168.0.106:8080",
@ -33,5 +34,5 @@ module.exports = {
// } // }
// } // }
// } // }
// } }
} }
Loading…
Cancel
Save