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.
@@ -4046,9 +4046,8 @@ const Uu = Se({
4046
4046
  watch: {
4047
4047
  visible: {
4048
4048
  async handler(e, s) {
4049
- this.show = e, this.$emit("update:visible", this.show), this.handleOption();
4050
- },
4051
- immediate: !0
4049
+ this.show = e, this.$emit("update:visible", this.show), e && this.handleOption();
4050
+ }
4052
4051
  },
4053
4052
  businessType: {
4054
4053
  handler(e, s) {
@@ -4096,20 +4095,28 @@ const Uu = Se({
4096
4095
  },
4097
4096
  methods: {
4098
4097
  async handleOption() {
4099
- this.selfList && this.selfList.length || (this.handleTips("", !0, "loading"), await this.request.get("/aws/repository/getProcessDefList", {
4098
+ this.checkedItem = {}, this.firstPerson = [], this.personList = [], !(this.selfList && this.selfList.length) && (this.handleTips("", !0, "loading"), await this.request.get("/aws/repository/getProcessDefList", {
4100
4099
  params: {
4101
4100
  appId: this.appId,
4102
4101
  processGroupName: this.processNameData
4103
4102
  }
4104
4103
  }).then((e) => {
4105
- 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());
4104
+ 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 = []));
4106
4105
  }));
4107
4106
  },
4108
4107
  async getProcessInstance() {
4109
4108
  this.id && await this.request.get("/aws/pis/getProcessInstanceByBusinessKey", {
4110
4109
  params: { businessKey: this.id }
4111
4110
  }).then((e) => {
4112
- e.code == 200 && (this.processId = e.data.id);
4111
+ e.code == 200 && (this.processId = e.data.id, this.processId && this.option.map((s, i) => {
4112
+ s.id === e.data.processDefId && (this.checkedItem = s, this.selectDefaultValue = this.checkedItem.id, this.$emit(
4113
+ "change",
4114
+ this.checkedItem,
4115
+ this.option
4116
+ ), this.handlefirstNode(
4117
+ this.checkedItem.id
4118
+ ), this.getDiagramUrl());
4119
+ }));
4113
4120
  });
4114
4121
  },
4115
4122
  async handlefirstNode(e) {
@@ -4124,7 +4131,7 @@ const Uu = Se({
4124
4131
  });
4125
4132
  },
4126
4133
  async handleChange(e, s) {
4127
- 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();
4134
+ 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();
4128
4135
  },
4129
4136
  async getAfferentParticipantNodeList() {
4130
4137
  await this.request.get("/aws/repository/getAfferentParticipantNodeList", {
@@ -7389,7 +7396,7 @@ const Zg = /* @__PURE__ */ z(Jg, [["render", Wg], ["__scopeId", "data-v-7c6d9221
7389
7396
  a.id
7390
7397
  );
7391
7398
  l && l.length && (await l.map((m, k) => {
7392
- m.nodeName = m.incomingConditionItemList[0].compareValue;
7399
+ m.nodeName = m.incomingConditionItemList && m.incomingConditionItemList.length ? m.incomingConditionItemList[0].compareValue : "";
7393
7400
  }), a.childNode = l);
7394
7401
  }
7395
7402
  }