cloud-web-corejs-haier 1.0.36 → 1.0.38

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-haier",
3
3
  "private": false,
4
- "version": "1.0.36",
4
+ "version": "1.0.38",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -120,7 +120,9 @@ export default {
120
120
  let datas = $grid.getTableData().tableData;
121
121
  let fieldKey = this.fieldKey;
122
122
  this.checkRows.forEach((checkRow) => {
123
- let row = datas.find((row) => row[fieldKey] == checkRow[fieldKey]);
123
+ let row = datas.find(
124
+ (row) => row[fieldKey] == checkRow[fieldKey]
125
+ );
124
126
  if (row) {
125
127
  $grid.setCheckboxRow(row, true);
126
128
  }
@@ -168,7 +170,9 @@ export default {
168
170
  width: "1200px",
169
171
  fullscreen: this.option.fullscreen,
170
172
  };
171
- config = Object.assign({}, config, this.option.dialogConfig, { customClass });
173
+ config = Object.assign({}, config, this.option.dialogConfig, {
174
+ customClass,
175
+ });
172
176
  config.title = this.$t1(config.title);
173
177
  return config;
174
178
  },
@@ -181,7 +185,9 @@ export default {
181
185
  if (this.option.showFooter == false) {
182
186
  classStr = classStr + " nfootBtn";
183
187
  }
184
- config = Object.assign({}, config, this.option.bodyConfig, { class: classStr });
188
+ config = Object.assign({}, config, this.option.bodyConfig, {
189
+ class: classStr,
190
+ });
185
191
  return config;
186
192
  },
187
193
  },
@@ -233,7 +239,9 @@ export default {
233
239
  : {};
234
240
  this.layoutType = this.formJson.formConfig.layoutType;
235
241
  let formConfig = this.formJson.formConfig;
236
- if (formConfig.searchDialogUniqueField) {
242
+ if (this.option.fieldKey) {
243
+ this.fieldKey = this.option.fieldKey;
244
+ } else if (formConfig.searchDialogUniqueField) {
237
245
  this.fieldKey = formConfig.searchDialogUniqueField;
238
246
  }
239
247
  /*this.$nextTick(() => {
@@ -268,7 +276,8 @@ export default {
268
276
  return this.$grid;
269
277
  },
270
278
  initShowFormField() {
271
- let showFormField = this.formJson.formConfig.searchDialogNameField || null;
279
+ let showFormField =
280
+ this.formJson.formConfig.searchDialogNameField || null;
272
281
  if (!showFormField) {
273
282
  // let widgetList = this.formJson.widgetList;
274
283
  let dataTableWidget = this.getDataTableWidget();