|
|
@@ -135,8 +135,9 @@
|
|
|
<input
|
|
|
type="text"
|
|
|
placeholder="请输入花材名称,支持拼音首字母搜索"
|
|
|
+ v-model="ptClassName"
|
|
|
>
|
|
|
- <div class="flex-center-center item-seek-btn">搜索</div>
|
|
|
+ <div class="flex-center-center item-seek-btn" @click="search">搜索</div>
|
|
|
</div>
|
|
|
<ul
|
|
|
class="infinite-list"
|
|
|
@@ -319,7 +320,8 @@ export default {
|
|
|
maxPage1: 0,
|
|
|
rightItemList2: [],
|
|
|
leftCheckedList: [],
|
|
|
- rightCheckedList: []
|
|
|
+ rightCheckedList: [],
|
|
|
+ keyword: ''
|
|
|
};
|
|
|
},
|
|
|
mounted () {
|
|
|
@@ -330,7 +332,7 @@ export default {
|
|
|
getLeftList () {
|
|
|
this.$service.ghsItemClass.getAllClass().then(res => {
|
|
|
this.leftClassList = res.list
|
|
|
- this.ptClassName = res.list[0].name
|
|
|
+ // this.ptClassName = res.list[0].name
|
|
|
this.ptClassId = res.list[0].id
|
|
|
this.getItemList()
|
|
|
})
|
|
|
@@ -464,6 +466,10 @@ export default {
|
|
|
this.checkedAll = false
|
|
|
}
|
|
|
},
|
|
|
+ search() {
|
|
|
+ this.pageNum = 1
|
|
|
+ this.getItemList()
|
|
|
+ },
|
|
|
rightSelect (item, index) {
|
|
|
this.rightCheckedList = []
|
|
|
if (!item.select) {
|