Authored by htoooth

fix

import sell from './sell-list';
import candidate from './candidate-list';
import profile from './profile';
import reconciliation from './reconciliation-list';
import settlementList from './settlement-list';
import settlementDetail from './settlement-detail';
export default {
sell,
candidate,
profile
profile,
reconciliation,
settlement: [settlementList, settlementDetail]
};
... ...
<template>
<div>局部组件</div>
</template>
<script>
export default {
name: 'Demo',
};
</script>
... ...
import Demo from './demo';
export {
Demo
};
... ...
export default {
path: '/list.html',
name: 'list',
component: () => import(/* webpackChunkName: "kol.reconciliation" */'./list'),
meta: {
pageName: '新建页面'
}
};
... ...
<template>
<layout-body>
<layout-filter ref="filter" :model="query">
<filter-item label="SKN编码">
<Input v-model.trim="query.sknCode" :maxlength="9"></Input>
</filter-item>
<filter-item label="商家编码">
<Input v-model.trim="query.prodCode"></Input>
</filter-item>
<filter-item label="商品名称">
<Input v-model.trim="query.prodName"></Input>
</filter-item>
<filter-item label="商品条码">
<Input v-model.trim="query.prodBarCode"></Input>
</filter-item>
<filter-item>
<Button type="primary" @click="search">筛选</Button>
<Button @click="reset">清空条件</Button>
</filter-item>
</layout-filter>
<layout-list>
<Demo></Demo>
<Table border :columns="tableCols" :data="tableData"></Table>
<Page :total="pageData.total" :current="pageData.current"
@on-change="pageChange" :page-size="20" show-total></Page>
</layout-list>
</layout-body>
</template>
<script>
import {Demo} from './components';
export default {
data() {
return {
query: {
sknCode: '',
prodCode: '',
prodName: '',
prodBarCode: '',
category: [],
brand: 0,
saleStatus: 0,
stockStatus: 0
},
pageData: {
total: 0,
current: 1,
},
tableData: [{
col1: '1',
col2: '2'
}, {
col1: '3',
col2: '4'
}, {
col1: '5',
col2: '6'
}],
tableCols: [{
title: '列1',
key: 'col1'
}, {
title: '列2',
key: 'col2'
}, {
title: '操作',
render: (h, params) => {
return (
<action-group>
<i-button type="primary" size="small" onClick={() => this.edit(params.row)}>编辑</i-button>
<i-button type="error" size="small" onClick={() => this.del(params.row)}>删除</i-button>
</action-group>
);
}
}]
};
},
methods: {
search() {
// 在这里实现异步查询的方法,建议在service中做
let params = Object.assign(this.query, this.pageData);
console.log(params);
},
reset() {
this.$refs.filter.reset();
},
pageChange() {
this.search();
},
edit() {},
del() {}
},
components: {Demo}
};
</script>
<style lang="scss">
</style>
... ...
<template>
<div>局部组件</div>
</template>
<script>
export default {
name: 'Demo',
};
</script>
... ...
import Demo from './demo';
export {
Demo
};
... ...
export default {
path: '/detail/:id.html',
name: 'detail',
component: () => import(/* webpackChunkName: "kol.settlement-detail" */'./settlement-detail'),
meta: {
pageName: '新建页面'
}
};
... ...
<template>
<layout-body>
<layout-filter ref="filter" :model="query">
<filter-item label="SKN编码">
<Input v-model.trim="query.sknCode" :maxlength="9"></Input>
</filter-item>
<filter-item label="商家编码">
<Input v-model.trim="query.prodCode"></Input>
</filter-item>
<filter-item label="商品名称">
<Input v-model.trim="query.prodName"></Input>
</filter-item>
<filter-item label="商品条码">
<Input v-model.trim="query.prodBarCode"></Input>
</filter-item>
<filter-item>
<Button type="primary" @click="search">筛选</Button>
<Button @click="reset">清空条件</Button>
</filter-item>
</layout-filter>
<layout-list>
<Demo></Demo>
<Table border :columns="tableCols" :data="tableData"></Table>
<Page :total="pageData.total" :current="pageData.current"
@on-change="pageChange" :page-size="20" show-total></Page>
</layout-list>
</layout-body>
</template>
<script>
import {Demo} from './components';
export default {
data() {
return {
query: {
sknCode: '',
prodCode: '',
prodName: '',
prodBarCode: '',
category: [],
brand: 0,
saleStatus: 0,
stockStatus: 0
},
pageData: {
total: 0,
current: 1,
},
tableData: [{
col1: '1',
col2: '2'
}, {
col1: '3',
col2: '4'
}, {
col1: '5',
col2: '6'
}],
tableCols: [{
title: '列1',
key: 'col1'
}, {
title: '列2',
key: 'col2'
}, {
title: '操作',
render: (h, params) => {
return (
<action-group>
<i-button type="primary" size="small" onClick={() => this.edit(params.row)}>编辑</i-button>
<i-button type="error" size="small" onClick={() => this.del(params.row)}>删除</i-button>
</action-group>
);
}
}]
};
},
methods: {
search() {
// 在这里实现异步查询的方法,建议在service中做
let params = Object.assign(this.query, this.pageData);
console.log(params);
},
reset() {
this.$refs.filter.reset();
},
pageChange() {
this.search();
},
edit() {},
del() {}
},
components: {Demo}
};
</script>
<style lang="scss">
</style>
... ...
<template>
<div>局部组件</div>
</template>
<script>
export default {
name: 'Demo',
};
</script>
... ...
import Demo from './demo';
export {
Demo
};
... ...
export default {
path: '/list.html',
name: 'list',
component: () => import(/* webpackChunkName: "kol.Settlement-list" */'./settlement-list'),
meta: {
pageName: '新建页面'
}
};
... ...
<template>
<layout-body>
<layout-filter ref="filter" :model="query">
<filter-item label="SKN编码">
<Input v-model.trim="query.sknCode" :maxlength="9"></Input>
</filter-item>
<filter-item label="商家编码">
<Input v-model.trim="query.prodCode"></Input>
</filter-item>
<filter-item label="商品名称">
<Input v-model.trim="query.prodName"></Input>
</filter-item>
<filter-item label="商品条码">
<Input v-model.trim="query.prodBarCode"></Input>
</filter-item>
<filter-item>
<Button type="primary" @click="search">筛选</Button>
<Button @click="reset">清空条件</Button>
</filter-item>
</layout-filter>
<layout-list>
<Demo></Demo>
<Table border :columns="tableCols" :data="tableData"></Table>
<Page :total="pageData.total" :current="pageData.current"
@on-change="pageChange" :page-size="20" show-total></Page>
</layout-list>
</layout-body>
</template>
<script>
import {Demo} from './components';
export default {
data() {
return {
query: {
sknCode: '',
prodCode: '',
prodName: '',
prodBarCode: '',
category: [],
brand: 0,
saleStatus: 0,
stockStatus: 0
},
pageData: {
total: 0,
current: 1,
},
tableData: [{
col1: '1',
col2: '2'
}, {
col1: '3',
col2: '4'
}, {
col1: '5',
col2: '6'
}],
tableCols: [{
title: '列1',
key: 'col1'
}, {
title: '列2',
key: 'col2'
}, {
title: '操作',
render: (h, params) => {
return (
<action-group>
<i-button type="primary" size="small" onClick={() => this.edit(params.row)}>编辑</i-button>
<i-button type="error" size="small" onClick={() => this.del(params.row)}>删除</i-button>
</action-group>
);
}
}]
};
},
methods: {
search() {
// 在这里实现异步查询的方法,建议在service中做
let params = Object.assign(this.query, this.pageData);
console.log(params);
},
reset() {
this.$refs.filter.reset();
},
pageChange() {
this.search();
},
edit() {},
del() {}
},
components: {Demo}
};
</script>
<style lang="scss">
</style>
... ...