zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- 给用户分角色-->
<script type="text/javascript">
    var wctDataGrid;
    $(function() {
        wctDataGrid = $('#wctDataGrid').datagrid({
            url:"${pageContext.request.contextPath}/pms/msg/getWctOnlineEqu.do",
            rownumbers :true,
            idField : 'id',
            fit : true,
            fitColumns : false,
            border : false,
            striped : true,
            nowrap : true,
            checkOnSelect : false,
            selectOnCheck : false,
            columns : [ [ {
                title : '编号',
                field : 'id',
                width : 60,
                checkbox : true
            }, {
                field : 'equipmentCode',
                title : '设备编码',
                width : 100
            },{
                field : 'equipmentName',
                title : '设备名',
                width : 100
            }, {
                field : 'equipmentDesc',
                title : '描述',
                width : 150
            }, {
                field : 'winUname',
                title : '',
                width : 0
            } ] ],
            toolbar : '#toolbar3',
            onLoadSuccess : function(row) {
                $(this).datagrid('tooltip');
                var rowData = row.rows;
                // $.each(rowData,function(idx,val){//遍历JSON
                //     if(val.checked){
                //         wctDataGrid.datagrid("checkRow", idx);//如果数据行为已选中则选中改行
                //     }
                // });
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div id="toolbar3" style="display: none;">
        <%-- 以下选中项为用户:${checkedUserName}所拥有的角色 --%>
    </div>
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;">
        <table id="wctDataGrid"></table>
    </div>
</div>