ui-process-h5 1.3.18 → 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.18",
3
+ "version": "1.3.22",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -9534,9 +9534,8 @@ const fb = {
9534
9534
  watch: {
9535
9535
  visible: {
9536
9536
  async handler(e, s) {
9537
- this.show = e, this.$emit("update:visible", this.show), this.handleOption();
9538
- },
9539
- immediate: !0
9537
+ this.show = e, this.$emit("update:visible", this.show), e && this.handleOption();
9538
+ }
9540
9539
  },
9541
9540
  businessType: {
9542
9541
  handler(e, s) {
@@ -9584,20 +9583,28 @@ const fb = {
9584
9583
  },
9585
9584
  methods: {
9586
9585
  async handleOption() {
9587
- 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", {
9588
9587
  params: {
9589
9588
  appId: this.appId,
9590
9589
  processGroupName: this.processNameData
9591
9590
  }
9592
9591
  }).then((e) => {
9593
- e.code == 200 && (this.option = e.data, this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.getDiagramUrl());
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 = []));
9594
9593
  }));
9595
9594
  },
9596
9595
  async getProcessInstance() {
9597
9596
  this.id && await this.request.get("/aws/pis/getProcessInstanceByBusinessKey", {
9598
9597
  params: { businessKey: this.id }
9599
9598
  }).then((e) => {
9600
- 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
+ }));
9601
9608
  });
9602
9609
  },
9603
9610
  async handlefirstNode(e) {
@@ -9612,7 +9619,7 @@ const fb = {
9612
9619
  });
9613
9620
  },
9614
9621
  async handleChange(e, s) {
9615
- 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();
9616
9623
  },
9617
9624
  async getAfferentParticipantNodeList() {
9618
9625
  await this.request.get("/aws/repository/getAfferentParticipantNodeList", {
@@ -13176,7 +13183,7 @@ const y0 = /* @__PURE__ */ function() {
13176
13183
  c.id
13177
13184
  );
13178
13185
  l && l.length && (await l.map((d, h) => {
13179
- d.nodeName = d.incomingConditionItemList[0].compareValue;
13186
+ d.nodeName = d.incomingConditionItemList && d.incomingConditionItemList.length ? d.incomingConditionItemList[0].compareValue : "";
13180
13187
  }), c.childNode = l);
13181
13188
  }
13182
13189
  }