add 混料批次
This commit is contained in:
@@ -164,7 +164,7 @@ export default {
|
||||
},
|
||||
|
||||
/** 处理 表格操作 */
|
||||
handleOperate({ type, data }) {
|
||||
handleOperate({ type, data, toRouter }) {
|
||||
console.log("payload", type, data);
|
||||
// 编辑、删除、跳转路由、打开弹窗(动态component)都可以在配置里加上 url
|
||||
// payload: { type: string, data: string | number | object }
|
||||
@@ -209,6 +209,15 @@ export default {
|
||||
this.openDialog(data, true);
|
||||
break;
|
||||
}
|
||||
case 'view-batch': {
|
||||
this.$router.push({
|
||||
name: toRouter,
|
||||
params: {
|
||||
id: data // 混料订单id
|
||||
}
|
||||
})
|
||||
break;
|
||||
}
|
||||
case "detach": {
|
||||
return this.$http
|
||||
.post(this.urls.detach, data /* { id: data } */, { headers: { "Content-Type": "application/json" } })
|
||||
|
||||
Reference in New Issue
Block a user