Skip to content

Commit d89c871

Browse files
committed
2 parents b155977 + 45330c5 commit d89c871

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

src/assets/css/basic.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ h3::before {
194194
.problem-list-pagination {
195195
border: 1px solid #ebeef5;
196196
background: #ffffff;
197-
margin-left: -20px;
197+
margin-left: -21px;
198198
padding: 10px;
199199
height: 36px;
200200
max-width: 100vw;
201-
width: 827px;
201+
width: 828px;
202202
text-align: center;
203203
bottom: 0;
204204
position: fixed;
@@ -207,13 +207,14 @@ h3::before {
207207
.status-list-pagination {
208208
border: 1px solid #ebeef5;
209209
background: #ffffff;
210+
margin-left: -21px;
210211
padding: 10px;
211212
height: 36px;
213+
max-width: 100vw;
214+
width: 1118px;
212215
text-align: center;
213216
bottom: 0;
214217
position: fixed;
215-
margin-left: auto;
216-
margin-right: auto;
217218
}
218219

219220
.el-dialog,

src/assets/css/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88

99
.color-warning {
10-
color: #e6a23c;
10+
color: rgb(247, 186, 42);
1111
}
1212

1313
.color-info {

src/components/problem/list.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export default {
169169
} else {
170170
x.title = (<router-link to={'/problem/' + String(x.pid)} class={color + ' text-normal'}>{ x.title }</router-link>);
171171
}
172+
x.pid = (<div class={color}>{x.pid}</div>);
172173
x.score = (<div class={color + ' text-extra-bold'}>{x.score >= 0 ? x.score : '-'}</div>);
173174
174175
x.tag = (<listTag tags={ x.tags }></listTag>);

src/components/status/list.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
:limit="limit"
88
:total="data_count"
99
:process="process"
10-
:default_sort="{prop: 'id', order: 'ascending'}"
10+
:default_sort="{prop: 'id', order: 'descending'}"
1111
pagination_class="status-list-pagination"
1212
/>
1313
</el-card>
@@ -27,7 +27,7 @@ export default {
2727
return {
2828
alive: true,
2929
ajax_url: apiurl('/status/list'),
30-
limit: 50,
30+
limit: 30,
3131
columns: [{
3232
name: 'id',
3333
label: 'Run ID',
@@ -95,18 +95,20 @@ export default {
9595
let color = '';
9696
if (x.score === 100) {
9797
color += 'color-success';
98-
} else if (x.score < 100 && x.score >= 0) {
98+
} else if (x.score < 100 && x.score > 0) {
99+
color += 'color-warning';
100+
} else if(x.score == 0) {
99101
color += 'color-danger';
100102
} else {
101103
color += 'color-regular-text';
102104
}
103105
x.problem = (<ProblemTitleLink pid={x.problem}></ProblemTitleLink>);
104106
x.score = (<div class={color + ' text-extra-bold'}>{x.score >= 0 ? x.score : '-'}</div>);
105107
x.lang = sfconfig.langTable[x.lang].label;
106-
let t = sfconfig.stateTable.filter(id => {
108+
let stateTable = sfconfig.stateTable.filter(id => {
107109
return id.value === String(x.state);
108110
})[0];
109-
x.state = (<div style={'color: ' + t.color + ';'}>{t.label}</div>);
111+
x.state = (<div style={'color: ' + stateTable.color + ';'}>{stateTable.label}</div>);
110112
x.time = x.time + ' ms';
111113
x.memory = x.memory + ' KB';
112114
x.owner = (<UserNameLink userid={x.owner}></UserNameLink>);

src/components/user/UserNameLink.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default {
3333
}
3434
},
3535
mounted() {
36-
console.log(typeof(this.userid));
3736
this.username = this.userid;
3837
this.loadusername(this.userid);
3938
}

0 commit comments

Comments
 (0)