From d2b296153a1d8c8106b2e384bcc71b52049dc74e Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Fri, 15 Nov 2019 10:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E5=88=86=E5=8F=91=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=A2=9E=E5=8A=A0=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E8=AF=95=E9=A2=98=E5=88=97=E8=A1=A8=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E8=AF=95=E5=8D=B7=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/zh/exam.js | 2 +- src/views/orderauthor/permission/index.vue | 27 ++++++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) 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');