|
@@ -1,12 +1,18 @@
|
|
|
<template>
|
|
|
<div class="admin-News">
|
|
|
<div class="top">
|
|
|
- <div>
|
|
|
+ <div class="search-area">
|
|
|
+ <el-input class="search-item" v-model="title" placeholder="请输入标题"></el-input>
|
|
|
+
|
|
|
+ <el-input class="search-item" v-model="keywords" placeholder="请输入关键字"></el-input>
|
|
|
+
|
|
|
<mySelect
|
|
|
+ class="search-item"
|
|
|
label="name"
|
|
|
id="newsClassifyId"
|
|
|
placeholder="请选择新闻分类"
|
|
|
></mySelect>
|
|
|
+
|
|
|
<el-button class="btn-search" size="medium" type="primary" @click="handleSearch">查询</el-button>
|
|
|
</div>
|
|
|
<div>
|
|
@@ -73,6 +79,8 @@
|
|
|
defaultPageSizes: defaultPageSizes,
|
|
|
curIiId: null,
|
|
|
tableSelectData: [],
|
|
|
+ title: '',
|
|
|
+ keywords: '',
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -153,6 +161,8 @@
|
|
|
const opt = {
|
|
|
page: this.myPage,
|
|
|
size: this.mySize,
|
|
|
+ keyword: this.keywords,
|
|
|
+ title: this.title,
|
|
|
newsClassifyId: this.newsClassifyId,
|
|
|
};
|
|
|
return opt;
|
|
@@ -262,7 +272,16 @@
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
.btn-search {
|
|
|
- margin-left: 20px;
|
|
|
+ /*margin-left: 20px;*/
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-area {
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .search-item {
|
|
|
+ width: 180px;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|