Commit 43d1aa05 authored by renjintao's avatar renjintao

inserFlag

parent 7733d9bb
......@@ -65,16 +65,31 @@ export default {
high: true,
width: 60,
render: (h, params) => {
return h("Icon", {
attrs: {
type:
params.row.insert_flag == 1 ? "ios-flag" : "ios-flag-outline",
size: 20,
color: params.row.insert_flag == 1 ? "#2680EB" : "#aaa"
return h(
"Tooltip",
{
props: {
content: params.row.insert_flag == 1 ? "取消插单" : "进行插单",
placement: "top",
},
class:'ico',
},
class: "click-h",
on: { click: () => this.changeFlag(params.row.id, params.index) }
});
[
h("Icon", {
attrs: {
type:
params.row.insert_flag == 1
? "ios-flag"
: "ios-flag-outline",
size: 20,
color: params.row.insert_flag == 1 ? "#2680EB" : "#aaa",
},
on: {
click: () => this.changeFlag(params.row.id, params.index)
}
})
]
);
}
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment