ui-process-h5 1.1.23 → 1.1.24

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.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -6646,6 +6646,10 @@ const Te = /* @__PURE__ */ function() {
6646
6646
  manual: {
6647
6647
  type: Boolean,
6648
6648
  default: !1
6649
+ },
6650
+ selfList: {
6651
+ type: Array,
6652
+ default: []
6649
6653
  }
6650
6654
  },
6651
6655
  data() {
@@ -6687,18 +6691,7 @@ const Te = /* @__PURE__ */ function() {
6687
6691
  watch: {
6688
6692
  visible: {
6689
6693
  async handler(e, s) {
6690
- this.show = e, this.$emit("update:visible", this.show), await this.request.get("/aws/repository/getProcessDefList", {
6691
- params: {
6692
- appId: this.appId,
6693
- processGroupName: this.processNameData
6694
- }
6695
- }).then((t) => {
6696
- t.code == 200 && (this.option = t.data, console.log("\u83B7\u53D6\u6D41\u7A0B::", this.option), this.option && this.option.length && this.processNameData && (this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit(
6697
- "change",
6698
- this.checkedItem,
6699
- this.option
6700
- ), this.getAfferentParticipantNodeList(), this.getDiagramUrl(), this.handlefirstNode(this.checkedItem.id), this.getProcessInstance()));
6701
- });
6694
+ this.show = e, this.$emit("update:visible", this.show), this.handleOption();
6702
6695
  },
6703
6696
  immediate: !0
6704
6697
  },
@@ -6732,9 +6725,26 @@ const Te = /* @__PURE__ */ function() {
6732
6725
  },
6733
6726
  immediate: !0,
6734
6727
  deep: !0
6728
+ },
6729
+ selfList: {
6730
+ handler(e, s) {
6731
+ this.option = e;
6732
+ },
6733
+ immediate: !0,
6734
+ deep: !0
6735
6735
  }
6736
6736
  },
6737
6737
  methods: {
6738
+ async handleOption() {
6739
+ this.selfList && this.selfList.length || await this.request.get("/aws/repository/getProcessDefList", {
6740
+ params: {
6741
+ appId: this.appId,
6742
+ processGroupName: this.processNameData
6743
+ }
6744
+ }).then((e) => {
6745
+ e.code == 200 && (this.option = e.data, this.option && this.option.length && this.processNameData && (this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.getAfferentParticipantNodeList(), this.getDiagramUrl(), this.handlefirstNode(this.checkedItem.id), this.getProcessInstance()));
6746
+ });
6747
+ },
6738
6748
  async getProcessInstance() {
6739
6749
  this.id && await this.request.get("/aws/pis/getProcessInstanceByBusinessKey", {
6740
6750
  params: { businessKey: this.id }