cloud-web-corejs 1.0.169 → 1.0.171

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.169",
4
+ "version": "1.0.171",
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="item.formCode"
39
+ :name="`otherTab${index}`"
40
40
  >
41
41
  <div class="grid-height">
42
42
  <vFormRender
@@ -212,14 +212,18 @@ export default {
212
212
  let dataId = row && row.id ? row.id : null;
213
213
  let formCode = option.formCode;
214
214
  let otherTab = this.otherTabList.find((item) => item.formCode == formCode);
215
- this.activeName = formCode;
216
- this.showEdit = false;
217
- this.showEditDialog = true;
215
+ let otherTabIndex = this.otherTabList.findIndex(
216
+ (item) => item.formCode == formCode
217
+ );
218
+ this.activeName = `otherTab${otherTabIndex}`;
219
+
218
220
  otherTab.dataId = dataId;
219
221
  otherTab.param = param;
220
- otherTab.showContent = false;
221
222
  this.$nextTick(() => {
222
- otherTab.showContent = true;
223
+ otherTab.showContent = false;
224
+ this.$nextTick(() => {
225
+ otherTab.showContent = true;
226
+ });
223
227
  });
224
228
  },
225
229
  openEditDialog(row, param, option) {