|
@@ -143,6 +143,8 @@ import {
|
|
|
getAfterNdoe,
|
|
|
getFormKey,
|
|
|
setFormKey,
|
|
|
+ setFId,
|
|
|
+ getFId,
|
|
|
} from "@packages/bo-utils/myFieldUtil";
|
|
|
import { getActive } from "@packages/bpmn-utils/BpmnDesignerUtils";
|
|
|
import { getForm } from "@/api/dragform/form";
|
|
@@ -154,7 +156,6 @@ import {
|
|
|
} from "@/api/dragform/form.js";
|
|
|
import { getDicts } from "@/api/system/dict/data";
|
|
|
import { mapState } from "vuex";
|
|
|
-
|
|
|
export default {
|
|
|
name: "ElementAfterNode",
|
|
|
data() {
|
|
@@ -168,7 +169,12 @@ export default {
|
|
|
listData: [],
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
+ inject: {
|
|
|
+ getMyFid: {
|
|
|
+ from: "getMyFid",
|
|
|
+ default: "",
|
|
|
+ },
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.initFormData();
|
|
|
EventEmitter.on("element-update", () => {
|
|
@@ -275,7 +281,9 @@ export default {
|
|
|
},
|
|
|
// 编辑回调
|
|
|
async editHandler() {
|
|
|
- let fId = getFormKey(getActive());
|
|
|
+ // let fId = getFId(getActive());
|
|
|
+ let fId = this.getMyFid();
|
|
|
+ console.log(fId);
|
|
|
if (!fId) {
|
|
|
this.$message.warning(`请在'常规信息'中绑定表单`);
|
|
|
return;
|