doway-coms 2.10.82 → 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
|
@@ -265,6 +265,9 @@
|
|
|
265
265
|
>{{ loopSource.caption }}</a-select-option
|
|
266
266
|
>
|
|
267
267
|
</a-select>
|
|
268
|
+
<div v-else>
|
|
269
|
+
{{ gridDefaultValueDisplay(scope.row, scope.column) }}
|
|
270
|
+
</div>
|
|
268
271
|
</div>
|
|
269
272
|
</template>
|
|
270
273
|
<template #multiSelect_edit="scope">
|
|
@@ -286,6 +289,9 @@
|
|
|
286
289
|
>{{ loopSource.caption }}</a-select-option
|
|
287
290
|
>
|
|
288
291
|
</a-select>
|
|
292
|
+
<div v-else>
|
|
293
|
+
{{ gridDefaultValueDisplay(scope.row, scope.column) }}
|
|
294
|
+
</div>
|
|
289
295
|
</div>
|
|
290
296
|
</template>
|
|
291
297
|
<template #time_edit="scope" class="interceptor-class">
|
|
@@ -1348,10 +1354,19 @@ export default {
|
|
|
1348
1354
|
if(scope.column.params.editExp){
|
|
1349
1355
|
for(let i=0;i<scope.column.params.editExp.length;i++){
|
|
1350
1356
|
let exp = scope.column.params.editExp[i]
|
|
1351
|
-
if(
|
|
1352
|
-
|
|
1353
|
-
|
|
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
|
+
}
|
|
1354
1368
|
}
|
|
1369
|
+
|
|
1355
1370
|
}
|
|
1356
1371
|
}
|
|
1357
1372
|
return scope.column.params.controlEdit === true && editExpResult
|
|
@@ -2894,6 +2909,9 @@ export default {
|
|
|
2894
2909
|
getVisibleData() {
|
|
2895
2910
|
return this.$refs.baseGrid.getTableData().visibleData
|
|
2896
2911
|
},
|
|
2912
|
+
getVisibleDataLength(){
|
|
2913
|
+
return this.$refs.baseGrid.getTableData().visibleData.length
|
|
2914
|
+
},
|
|
2897
2915
|
/**
|
|
2898
2916
|
* 获取更新的行
|
|
2899
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
|