|
@@ -27,9 +27,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="6" class="right">
|
|
|
|
|
|
|
+ <el-col :span="6" class="right">
|
|
|
<div class="btnList">
|
|
<div class="btnList">
|
|
|
- <button class="search" @click="getData">搜索</button>
|
|
|
|
|
|
|
+ <button class="search" @click="goSearch('search')">搜索</button>
|
|
|
<button class="reset" @click="goReset">重置</button>
|
|
<button class="reset" @click="goReset">重置</button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -501,7 +501,10 @@ export default {
|
|
|
this.getData();
|
|
this.getData();
|
|
|
},
|
|
},
|
|
|
// 1.6 搜索按钮
|
|
// 1.6 搜索按钮
|
|
|
- goSearch() {
|
|
|
|
|
|
|
+ goSearch(type) {
|
|
|
|
|
+ if (type == 'search') {
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ }
|
|
|
const data = {
|
|
const data = {
|
|
|
page: this.page,
|
|
page: this.page,
|
|
|
page_size: this.pageSize,
|
|
page_size: this.pageSize,
|
|
@@ -512,14 +515,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.$store.dispatch('module/getComponentList',data).then(res => {
|
|
this.$store.dispatch('module/getComponentList',data).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- // this.moduleLoading = false
|
|
|
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
|
this.total = res.data.total
|
|
this.total = res.data.total
|
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
|
const item = res.data.data[i];
|
|
const item = res.data.data[i];
|
|
|
this.tableData[i].component_size = item.component_width + ' * ' + item.component_height;
|
|
this.tableData[i].component_size = item.component_width + ' * ' + item.component_height;
|
|
|
- // console.log("456",item.pagetype);
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|