cloud-web-corejs 1.0.54-dev.155 → 1.0.54-dev.157
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
@@ -192,12 +192,12 @@ export default {
|
|
192
192
|
if (formConfig.searchDialogUniqueField) {
|
193
193
|
this.fieldKey = formConfig.searchDialogUniqueField;
|
194
194
|
}
|
195
|
-
this.$nextTick(() => {
|
195
|
+
/*this.$nextTick(() => {
|
196
196
|
let widgetList = this.formJson.widgetList;
|
197
197
|
setTimeout(()=>{
|
198
198
|
this.$grid = this.$refs.vFormRef.getWidgetRef(widgetList[0].options.name).getGridTable();
|
199
199
|
},200)
|
200
|
-
})
|
200
|
+
})*/
|
201
201
|
this.initShowFormField();
|
202
202
|
this.showRender = true;
|
203
203
|
|
@@ -205,6 +205,13 @@ export default {
|
|
205
205
|
}
|
206
206
|
});
|
207
207
|
},
|
208
|
+
getGrid(){
|
209
|
+
if(!this.$grid){
|
210
|
+
let widgetList = this.formJson.widgetList;
|
211
|
+
this.$grid = this.$refs.vFormRef.getWidgetRef(widgetList[0].options.name).getGridTable();
|
212
|
+
}
|
213
|
+
return this.$grid;
|
214
|
+
},
|
208
215
|
initShowFormField() {
|
209
216
|
let showFormField = this.formJson.formConfig.searchDialogNameField || null;
|
210
217
|
if (!showFormField) {
|
@@ -323,7 +330,7 @@ export default {
|
|
323
330
|
let selectMulti = this.selectMulti;
|
324
331
|
let row = this.checkRows[index];
|
325
332
|
var rowid = row[fieldKey];
|
326
|
-
let $grid1 = this
|
333
|
+
let $grid1 = this.getGrid();
|
327
334
|
|
328
335
|
let rows = $grid1.getTableData().fullData;
|
329
336
|
let row2 = this.findTreeRowById(rows, rowid);
|
@@ -375,14 +382,14 @@ export default {
|
|
375
382
|
},
|
376
383
|
clearChecked() {
|
377
384
|
if (this.currentLayoutType !== "H5") {
|
378
|
-
let $grid1 = this
|
385
|
+
let $grid1 = this.getGrid();
|
379
386
|
$grid1.clearCheckboxRow();
|
380
387
|
}
|
381
388
|
this.checkRows = [];
|
382
389
|
},
|
383
390
|
checkWithSubmit(obj) {
|
384
391
|
if (!this.selectMulti) {
|
385
|
-
let $grid1 = this
|
392
|
+
let $grid1 = this.getGrid();
|
386
393
|
var rows = $grid1.getCheckboxRecords(true);
|
387
394
|
if (rows && rows.length) {
|
388
395
|
this.dialogSubmit();
|
@@ -274,8 +274,9 @@ export default {
|
|
274
274
|
return !this.designState && label ? this.$t2(label, path, param) : label;
|
275
275
|
},
|
276
276
|
initShowType() {
|
277
|
+
if (!!this.designer)return
|
277
278
|
let that = this.$parent
|
278
|
-
let formRef = that.getFormRef();
|
279
|
+
let formRef = that.getFormRef?that.getFormRef():that;
|
279
280
|
let bdService = formRef.bdService;
|
280
281
|
let companyCode = this.$store.getters.companyCode;
|
281
282
|
let loginAccount = this.$store.getters.loginAccount;
|