提交 539c282c 编写于 作者: Skyeye云's avatar Skyeye云

新增组件使用情况信息

上级 e8d90f1c
......@@ -27,7 +27,7 @@ layui.config({
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'numCode', title: '编码', width: 250 },
{ field: 'name', title: '名称', width: 120 },
{ field: 'name', title: '名称', width: 160 },
{ field: 'typeName', title: '分类', width: 100 },
{ field: 'valueMergType', title: '值合入方式', width: 120, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("componentValueMergType", 'id', d.valueMergType, 'name');
......@@ -41,6 +41,9 @@ layui.config({
{ field: 'id', title: '图标', align: 'center', width: 60, templet: function (d) {
return systemCommonUtil.initIconShow(d);
}},
{ field: 'attrUseNum', title: '组件使用数量', width: 120, templet: function (d) {
return isNull(d.attrUseNum) ? '' : d.attrUseNum + '<img src="' + systemCommonUtil.getFilePath('images/util/assest/common/img/analysis.png') + '" class="photo-img" lay-event="attrUseNum">';
}},
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
......
......@@ -8,6 +8,10 @@
<link href="../../assets/lib/layui/css/codemirror.css" rel="stylesheet" />
</head>
<body>
<div class="winui-tip alert-info" id="showInfo">
注意事项:<br/>
1. 已被使用的组件无法被删除<br/>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
......@@ -18,10 +22,10 @@
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1555857604181')){ }}
{{# if (auth('1555857604181')) { }}
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1555857618854')){ }}
{{# if (auth('1555857618854') && (d.attrUseNum == 0 || isNull(d.attrUseNum))) { }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
......
......@@ -200,8 +200,8 @@ body .layer-ext-winconfirm .layui-layer-content {
/*******************************************自定义样式start********************************************/
.photo-img{
width: 30px;
height: 30px;
width: 21px;
height: 21px;
cursor: pointer;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册