课程发布管理添加归属地图
This commit is contained in:
parent
c203f7b839
commit
f8d6a3eb9f
@ -121,5 +121,6 @@ export default {
|
||||
copyMapAs: 'Copy map as',
|
||||
whetherToCopyData: 'Whether to copy data',
|
||||
copy:'Copy',
|
||||
lineType:'Line Type'
|
||||
lineType:'Line Type',
|
||||
belongsToMap: 'Belongs to map'
|
||||
};
|
||||
|
@ -125,5 +125,6 @@ export default {
|
||||
copyMapAs: '复制地图为',
|
||||
whetherToCopyData: '是否复制数据',
|
||||
copy:'复制',
|
||||
lineType:'线路类型'
|
||||
lineType:'线路类型',
|
||||
belongsToMap: '所属地图'
|
||||
};
|
||||
|
@ -9,6 +9,7 @@
|
||||
import { publishLessonList, delPublishLesson, putLessonOnLine, putLessonOffLine, updatePublishLesson } from '@/api/jmap/lesson';
|
||||
import localStore from 'storejs';
|
||||
import UpdateOperate from './draft.vue';
|
||||
import { listPublishMap } from '@/api/jmap/map';
|
||||
|
||||
export default {
|
||||
name: 'PublishMap',
|
||||
@ -36,6 +37,13 @@ export default {
|
||||
config: {
|
||||
data: []
|
||||
}
|
||||
},
|
||||
mapId: {
|
||||
type: 'select',
|
||||
label: this.$t('publish.belongsToMap'),
|
||||
config: {
|
||||
data: []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,6 +57,13 @@ export default {
|
||||
title: this.$t('global.name'),
|
||||
prop: 'name'
|
||||
},
|
||||
{
|
||||
title: this.$t('publish.belongsToMap'),
|
||||
prop: 'mapId',
|
||||
type: 'tag',
|
||||
columnValue: (row) => { return this.$convertField(row.mapId, this.mapList, ['id', 'name']); },
|
||||
tagType: (row) => { return 'success'; }
|
||||
},
|
||||
{
|
||||
title: this.$t('publish.city'),
|
||||
prop: 'cityCode',
|
||||
@ -108,6 +123,13 @@ export default {
|
||||
methods: {
|
||||
loadInitData() {
|
||||
this.cityList = [];
|
||||
this.mapList = [];
|
||||
listPublishMap().then(resp => {
|
||||
this.mapList = resp.data;
|
||||
this.mapList.forEach(elem => {
|
||||
this.queryForm.queryObject.mapId.config.data.push({value: elem.id, label: elem.name});
|
||||
});
|
||||
});
|
||||
this.$Dictionary.cityType().then(list => {
|
||||
this.cityList = list;
|
||||
this.cityList.forEach(elem => {
|
||||
|
Loading…
Reference in New Issue
Block a user