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/package.json
CHANGED
package/v2/ui-process-h5.js
CHANGED
|
@@ -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,13 +9583,13 @@ const fb = {
|
|
|
9584
9583
|
},
|
|
9585
9584
|
methods: {
|
|
9586
9585
|
async handleOption() {
|
|
9587
|
-
this.selfList && this.selfList.length
|
|
9586
|
+
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", {
|
|
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.getDiagramUrl()) : (this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F", !0, "error"), this.option = []));
|
|
9594
9593
|
}));
|
|
9595
9594
|
},
|
|
9596
9595
|
async getProcessInstance() {
|