|
|
@@ -44,6 +44,27 @@
|
|
|
<template slot="examTime" slot-scope="{row}">
|
|
|
<div>{{ transformTime(row.duration) }}</div>
|
|
|
</template>
|
|
|
+ <template slot="position" slot-scope="{row}">
|
|
|
+ <ibps-user-selector
|
|
|
+ :value="row.buMen"
|
|
|
+ type="position"
|
|
|
+ readonly-text="text"
|
|
|
+ :multiple="false"
|
|
|
+ size="mini"
|
|
|
+ :disabled="true"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template slot="pos">
|
|
|
+ <ibps-user-selector
|
|
|
+ v-model="searchParams.buMen"
|
|
|
+ type="position"
|
|
|
+ readonly-text="text"
|
|
|
+ :multiple="true"
|
|
|
+ size="mini"
|
|
|
+ :temp-search="true"
|
|
|
+ filterable
|
|
|
+ />
|
|
|
+ </template>
|
|
|
<template slot="user">
|
|
|
<ibps-user-selector
|
|
|
v-model="searchParams.createBy"
|
|
|
@@ -158,7 +179,8 @@ export default {
|
|
|
examBankId: '',
|
|
|
showTable: true,
|
|
|
searchParams: {
|
|
|
- createBy: ''
|
|
|
+ createBy: '',
|
|
|
+ buMen: ''
|
|
|
},
|
|
|
listConfig: {
|
|
|
toolbars: [
|
|
|
@@ -171,6 +193,7 @@ export default {
|
|
|
],
|
|
|
searchForm: {
|
|
|
forms: [
|
|
|
+ { prop: 'buMen', label: '部门', fieldType: 'slot', slotName: 'pos' },
|
|
|
{ prop: 'kaoShiMingChen', label: '考试名称', itemWidth: 150 },
|
|
|
{ prop: 'kaoShiLeiXing', label: '考试类型', itemWidth: 150, fieldType: 'select', multiple: 'Y', options: examTypeOptions },
|
|
|
{ prop: 'tiKuId', label: '考试题库', fieldType: 'slot', slotName: 'examBankId', itemWidth: 150 },
|
|
|
@@ -303,16 +326,22 @@ export default {
|
|
|
getSearchParams () {
|
|
|
const { parameters, requestPage, sorts } = this.getSearchFormData() || {}
|
|
|
const { pageNo = 1, limit = 20 } = requestPage || {}
|
|
|
+ console.log('parameters', this.getSearchFormData())
|
|
|
const param = mapValues(keyBy(parameters, 'key'), 'value')
|
|
|
const sort = fromPairs(sorts.map(({ field, order }) => [sortField[field], order]))
|
|
|
if (this.examBankId) {
|
|
|
param.tiKuId = this.examBankId.split(',')
|
|
|
}
|
|
|
-
|
|
|
- const { createBy } = this.searchParams
|
|
|
+//
|
|
|
+ const { createBy, buMen } = this.searchParams
|
|
|
+ console.log('his.searchParams',this.searchParams)
|
|
|
if (this.$utils.isNotEmpty(createBy)) {
|
|
|
param[`createBy`] = createBy.split(',')
|
|
|
}
|
|
|
+
|
|
|
+ if (this.$utils.isNotEmpty(buMen)) {
|
|
|
+ param[`buMen`] = buMen.split(',')
|
|
|
+ }
|
|
|
return {
|
|
|
pageNo,
|
|
|
// 获取全部数据处理后前端自行分页
|
|
|
@@ -371,7 +400,8 @@ export default {
|
|
|
totalScore: item.isRand === '1' ? parseFloat(item.randScore) : parseFloat(item.totalScore),
|
|
|
paperList: [temp],
|
|
|
scoreList: [parseFloat(item.score || -1)],
|
|
|
- statusList: [item.paperState]
|
|
|
+ statusList: [item.paperState],
|
|
|
+ buMen: item.buMen || '',
|
|
|
})
|
|
|
} else {
|
|
|
archiveData[examIndex].scoreList.push(parseFloat(item.score || -1))
|