暂时去除import problem,problem source 移到左边

This commit is contained in:
zema1 2017-12-04 21:41:09 +08:00
parent 3f733b9975
commit ed7ecc3338
5 changed files with 12 additions and 11 deletions

View File

@ -6,7 +6,7 @@
[![element-ui](https://img.shields.io/badge/element-2.0.5-blue.svg?style=flat-square)](https://github.com/ElemeFE/element)
[![Build Status](https://travis-ci.org/QingdaoU/OnlineJudgeFE.svg?branch=master)](https://travis-ci.org/QingdaoU/OnlineJudgeFE)
>### A multiple pages app built for OnlineJudge, [Demo](http://v2.qduoj.com)
>### A multiple pages app built for OnlineJudge. [Demo](http://v2.qduoj.com)
## Features

View File

@ -1,6 +1,6 @@
<template>
<div class="problem">
<Panel title="Import Problem" v-if="mode == 'add'">
<Panel title="Import Problem" v-if="mode == 'hide'">
<el-upload
action="/api/admin/test_case"
name="file"

View File

@ -42,7 +42,7 @@
<style lang="less" scoped>
.content {
font-size: 16px;
margin: 0 50px 20px 50px;
margin: 0 50px 40px 50px;
> ul {
list-style: disc;
li {
@ -58,6 +58,4 @@
}
}
}
</style>

View File

@ -40,6 +40,12 @@
<div class="content" v-html=problem.hint></div>
</Card>
</div>
<div v-if="problem.source">
<p class="title">Source</p>
<p class="content">{{problem.source}}</p>
</div>
</div>
</Panel>
<!--problem main end-->
@ -138,9 +144,6 @@
<li>
<p>Created By</p>
<p>{{problem.created_by.username}}</p></li>
<li v-if="problem.source">
<p>Source</p>
<p>{{problem.source}}</p></li>
<li v-if="problem.difficulty">
<p>Level</p>
<p>{{problem.difficulty}}</p></li>

View File

@ -1,6 +1,6 @@
<template>
<Row type="flex" :gutter="18">
<Col :span=20>
<Col :span=19>
<Panel shadow>
<div slot="title">Problem List</div>
<div slot="extra">
@ -49,7 +49,7 @@
</Col>
<Col :span="4">
<Col :span="5">
<Panel :padding="10">
<div slot="title" class="taglist-title">Tags</div>
<Button v-for="tag in tagList"
@ -154,7 +154,7 @@
}
],
problemList: [],
limit: 15,
limit: 20,
total: 0,
loadings: {
table: true,