doway-coms 1.4.30 → 1.4.31
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
|
@@ -1992,12 +1992,16 @@ export default {
|
|
|
1992
1992
|
if (this.$refs.baseGrid.isInsertByRow(tempRow) === true) {
|
|
1993
1993
|
tempRow["sysRowState"] = "add";
|
|
1994
1994
|
tempRows.push(tempRow);
|
|
1995
|
-
continue;
|
|
1996
1995
|
}
|
|
1997
|
-
|
|
1998
|
-
//
|
|
1999
|
-
//
|
|
2000
|
-
//
|
|
1996
|
+
//判断子项
|
|
1997
|
+
// if(tempRow.children && tempRow.children.length>0){
|
|
1998
|
+
// //添加子项数据
|
|
1999
|
+
// XEUtils.arrayEach(tempRow.children,loopChild=>{
|
|
2000
|
+
// if (this.$refs.baseGrid.isInsertByRow(loopChild) === true){
|
|
2001
|
+
// loopChild["sysRowState"] = "add";
|
|
2002
|
+
// tempRows.push(loopChild);
|
|
2003
|
+
// }
|
|
2004
|
+
// })
|
|
2001
2005
|
// }
|
|
2002
2006
|
}
|
|
2003
2007
|
|
package/packages/utils/common.js
CHANGED
|
@@ -540,4 +540,27 @@ export function getExportParams(columns) {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
return tempParams
|
|
543
|
+
}
|
|
544
|
+
export function setFormButtons(toolBtns,statusBtns,permissionBtns){
|
|
545
|
+
XEUtils.arrayEach(permissionBtns,loopBtn=>{
|
|
546
|
+
let pushBtn = {
|
|
547
|
+
code: loopBtn.code,
|
|
548
|
+
caption: loopBtn.name,
|
|
549
|
+
visible: true
|
|
550
|
+
}
|
|
551
|
+
if(loopBtn.visibleState){
|
|
552
|
+
pushBtn['visibleStates'] = loopBtn.visibleState.split(',')
|
|
553
|
+
}
|
|
554
|
+
if(loopBtn.visibleStatus){
|
|
555
|
+
pushBtn['visibleStatuss'] = loopBtn.visibleStatus.split(',')
|
|
556
|
+
}
|
|
557
|
+
switch(loopBtn.buttonType){
|
|
558
|
+
case 'tool':
|
|
559
|
+
toolBtns.push(pushBtn)
|
|
560
|
+
break
|
|
561
|
+
case 'status':
|
|
562
|
+
statusBtns.push(pushBtn)
|
|
563
|
+
break
|
|
564
|
+
}
|
|
565
|
+
})
|
|
543
566
|
}
|