2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<table style="width:100%;"  xmlns:th="http://www.w3.org/1999/xhtml">
    <tr>
        <td>
            <div id="BaseInfoBox_Left" style="padding: 0 10px;">
                <table class="tb">
                    <tr>
                        <td class="td-box" style="background-color: #43B0F5;color: white;"
                            colspan="2">
                            <span style="font-size: 20px;" id="tdtitle">
                                <span th:text="${mainInfo.title}"></span>
                                <span id="shenheStatus"></span>
                                <span id="yichang" th:if="${mainInfo.resourcestatus == 1}" th:text="'【'+${problemStatus}+'异常】'" style="font-size: 14px;color:red;"></span>
                                <span id="zhuxiao" th:if="${mainInfo.resourcestatus == 3}" style="font-size: 14px;color:red;">【注销】</span>
                            </span>
                        </td>
                    </tr>
                    <tr style="border-bottom: 1px dashed  #E0E0E0;">
                        <td class="td-box" colspan="2">
                            <div class="td-title">所属目录:</div>
                            <div class="td-info" th:text="${mainInfo.catlogcode}"></div>
                        </td>
                    </tr>
                    <tr style="border-bottom: 1px dashed  #E0E0E0;">
                        <td class="td-box">
                            <div class="td-title">数据来源:</div>
                            <div class="td-info" th:text="${mainInfo.datasources}"></div>
                        </td>
                        <td class="td-box">
                            <div class="td-title">数据库类型:</div>
                            <div class="td-info" th:text="${databasetype}"></div>
                        </td>
                    </tr>
                    <tr style="border-bottom: 1px dashed  #E0E0E0;">
                        <td class="td-box" colspan="2">
                            <div class="td-title">发布单位:</div>
                            <div class="td-info" th:text="${unitname}+'【'+${createusername}+'】'"></div>
                        </td>
                    </tr>
                    <tr style="border-bottom: 1px dashed  #E0E0E0;">
                        <td class="td-box">
                            <div class="td-title">数据生产日期:</div>
                            <div class="td-info" th:text="${Productiontime}"></div>
                        </td>
                        <td class="td-box">
                            <div class="td-title">发布时间:</div>
                            <div class="td-info" th:text="${Pubdate}"></div>
                        </td>
                    </tr>
                    <tr style="border-bottom: 1px dashed  #E0E0E0;">
                        <td class="td-box">
                            <div class="td-title">共享协议:</div>
                            <div class="td-info" th:text="${mainInfo.sharprotocol}"></div>
                        </td>
                        <td class="td-box" id="divAnQuanJiBie">
                            <div class="td-title">安全级别:</div>
                            <input type="hidden"
                                   th:value="${mainInfo.securitylev}"
                                   id="securitylev" name="securitylev"/>
                        </td>
                    </tr>
                    <!--<tr>-->
                        <!--<td class="td-box" colspan="2">-->
                            <!--<span class="td-title">数据覆盖范围:</span>-->
                            <!--<span th:text="${mainInfo.administrativeid}"></span>-->
                        <!--</td>-->
                    <!--</tr>-->
                    <tr style="border-bottom: 1px dashed  #E0E0E0;">
                        <td class="td-box" colspan="2">
                            <div class="td-title">数据关键字:</div>
                            <div class="ShuJuGuanJianZi" th:each="item:${list}"  th:if="${mainInfo.keywords!=''}"   th:text="${item}"></div>
                        </td>
                    </tr>
                    <tr style="border-bottom: 1px dashed  #E0E0E0;">
                        <td class="td-box" colspan="2">
                            <div class="td-title">资源说明:</div>
                            <div class="td-info" id="desurl" style="white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis;" th:if="${not #lists.isEmpty(mainInfo.desurl)}">
                                <a th:href="${mainInfo.desurl}" th:text="${mainInfo.desurl}"></a>
                            </div>
                            <div class="td-info" id="desurl" th:if="${#lists.isEmpty(mainInfo.desurl)}" th:text="${mainInfo.description}"></div>
                        </td>
                    </tr>
                </table>
            </div>
        </td>
    </tr>
</table>
<script type="text/javascript">
    $(function(){
        GetAnQuanJiBie();
        $("#shenheStatus").html(parent.shenhe);
        var shuomingwidth = parent.$("#BaseInfoBox").width() - 190;
        $("#desurl").css("width",shuomingwidth + "px");
    })
    //设置安全级别
    function GetAnQuanJiBie() {
        for (var i = 0; i < 5; i++) {
            if (i < parseInt($("#securitylev").val())) {
                $("#divAnQuanJiBie").append($('<img data-on="yes" src="/image/ZiYuan/safety.png" />'));
            } else {
                $("#divAnQuanJiBie").append($('<img data-on="no" src="/image/ZiYuan/safetyoff.png" />'));
            }
        }
    }
</script>