doway-coms 2.10.49 → 2.10.50

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,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.10.49",
3
+ "version": "2.10.50",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1310,6 +1310,20 @@ export default {
1310
1310
  })
1311
1311
  },
1312
1312
  methods: {
1313
+ getCellEditExp(scope){
1314
+ //盘点是否存在条件
1315
+ let editExpResult = true
1316
+ if(scope.column.params.editExp){
1317
+ for(let i=0;i<scope.column.params.editExp.length;i++){
1318
+ let exp = scope.column.params.editExp[i]
1319
+ if(scope.row[exp.field]!==exp.value){
1320
+ editExpResult = false
1321
+ break
1322
+ }
1323
+ }
1324
+ }
1325
+ return scope.column.params.controlEdit === true && editExpResult
1326
+ },
1313
1327
  keydownEvent({$event,$grid,$table}){
1314
1328
  if(this.keyBoardNavi){
1315
1329
  const key=$event.key
@@ -1886,6 +1900,9 @@ export default {
1886
1900
  if (originCol.params) {
1887
1901
  colParams = originCol.params
1888
1902
  }
1903
+ if(originCol.editExp){
1904
+ colParams['editExp'] = originCol.editExp
1905
+ }
1889
1906
 
1890
1907
  if (originCol.footerSum === true) {
1891
1908
  this.showFooter = true