Merge branch 'dev_product' of https://git.cloud.tencent.com/joylink/jl-nclient into dev_product

# Conflicts:
#	src/router/index.js
This commit is contained in:
fan 2019-10-11 08:57:38 +08:00
commit a4ccfee26d
3 changed files with 106 additions and 1 deletions

View File

@ -89,3 +89,12 @@ export function releaseOrCancel(id, status) {
method: 'get'
});
}
/** 管理员获取需审核的剧本列表 */
export function reviewScriptList(params) {
return request({
url: `/api/review/query/script`,
method: 'get',
params
});
}

View File

@ -111,6 +111,7 @@ import ExistingSimulation from '@/views/management/existingSimulation/index';
import CacheControl from '@/views/management/cacheControl/index';
import LessonApproval from '@/views/approval/lesson/index';
import scriptReview from '@/views/approval/script/index';
/**
* Note: sub-menu only appear when route children.length >= 1
@ -1054,7 +1055,7 @@ export const asyncRouter = [
},
{
path: 'script',
component: SkinCode,
component: scriptReview,
meta: {
i18n: 'router.scriptReleaseApplication'
}

View File

@ -0,0 +1,95 @@
<template>
<div>
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
</div>
</template>
<script>
import { reviewScriptList } from '@/api/designPlatform';
import { listPublishMap } from '@/api/jmap/map';
export default {
name: 'ScriptApproval',
components: {
},
data() {
return{
pagerConfig: {
pageSize: 'pageSize',
pageIndex: 'pageNum'
},
queryForm: {
labelWidth: '100px',
reset: true,
queryObject: {
'userName': {
type: 'text',
label: this.$t('orderAuthor.permissionName')
},
'status': {
type: 'select',
label: this.$t('orderAuthor.isPackage'),
config: {
data: [
{ value: true, label: this.$t('global.yes') },
{ value: false, label: this.$t('global.no') }
]
}
},
mapId: {
type: 'select',
label: this.$t('orderAuthor.map'),
config: {
data: []
}
}
}
},
queryList: {
query: this.queryFunction,
selectCheckShow: false,
indexShow: true,
columns: [
{
}
]
}
}
},
created(){
},
mounted(){
this.loadInitData();
},
beforeDestroy(){
},
watch: {
},
methods: {
refresh() {
},
goDetail() {
this.$router.push({path:``});
},
async loadInitData() {
try {
//
this.mapList = [];
const res = await listPublishMap();
res.data.forEach(elem => {
this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
this.mapList.push({ value: elem.id, label: elem.name });
});
} catch (error) {
console.error(error, '获取发布地图');
}
},
queryFunction(params) {
debugger;
return reviewScriptList(params);
},
}
}
</script>