cloud-web-corejs 1.0.54-dev.170 → 1.0.54-dev.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
@@ -468,7 +468,7 @@ modules = {
|
|
468
468
|
}
|
469
469
|
},
|
470
470
|
getOptionKey(){
|
471
|
-
let key =
|
471
|
+
let key = "optionItems-"+ this.field.options.name
|
472
472
|
return key;
|
473
473
|
},
|
474
474
|
async initOptionItems(keepSelected) {
|
@@ -492,11 +492,13 @@ modules = {
|
|
492
492
|
if(tableParam){
|
493
493
|
// tableParam.column.params.optionItems
|
494
494
|
let key = this.getOptionKey();
|
495
|
-
let optionItems = tableParam.column.params[key];
|
495
|
+
// let optionItems = tableParam.column.params[key];
|
496
|
+
let optionItems = this.getGlobalParam(key);
|
496
497
|
if(optionItems!==undefined){
|
497
498
|
return
|
498
499
|
}
|
499
|
-
tableParam.column.params[key] = null
|
500
|
+
// tableParam.column.params[key] = null
|
501
|
+
// this.setGlobalParam(key,null)
|
500
502
|
}
|
501
503
|
let accessParam = this.handleCustomEvent(
|
502
504
|
this.field.options.formScriptParam
|
@@ -527,11 +529,13 @@ modules = {
|
|
527
529
|
if(tableParam){
|
528
530
|
// tableParam.column.params.optionItems
|
529
531
|
let key = this.getOptionKey();
|
530
|
-
let optionItems = tableParam.column.params[key];
|
532
|
+
// let optionItems = tableParam.column.params[key];
|
533
|
+
let optionItems = this.getGlobalParam(key);
|
531
534
|
if(optionItems!==undefined){
|
532
535
|
return
|
533
536
|
}
|
534
|
-
tableParam.column.params[key] = null
|
537
|
+
// tableParam.column.params[key] = null
|
538
|
+
// this.setGlobalParam(key,null)
|
535
539
|
}
|
536
540
|
this.$getBaseDicts({
|
537
541
|
code: commonAttributeCode,
|
@@ -1118,7 +1122,7 @@ modules = {
|
|
1118
1122
|
? (this.fieldModel = [])
|
1119
1123
|
: (this.fieldModel = ""));
|
1120
1124
|
},
|
1121
|
-
|
1125
|
+
loadRowGloatOptions: function (e) {
|
1122
1126
|
let optionItems = baseRefUtil.translateOptionItems(
|
1123
1127
|
e,
|
1124
1128
|
this.field.type,
|
@@ -1138,7 +1142,8 @@ modules = {
|
|
1138
1142
|
let tableParam = this.tableParam;
|
1139
1143
|
if(tableParam){
|
1140
1144
|
let key = this.getOptionKey()
|
1141
|
-
tableParam.column.params[key] = optionItems;
|
1145
|
+
// tableParam.column.params[key] = optionItems;
|
1146
|
+
// this.setGlobalParam(key,optionItems)
|
1142
1147
|
// tableParam.column.params.optionItems = optionItems;
|
1143
1148
|
tableParam.column.params.rowOptionFlag = rowOptionFlag
|
1144
1149
|
}
|
@@ -1170,13 +1175,14 @@ modules = {
|
|
1170
1175
|
// return this.field.options.optionItems;
|
1171
1176
|
let tableParam = this.tableParam;
|
1172
1177
|
let optionItems = this.field.options.optionItems;
|
1173
|
-
if(tableParam){
|
1178
|
+
/*if(tableParam){
|
1174
1179
|
let key = this.getOptionKey();
|
1175
|
-
let rows = tableParam.column.params[key];
|
1180
|
+
// let rows = tableParam.column.params[key];
|
1181
|
+
let rows = this.getGlobalParam(key)
|
1176
1182
|
if(!tableParam.column.params.rowOptionFlag && rows!==undefined){
|
1177
1183
|
optionItems = rows || []
|
1178
1184
|
}
|
1179
|
-
}
|
1185
|
+
}*/
|
1180
1186
|
return optionItems;
|
1181
1187
|
},
|
1182
1188
|
setUploadHeader: function (e, t) {
|