mooho-base-admin-plus 0.4.22 → 0.4.23
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.
|
@@ -20918,98 +20918,100 @@ const _sfc_main$1k = {
|
|
|
20918
20918
|
this.isRedirectable = this.task.activityInst.activity.isRedirectable;
|
|
20919
20919
|
this.isMessageEnable = this.task.processInst.isMessageEnable;
|
|
20920
20920
|
this.isCustom = false;
|
|
20921
|
-
|
|
20922
|
-
|
|
20923
|
-
|
|
20924
|
-
|
|
20925
|
-
|
|
20926
|
-
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
|
|
20936
|
-
this.form.clearValidate();
|
|
20937
|
-
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20938
|
-
if (this.form.formView) {
|
|
20939
|
-
this.width = this.form.formView.width || "800";
|
|
20940
|
-
this.name = this.form.formView.name;
|
|
20941
|
-
this.description = this.form.formView.description;
|
|
20942
|
-
}
|
|
20943
|
-
this.opened = true;
|
|
20944
|
-
});
|
|
20945
|
-
} else if (this.task.activityInst.activity.pageMode == "Form") {
|
|
20946
|
-
this.form = this.$refs.form;
|
|
20947
|
-
this.form.init(this.task.activityInst.activity.formViewCode, async (view) => {
|
|
20948
|
-
if (view.dataView.isCustom) {
|
|
20949
|
-
this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20950
|
-
} else {
|
|
20951
|
-
this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20952
|
-
}
|
|
20953
|
-
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20954
|
-
this.width = this.form.formView.width || "800";
|
|
20955
|
-
this.name = this.form.formView.name;
|
|
20956
|
-
this.description = this.form.formView.description;
|
|
20957
|
-
this.form.data = this.model;
|
|
20958
|
-
setTimeout(() => {
|
|
20921
|
+
setTimeout(async () => {
|
|
20922
|
+
if (this.task.activityInst.activity.pageMode == "Page") {
|
|
20923
|
+
this.$router.push({ path: this.task.activityInst.activity.routerPath, query: { taskID: row.id } });
|
|
20924
|
+
return;
|
|
20925
|
+
} else if (this.task.activityInst.activity.pageMode == "Component") {
|
|
20926
|
+
this.customComponent = this.$pages[this.task.activityInst.activity.templateUrl];
|
|
20927
|
+
this.isCustom = true;
|
|
20928
|
+
setTimeout(async () => {
|
|
20929
|
+
if (applicationType2.isCustom) {
|
|
20930
|
+
this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20931
|
+
} else {
|
|
20932
|
+
this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20933
|
+
}
|
|
20934
|
+
this.form = this.$refs.customComponent.form;
|
|
20935
|
+
this.form.data = this.model;
|
|
20959
20936
|
this.form.onDataChange();
|
|
20960
20937
|
this.form.clearValidate();
|
|
20938
|
+
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20939
|
+
if (this.form.formView) {
|
|
20940
|
+
this.width = this.form.formView.width || "800";
|
|
20941
|
+
this.name = this.form.formView.name;
|
|
20942
|
+
this.description = this.form.formView.description;
|
|
20943
|
+
}
|
|
20961
20944
|
this.opened = true;
|
|
20962
20945
|
});
|
|
20963
|
-
})
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20967
|
-
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20973
|
-
} else {
|
|
20974
|
-
this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20975
|
-
}
|
|
20976
|
-
this.form = this.$refs.customComponent.form;
|
|
20977
|
-
this.form.data = this.model;
|
|
20978
|
-
this.form.onDataChange();
|
|
20979
|
-
this.form.clearValidate();
|
|
20980
|
-
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20981
|
-
if (this.form.formView) {
|
|
20946
|
+
} else if (this.task.activityInst.activity.pageMode == "Form") {
|
|
20947
|
+
this.form = this.$refs.form;
|
|
20948
|
+
this.form.init(this.task.activityInst.activity.formViewCode, async (view) => {
|
|
20949
|
+
if (view.dataView.isCustom) {
|
|
20950
|
+
this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20951
|
+
} else {
|
|
20952
|
+
this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20953
|
+
}
|
|
20954
|
+
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20982
20955
|
this.width = this.form.formView.width || "800";
|
|
20983
20956
|
this.name = this.form.formView.name;
|
|
20984
20957
|
this.description = this.form.formView.description;
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
20995
|
-
|
|
20996
|
-
this.
|
|
20997
|
-
this.
|
|
20998
|
-
|
|
20999
|
-
|
|
21000
|
-
|
|
21001
|
-
|
|
20958
|
+
this.form.data = this.model;
|
|
20959
|
+
setTimeout(async () => {
|
|
20960
|
+
this.form.onDataChange();
|
|
20961
|
+
this.form.clearValidate();
|
|
20962
|
+
this.opened = true;
|
|
20963
|
+
});
|
|
20964
|
+
});
|
|
20965
|
+
} else if (applicationType2.pageMode == "Page") {
|
|
20966
|
+
this.$router.push({ path: applicationType2.routerPath, query: { taskID: row.id } });
|
|
20967
|
+
return;
|
|
20968
|
+
} else if (applicationType2.pageMode == "Component") {
|
|
20969
|
+
this.customComponent = this.$pages[applicationType2.templateUrl];
|
|
20970
|
+
this.isCustom = true;
|
|
20971
|
+
setTimeout(async () => {
|
|
20972
|
+
if (applicationType2.isCustom) {
|
|
20973
|
+
this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20974
|
+
} else {
|
|
20975
|
+
this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20976
|
+
}
|
|
20977
|
+
this.form = this.$refs.customComponent.form;
|
|
20978
|
+
this.form.data = this.model;
|
|
21002
20979
|
this.form.onDataChange();
|
|
21003
20980
|
this.form.clearValidate();
|
|
20981
|
+
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20982
|
+
if (this.form.formView) {
|
|
20983
|
+
this.width = this.form.formView.width || "800";
|
|
20984
|
+
this.name = this.form.formView.name;
|
|
20985
|
+
this.description = this.form.formView.description;
|
|
20986
|
+
}
|
|
21004
20987
|
this.opened = true;
|
|
21005
20988
|
});
|
|
21006
|
-
})
|
|
21007
|
-
|
|
21008
|
-
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
|
|
21012
|
-
|
|
20989
|
+
} else if (applicationType2.pageMode == "Form") {
|
|
20990
|
+
this.form = this.$refs.form;
|
|
20991
|
+
this.form.init(applicationType2.formViewCode, async (view) => {
|
|
20992
|
+
if (view.dataView.isCustom) {
|
|
20993
|
+
this.model = await customModelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20994
|
+
} else {
|
|
20995
|
+
this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
|
|
20996
|
+
}
|
|
20997
|
+
this.readonly = !this.task.activityInst.activity.isEditable;
|
|
20998
|
+
this.width = this.form.formView.width || "800";
|
|
20999
|
+
this.name = this.form.formView.name;
|
|
21000
|
+
this.description = this.form.formView.description;
|
|
21001
|
+
this.form.data = this.model;
|
|
21002
|
+
setTimeout(() => {
|
|
21003
|
+
this.form.onDataChange();
|
|
21004
|
+
this.form.clearValidate();
|
|
21005
|
+
this.opened = true;
|
|
21006
|
+
});
|
|
21007
|
+
});
|
|
21008
|
+
} else {
|
|
21009
|
+
this.error("Front_Msg_Setting_Error");
|
|
21010
|
+
return;
|
|
21011
|
+
}
|
|
21012
|
+
let res2 = await modelApi.query("Outcome", { activityFromID: row.activityInst.activityID });
|
|
21013
|
+
this.outcomes = res2.data;
|
|
21014
|
+
});
|
|
21013
21015
|
},
|
|
21014
21016
|
async action(outcome) {
|
|
21015
21017
|
let isOK = await this.form.validate();
|