bugfix - 考试管理查询字段调整
This commit is contained in:
parent
01f9a2abaa
commit
6a97b173c3
@ -11,11 +11,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
const paperStateMap = {
|
||||
'1': '正在编辑',
|
||||
'2': '封存',
|
||||
'3': '已使用',
|
||||
}
|
||||
const paperStateArr = ['正在编辑', '封存', '已使用']
|
||||
const paperStateQueryArr = ['所有', '正在编辑', '可生成试卷', '封存', '已被使用']
|
||||
import { getPapaerListOfOrg, lockPaper, unlockPaper, deletePaper } from '@/api/management/exam'
|
||||
import { getPublishMapListOnline } from '@/api/jmap/map'
|
||||
|
||||
@ -43,7 +40,7 @@ export default {
|
||||
type: 'select',
|
||||
label: '状态:',
|
||||
config: {
|
||||
data: Object.entries(paperStateMap).map(([k, v]) => ({ value: Number(k), label: v })),
|
||||
data: paperStateQueryArr.map((v, i) => ({ value: i + 1, label: v })),
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -67,7 +64,7 @@ export default {
|
||||
type: 'tag',
|
||||
width: '80',
|
||||
columnValue: row => {
|
||||
return paperStateMap[row.state]
|
||||
return paperStateArr[row.state - 1]
|
||||
},
|
||||
tagType: row => '',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user