ui-process-h5 1.3.20 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-process-h5",
3
- "version": "1.3.20",
3
+ "version": "1.3.22",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -9583,20 +9583,28 @@ const fb = {
9583
9583
  },
9584
9584
  methods: {
9585
9585
  async handleOption() {
9586
- this.checkedItem = {}, this.selectDefaultValue = "", this.option = [], this.firstPerson = [], this.personList = [], !(this.selfList && this.selfList.length) && (this.handleTips("", !0, "loading"), await this.request.get("/aws/repository/getProcessDefList", {
9586
+ this.checkedItem = {}, this.firstPerson = [], this.personList = [], !(this.selfList && this.selfList.length) && (this.handleTips("", !0, "loading"), await this.request.get("/aws/repository/getProcessDefList", {
9587
9587
  params: {
9588
9588
  appId: this.appId,
9589
9589
  processGroupName: this.processNameData
9590
9590
  }
9591
9591
  }).then((e) => {
9592
- e.code == 200 && (this.option = e.data, e.data && e.data.length ? (this.handleTips("", !0, "success"), this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.getDiagramUrl()) : (this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F", !0, "error"), this.option = []));
9592
+ e.code == 200 && (this.option = e.data, e.data && e.data.length ? (this.handleTips("", !0, "success"), this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.getProcessInstance(), this.getDiagramUrl()) : (this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F", !0, "error"), this.option = []));
9593
9593
  }));
9594
9594
  },
9595
9595
  async getProcessInstance() {
9596
9596
  this.id && await this.request.get("/aws/pis/getProcessInstanceByBusinessKey", {
9597
9597
  params: { businessKey: this.id }
9598
9598
  }).then((e) => {
9599
- e.code == 200 && (this.processId = e.data.id);
9599
+ e.code == 200 && (this.processId = e.data.id, this.processId && this.option.map((s, i) => {
9600
+ s.id === e.data.processDefId && (this.checkedItem = s, this.selectDefaultValue = this.checkedItem.id, this.$emit(
9601
+ "change",
9602
+ this.checkedItem,
9603
+ this.option
9604
+ ), this.handlefirstNode(
9605
+ this.checkedItem.id
9606
+ ), this.getDiagramUrl());
9607
+ }));
9600
9608
  });
9601
9609
  },
9602
9610
  async handlefirstNode(e) {
@@ -9611,7 +9619,7 @@ const fb = {
9611
9619
  });
9612
9620
  },
9613
9621
  async handleChange(e, s) {
9614
- this.handleTips("", !0, "loading"), console.log("\u5F53\u524D\u9009\u62E9::::", e, s), this.checkedItem = e, this.handlefirstNode(this.checkedItem.id), this.getProcessInstance(), this.getDiagramUrl(), this.$emit("change", e, s), this.$refs.topTips.handleClose();
9622
+ this.handleTips("", !0, "loading"), console.log("\u5F53\u524D\u9009\u62E9::::", e, s), this.checkedItem = e, this.handlefirstNode(this.checkedItem.id), this.getDiagramUrl(), this.$emit("change", e, s), this.$refs.topTips.handleClose();
9615
9623
  },
9616
9624
  async getAfferentParticipantNodeList() {
9617
9625
  await this.request.get("/aws/repository/getAfferentParticipantNodeList", {
@@ -13175,7 +13183,7 @@ const y0 = /* @__PURE__ */ function() {
13175
13183
  c.id
13176
13184
  );
13177
13185
  l && l.length && (await l.map((d, h) => {
13178
- d.nodeName = d.incomingConditionItemList[0].compareValue;
13186
+ d.nodeName = d.incomingConditionItemList && d.incomingConditionItemList.length ? d.incomingConditionItemList[0].compareValue : "";
13179
13187
  }), c.childNode = l);
13180
13188
  }
13181
13189
  }