...
|
...
|
@@ -45,6 +45,9 @@ |
|
|
<Card>
|
|
|
<div>
|
|
|
<Form ref="from" inline :label-width="70">
|
|
|
<FormItem label="品类">
|
|
|
<SelectCategory v-model="sortList"></SelectCategory>
|
|
|
</FormItem>
|
|
|
<FormItem label="skn">
|
|
|
<Input type="text" placeholder="skn" v-model="searchItem.productSkn">
|
|
|
</Input>
|
...
|
...
|
@@ -57,6 +60,13 @@ |
|
|
<Input type="text" placeholder="skn" v-model="searchItem.endSkn">
|
|
|
</Input>
|
|
|
</FormItem>
|
|
|
<FormItem label="来源">
|
|
|
<Select v-model="searchItem.source">
|
|
|
<Option :value="0">全部</Option>
|
|
|
<Option :value="1">有货</Option>
|
|
|
<Option :value="2">天猫</Option>
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
<Button type="primary" @click="onClickForSearch">搜索</Button>
|
|
|
<Button type="error" @click="onClickForClear">清除</Button>
|
|
|
</Form>
|
...
|
...
|
@@ -74,6 +84,7 @@ |
|
|
import ApiService from 'service/api'
|
|
|
import ProductImage from './components/product-image'
|
|
|
import CheckImage from './components/check-image'
|
|
|
import SelectCategory from './components/select-category'
|
|
|
|
|
|
export default {
|
|
|
data () {
|
...
|
...
|
@@ -132,8 +143,12 @@ |
|
|
searchItem: {
|
|
|
productSkn: '',
|
|
|
startSkn: '',
|
|
|
endSkn: ''
|
|
|
endSkn: '',
|
|
|
source: 0,
|
|
|
maxSortId: 0,
|
|
|
middleSortId: 0
|
|
|
},
|
|
|
sortList: [],
|
|
|
pager: {
|
|
|
rows : 0,
|
|
|
size : 10,
|
...
|
...
|
@@ -157,6 +172,8 @@ |
|
|
this.searchItem.productSkn = ''
|
|
|
this.searchItem.startSkn = ''
|
|
|
this.searchItem.endSkn = ''
|
|
|
this.searchItem.source = 0
|
|
|
this.sortList = []
|
|
|
},
|
|
|
onClickForAll(row) {
|
|
|
let imageList = row.imageList.map(r => r.imageId)
|
...
|
...
|
@@ -204,7 +221,17 @@ |
|
|
},
|
|
|
components: {
|
|
|
ProductImage,
|
|
|
CheckImage
|
|
|
CheckImage,
|
|
|
SelectCategory
|
|
|
},
|
|
|
watch: {
|
|
|
sortList: {
|
|
|
handler(newVal){
|
|
|
this.searchItem.maxSortId = newVal[0] && newVal[0].value || ''
|
|
|
this.searchItem.midSortId = newVal[1] && newVal[1].value || ''
|
|
|
},
|
|
|
deep: true
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|