权限分发管理增加搜索条件,试题列表改为试卷列表

This commit is contained in:
fan 2019-11-15 10:53:13 +08:00
parent 6e8b69869b
commit d2b296153a
2 changed files with 24 additions and 5 deletions

View File

@ -14,7 +14,7 @@ export default {
trainingScore: '实训得分', trainingScore: '实训得分',
returnToExamList: '返回考试列表', returnToExamList: '返回考试列表',
totalScore: '总分', totalScore: '总分',
itemList: '试列表', itemList: '试列表',
courseName: '课程名称', courseName: '课程名称',
permissionsDetails: '权限详情', permissionsDetails: '权限详情',
buy: '购买', buy: '购买',

View File

@ -12,6 +12,7 @@ import { listPackagePermission, restorePackagePermission, getPackageQrCode, setC
import { UrlConfig } from '@/router/index'; import { UrlConfig } from '@/router/index';
import QrCode from '@/components/QrCode'; import QrCode from '@/components/QrCode';
import Qcode from './Qcode'; import Qcode from './Qcode';
import { getPublishMapListOnline } from '@/api/jmap/map';
export default { export default {
name: 'Author', name: 'Author',
@ -31,11 +32,24 @@ export default {
labelWidth: '140px', labelWidth: '140px',
reset: false, reset: false,
queryObject: { queryObject: {
'userName': { mapId: {
type: 'text', type: 'select',
label: this.$t('orderAuthor.founder') 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', type: 'select',
label: this.$t('global.status'), label: this.$t('global.status'),
value: '1', value: '1',
@ -179,6 +193,11 @@ export default {
return true; 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) { formatterDate(row, porpInfo) {
return row[porpInfo.property] ? row[porpInfo.property] : this.$t('global.perpetual'); return row[porpInfo.property] ? row[porpInfo.property] : this.$t('global.perpetual');