@@ -3,7 +3,7 @@
|
|||||||
"version": "1.8.0",
|
"version": "1.8.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "rsbuild dev --env-mode=production",
|
"start": "rsbuild dev",
|
||||||
"build": "rsbuild build",
|
"build": "rsbuild build",
|
||||||
"build:staging": "rsbuild build --env-mode=staging",
|
"build:staging": "rsbuild build --env-mode=staging",
|
||||||
"build:test": "rsbuild build --env-mode=test",
|
"build:test": "rsbuild build --env-mode=test",
|
||||||
|
|||||||
@@ -169,15 +169,6 @@ function getGradeType(grade?: string) {
|
|||||||
return "error"
|
return "error"
|
||||||
}
|
}
|
||||||
|
|
||||||
function flowchartRowProps(row: FlowchartSubmissionListItem) {
|
|
||||||
return {
|
|
||||||
style: "cursor: pointer",
|
|
||||||
onClick() {
|
|
||||||
showScoreDetail(row.id)
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 监听用户名和题号变化(防抖)
|
// 监听用户名和题号变化(防抖)
|
||||||
watchDebounced(() => [query.username, query.problem], listSubmissions, {
|
watchDebounced(() => [query.username, query.problem], listSubmissions, {
|
||||||
debounce: 500,
|
debounce: 500,
|
||||||
@@ -429,7 +420,6 @@ const flowchartColumns: DataTableColumn<FlowchartSubmissionListItem>[] = [
|
|||||||
:bordered="false"
|
:bordered="false"
|
||||||
:columns="flowchartColumns"
|
:columns="flowchartColumns"
|
||||||
:data="flowcharts"
|
:data="flowcharts"
|
||||||
:row-props="flowchartRowProps"
|
|
||||||
/>
|
/>
|
||||||
<n-data-table
|
<n-data-table
|
||||||
v-else
|
v-else
|
||||||
|
|||||||
Reference in New Issue
Block a user