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.
package/v2.7/ui-process-h5.js
CHANGED
|
@@ -8570,9 +8570,8 @@ const py = {
|
|
|
8570
8570
|
watch: {
|
|
8571
8571
|
visible: {
|
|
8572
8572
|
async handler(e, i) {
|
|
8573
|
-
this.show = e, this.$emit("update:visible", this.show), this.handleOption();
|
|
8574
|
-
}
|
|
8575
|
-
immediate: !0
|
|
8573
|
+
this.show = e, this.$emit("update:visible", this.show), e && this.handleOption();
|
|
8574
|
+
}
|
|
8576
8575
|
},
|
|
8577
8576
|
businessType: {
|
|
8578
8577
|
handler(e, i) {
|
|
@@ -8620,13 +8619,13 @@ const py = {
|
|
|
8620
8619
|
},
|
|
8621
8620
|
methods: {
|
|
8622
8621
|
async handleOption() {
|
|
8623
|
-
this.selfList && this.selfList.length
|
|
8622
|
+
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", {
|
|
8624
8623
|
params: {
|
|
8625
8624
|
appId: this.appId,
|
|
8626
8625
|
processGroupName: this.processNameData
|
|
8627
8626
|
}
|
|
8628
8627
|
}).then((e) => {
|
|
8629
|
-
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());
|
|
8628
|
+
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 = []));
|
|
8630
8629
|
}));
|
|
8631
8630
|
},
|
|
8632
8631
|
async getProcessInstance() {
|