|
|
@@ -49,13 +49,13 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 编辑公式 |
|
|
|
// 设置公式 |
|
|
|
$('#lr_editgs').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '编辑', |
|
|
|
title: '设置公式', |
|
|
|
url: top.$.rootUrl + '/LR_Desktop/FormulaMain/FormChild?keyValue=' + keyValue, |
|
|
|
width: 600, |
|
|
|
height: 500, |
|
|
@@ -88,17 +88,16 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/LR_Desktop/FormulaMain/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "名称", name: "Name", width: 100, align: "left" }, |
|
|
|
{ label: "名称", name: "Name", width: 150, align: "left" }, |
|
|
|
{ label: "公式", name: "Result", width: 250, align: "left" }, |
|
|
|
{ label: "排序", name: "Sort", width: 100, align: "left" }, |
|
|
|
{ label: "描述", name: "Desc", width: 200, align: "left" }, |
|
|
|
{ |
|
|
|
label: "状态", name: "IsEnable", width: 100, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return cellvalue == 0 ? "<span class=\"label label-danger\">禁用</span>" : "<span class=\"label label-success\">启用</span>"; |
|
|
|
|
|
|
|
return cellvalue == 1 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "公式", name: "Result", width: 250, align: "left" }, |
|
|
|
{ label: "描述", name: "Desc", width: 100, align: "left" } |
|
|
|
} |
|
|
|
], |
|
|
|
mainId: 'Id', |
|
|
|
isPage: true |
|
|
|