OA 样式控制总结

1、将指定浏览按钮转变颜色:

字段属性改class:browserColorCell
增加js样式:
<style>
/*.child-item{color:red !important}*/
  /*.wdb{color:red !important}*/
  .browserColorCell a{color:rgb(204,0,0) !important}  //  强制将浏览按钮链接显示为红色
</style>
注:用在文档字段修改字段颜色

2、CSS控制:控制提交 测回按钮 样式
<style>
  .wea-new-top-req-title button{
background-color:rgb(165,30,35)  !important;
border-radius: 3px !important;
border: none;
}

/*明细按钮颜色调整:*/
/*添加按钮:*/
.detailButtonDiv .icon-coms-Add-to-hot.detailBtn{
color: rgb(165,30,35)  !important;
}
/*删除:*/
.detailButtonDiv .icon-coms-form-delete-hot.detailBtn{
color: rgb(165,30,35)  !important;
}
/*复制*/
.detailButtonDiv .icon-coms-copy-hot.detailBtn{
color: rgb(165,30,35)  !important;
}

</style>

3、数据中心//css禁用选择框的选择
.wea-edc-form-datatable .wea-edc-title-extra{
    display: none;
}


table td:first-child,
table th:first-child {
 display: none;
}

table col:first-child,
table col:nth-child(1) {
 display: none;
}

台账批量修改控制必填

setTimeout(function(){
  $($('.ant-btn span').closest('button')[0]).on('mousedown', function(event) {
    var flag = true;
       var array =  ModeList.getBatchEditDatas();
        for(var i=0;i<array.length;i++){
            if(array[i].zjgh==null||array[i].zjgh==""||array[i].zjgh==undefined){//zjgh为批量保存必填字段
                flag = false;
                break;
            }
        }
    if (!flag) {
        // 阻止默认行为并冒泡事件
        ModeList.showConfirm("有必填字段未填写!", function(){     
            event.preventDefault();
        event.stopPropagation();
        });
        event.preventDefault();
        event.stopPropagation();
    }
});
},1500);

  • 10
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值