发布内容管理添加 发布ibp盘管理

This commit is contained in:
joylink_cuiweidong 2020-12-28 14:27:38 +08:00
parent 906e12d508
commit cdb3ab25c0
5 changed files with 103 additions and 3 deletions

View File

@ -70,7 +70,7 @@ export function getIbpInfoByStation(mapId, stationCode) {
// 获取IBP盘数据
export function getIbpList(params) {
return request({
url: `/api/ibp/list`,
url: `/api/ibp`,
method: 'get',
params: params
});

View File

@ -87,5 +87,6 @@ export default {
AuthorList: 'Authorization code list',
questionsRuleManage: 'Question rule manage',
preTheoryData: 'Pre Theory Data',
boardManage: 'Message Board Manage'
boardManage: 'Message Board Manage',
publishIBPManage:'publish IBP Manage'
};

View File

@ -92,5 +92,6 @@ export default {
AuthorList: '授权列表',
questionsRuleManage: '出题规则管理',
preTheoryData: '理论导入预处理',
boardManage: '留言板管理'
boardManage: '留言板管理',
publishIBPManage:'发布IBP盘管理'
};

View File

@ -107,6 +107,7 @@ const RunPlanEveryDay = () => import('@/views/publish/runPlanEveryDay/index');
const RunplanView = () => import('@/views/publish/runPlanEveryDay/runPlanView');
const PublishExamRule = () => import('@/views/publish/examRule/index');
const PublishExamRuleDraft = () => import('@/views/publish/examRule/draft/index');
const PublishIBP = () => import('@/views/publish/publishIBP/index');
const TrainingPlatform = () => import('@/views/trainingPlatform/index');
@ -665,6 +666,13 @@ export const asyncRouter = [
path: 'examRule/draft/:mode/:ruleId/:lessonId',
component: PublishExamRuleDraft,
hidden: true
},
{ // 发布ibp盘
path: 'ibp',
component: PublishIBP,
meta: {
i18n: 'router.publishIBPManage'
}
}
]
},

View File

@ -0,0 +1,90 @@
<template>
<div>
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
</div>
</template>
<script>
import { getIbpList } from '@/api/ibp';
import {getPublishMapListOnline } from '@/api/jmap/map';
export default {
name: 'PublishIBP',
data() {
return {
mapListMap:{},
pagerConfig: {
pageSize: 'pageSize',
pageIndex: 'pageNum'
},
queryForm: {
labelWidth: '80px',
reset: true,
queryObject: {
mapId: {
type: 'select',
label: '地图名称',
config: {
data: []
}
},
stationCode: {
type: 'select',
label: '车站名称',
config: {
data: []
}
}
}
},
queryList: {
query: getIbpList,
selectCheckShow: false,
indexShow: true,
columns: [
{
title: '所属地图',
prop: 'mapId',
type: 'tag',
columnValue: (row) => { return this.covertMap(row); },
tagType: (row) => { return ''; }
},
{
title: '关联站台',
prop: 'stationCode'
},
{
title: '创建时间',
prop: 'createTime'
}
]
}
};
},
mounted() {
this.loadInitData();
},
methods:{
async loadInitData() {
const res = await getPublishMapListOnline();
res.data.forEach(each=>{
this.queryForm.queryObject.mapId.config.data.push({label:each.name, value:each.code});
this.mapListMap[each.code] = each.name;
});
},
covertMap(row) {
return this.mapListMap[row.code];
}
// covertData(row) {
// // const staitonlist = this.stationList.filter(element => {
// // return row.stationCode == element.code;
// // });
// // if (staitonlist.length) {
// // return staitonlist[0].name;
// // } else {
// // return '';
// // }
// }
}
};
</script>