...
先引入DWF传入的变量:props: ["itemValue", "root", "store", "Message"],然后利用,this.root.openTab(opr)实现打开DWF表单的目的。
具体代码如下:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
export default {
...
props: ["itemValue", "root", "store", "Message"], // 从DWF传入的一些常量
...
methods: {
openWorkOrder(wo) {
// 打开工单对象
let opr = {
targetClass: 'WorkOrder', // 设定目标类的名字
authority: 'editWO', // 设定需要执行的操作英文名
conditionExpre: `and obj.oid = '${wo.oid}'`, // 打开当前被传入的工单
displayName: '工单详情', // 设置弹出页签的标题
viewName: 'SingleWO', // 打开对象的表单名
action: 'edit', // 打开页签对应的动作:edit, visit, create
params: "" // 前后处理设置
};
// 打开工单对象
this.root.openTab(opr);
},
...
},
} |
...