feat: 对接登录
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
This commit is contained in:
parent
4fd36aedf1
commit
861b5464c9
@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
import { taskMgrService } from '#/api/service/question-bank/task-mgr'
|
||||
|
||||
@ -12,6 +12,19 @@ const props = defineProps({
|
||||
|
||||
const knowledgeList = ref<any>([])
|
||||
|
||||
function toSortableNumber(val: any): number {
|
||||
const n = Number(val)
|
||||
return Number.isFinite(n) ? n : -Infinity
|
||||
}
|
||||
|
||||
function sortByTitleScore(a: any, b: any) {
|
||||
return toSortableNumber(a?.titleScore) - toSortableNumber(b?.titleScore)
|
||||
}
|
||||
|
||||
function sortByAnswerScore(a: any, b: any) {
|
||||
return toSortableNumber(a?.answerScore) - toSortableNumber(b?.answerScore)
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
const res = await taskMgrService.getListPaperKnowledge(props.resourceId)
|
||||
knowledgeList.value = res || []
|
||||
@ -32,12 +45,21 @@ onMounted(async () => {
|
||||
<el-table-column
|
||||
prop="titleScore"
|
||||
label="满分"
|
||||
sortable
|
||||
:sort-method="sortByTitleScore"
|
||||
header-align="center"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column label="得分" header-align="center" align="center">
|
||||
<el-table-column
|
||||
prop="answerScore"
|
||||
label="得分"
|
||||
sortable
|
||||
:sort-method="sortByAnswerScore"
|
||||
header-align="center"
|
||||
align="center"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.answerScore || '-' }}
|
||||
{{ scope.row.answerScore ?? '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@ -33,8 +33,8 @@ export default defineConfig(async () => {
|
||||
open: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
// target: 'http://43.136.52.196:9053',
|
||||
target: 'https://tiku.lingxixue.com',
|
||||
target: 'http://43.136.52.196:9053',
|
||||
// target: 'https://tiku.lingxixue.com',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user