Commit 43d1aa05 authored by renjintao's avatar renjintao

inserFlag

parent 7733d9bb
...@@ -65,16 +65,31 @@ export default { ...@@ -65,16 +65,31 @@ export default {
high: true, high: true,
width: 60, width: 60,
render: (h, params) => { render: (h, params) => {
return h("Icon", { return h(
"Tooltip",
{
props: {
content: params.row.insert_flag == 1 ? "取消插单" : "进行插单",
placement: "top",
},
class:'ico',
},
[
h("Icon", {
attrs: { attrs: {
type: type:
params.row.insert_flag == 1 ? "ios-flag" : "ios-flag-outline", params.row.insert_flag == 1
? "ios-flag"
: "ios-flag-outline",
size: 20, size: 20,
color: params.row.insert_flag == 1 ? "#2680EB" : "#aaa" color: params.row.insert_flag == 1 ? "#2680EB" : "#aaa",
}, },
class: "click-h", on: {
on: { click: () => this.changeFlag(params.row.id, params.index) } 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