ui-process-h5 1.3.28 → 1.3.29

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.3.28",
3
+ "version": "1.3.29",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -13132,6 +13132,14 @@ const y0 = /* @__PURE__ */ function() {
13132
13132
  }
13133
13133
  },
13134
13134
  methods: {
13135
+ handleGetHeight() {
13136
+ this.$nextTick(() => {
13137
+ setTimeout(() => {
13138
+ let e = document.getElementById("process-header"), s = document.getElementById("process-footer");
13139
+ this.bottomNum = s ? s.scrollHeight + 10 : 70, this.topNum = e ? e.scrollHeight + 10 : 144, console.log(this.bottomNum, "diss::", this.topNum);
13140
+ }, 1e3);
13141
+ });
13142
+ },
13135
13143
  handleTestsss(e, s) {
13136
13144
  console.log("==========:::", e, s);
13137
13145
  },
@@ -13208,7 +13216,9 @@ const y0 = /* @__PURE__ */ function() {
13208
13216
  taskId: this.taskNode.length ? this.taskNode[0].taskId : ""
13209
13217
  }
13210
13218
  }).then((e) => {
13211
- e.code == 200 && (this.processStatus = e.data, this.$emit("processStatus", this.processStatus), this.processStatus.userNodeGroup && this.processStatus.userNodeGroup[this.taskNode[0].nodeName] && this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length > 1 ? this.canCheck = !1 : this.canCheck = !0);
13219
+ e.code == 200 && (this.processStatus = e.data, this.$emit("processStatus", this.processStatus), this.processStatus.userNodeGroup && this.processStatus.userNodeGroup[this.taskNode[0].nodeName] && this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length > 1 ? this.canCheck = !1 : this.canCheck = !0), this.handleGetHeight();
13220
+ }).catch((e) => {
13221
+ this.handleGetHeight();
13212
13222
  });
13213
13223
  },
13214
13224
  handleGetUserTaskModel() {
@@ -13217,20 +13227,9 @@ const y0 = /* @__PURE__ */ function() {
13217
13227
  taskId: this.taskNode[0].taskId
13218
13228
  }
13219
13229
  }).then((e) => {
13220
- e.code == 200 && (this.taskObj = e.data, this.$nextTick(() => {
13221
- setTimeout(() => {
13222
- let s = document.getElementById(
13223
- "process-header"
13224
- ), i = document.getElementById(
13225
- "process-footer"
13226
- );
13227
- this.bottomNum = i ? i.scrollHeight + 10 : 70, this.topNum = s ? s.scrollHeight + 10 : 144, console.log(
13228
- this.bottomNum,
13229
- "diss::",
13230
- this.topNum
13231
- );
13232
- }, 1e3);
13233
- }), this.$refs.topTips.handleClose());
13230
+ e.code == 200 && (this.taskObj = e.data), this.handleGetHeight(), this.$refs.topTips.handleClose();
13231
+ }).catch((e) => {
13232
+ this.handleGetHeight();
13234
13233
  });
13235
13234
  },
13236
13235
  async showOperation(e, s, i, a) {