|
|
|
@ -51,6 +51,7 @@ $(function () {
|
|
|
|
|
var _html = "";
|
|
|
|
|
var sendBtnOper = "";
|
|
|
|
|
$.each(toolBars, function (i, toolBar) {
|
|
|
|
|
console.log("按钮遍历", toolBars, toolBar,i)
|
|
|
|
|
var Oper = "";
|
|
|
|
|
|
|
|
|
|
if (toolBar.Oper != "") {
|
|
|
|
@ -84,8 +85,18 @@ $(function () {
|
|
|
|
|
Icon = Icon.replace(Icon.substr(0, index), "../");
|
|
|
|
|
img = "<img src='" + Icon + "' width='20px' height='20px'> ";
|
|
|
|
|
}
|
|
|
|
|
if (toolBar.Name == "跳转审批") {
|
|
|
|
|
_html += "<button type='button' class='layui-bar layui-btn layui-btn-sm layui-btn-primary dksp' name='" + toolBar.No + "' enable=true " + Oper + ">" + img + toolBar.Name + "</button>";
|
|
|
|
|
|
|
|
|
|
_html += "<button type='button' class='layui-bar layui-btn layui-btn-sm layui-btn-primary' name='" + toolBar.No + "' enable=true " + Oper + ">" + img + toolBar.Name + "</button>";
|
|
|
|
|
}
|
|
|
|
|
else if (toolBar.Name == "联合审批") {
|
|
|
|
|
_html += "<button type='button' class='layui-bar layui-btn layui-btn-sm layui-btn-primary lhsp' name='" + toolBar.No + "' enable=true " + Oper + ">" + img + toolBar.Name + "</button>";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
_html += "<button type='button' class='layui-bar layui-btn layui-btn-sm layui-btn-primary' name='" + toolBar.No + "' enable=true " + Oper + ">" + img + toolBar.Name + "</button>";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|