11<template >
22 <div >
3- <el-row :gutter =" 20" >
4- <el-col :span =" 10" >
3+ <el-row :gutter =" 20" style =" margin-bottom : 30px ;" >
4+ <el-col :span =" 18" >
5+ <el-card v-if =" alive" >
6+ <AjaxTable
7+ :ajax_url =" ajax_url"
8+ :columns =" columns"
9+ :limit =" limit"
10+ :total =" data_count"
11+ :process =" process"
12+ :default_sort =" {prop: 'pid', order: 'ascending'}"
13+ :costumData =" {title:title}"
14+ pagination_class =" problem-list-pagination"
15+ />
16+ </el-card >
17+ </el-col >
18+
19+ <el-col :span =" 6" >
520 <el-card >
6- <i class =" el-icon-search" />
7- Search
21+ <div slot =" header" class =" clearfix" >
22+ <i class =" el-icon-search" />
23+ Search
24+ </div >
825 <el-input
926 placeholder =" Search"
1027 v-model =" searchTitle"
11- class =" input-with-select"
12- style =" margin-top : 9px ;"
28+ class =" input-with-select"
1329 clearable
1430 >
1531 </el-input >
1632 </el-card >
17- </el-col >
18- <el-col :span =" 6" >
19- <JumpToProblem />
20- </el-col >
21- <el-col :span =" 8" >
22- <el-card >
23- <el-row :gutter =" 20" >
24- <el-col :span =" 16" >
25- <span >
26- <i class =" el-icon-s-grid" />
27- Columns
28- </span >
29- <el-slider
30- v-model =" limit"
31- :step =" 10"
32- :min =" 10"
33- style =" margin-top : 10px ;"
34- />
35- </el-col >
36- <el-col :span =" 8" >
37- <div >
38- <i class =" el-icon-collection-tag" />
39- Show Tags
40- </div >
41- <el-switch
42- v-model =" showTags"
43- active-color =" #13ce66"
44- inactive-color =" #ff4949"
45- style =" margin-top : 18px ;"
46- />
47- </el-col >
48- </el-row >
33+ <JumpToProblem class =" item" />
34+ <el-card class =" item" >
35+ <span >
36+ <i class =" el-icon-s-grid" />
37+ Columns
38+ </span >
39+ <el-slider
40+ v-model =" limit"
41+ :step =" 10"
42+ :min =" 10"
43+ style =" margin-top : 10px ;"
44+ />
45+ <el-divider />
46+ <el-checkbox v-model =" showTags" > Show Tags</el-checkbox >
47+ <el-divider />
48+ <el-button
49+ style =" width : 100% ;"
50+ @click =" $store.state.createProblem.displayCreateProblem = true;"
51+ size =" medium"
52+ >
53+ <i class =" el-icon-circle-plus" />
54+ Create New Problem
55+ </el-button >
4956 </el-card >
5057 </el-col >
5158 </el-row >
52- <el-card class =" item" v-if =" alive" >
53- <AjaxTable
54- :ajax_url =" ajax_url"
55- :columns =" columns"
56- :limit =" limit"
57- :total =" data_count"
58- :process =" process"
59- :default_sort =" {prop: 'pid', order: 'ascending'}"
60- :costumData =" {title:title}"
61- />
62- </el-card >
59+
60+ <CreateProblem />
6361 </div >
6462</template >
6563
@@ -68,6 +66,7 @@ import apiurl from './../../apiurl';
6866import AjaxTable from ' ./../lib/AjaxTable.vue' ;
6967import JumpToProblem from ' ./../lib/jumpToProblem.vue' ;
7068import listTag from ' ./listTag.vue' ;
69+ import CreateProblem from ' ./create.vue' ;
7170
7271export default {
7372 name: ' ProblemList' ,
@@ -96,7 +95,7 @@ export default {
9695 sortable: false
9796 }, {
9897 name: ' tag' ,
99- width: ' 400 ' ,
98+ width: ' 300 ' ,
10099 align: ' right' ,
101100 sortable: false
102101 }],
@@ -179,7 +178,8 @@ export default {
179178 },
180179 components: {
181180 AjaxTable,
182- JumpToProblem
181+ JumpToProblem,
182+ CreateProblem
183183 },
184184 mounted () {
185185 this .get_list_lenth ();
0 commit comments