|
|
@@ -43,6 +43,17 @@
|
|
|
<template slot="examTime" slot-scope="{row}">
|
|
|
<div>{{ transformTime(row.duration) }}</div>
|
|
|
</template>
|
|
|
+ <template slot="user">
|
|
|
+ <ibps-user-selector
|
|
|
+ v-model="searchParams.createBy"
|
|
|
+ type="user"
|
|
|
+ readonly-text="text"
|
|
|
+ :multiple="true"
|
|
|
+ size="mini"
|
|
|
+ :temp-search="true"
|
|
|
+ filterable
|
|
|
+ />
|
|
|
+ </template>
|
|
|
</ibps-crud>
|
|
|
<exam-edit
|
|
|
v-if="showEditDialog"
|
|
|
@@ -86,7 +97,8 @@ export default {
|
|
|
ExamEdit: () => import('./edit'),
|
|
|
ExamDetail: () => import('./detail'),
|
|
|
ExamJudge: () => import('../question/judge'),
|
|
|
- IbpsCustomDialog: () => import('@/business/platform/data/templaterender/custom-dialog')
|
|
|
+ IbpsCustomDialog: () => import('@/business/platform/data/templaterender/custom-dialog'),
|
|
|
+ IbpsUserSelector: () => import('@/business/platform/org/selector')
|
|
|
},
|
|
|
mixins: [FixHeight],
|
|
|
data () {
|
|
|
@@ -132,6 +144,9 @@ export default {
|
|
|
},
|
|
|
examBankId: '',
|
|
|
showTable: true,
|
|
|
+ searchParams: {
|
|
|
+ createBy: ''
|
|
|
+ },
|
|
|
listConfig: {
|
|
|
toolbars: [
|
|
|
{ key: 'search' },
|
|
|
@@ -147,7 +162,8 @@ export default {
|
|
|
{ prop: 'tiKuId', label: '考试题库', fieldType: 'slot', slotName: 'examBankId', itemWidth: 150 },
|
|
|
{ prop: 'zhuangTai', label: '考试状态', itemWidth: 150, fieldType: 'select', multiple: 'Y', options: statusOption },
|
|
|
{ prop: ['chuangJianShiJ^S', 'chuangJianShiJ^E'], label: '创建时间', fieldType: 'daterange' },
|
|
|
- { prop: ['faBuShiJian^S', 'faBuShiJian^E'], label: '发布时间', fieldType: 'daterange' }
|
|
|
+ { prop: ['faBuShiJian^S', 'faBuShiJian^E'], label: '发布时间', fieldType: 'daterange' },
|
|
|
+ { prop: 'createBy', label: '创建人', fieldType: 'slot', slotName: 'user' }
|
|
|
]
|
|
|
},
|
|
|
// 表格字段配置
|
|
|
@@ -278,6 +294,11 @@ export default {
|
|
|
if (this.examBankId) {
|
|
|
param.tiKuId = this.examBankId.split(',')
|
|
|
}
|
|
|
+
|
|
|
+ const { createBy } = this.searchParams
|
|
|
+ if (this.$utils.isNotEmpty(createBy)) {
|
|
|
+ param[`createBy`] = createBy.split(',')
|
|
|
+ }
|
|
|
return {
|
|
|
pageNo,
|
|
|
// 获取全部数据处理后前端自行分页
|