cloud-web-corejs 1.0.168 → 1.0.170

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.170",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -208,7 +208,28 @@ 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
+ let otherTabIndex = this.otherTabList.findIndex(
216
+ (item) => item.formCode == formCode
217
+ );
218
+ this.activeName = `otherTab${otherTabIndex}`;
219
+ this.showEdit = false;
220
+ this.showEditDialog = true;
221
+ otherTab.dataId = dataId;
222
+ otherTab.param = param;
223
+ otherTab.showContent = false;
224
+ this.$nextTick(() => {
225
+ otherTab.showContent = true;
226
+ });
227
+ },
211
228
  openEditDialog(row, param, option) {
229
+ if (option?.otherTab) {
230
+ this.openOtherTab(row, param, option);
231
+ return;
232
+ }
212
233
  if (this.layoutType == "H5") {
213
234
  this.openEditH5Dialog(row);
214
235
  return;
@@ -242,7 +263,7 @@ export default {
242
263
  });
243
264
  } else {
244
265
  this.formCode1 = formCode;
245
- this.activeName = "first";
266
+ this.activeName = option.activeName || "first";
246
267
  this.showEdit = false;
247
268
  this.showEditDialog = true;
248
269
  this.param = param;