修改佣金发放时间
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
</el-row>
|
||||
<!-- 搜索表单 -->
|
||||
<user-search @search="reload" />
|
||||
<user-search @search="reload"/>
|
||||
<!-- 数据表格 -->
|
||||
<ele-pro-table
|
||||
ref="table"
|
||||
@@ -35,85 +35,93 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import UserSearch from './components/user-search.vue';
|
||||
import { pageCmmssn } from '@/api/user/cmmssn';
|
||||
import UserSearch from './components/user-search.vue'
|
||||
import { pageCmmssn } from '@/api/user/cmmssn'
|
||||
|
||||
export default {
|
||||
name: 'SystemUser',
|
||||
components: {
|
||||
UserSearch
|
||||
export default {
|
||||
name: 'SystemUser',
|
||||
components: {
|
||||
UserSearch
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 表格列配置
|
||||
columns: [
|
||||
{
|
||||
prop: 'cluesCid',
|
||||
label: '线索编号',
|
||||
showOverflowTooltip: true,
|
||||
align: 'center',
|
||||
slot: 'fromCn',
|
||||
width: 220,
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
prop: 'brandSeries',
|
||||
label: '来源车型',
|
||||
showOverflowTooltip: true,
|
||||
align: 'center',
|
||||
minWidth: 100
|
||||
},
|
||||
{
|
||||
prop: 'typeCn',
|
||||
label: '类型',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80,
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'money',
|
||||
label: '金额',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80,
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'cluesTime',
|
||||
label: '线索时间',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
resizable: false,
|
||||
showOverflowTooltip: true
|
||||
}, {
|
||||
prop: 'ifSendCn',
|
||||
label: '是否发放',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80,
|
||||
align: 'center'
|
||||
},
|
||||
],
|
||||
tabPosition: '1',
|
||||
money: 0,
|
||||
showTeam: 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/* 表格数据源 */
|
||||
async datasource({ page, limit, where, order }) {
|
||||
where.type = this.tabPosition
|
||||
const result = await pageCmmssn({ ...where, ...order, page, limit })
|
||||
this.money = result.money
|
||||
this.showTeam = result.showTeam
|
||||
return result
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 表格列配置
|
||||
columns: [
|
||||
{
|
||||
prop: 'cluesCid',
|
||||
label: '线索编号',
|
||||
showOverflowTooltip: true,
|
||||
align: 'center',
|
||||
slot: 'fromCn'
|
||||
},
|
||||
{
|
||||
prop: 'brandSeries',
|
||||
label: '来源车型',
|
||||
showOverflowTooltip: true,
|
||||
align: 'center',
|
||||
minWidth: 100
|
||||
},
|
||||
{
|
||||
prop: 'typeCn',
|
||||
label: '类型',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80,
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'money',
|
||||
label: '金额',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80,
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'cluesTime',
|
||||
label: '线索时间',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
resizable: false,
|
||||
showOverflowTooltip: true
|
||||
}
|
||||
],
|
||||
tabPosition: '1',
|
||||
money: 0,
|
||||
showTeam: 0
|
||||
};
|
||||
/* 刷新表格 */
|
||||
reload(where) {
|
||||
this.$refs.table.reload({ page: 1, where: where })
|
||||
},
|
||||
methods: {
|
||||
/* 表格数据源 */
|
||||
async datasource({ page, limit, where, order }) {
|
||||
where.type = this.tabPosition;
|
||||
const result = await pageCmmssn({ ...where, ...order, page, limit });
|
||||
this.money = result.money;
|
||||
this.showTeam = result.showTeam;
|
||||
return result;
|
||||
},
|
||||
/* 刷新表格 */
|
||||
reload(where) {
|
||||
this.$refs.table.reload({ page: 1, where: where });
|
||||
},
|
||||
handleOptionChange() {
|
||||
console.log(this.tabPosition);
|
||||
this.reload();
|
||||
},
|
||||
goDetail(row) {
|
||||
const path = row.from.url;
|
||||
if (path) {
|
||||
this.$router.push({
|
||||
path
|
||||
});
|
||||
}
|
||||
handleOptionChange() {
|
||||
console.log(this.tabPosition)
|
||||
this.reload()
|
||||
},
|
||||
goDetail(row) {
|
||||
const path = row.from.url
|
||||
if (path) {
|
||||
this.$router.push({
|
||||
path
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user