|
|
@@ -4,7 +4,7 @@
|
|
|
<div class="search">
|
|
|
<div class="input">
|
|
|
<img src="../../img/search.png" />
|
|
|
- <input type="text" @focus="focusInput" v-model="inputValue" />
|
|
|
+ <input type="text" @focus="focusInput" v-model="inputValue" placeholder="请输入要搜索的资料名"/>
|
|
|
</div>
|
|
|
<div class="current_button" @click="search">搜索</div>
|
|
|
</div>
|
|
|
@@ -53,7 +53,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- inputValue: "请输入要搜索的资料名",
|
|
|
+ inputValue: "",
|
|
|
order: "", // 排序方式
|
|
|
sum: 0, // 表格总数据
|
|
|
currentPage: 1,
|
|
|
@@ -77,17 +77,13 @@ export default {
|
|
|
this.inputValue = "";
|
|
|
},
|
|
|
search: function () {
|
|
|
- let data = {};
|
|
|
- if (this.inputValue !== "请输入要搜索的资料名") {
|
|
|
- data = {
|
|
|
- informationName: this.inputValue,
|
|
|
- asc: this.asc,
|
|
|
- page: this.currentPage,
|
|
|
- rows: this.pageSize,
|
|
|
- };
|
|
|
- }
|
|
|
+ let data = {
|
|
|
+ informationName: this.inputValue,
|
|
|
+ asc: this.asc,
|
|
|
+ page: this.currentPage,
|
|
|
+ rows: this.pageSize,
|
|
|
+ };
|
|
|
this.getFirmsUploadList(data);
|
|
|
- this.inputValue = "请输入要搜索的资料名";
|
|
|
},
|
|
|
sort: function () {
|
|
|
this.asc = this.order === "DESC" ? true : false;
|