doway-coms 2.10.48 → 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
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
:popupAddPath="scope.column.params.popupAddPath"
|
|
323
323
|
:allowAutoClear="scope.column.params.allowAutoClear"
|
|
324
324
|
@preSearch="(searchInfo,repeatRowInfo,row,api) => preSearch(searchInfo, scope,null,api)"
|
|
325
|
-
@selectChanged="
|
|
325
|
+
@selectChanged="(selectedRowInfo)=>pulldownSelectChanged(scope,selectedRowInfo)"
|
|
326
326
|
@confirmMultiSelect="
|
|
327
327
|
(pulldownView, selectRows) =>
|
|
328
328
|
pulldownMultiSelect(scope, pulldownView, selectRows)
|
|
@@ -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
|
|
@@ -2701,6 +2718,10 @@ export default {
|
|
|
2701
2718
|
}
|
|
2702
2719
|
return { visible: fieldVisible, edit: originEdit }
|
|
2703
2720
|
},
|
|
2721
|
+
pulldownSelectChanged(scope,selectedRowInfo){
|
|
2722
|
+
scope['pulldownSelectedRow'] = selectedRowInfo
|
|
2723
|
+
this.cellValueChange(scope)
|
|
2724
|
+
},
|
|
2704
2725
|
cellValueChange(scope, e) {
|
|
2705
2726
|
console.debug(scope.column.field + 'value change')
|
|
2706
2727
|
if (
|