doway-coms 2.10.81 → 2.10.83
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
|
@@ -250,6 +250,7 @@
|
|
|
250
250
|
<a-select
|
|
251
251
|
:style="{color:scope.column.params.fontColor?scope.column.params.fontColor:null}"
|
|
252
252
|
:allowClear="scope.column.params.allowClear"
|
|
253
|
+
v-if="getCellEditExp(scope)"
|
|
253
254
|
show-search
|
|
254
255
|
option-filter-prop="children"
|
|
255
256
|
v-model="scope.row[scope.column.property]"
|
|
@@ -264,6 +265,9 @@
|
|
|
264
265
|
>{{ loopSource.caption }}</a-select-option
|
|
265
266
|
>
|
|
266
267
|
</a-select>
|
|
268
|
+
<div v-else>
|
|
269
|
+
{{ gridDefaultValueDisplay(scope.row, scope.column) }}
|
|
270
|
+
</div>
|
|
267
271
|
</div>
|
|
268
272
|
</template>
|
|
269
273
|
<template #multiSelect_edit="scope">
|
|
@@ -271,6 +275,7 @@
|
|
|
271
275
|
<a-select
|
|
272
276
|
:style="{color:scope.column.params.fontColor?scope.column.params.fontColor:null}"
|
|
273
277
|
v-model="scope.row[scope.column.property]"
|
|
278
|
+
v-if="getCellEditExp(scope)"
|
|
274
279
|
@change="cellValueChange(scope)"
|
|
275
280
|
mode="multiple"
|
|
276
281
|
size="small"
|
|
@@ -284,6 +289,9 @@
|
|
|
284
289
|
>{{ loopSource.caption }}</a-select-option
|
|
285
290
|
>
|
|
286
291
|
</a-select>
|
|
292
|
+
<div v-else>
|
|
293
|
+
{{ gridDefaultValueDisplay(scope.row, scope.column) }}
|
|
294
|
+
</div>
|
|
287
295
|
</div>
|
|
288
296
|
</template>
|
|
289
297
|
<template #time_edit="scope" class="interceptor-class">
|
|
@@ -1346,10 +1354,19 @@ export default {
|
|
|
1346
1354
|
if(scope.column.params.editExp){
|
|
1347
1355
|
for(let i=0;i<scope.column.params.editExp.length;i++){
|
|
1348
1356
|
let exp = scope.column.params.editExp[i]
|
|
1349
|
-
if(
|
|
1350
|
-
|
|
1351
|
-
|
|
1357
|
+
if(exp.operator==='NE'){
|
|
1358
|
+
//不等于
|
|
1359
|
+
if(scope.row[exp.field]===exp.value){
|
|
1360
|
+
editExpResult = false
|
|
1361
|
+
break
|
|
1362
|
+
}
|
|
1363
|
+
}else{
|
|
1364
|
+
if(scope.row[exp.field]!==exp.value){
|
|
1365
|
+
editExpResult = false
|
|
1366
|
+
break
|
|
1367
|
+
}
|
|
1352
1368
|
}
|
|
1369
|
+
|
|
1353
1370
|
}
|
|
1354
1371
|
}
|
|
1355
1372
|
return scope.column.params.controlEdit === true && editExpResult
|
|
@@ -2892,6 +2909,9 @@ export default {
|
|
|
2892
2909
|
getVisibleData() {
|
|
2893
2910
|
return this.$refs.baseGrid.getTableData().visibleData
|
|
2894
2911
|
},
|
|
2912
|
+
getVisibleDataLength(){
|
|
2913
|
+
return this.$refs.baseGrid.getTableData().visibleData.length
|
|
2914
|
+
},
|
|
2895
2915
|
/**
|
|
2896
2916
|
* 获取更新的行
|
|
2897
2917
|
*/
|
|
@@ -478,6 +478,9 @@ export default {
|
|
|
478
478
|
}
|
|
479
479
|
if (this.columns[i].dataSource) {
|
|
480
480
|
this.columns[i]['params'].dataSource = this.columns[i].dataSource
|
|
481
|
+
if(this.columns[i].controlType===controlType.select){
|
|
482
|
+
this.columns[i]['formatter'] = 'formatSelect'
|
|
483
|
+
}
|
|
481
484
|
}
|
|
482
485
|
if (!this.columns[i].width) {
|
|
483
486
|
this.columns[i]['width'] = 100
|