ui-process-h5 1.3.18 → 1.3.20

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,13 +4095,13 @@ 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.selectDefaultValue = "", this.option = [], 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.getDiagramUrl()) : (this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F", !0, "error"), this.option = []));
4106
4105
  }));
4107
4106
  },
4108
4107
  async getProcessInstance() {