render: (h, params) => {
return h("div", [
h(
"input",
{
props: {
value: params.row.score,
}
},
)
]);
}
render: (h, params) => {
return h("div", [
h(
"Select",
{
props: {
value: params.row.isCanNull,
filterable: true,
clearable: true,
},
on: {
"on-change": event => {
this.listDate[params.index].isCanNull = event;
},
}
},
this.isCanNullList.map((item, itemIndex) => {
return h(
"Option",
{
props: {
value: item.value,
}
},
item.name
);
})
)
]);
}
要先把map类型的数据字典转成普通的数组
render: (h, params) => {
const _this=this;
let dicArr=_this.$helper.mapToArray(_this.dicData[0].data);
return h("div", [
h(
"Select",
{
style: {
width: "100%"
},
props: {
value: params.row.deptRowGuid,
filterable: true,
clearable: true
},
on: {
"on-change": event => {
params.row.deptRowGuid = event;
_this.assessmentIndexList[params.index].deptRowGuid = event;
},
}
},
dicArr.map((item) => {
return h(
"Option",
{
props: {
value: item.key,
key: item.key
}
},
item.value
);
})
)
]);
}