cloud-web-corejs 1.0.168 → 1.0.169

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.168",
4
+ "version": "1.0.169",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -36,7 +36,7 @@
36
36
  v-for="(item, index) in otherTabList"
37
37
  :key="index"
38
38
  :label="$t2(item.label)"
39
- :name="`otherTab${index}`"
39
+ :name="item.formCode"
40
40
  >
41
41
  <div class="grid-height">
42
42
  <vFormRender
@@ -208,7 +208,25 @@ export default {
208
208
  },
209
209
  });
210
210
  },
211
+ openOtherTab(row, param, option) {
212
+ let dataId = row && row.id ? row.id : null;
213
+ let formCode = option.formCode;
214
+ let otherTab = this.otherTabList.find((item) => item.formCode == formCode);
215
+ this.activeName = formCode;
216
+ this.showEdit = false;
217
+ this.showEditDialog = true;
218
+ otherTab.dataId = dataId;
219
+ otherTab.param = param;
220
+ otherTab.showContent = false;
221
+ this.$nextTick(() => {
222
+ otherTab.showContent = true;
223
+ });
224
+ },
211
225
  openEditDialog(row, param, option) {
226
+ if (option?.otherTab) {
227
+ this.openOtherTab(row, param, option);
228
+ return;
229
+ }
212
230
  if (this.layoutType == "H5") {
213
231
  this.openEditH5Dialog(row);
214
232
  return;
@@ -242,7 +260,7 @@ export default {
242
260
  });
243
261
  } else {
244
262
  this.formCode1 = formCode;
245
- this.activeName = "first";
263
+ this.activeName = option.activeName || "first";
246
264
  this.showEdit = false;
247
265
  this.showEditDialog = true;
248
266
  this.param = param;