Commit c7e8ef08 authored by 张伯涛's avatar 张伯涛

bug修改

parent 86483cc3
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>collapseMenuLogo.png"> <link rel="icon" href="<%= BASE_URL %>collapseMenuLogo.png">
<link rel="stylesheet" href="//at.alicdn.com/t/font_2011217_f70ptj9y4oc.css"> <link rel="stylesheet" href="//at.alicdn.com/t/font_2011217_f70ptj9y4oc.css">
<title>资源云平台</title> <title>资源云平台</title>
</head> </head>
<body> <body>
<noscript> <noscript>
......
import request from '@/utils/request' import request from '@/utils/request'
import Qs from 'qs'
// 申请试用 获取所有课程 // 申请试用 获取所有课程
export function getCurriculum() { export function getCurriculum() {
...@@ -8,10 +9,10 @@ export function getCurriculum() { ...@@ -8,10 +9,10 @@ export function getCurriculum() {
}) })
} }
// 申请试用 提交申请 // 申请试用 提交申请
export function addCurriculum(data) { export function addCurriculum(params) {
return request({ return request({
url: '/applicationtrial/add', url: '/applicationtrial/add',
method: 'post', method: 'post',
data: data params
}) })
} }
...@@ -4,7 +4,7 @@ import moment from 'moment' ...@@ -4,7 +4,7 @@ import moment from 'moment'
// import ElementUI from 'element-ui' // import ElementUI from 'element-ui'
// import './styles/element-variables.scss' // import './styles/element-variables.scss'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n // import locale from 'element-ui/lib/locale/lang/en' // lang i18n
// import './utils/rem.js' // 自适应分辨率 import './utils/rem.js' // 自适应分辨率
import './plugins' import './plugins'
import xhr from '@/utils/request' import xhr from '@/utils/request'
import '@/styles/index.scss' // global css import '@/styles/index.scss' // global css
......
...@@ -94,8 +94,12 @@ service.interceptors.response.use( ...@@ -94,8 +94,12 @@ service.interceptors.response.use(
}) })
} }
if (code === 401) { if (code === 401) {
// Message({
// message: '用户不存在或密码错误',
// type: 'error'
// })
Message({ Message({
message: '用户不存在或密码错误', message: '无权限',
type: 'error' type: 'error'
}) })
// MessageBox.confirm( // MessageBox.confirm(
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
:class=" activeTag === item.type ? 'tagList_btnActive' : 'tagList_btn'" :class=" activeTag === item.type ? 'tagList_btnActive' : 'tagList_btn'"
@click="choseTag(item)" @click="choseTag(item)"
> >
<img v-if="activeTag === item.type" class="tagListImg" :src="item.activeImg">
<img v-else class="tagListImg" :src="item.img">
{{ item.name }} {{ item.name }}
</div> </div>
</div> </div>
...@@ -221,11 +223,11 @@ export default { ...@@ -221,11 +223,11 @@ export default {
activeTag: '1', activeTag: '1',
activeName: '岗位设计', activeName: '岗位设计',
tagBtnList: [ tagBtnList: [
{ name: '岗位设计', type: '1' }, { img: require('@/assets/image/tag_gangwei.png'), activeImg: require('@/assets/image/tag_gangweiActive.png'), name: '岗位设计', type: '1' },
{ name: '内容体系', type: '2' }, { img: require('@/assets/image/tag_neirong.png'), activeImg: require('@/assets/image/tag_neirongActive.png'), name: '内容体系', type: '2' },
{ name: '学习平台', type: '3' }, { img: require('@/assets/image/tag_xuexi.png'), activeImg: require('@/assets/image/tag_xuexiActive.png'), name: '学习平台', type: '3' },
{ name: '考评机制', type: '4' }, { img: require('@/assets/image/tag_kaqoping.png'), activeImg: require('@/assets/image/tag_kaqopingActive.png'), name: '考评机制', type: '4' },
{ name: '持续优化', type: '5' } { img: require('@/assets/image/tag_youhua.png'), activeImg: require('@/assets/image/tag_youhuaActive.png'), name: '持续优化', type: '5' }
], ],
contentSystemImg: require('@/assets/image/home_tab_pic2.png'), contentSystemImg: require('@/assets/image/home_tab_pic2.png'),
learnCenterImg: require('@/assets/image/home_tab_pic3.png'), learnCenterImg: require('@/assets/image/home_tab_pic3.png'),
...@@ -560,6 +562,11 @@ export default { ...@@ -560,6 +562,11 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.tagListImg{
margin-right: 15px;
width: 24px;
height: 24px;
}
.tagList_btn{ .tagList_btn{
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
......
...@@ -184,7 +184,10 @@ export default { ...@@ -184,7 +184,10 @@ export default {
}, },
submitForm() { submitForm() {
console.log('value', this.value) console.log('value', this.value)
addCurriculum({ lessonldList: this.value }).then(res => { const params = {
ids: this.value.join(', ')
}
addCurriculum(params).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.open = false this.open = false
this.$message.success('提交成功') this.$message.success('提交成功')
......
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 to comment