Merge branch 'dev' of https://git.qcloud.com/joylink/jl-nclient into dev
This commit is contained in:
commit
dd23ca545d
@ -56,7 +56,7 @@ export default {
|
||||
createChapter: 'Create chapter',
|
||||
contentSorting: 'Content sorting',
|
||||
courseList: 'Course list',
|
||||
countSkinCode: 'Duplicate skin cannot be the same type as the copied skin',
|
||||
countSkinCode: 'Duplicate map cannot be the same type as the copied map',
|
||||
createNewCoursesFromRelease: 'Create new courses from release',
|
||||
courseName: 'Course name',
|
||||
parentChapter: 'Parent chapter:',
|
||||
|
@ -101,7 +101,7 @@ export default {
|
||||
train: '列车',
|
||||
station: '车站',
|
||||
trainWindow: '车次窗',
|
||||
countSkinCode: '复制皮肤与被复制皮肤类型不能一样',
|
||||
countSkinCode: '复制地图与被复制地图类型不能一样',
|
||||
trainingRecord: '实训录制',
|
||||
lesson: '课程',
|
||||
taskManage: '任务管理',
|
||||
|
@ -87,13 +87,13 @@ export default {
|
||||
return data.name.indexOf(value) !== -1;
|
||||
},
|
||||
editLesson() {
|
||||
this.$router.push( {path: `/design/lesson/details/edit/lessonEdit`, query: {id: this.lessonId, skinCode: this.$route.query.skinCode, cityCode: this.$route.query.cityCode, mapId: this.$route.query.mapId}} );
|
||||
this.$router.push( {path: `/design/lesson/details/edit/lessonEdit`, query: {id: this.lessonId, cityCode: this.$route.query.cityCode, mapId: this.$route.query.mapId}} );
|
||||
},
|
||||
createChapte(node) {
|
||||
this.$router.push({path: `/design/lesson/details/edit/chapterCreate`, query: {id: node.data.id, lessonId: this.lessonId, skinCode: this.$route.query.skinCode, cityCode: this.$route.query.cityCode, mapId: this.$route.query.mapId}});
|
||||
this.$router.push({path: `/design/lesson/details/edit/chapterCreate`, query: {id: node.data.id, type:node.data.type, lessonId: this.lessonId, cityCode: this.$route.query.cityCode, mapId: this.$route.query.mapId}});
|
||||
},
|
||||
updateChapte(node) {
|
||||
this.$router.push( {path: `/design/lesson/details/edit/chapterEdit`, query: {id: node.data.id, skinCode: this.$route.query.skinCode, lessonId: this.lessonId, cityCode: this.$route.query.cityCode, mapId: this.$route.query.mapId}});
|
||||
this.$router.push( {path: `/design/lesson/details/edit/chapterEdit`, query: {id: node.data.id, type:node.data.type, lessonId: this.lessonId, cityCode: this.$route.query.cityCode, mapId: this.$route.query.mapId}});
|
||||
},
|
||||
showContextMenu(e, obj, node, vueElem) {
|
||||
if (obj && obj.type === 'Lesson' || obj.type === 'Chapter') {
|
||||
|
@ -181,7 +181,7 @@ export default {
|
||||
this.$refs.queryListPage.refresh(true);
|
||||
},
|
||||
lessonCreate() {
|
||||
this.$router.push({ path: `${UrlConfig.design.lessonEdit}/lessonCreate`, query: {skinCode: this.$route.params.skinCode, mapId: this.$route.params.mapId, cityCode: this.$route.query.cityCode} });
|
||||
this.$router.push({ path: `${UrlConfig.design.lessonEdit}/lessonCreate`, query: {mapId: this.$route.params.mapId, cityCode: this.$route.query.cityCode} });
|
||||
},
|
||||
lessonCreateByPublish() {
|
||||
this.$nextTick(() => {
|
||||
@ -189,8 +189,9 @@ export default {
|
||||
});
|
||||
},
|
||||
publish(index, row) {
|
||||
row.skinCode = this.$route.params.skinCode;
|
||||
row.mapId = this.$route.params.mapId;
|
||||
row.cityCode = this.$route.query.cityCode;
|
||||
debugger;
|
||||
this.$refs.publishLesson.doShow(row);
|
||||
},
|
||||
deleteLesson(index, row) {
|
||||
@ -236,7 +237,7 @@ export default {
|
||||
this.$refs.lessonDetail.show(row.id);
|
||||
},
|
||||
goDetail(index, row) {
|
||||
this.$router.push({path: `/design/lesson/details`, query: {lessonId: row.id, skinCode: this.$route.params.skinCode, cityCode: this.$route.query.cityCode, mapId: this.$route.params.mapId}});
|
||||
this.$router.push({path: `/design/lesson/details`, query: {lessonId: row.id, cityCode: this.$route.query.cityCode, mapId: this.$route.params.mapId}});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -178,7 +178,7 @@ export default {
|
||||
this.detail.prdCode = resp.data.prdCode;
|
||||
this.chapterModel.lessonId = resp.data.id;
|
||||
this.chapterModel.lessonName = resp.data.name;
|
||||
if (data.id !== data.lessonId) {
|
||||
if (data.type === 'Chapter') {
|
||||
this.getChapter(data);
|
||||
}
|
||||
}).catch(() => {
|
||||
@ -210,7 +210,7 @@ export default {
|
||||
});
|
||||
},
|
||||
back() {
|
||||
this.$router.push({ path: `${UrlConfig.design.lessonHome}/${this.$route.query.mapId}/${this.$route.query.skinCode}`, query: {cityCode: this.$route.query.cityCode} });
|
||||
this.$router.push({ path: `${UrlConfig.design.lessonHome}/${this.$route.query.mapId}`, query: {cityCode: this.$route.query.cityCode} });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -26,8 +26,8 @@ export default {
|
||||
loading: false,
|
||||
dialogVisible: false,
|
||||
formModel: {
|
||||
skinCodeFrom: '',
|
||||
skinCodeTo: ''
|
||||
mapIdFrom: '',
|
||||
mapIdTo: ''
|
||||
},
|
||||
mapIdList: []
|
||||
};
|
||||
@ -39,14 +39,14 @@ export default {
|
||||
labelWidth: '120px',
|
||||
items: [
|
||||
{
|
||||
prop: 'skinCodeFrom',
|
||||
prop: 'mapIdFrom',
|
||||
label: this.$t('lesson.skinTypeFrom'),
|
||||
type: 'select',
|
||||
required: true,
|
||||
options: this.mapIdList
|
||||
},
|
||||
{
|
||||
prop: 'skinCodeTo',
|
||||
prop: 'mapIdTo',
|
||||
label: this.$t('lesson.skinTypeTo'),
|
||||
type: 'select',
|
||||
required: true,
|
||||
@ -58,14 +58,14 @@ export default {
|
||||
},
|
||||
rules() {
|
||||
const crules = {
|
||||
skinCodeFrom: [
|
||||
mapIdFrom: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('rules.inputSkinType'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
skinCodeTo: [
|
||||
mapIdTo: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('rules.inputSkinType'),
|
||||
@ -101,7 +101,7 @@ export default {
|
||||
doSave() {
|
||||
const self = this;
|
||||
this.$refs.dataform.validateForm(() => {
|
||||
if (this.formModel.skinCodeFrom != this.formModel.skinCodeTo) {
|
||||
if (this.formModel.mapIdFrom != this.formModel.mapIdTo) {
|
||||
self.create();
|
||||
} else {
|
||||
this.$alert(this.$t('lesson.countSkinCode'), this.$t('global.tips'), {
|
||||
@ -114,7 +114,7 @@ export default {
|
||||
create() {
|
||||
const self = this;
|
||||
this.loading = true;
|
||||
postOperateSaveAs(this.formModel.skinCodeFrom, this.formModel.skinCodeTo)
|
||||
postOperateSaveAs(this.formModel.mapIdFrom, this.formModel.mapIdTo)
|
||||
.then(response => {
|
||||
self.loading = false;
|
||||
self.$message.success(this.$t('lesson.batchCreateSuccess'));
|
||||
|
Loading…
Reference in New Issue
Block a user