|
@@ -8,7 +8,7 @@
|
8
|
8
|
<div style="margin-bottom: 10px">
|
9
|
9
|
<el-row :gutter="24">
|
10
|
10
|
<el-col :span="8">
|
11
|
|
- <el-input style="width: 300px" placeholder="请输入您需要搜索的内容"></el-input>
|
|
11
|
+ <el-input style="width: 300px" v-model="listQuery.search" placeholder="请输入您需要搜索的内容"></el-input>
|
12
|
12
|
<el-button type="primary" icon="el-icon-search">搜索</el-button>
|
13
|
13
|
</el-col>
|
14
|
14
|
</el-row>
|
|
@@ -17,7 +17,8 @@
|
17
|
17
|
<label class="title"><span class="name">标签</span>:</label>
|
18
|
18
|
<div class="time">
|
19
|
19
|
<ul class="">
|
20
|
|
- <li :class="item.value==schedulType?'active':''" v-for="item in schedulArr" :key="item.value">{{item.label}}</li>
|
|
20
|
+ <li :class="0==schedulType?'active':''" @click="selectsign(0)">全部</li>
|
|
21
|
+ <li :class="item.MenuId==schedulType?'active':''" v-for="item in schedulArr" :key="item.MenuId">{{item.Name}}</li>
|
21
|
22
|
</ul>
|
22
|
23
|
</div>
|
23
|
24
|
</div>
|
|
@@ -25,15 +26,16 @@
|
25
|
26
|
<label class="title"><span class="name">状态:</span></label>
|
26
|
27
|
<div class="time">
|
27
|
28
|
<ul class="">
|
|
29
|
+ <!-- <li :class="0==systemType?'active':''" @click="selectStatus(0)">全部</li> -->
|
28
|
30
|
<li :class="item.value==systemType?'active':''" v-for="item in systemArr" :key="item.value">{{item.label}}</li>
|
29
|
31
|
</ul>
|
30
|
32
|
</div>
|
31
|
33
|
</div>
|
32
|
34
|
<div class="filter-container" style="margin-top: 10px;margin-left: 5px">
|
33
|
|
- <el-checkbox style="width: 30px" v-model="checked" @change="changeAllSelected">全选</el-checkbox>
|
34
|
|
- <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
|
|
35
|
+ <el-checkbox style="width: 30px">全选</el-checkbox>
|
|
36
|
+ <el-button size="small" icon="el-icon-delete">删除</el-button>
|
35
|
37
|
</div>
|
36
|
|
- <el-table ref="multipleTable" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="tableData" border fit highlight-current-row style="width: 100%;margin-top: 10px;">
|
|
38
|
+ <el-table ref="multipleTable" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="ArticleData" border fit highlight-current-row style="width: 100%;margin-top: 10px;">
|
37
|
39
|
<el-table-column
|
38
|
40
|
type="selection"
|
39
|
41
|
width="55">
|
|
@@ -92,6 +94,7 @@
|
92
|
94
|
|
93
|
95
|
<script>
|
94
|
96
|
import BreadCrumb from '../components/bread-crumb'
|
|
97
|
+ import { GetAllArticles } from '@/api/act/submitinfo'
|
95
|
98
|
export default {
|
96
|
99
|
name: 'commentList',
|
97
|
100
|
components:{
|
|
@@ -106,34 +109,59 @@
|
106
|
109
|
time: '',
|
107
|
110
|
active: true,
|
108
|
111
|
schedulType: 0,
|
109
|
|
- schedulArr:[
|
110
|
|
- {value: 0, label: '全部'},
|
111
|
|
- {value: 1, label: '食物库'},
|
112
|
|
- {value: 2, label: '肾病常识'},
|
113
|
|
- {value: 3, label: '科普教育'},
|
114
|
|
- ],
|
|
112
|
+ schedulArr:0,
|
115
|
113
|
systemType: 0,
|
116
|
114
|
systemArr: [
|
117
|
|
- { value: 0, label: '全部' },
|
118
|
|
- { value: 1, label: '已发布'},
|
119
|
|
- { value: 2, label: '草稿箱'},
|
120
|
|
- { value: 3, label: '未通过'},
|
|
115
|
+ { value: 0, label: "全部" },
|
|
116
|
+ { value: 1, label: "已发布" },
|
|
117
|
+ { value: 2, label: "草稿箱" },
|
|
118
|
+ { value: 2, label: "未通过" }
|
121
|
119
|
],
|
|
120
|
+ listQuery:{
|
|
121
|
+ page:1,
|
|
122
|
+ limit:10,
|
|
123
|
+ search:'',
|
|
124
|
+ classid:'',
|
|
125
|
+ },
|
|
126
|
+ ArticleData:[],
|
|
127
|
+ total:0,
|
122
|
128
|
}
|
|
129
|
+ },
|
|
130
|
+ methods:{
|
|
131
|
+ GetAllArticles(){
|
|
132
|
+ GetAllArticles(this.listQuery).then(response =>{
|
|
133
|
+ if(response.data.status === 1){
|
|
134
|
+ this.ArticleData = response.data.data.articles
|
|
135
|
+ console.log("文章列表",this.ArticleData)
|
|
136
|
+ this.total = response.data.data.total
|
|
137
|
+ }
|
|
138
|
+ })
|
|
139
|
+ },
|
|
140
|
+ selectsign(id){
|
|
141
|
+ this.listQuery.classid = id;
|
|
142
|
+ this.schedulArr = id;
|
|
143
|
+ this.GetAllArticles();
|
|
144
|
+ },
|
|
145
|
+ selectStatus(id){
|
|
146
|
+ this.listQuery.status = id;
|
|
147
|
+ this.systemType = id;
|
|
148
|
+ this.GetAllArticles();
|
|
149
|
+ },
|
|
150
|
+ handleSizeChange(limit) {
|
|
151
|
+ this.listQuery.limit = limit;
|
|
152
|
+ this.GetAllAritcles();
|
|
153
|
+ },
|
|
154
|
+ handleCurrentChange(page) {
|
|
155
|
+ this.listQuery.page = page;
|
|
156
|
+ this.GetAllAritcles();
|
|
157
|
+ }
|
|
158
|
+ },
|
|
159
|
+ created(){
|
|
160
|
+ this.GetAllArticles()
|
123
|
161
|
}
|
124
|
162
|
}
|
125
|
163
|
</script>
|
126
|
164
|
|
127
|
165
|
<style scoped>
|
128
|
|
- /*.app-container .cell.clearfix .time ul li {*/
|
129
|
|
- /*float: left;*/
|
130
|
|
- /*list-style: none;*/
|
131
|
|
- /*cursor: pointer;*/
|
132
|
|
- /*padding: 6px 20px;*/
|
133
|
|
- /*color: #606266;*/
|
134
|
|
- /*border-radius: 4px;*/
|
135
|
|
- /*margin: 0 8px 0 0;*/
|
136
|
|
- /*font-size: 14px;*/
|
137
|
|
- /*text-align: center;*/
|
138
|
|
- /*}*/
|
|
166
|
+
|
139
|
167
|
</style>
|