{
title: "提成",
key: "configure",
align: "center",
render: (h, params) => {
let that = this;
let centsType = params.row.centsType;
let list = [];
if (centsType == 3) {
//讲师
list = this.teachList;
let options = list.map(item => {
return h("i-option", {
props: {
value: item.lecturerId,
label: item.lecturerName
}
}); //i-option
});
return h(
"i-select",
{
props: {
filterable: true,
clearable: true
},
on: {
["on-change"](v) {
that.dividemoneydata[params.index].configure = v;
}
}
},
options
); //i-select
} else if (centsType == 1) {
//公司
list = this.companylist;
let options = list.map(item => {
return h("i-option", {
props: {
value: item.belongFirm,
label: item.belongFirmName
}
}); //i-option
});
return h(
"i-select",
{
props: {
filterable: true,
clearable: true
},
on: {
["on-change"](v) {
that.dividemoneydata[params.index].configure = v;
}
}
},
options
); //i-select
} else if (centsType == 5) {//职位
list = this.postlist;
let options = list.map(item => {
return h("i-option", {
props: {
value: item.positionId,
label: item.positionName
}
}); //i-option
});
return h(
"i-select",
{
props: {
filterable: true,
clearable: true
},
on: {
["on-change"](v) {
that.dividemoneydata[params.index].configure = v;
}
}
},
options
); //i-select
}
}
},