ddy-process-h5 1.0.1-rc.3.85 → 1.0.1-rc.3.87

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": "ddy-process-h5",
3
- "version": "1.0.1-rc.3.85",
3
+ "version": "1.0.1-rc.3.87",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ddy-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -18974,6 +18974,22 @@ const jh = /* @__PURE__ */ function() {
18974
18974
  handleSelect() {
18975
18975
  this.$refs.TopDownSelect.handleExpand();
18976
18976
  },
18977
+ async getTaskModelDetail() {
18978
+ this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail", {
18979
+ params: this.taskId ? { processInstId: this.extraParams.processId || this.extraParams.processInstId, taskId: this.taskId } : { processInstId: this.extraParams.processId || this.extraParams.processInstId }
18980
+ }).then((e) => {
18981
+ if (e.code == 200) {
18982
+ this.handleTips("", !1, "success");
18983
+ let t = (e.data || {}).process || {};
18984
+ this.checkedItem = {
18985
+ id: t.processDefinitionId,
18986
+ key: t.processDefinitionKey,
18987
+ name: t.processDefinitionName,
18988
+ version: t.processDefinitionVersion
18989
+ }, this.option = [this.checkedItem], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id), this.businessDeptIdData || this.getNodeUserDept();
18990
+ }
18991
+ });
18992
+ },
18977
18993
  async handleOption() {
18978
18994
  if (this.checkedItem = {}, this.firstPerson = [], this.personList = [], this.selfList && this.selfList.length)
18979
18995
  return;
@@ -18985,7 +19001,11 @@ const jh = /* @__PURE__ */ function() {
18985
19001
  processGroupName: this.processNameData,
18986
19002
  ...this.extraParams
18987
19003
  };
18988
- this.processNameData && delete e.processGroupName, await this.request.post("/bladex/blade-workflow/repository/getProcessDefList", e).then((t) => {
19004
+ if (this.processNameData && delete e.processGroupName, this.extraParams.processId || this.extraParams.processInstId) {
19005
+ this.getTaskModelDetail();
19006
+ return;
19007
+ }
19008
+ await this.request.post("/bladex/blade-workflow/repository/getProcessDefList", e).then((t) => {
18989
19009
  t.code == 200 && (this.option = t.data, t.data && t.data.length ? (this.handleTips("", !1, "success"), (this.isSelectFirst || t.data.length == 1) && (this.checkedItem = this.option[0], this.selectDefaultValue = this.checkedItem.id, this.$emit("change", this.checkedItem, this.option), this.handlefirstNode(this.checkedItem.id))) : (this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F", !0, "error"), this.option = []), this.businessDeptIdData || this.getNodeUserDept());
18990
19010
  });
18991
19011
  },
@@ -25052,7 +25072,7 @@ function mT(e) {
25052
25072
  }
25053
25073
  const ST = /* @__PURE__ */ function() {
25054
25074
  return fT.exports;
25055
- }(), gT = "ddy-process-h5", yT = "1.0.1-rc.3.85", vT = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", AT = "./ddy-process-h5.umd.cjs", bT = "./style.css", CT = "module", wT = {
25075
+ }(), gT = "ddy-process-h5", yT = "1.0.1-rc.3.87", vT = "> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6", AT = "./ddy-process-h5.umd.cjs", bT = "./style.css", CT = "module", wT = {
25056
25076
  ".": {
25057
25077
  import: "./ddy-process-h5.js",
25058
25078
  require: "./ddy-process-h5.umd.cjs"