页面内容调整
This commit is contained in:
parent
26ba23320c
commit
3c4dc139ac
|
@ -175,10 +175,8 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
//显示页面上的数字
|
//显示页面上的数字
|
||||||
onChange(dataValue) {
|
onChange(dataValue) {
|
||||||
console.log('changed', dataValue)
|
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
console.log(this.form)
|
|
||||||
courseAdd(this.form).then((res) => {
|
courseAdd(this.form).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.info('保存成功')
|
this.$message.info('保存成功')
|
||||||
|
@ -205,12 +203,9 @@ export default {
|
||||||
// 标签项 默认选中的多选框
|
// 标签项 默认选中的多选框
|
||||||
dictionaryDropDown({dictionaryCode: '0008'}).then((res) => {
|
dictionaryDropDown({dictionaryCode: '0008'}).then((res) => {
|
||||||
const tagList = res.data
|
const tagList = res.data
|
||||||
console.log(tagList)
|
|
||||||
for ( let i = 0; i < tagList.length; i++) {
|
for ( let i = 0; i < tagList.length; i++) {
|
||||||
console.log(tagList[i]);
|
|
||||||
tagList[i].value = tagList[i].value.toString()
|
tagList[i].value = tagList[i].value.toString()
|
||||||
}
|
}
|
||||||
console.log(tagList)
|
|
||||||
this.dictCourseTag = tagList
|
this.dictCourseTag = tagList
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -231,7 +226,6 @@ export default {
|
||||||
return hreader
|
return hreader
|
||||||
},
|
},
|
||||||
onSuccess(file) {
|
onSuccess(file) {
|
||||||
console.log('1---', file)
|
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.previewVisible = false
|
this.previewVisible = false
|
||||||
|
@ -252,7 +246,6 @@ export default {
|
||||||
|
|
||||||
//标签选择器
|
//标签选择器
|
||||||
handleTagChange(value) {
|
handleTagChange(value) {
|
||||||
console.log('value------' ,value);
|
|
||||||
this.form.tags = value;
|
this.form.tags = value;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -62,7 +62,6 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.dictionaryDropDown()
|
this.dictionaryDropDown()
|
||||||
console.log('aaa', this.dictCourseTag)
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取数据词典
|
// 获取数据词典
|
||||||
|
@ -72,12 +71,9 @@ export default {
|
||||||
//课程标签字典
|
//课程标签字典
|
||||||
dictionaryDropDown({ dictionaryCode: '0008' }).then((res) => {
|
dictionaryDropDown({ dictionaryCode: '0008' }).then((res) => {
|
||||||
const tagList = res.data
|
const tagList = res.data
|
||||||
console.log(tagList)
|
|
||||||
for (let i = 0; i < tagList.length; i++) {
|
for (let i = 0; i < tagList.length; i++) {
|
||||||
console.log(tagList[i])
|
|
||||||
tagList[i].id = tagList[i].value.toString()
|
tagList[i].id = tagList[i].value.toString()
|
||||||
}
|
}
|
||||||
console.log(tagList)
|
|
||||||
this.queryOptions[1].options = tagList
|
this.queryOptions[1].options = tagList
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -43,7 +43,13 @@ export default {
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{ title: '课件名称', width: '160px', align: 'center', dataIndex: 'name', key: 'name' },
|
{ title: '课件名称', width: '160px', align: 'center', dataIndex: 'name', key: 'name' },
|
||||||
{ title: '课件分类',width: '300px',align: 'center', dataIndex: 'coursewareClassifyId', key: 'coursewareClassifyId',},
|
{
|
||||||
|
title: '课件分类',
|
||||||
|
width: '300px',
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'coursewareClassifyId',
|
||||||
|
key: 'coursewareClassifyId',
|
||||||
|
},
|
||||||
{ title: '课时/分', width: '160px', align: 'center', dataIndex: 'duration', key: 'duration' },
|
{ title: '课时/分', width: '160px', align: 'center', dataIndex: 'duration', key: 'duration' },
|
||||||
{ title: '课件大小(MB)', width: '160px', align: 'center', dataIndex: 'sizeStr', key: 'sizeStr' },
|
{ title: '课件大小(MB)', width: '160px', align: 'center', dataIndex: 'sizeStr', key: 'sizeStr' },
|
||||||
{ title: '操作', key: 'operation', width: '200px', align: 'center', scopedSlots: { customRender: 'action' } },
|
{ title: '操作', key: 'operation', width: '200px', align: 'center', scopedSlots: { customRender: 'action' } },
|
||||||
|
@ -53,26 +59,31 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
//新增课件
|
//新增课件
|
||||||
coursewareAdd() {
|
coursewareAdd() {
|
||||||
this.$router.push({path:"/course/CoursewareAddOrUpdate",query:{courseId: this.$route.query.id}})
|
this.$router.push({ path: '/course/CoursewareAddOrUpdate', query: { courseId: this.$route.query.id } })
|
||||||
console.log('IDIDIDID', this.$route.query.id)
|
console.log('IDIDIDID', this.$route.query.id)
|
||||||
},
|
},
|
||||||
|
|
||||||
//返回
|
//返回
|
||||||
goback() {
|
goback() {
|
||||||
this.$router.push({path:"/course/CourseList",query:{} })
|
this.$router.push({ path: '/course/CourseList', query: {} })
|
||||||
},
|
},
|
||||||
|
|
||||||
// 刪除課件
|
// 刪除課件
|
||||||
del(record) {
|
del(record) {
|
||||||
deleteCourseware({id:record.id}).then(res => {
|
deleteCourseware({ id: record.id }).then((res) => {
|
||||||
if(res.code == 200) this.$refs.table.refresh(true);
|
if (res.code == 200) {
|
||||||
});
|
this.$refs.table.refresh(true)
|
||||||
|
this.$message.success('删除成功!');
|
||||||
|
} else {
|
||||||
|
this.$message.error('删除失败!');
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 抽考題
|
// 抽考題
|
||||||
courseQuestion(record) {
|
courseQuestion(record) {
|
||||||
console.log("哈哈");
|
console.log('哈哈')
|
||||||
this.$router.push({path :'/course/question/examQuestion',query:{id : record.id} });
|
this.$router.push({ path: '/course/question/examQuestion', query: { id: record.id } })
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -337,7 +337,6 @@ export default {
|
||||||
|
|
||||||
// 验证判断题
|
// 验证判断题
|
||||||
estimateV() {
|
estimateV() {
|
||||||
console.log('rightAnswers', this.estimate.rightAnswers)
|
|
||||||
// 判断题目名称是否为空
|
// 判断题目名称是否为空
|
||||||
if (!this.estimate.questionName || this.estimate.questionName === '') {
|
if (!this.estimate.questionName || this.estimate.questionName === '') {
|
||||||
this.$message.error('题干不能为空!')
|
this.$message.error('题干不能为空!')
|
||||||
|
@ -390,7 +389,6 @@ export default {
|
||||||
if(this.multiselect.rightAnswers.indexOf('B') > -1) this.multiselect.b = true;
|
if(this.multiselect.rightAnswers.indexOf('B') > -1) this.multiselect.b = true;
|
||||||
if(this.multiselect.rightAnswers.indexOf('C') > -1) this.multiselect.c = true;
|
if(this.multiselect.rightAnswers.indexOf('C') > -1) this.multiselect.c = true;
|
||||||
if(this.multiselect.rightAnswers.indexOf('D') > -1) this.multiselect.d = true;
|
if(this.multiselect.rightAnswers.indexOf('D') > -1) this.multiselect.d = true;
|
||||||
console.log('1---', this.multiselect)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -130,7 +130,6 @@ export default {
|
||||||
quesionId: function (i, index) {
|
quesionId: function (i, index) {
|
||||||
if (this.quesitonList != null && this.quesitonList.length != 0) {
|
if (this.quesitonList != null && this.quesitonList.length != 0) {
|
||||||
//ID不为空则执行下面
|
//ID不为空则执行下面
|
||||||
console.log('题目!!!!', this.quesitonList.length)
|
|
||||||
this.isactive = index
|
this.isactive = index
|
||||||
this.questionId = i
|
this.questionId = i
|
||||||
|
|
||||||
|
@ -168,7 +167,6 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
edit(record) {
|
edit(record) {
|
||||||
console.log(record)
|
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/course/question/QuestionAdd',
|
path: '/course/question/QuestionAdd',
|
||||||
query: {
|
query: {
|
||||||
|
@ -227,7 +225,6 @@ export default {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
},
|
},
|
||||||
handleOk(e) {
|
handleOk(e) {
|
||||||
console.log(e)
|
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue