Commit 47d81629 by 肖翔宇

12.24

parent fd10ede5
...@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env') ...@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, { module.exports = merge(prodEnv, {
NODE_ENV: '"development"', NODE_ENV: '"development"',
BASE_API: '"http://192.168.0.7:9001/sharePiano"', BASE_API: '"http://192.168.10.104:9001/sharePiano"',
}) })
//http://gxgqs.com/sharePiano //http://gxgqs.com/sharePiano
//http://192.168.10.105:9001/sharePiano //http://192.168.10.105:9001/sharePiano
No preview for this file type
...@@ -12,6 +12,7 @@ import * as sysDict from './sys/dict' ...@@ -12,6 +12,7 @@ import * as sysDict from './sys/dict'
import * as sysBanner from './sys/banner' import * as sysBanner from './sys/banner'
import * as sysUser from './sys/user' import * as sysUser from './sys/user'
import * as sysPiano from './sys/piano' import * as sysPiano from './sys/piano'
import * as sysPianoSubmit from './sys/pianoSubmit'
import * as sysUserCost from './sys/userCost' import * as sysUserCost from './sys/userCost'
import * as sysCourse from './sys/course' import * as sysCourse from './sys/course'
import * as sysCourseType from './sys/courseType' import * as sysCourseType from './sys/courseType'
...@@ -31,7 +32,8 @@ const apiObj = { ...@@ -31,7 +32,8 @@ const apiObj = {
sysBargain, sysBargain,
sysBargainStage, sysBargainStage,
sysCodeForPaino, sysCodeForPaino,
sysCourseDiversity sysCourseDiversity,
sysPianoSubmit
} }
const install = function(Vue) { const install = function(Vue) {
......
import request from '@/utils/request'
// 分页查询
export function pageList(data) {
return request({
url: '/sys/BusinessBasicInformation/pageList',
method: 'post',
data: data
})
}
// 插入
export function insert(data) {
return request({
url: '/sys/BusinessBasicInformation/insert',
method: 'post',
data: data
})
}
// 更新数据
export function update(data) {
return request({
url: '/sys/BusinessBasicInformation/update',
method: 'post',
data: data
})
}
// 查询
export function query(data) {
return request({
url: '/sys/BusinessBasicInformation/query',
method: 'post',
data: data
})
}
// 添加用户
export function addUser(data) {
return request({
url: '/sys/BusinessBasicInformation/addUser',
method: 'post',
data: data
})
}
// 删除数据
export function deletes(id, ids) {
const data = {}
if (id) {
data['id'] = id
}
if (ids) {
data['ids'] = ids
}
return request({
url: '/sys/BusinessBasicInformation/delete',
method: 'post',
data: data
})
}
...@@ -5,7 +5,7 @@ import 'nprogress/nprogress.css'// Progress 进度条样式 ...@@ -5,7 +5,7 @@ import 'nprogress/nprogress.css'// Progress 进度条样式
import { Message } from 'element-ui' import { Message } from 'element-ui'
import { getToken } from '@/utils/auth' // 验权 import { getToken } from '@/utils/auth' // 验权
const whiteList = ['/login','/courseList','/courseEdit','/bargainList','/bargainEdit','/pianoList','/pianoEdit','/code'] // 不重定向白名单 const whiteList = ['/login','/pianoSubmit','/courseList','/courseEdit','/bargainList','/bargainEdit','/pianoList','/pianoEdit','/code'] // 不重定向白名单
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
NProgress.start() NProgress.start()
if (getToken()) { if (getToken()) {
......
...@@ -142,6 +142,19 @@ export const constantRouterMap = [ ...@@ -142,6 +142,19 @@ export const constantRouterMap = [
] ]
}, },
{
path: '',
component: Layout,
children: [
{
path: '/pianoSubmit',
component: () => import('@/views/pianoList/index'),
name: 'pianoSubmit',
meta: { title: '商家申请', noCache: false }
},
]
},
{ path: '*', redirect: '/404', hidden: true } { path: '*', redirect: '/404', hidden: true }
] ]
......
...@@ -222,6 +222,7 @@ ...@@ -222,6 +222,7 @@
bannerTypes: [], bannerTypes: [],
courseTypes: [], courseTypes: [],
courseDiversityTypes: [], courseDiversityTypes: [],
diversityId:undefined
} }
}, },
created() { created() {
...@@ -305,7 +306,7 @@ ...@@ -305,7 +306,7 @@
this.diversityTemp.id=undefined; this.diversityTemp.id=undefined;
this.diversityTemp.videoName=undefined; this.diversityTemp.videoName=undefined;
this.diversityTemp.videoAddress=undefined; this.diversityTemp.videoAddress=undefined;
} }
this.isShowDiversityEdit=true; this.isShowDiversityEdit=true;
}, },
closeDiversityEdit(){ closeDiversityEdit(){
...@@ -510,10 +511,9 @@ ...@@ -510,10 +511,9 @@
}) })
}, },
refreshDiversity(){ refreshDiversity(){
this.$fetch.sysCourseDiversity.query({id:this.diversityTemp.sysonlineCourseId}).then(({ data }) => { this.$fetch.sysCourseDiversity.findBysysOnlineCourseId({id:this.diversityTemp.sysonlineCourseId}).then(({ data }) => {
console.log(data); console.log(data);
this.diversityTemp = data; this.diversityTemp = data;
const params = this.$route.params;
}) })
}, },
getShowType(row, dispaly = 1) { getShowType(row, dispaly = 1) {
...@@ -541,8 +541,6 @@ ...@@ -541,8 +541,6 @@
}) })
//this.isShowLog=false; //this.isShowLog=false;
this.isShowDiversityEdit=false; this.isShowDiversityEdit=false;
this.refreshDiversity();
this.back()
}) })
} else { } else {
this.$fetch.sysCourseDiversity.update(tempData).then(() => { this.$fetch.sysCourseDiversity.update(tempData).then(() => {
...@@ -551,8 +549,6 @@ ...@@ -551,8 +549,6 @@
type: 'success' type: 'success'
}) })
this.isShowDiversityEdit=false; this.isShowDiversityEdit=false;
this.refreshDiversity();
this.back()
}) })
} }
} else { } else {
...@@ -580,7 +576,6 @@ ...@@ -580,7 +576,6 @@
//this.isShowLog=false; //this.isShowLog=false;
this.isShowCourse=false; this.isShowCourse=false;
this.refreshCourse(); this.refreshCourse();
this.back()
}) })
} else { } else {
this.$fetch.sysCourseType.update(tempData).then(() => { this.$fetch.sysCourseType.update(tempData).then(() => {
...@@ -591,7 +586,6 @@ ...@@ -591,7 +586,6 @@
//this.isShowLog=false; //this.isShowLog=false;
this.isShowCourse=false; this.isShowCourse=false;
this.refreshCourse(); this.refreshCourse();
this.back()
}) })
} }
} else { } else {
......
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
// 返回 // 返回
saveId(e){ saveId(e){
console.log(e); console.log(e);
var index=this.temp.abc.indexOf(this.painoId); var index=this.bannerType.indexOf(this.painoId);
this.bannerType.splice(index,1); this.bannerType.splice(index,1);
this.temp.sysCodeForPianoId.push(this.painoId); this.temp.sysCodeForPianoId.push(this.painoId);
this.painoId=0; this.painoId=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment