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(
attrs: { "Tooltip",
type: {
params.row.insert_flag == 1 ? "ios-flag" : "ios-flag-outline", props: {
size: 20, content: params.row.insert_flag == 1 ? "取消插单" : "进行插单",
color: params.row.insert_flag == 1 ? "#2680EB" : "#aaa" 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