|
|
<template>
|
|
|
<LayoutBody>
|
|
|
<LayoutFilter>
|
|
|
<FilterItem :label="filters.sknCode.label">
|
|
|
<Input v-model.trim="filters.sknCode.model"
|
|
|
:placeholder="filters.sknCode.holder"></Input>
|
|
|
</FilterItem>
|
|
|
|
|
|
<FilterItem :label="filters.prodName.label">
|
|
|
<Input v-model.trim="filters.prodName.model"
|
|
|
:placeholder="filters.prodName.holder"></Input>
|
|
|
</FilterItem>
|
|
|
|
|
|
<FilterItem :label="filters.prodStatus.label">
|
|
|
<Select v-model.trim="filters.prodStatus.model">
|
|
|
<Option v-for="option in filters.prodStatus.options"
|
|
|
:value="option.value"
|
|
|
:key="option.value">{{option.label}}</Option>
|
|
|
</Select>
|
|
|
</FilterItem>
|
|
|
|
|
|
<FilterItem label="选择类目">
|
|
|
<SelectCategory :value="categoryValue" @select-change="sortChange"></SelectCategory>
|
|
|
</FilterItem>
|
|
|
|
|
|
<FilterItem>
|
|
|
<Button type="primary" @click="filterSearch">查询</Button>
|
|
|
<Button @click="clearFilter">清空条件</Button>
|
|
|
</FilterItem>
|
|
|
|
|
|
|
|
|
</LayoutFilter>
|
|
|
|
|
|
<LayoutAction>
|
|
|
<Button type="error">选择</Button>
|
|
|
</LayoutAction>
|
|
|
|
|
|
<LayoutList>
|
|
|
<Table border :context="self" :columns="tableCols" :data="tableData"></Table>
|
|
|
<Page :total="pageData.total" :current="pageData.current"
|
|
|
@on-change="pageChange" :page-size="20" show-total></Page>
|
|
|
</LayoutList>
|
|
|
|
|
|
</LayoutBody>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import _ from 'lodash';
|
|
|
import {SelectCategory} from 'product/filter-select';
|
|
|
import {tableCols, tableData} from '../store'
|
|
|
import methods from '../methods'
|
|
|
import {CellImage} from 'product/table-cell';
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
self: this,
|
|
|
tableCols: tableCols,
|
|
|
tableData: tableData,
|
|
|
categoryValue: [],
|
|
|
pageData: {
|
|
|
total: 0,
|
|
|
current: 1
|
|
|
},
|
|
|
filters: {
|
|
|
sknCode: {
|
|
|
label: 'SKN',
|
|
|
model: '',
|
|
|
holder: ''
|
|
|
},
|
|
|
prodName: {
|
|
|
label: '商品名称',
|
|
|
model: '',
|
|
|
holder: ''
|
|
|
},
|
|
|
prodStatus: {
|
|
|
label: '上下架状态',
|
|
|
model: '',
|
|
|
options: [
|
|
|
{
|
|
|
value: -1,
|
|
|
label: '全部'
|
|
|
},
|
|
|
{
|
|
|
value: 1,
|
|
|
label: '上架'
|
|
|
},
|
|
|
{
|
|
|
value: 2,
|
|
|
label: '下架'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
},
|
|
|
methods: {
|
|
|
filterParams() {
|
|
|
},
|
|
|
filterSearch() {
|
|
|
},
|
|
|
clearFilter() {
|
|
|
},
|
|
|
productList(params) {
|
|
|
},
|
|
|
reloadList() {
|
|
|
},
|
|
|
pageChange(page) {
|
|
|
},
|
|
|
sortChange() {
|
|
|
|
|
|
},
|
|
|
...methods
|
|
|
},
|
|
|
components: {
|
|
|
SelectCategory,
|
|
|
CellImage
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
.btn-row-space {
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
</style> |
|
|
\ No newline at end of file |
...
|
...
|
|