mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
[前端-后台]再次修改部分措辞,修改boolen值的显示方法(再次改进)[CI SKIP]
This commit is contained in:
parent
f3b88e85fc
commit
979a2070cd
@ -62,5 +62,5 @@
|
|||||||
Arial,Helvetica,sans-serif;
|
Arial,Helvetica,sans-serif;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
font-weight: 800;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,10 +26,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "validator"],
|
|||||||
showGlobalViewRadio: true,
|
showGlobalViewRadio: true,
|
||||||
isGlobal: true,
|
isGlobal: true,
|
||||||
allGroups: [],
|
allGroups: [],
|
||||||
getYesOrNo: function(yORn) {
|
|
||||||
if (yORn) return "是";
|
|
||||||
return "否";
|
|
||||||
},
|
|
||||||
getNext: function () {
|
getNext: function () {
|
||||||
if (!vm.nextPage)
|
if (!vm.nextPage)
|
||||||
return;
|
return;
|
||||||
@ -47,7 +43,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "validator"],
|
|||||||
else {
|
else {
|
||||||
return vm.previousPage ? "btn btn-primary" : "btn btn-primary disabled";
|
return vm.previousPage ? "btn btn-primary" : "btn btn-primary disabled";
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
editAnnouncement: function (announcement) {
|
editAnnouncement: function (announcement) {
|
||||||
vm.newTitle = announcement.title;
|
vm.newTitle = announcement.title;
|
||||||
|
|||||||
@ -245,10 +245,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "editor", "datetimePicker",
|
|||||||
if (el)
|
if (el)
|
||||||
problemId = el.id;
|
problemId = el.id;
|
||||||
vm.$fire("up!showContestSubmissionPage", problemId, vm.contestList[vm.editingProblemContestIndex-1].id, vm.editMode);
|
vm.$fire("up!showContestSubmissionPage", problemId, vm.contestList[vm.editingProblemContestIndex-1].id, vm.editMode);
|
||||||
},
|
|
||||||
getYesOrNo: function(yORn) {
|
|
||||||
if (yORn) return "是";
|
|
||||||
return "否";
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
vm.$watch("showVisibleOnly", function() {
|
vm.$watch("showVisibleOnly", function() {
|
||||||
|
|||||||
@ -41,10 +41,6 @@ require(["jquery", "avalon", "csrfToken", "bsAlert"], function ($, avalon, csrfT
|
|||||||
},
|
},
|
||||||
showProblemSubmissionPage: function(problemId){
|
showProblemSubmissionPage: function(problemId){
|
||||||
vm.$fire("up!showProblemSubmissionPage", problemId);
|
vm.$fire("up!showProblemSubmissionPage", problemId);
|
||||||
},
|
|
||||||
getYesOrNo: function(yORn) {
|
|
||||||
if (yORn) return "是";
|
|
||||||
return "否";
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
vm.$watch("showVisibleOnly", function () {
|
vm.$watch("showVisibleOnly", function () {
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<th>创建时间</th>
|
<th>创建时间</th>
|
||||||
<th>更新时间</th>
|
<th>更新时间</th>
|
||||||
<th>创建者</th>
|
<th>创建者</th>
|
||||||
<th>可见范围</th>
|
<th>类型</th>
|
||||||
<th>可见</th>
|
<th>可见</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<td>{{ el.last_update_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
|
<td>{{ el.last_update_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
|
||||||
<td>{{ el.created_by.username }}</td>
|
<td>{{ el.created_by.username }}</td>
|
||||||
<td ms-text="el.is_global?'全局可见':'组内可见'"></td>
|
<td ms-text="el.is_global?'全局可见':'组内可见'"></td>
|
||||||
<td>{{ getYesOrNo(el.visible)}}</td>
|
<td ms-text="el.visible?'可见':'不可见'"></td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn-sm btn-info" ms-click="editAnnouncement(el)">编辑</button>
|
<button class="btn-sm btn-info" ms-click="editAnnouncement(el)">编辑</button>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
<th>比赛</th>
|
<th>比赛</th>
|
||||||
<th>公开排名</th>
|
<th>排名</th>
|
||||||
<th>创建时间</th>
|
<th>创建时间</th>
|
||||||
<th>创建者</th>
|
<th>创建者</th>
|
||||||
<th>可见</th>
|
<th>可见</th>
|
||||||
@ -24,10 +24,10 @@
|
|||||||
<tr ms-repeat="contestList">
|
<tr ms-repeat="contestList">
|
||||||
<td>{{ el.id }}</td>
|
<td>{{ el.id }}</td>
|
||||||
<td>{{ el.title }}</td>
|
<td>{{ el.title }}</td>
|
||||||
<td>{{ getYesOrNo(el.show_rank) }}</td>
|
<td ms-text="el.show_rank?'公开':'不公开'"></td>
|
||||||
<td>{{ el.create_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
|
<td>{{ el.create_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
|
||||||
<td>{{ el.created_by.username }}</td>
|
<td>{{ el.created_by.username }}</td>
|
||||||
<td>{{ getYesOrNo(el.visible) }}</td>
|
<td ms-text="el.visible?'可见':'不可见'"></td>
|
||||||
<td>
|
<td>
|
||||||
<a class="btn btn-info btn-sm" href="javascript:void(0)" ms-click="showEditContestArea($index+1)">编辑</a>
|
<a class="btn btn-info btn-sm" href="javascript:void(0)" ms-click="showEditContestArea($index+1)">编辑</a>
|
||||||
<a class="btn btn-info btn-sm" href="javascript:void(0)" ms-click="showEditProblemArea($index+1)">题目</a>
|
<a class="btn btn-info btn-sm" href="javascript:void(0)" ms-click="showEditProblemArea($index+1)">题目</a>
|
||||||
|
|||||||
@ -17,8 +17,8 @@
|
|||||||
<th>题目</th>
|
<th>题目</th>
|
||||||
<th>创建时间</th>
|
<th>创建时间</th>
|
||||||
<th>作者</th>
|
<th>作者</th>
|
||||||
<td>可见</td>
|
<th>可见</th>
|
||||||
<td>通过次数/提交总数</td>
|
<th>通过次数/提交总数</th>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ms-repeat="problemList">
|
<tr ms-repeat="problemList">
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<td>{{ el.title }}</td>
|
<td>{{ el.title }}</td>
|
||||||
<td>{{ el.create_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
|
<td>{{ el.create_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
|
||||||
<td>{{ el.created_by.username }}</td>
|
<td>{{ el.created_by.username }}</td>
|
||||||
<td>{{ getYesOrNo(el.visible) }}</td>
|
<td ms-text="el.visible?'可见':'不可见'">{{ getYesOrNo(el.visible) }}</td>
|
||||||
<td>{{ el.total_accepted_number }}/{{ el.total_submit_number }}</td>
|
<td>{{ el.total_accepted_number }}/{{ el.total_submit_number }}</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn-sm btn-info" ms-click="showEditProblemPage(el.id)">编辑</button>
|
<button class="btn-sm btn-info" ms-click="showEditProblemPage(el.id)">编辑</button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user