...
|
...
|
@@ -118,12 +118,18 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl |
|
|
cols: [[
|
|
|
{ type: 'checkbox' }
|
|
|
, {field: 'index', title: '序号', align: 'center', type: 'numbers',width: 50}
|
|
|
, { field: 'keyword', title: '辅助关键字', align: 'center',width: 200}
|
|
|
, {
|
|
|
field: 'name', title: '页面名称', align: 'center', sort: true,width: 200,
|
|
|
templet: '<div>' +
|
|
|
'<span restypepage-data-edit="{{d.id}}" data-flag="{{d.flag}}" class="layui-table-link">{{d.name}}</span>' +
|
|
|
'</div>'
|
|
|
}
|
|
|
, { field: 'resTypeName', title: '资源类型', align: 'center',width: 150}
|
|
|
, { field: 'osName', title: '操作系统', align: 'center',width: 100}
|
|
|
, { field: 'provderName', title: '厂商', align: 'center',width: 100}
|
|
|
, { field: 'protocolName', title: '采集协议', align: 'center',width: 100}
|
|
|
, { field: 'model', title: '型号', align: 'center',width: 100}
|
|
|
, { field: 'keyword', title: '辅助关键字', align: 'center',width: 200}
|
|
|
, { field: 'flags', title: '配置指标组', align: 'left',width: 300}
|
|
|
, { field: 'kpis', title: '配置指标', align: 'left',width: 300}
|
|
|
, { field: 'remark', title: '备注', align: 'left',width: 300}
|
...
|
...
|
@@ -136,6 +142,14 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl |
|
|
'</div>'
|
|
|
}]],
|
|
|
done: function (res) {
|
|
|
//点击协议名称 进行编辑
|
|
|
$('[restypepage-data-edit]').on('click', function () {
|
|
|
if ($.inArray('back:restypepage:add', checkList) == -1) {
|
|
|
layer.msg('暂无权限!', {icon: 7, time: 3000});
|
|
|
return;
|
|
|
}
|
|
|
openEditHtml($(this).attr("restypepage-data-edit"));
|
|
|
});
|
|
|
// 点击编辑事件
|
|
|
$('.link-restypepage-edit').click(function () {
|
|
|
if ($.inArray('back:restypepage:add', checkList) == -1) {
|
...
|
...
|
|