diff --git a/src/i18n/langs/zh/exam.js b/src/i18n/langs/zh/exam.js index 67b139097..a206bb3a0 100644 --- a/src/i18n/langs/zh/exam.js +++ b/src/i18n/langs/zh/exam.js @@ -14,7 +14,7 @@ export default { trainingScore: '实训得分', returnToExamList: '返回考试列表', totalScore: '总分', - itemList: '试题列表', + itemList: '试卷列表', courseName: '课程名称', permissionsDetails: '权限详情', buy: '购买', diff --git a/src/views/orderauthor/permission/index.vue b/src/views/orderauthor/permission/index.vue index 28c024879..e3ecb48c9 100644 --- a/src/views/orderauthor/permission/index.vue +++ b/src/views/orderauthor/permission/index.vue @@ -12,6 +12,7 @@ import { listPackagePermission, restorePackagePermission, getPackageQrCode, setC import { UrlConfig } from '@/router/index'; import QrCode from '@/components/QrCode'; import Qcode from './Qcode'; +import { getPublishMapListOnline } from '@/api/jmap/map'; export default { name: 'Author', @@ -31,11 +32,24 @@ export default { labelWidth: '140px', reset: false, queryObject: { - 'userName': { - type: 'text', - label: this.$t('orderAuthor.founder') + mapId: { + type: 'select', + label: this.$t('orderAuthor.mapName'), + config: { + data: [] + } }, - 'status': { + canDistribute: { + type: 'select', + label: this.$t('orderAuthor.publicOrPrivate'), + config: { + data: [ + { value: false, label: this.$t('orderAuthor.privateAuthority')}, + { value: true, label: this.$t('orderAuthor.publicAuthority')} + ] + } + }, + status: { type: 'select', label: this.$t('global.status'), value: '1', @@ -179,6 +193,11 @@ export default { return true; }); }); + getPublishMapListOnline().then(resp => { + resp.data.forEach(elem => { + this.queryForm.queryObject.mapId.config.data.push({value: elem.id, label: elem.name}); + }); + }); }, formatterDate(row, porpInfo) { return row[porpInfo.property] ? row[porpInfo.property] : this.$t('global.perpetual');