选物料
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item_2 flexend">
|
||||
<button class="button button--primary" @click="_washsearchlist">查询</button>
|
||||
<button class="button button--primary" @click="_washmaterialList">查询</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" @click="toSure">确定</button>
|
||||
<button class="button button--primary" @click="clearUp">清除</button>
|
||||
<button class="button button--primary" @click="colseUp">关闭</button>
|
||||
@@ -41,7 +41,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {washsearchlist} from '@config/getData1.js'
|
||||
import {washmaterialList} from '@config/getData1.js'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -56,15 +56,15 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._washsearchlist()
|
||||
this._washmaterialList()
|
||||
},
|
||||
methods: {
|
||||
// grid
|
||||
async _washsearchlist () {
|
||||
async _washmaterialList () {
|
||||
this.page = 1
|
||||
this.busy = false
|
||||
this.desc = ''
|
||||
let res = await washsearchlist(this.page + '', this.size, this.val1)
|
||||
let res = await washmaterialList(this.page + '', this.size, this.val1)
|
||||
this.dataList = []
|
||||
this.dataList = [...res.content]
|
||||
if (res.content.length < 22) {
|
||||
@@ -75,7 +75,7 @@ export default {
|
||||
async loadMore () {
|
||||
this.busy = true
|
||||
this.page++
|
||||
let res = await washsearchlist(this.page + '', this.size, this.val1)
|
||||
let res = await washmaterialList(this.page + '', this.size, this.val1)
|
||||
this.dataList = [...this.dataList, ...res.content]
|
||||
if (res.content.length < 22) {
|
||||
this.busy = true
|
||||
|
||||
Reference in New Issue
Block a user