Commit 5467ec07 authored by renjintao's avatar renjintao

insert_flag

parent 9e0461c0
...@@ -63,15 +63,31 @@ export default { ...@@ -63,15 +63,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",
}, },
on: { click: () => this.changeFlag(params.row.id, params.index) } on: {
}); click: () => this.changeFlag(params.row.id, params.index)
}
})
]
);
} }
}, },
{ {
...@@ -348,7 +364,7 @@ export default { ...@@ -348,7 +364,7 @@ export default {
Api.getbyorderid(params).then(res => { Api.getbyorderid(params).then(res => {
if (res.success) { if (res.success) {
this.gridHeight = 50; this.gridHeight = 50;
this.gridHeight = (res.result.length +1) * 48; this.gridHeight = (res.result.length + 1) * 48;
this.data1 = res.result; this.data1 = res.result;
} }
}); });
...@@ -422,7 +438,7 @@ export default { ...@@ -422,7 +438,7 @@ export default {
l(key) { l(key) {
let vkey = "mes_op_task_plan_simulate" + "." + key; let vkey = "mes_op_task_plan_simulate" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
}, }
} }
}; };
</script> </script>
......
...@@ -646,7 +646,7 @@ html [type=button] { ...@@ -646,7 +646,7 @@ html [type=button] {
} }
.waitTask { .waitTask {
/*flex 布局*/ /*flex 布局*/
display: flex; display: flex!important;
align-items: center; align-items: center;
width: 200px; width: 200px;
height: 100px; height: 100px;
......
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