浏览代码

样式修改

elis 2 年之前
父节点
当前提交
7acf81a993

+ 0 - 142
nngkxxdp/src/main/java/com/example/nngkxxdp/controller/TFileLibraryController.java

@@ -1,142 +0,0 @@
-//package com.example.nngkxxdp.controller;
-//
-//import java.util.Date;
-//
-//import cn.hutool.core.date.DateUtil;
-//import com.example.nngkxxdp.entity.TFileLibrary;
-//import com.example.nngkxxdp.service.TFileLibraryService;
-//import com.example.nngkxxdp.util.Blank;
-//import com.example.nngkxxdp.util.ConstStr;
-//import com.example.nngkxxdp.util.SendUtil;
-//import org.springframework.data.domain.Page;
-//import org.springframework.data.domain.PageRequest;
-//import org.springframework.http.ResponseEntity;
-//import org.springframework.web.bind.annotation.*;
-//
-//import javax.annotation.Resource;
-//import java.util.Map;
-//
-///**
-// * (TFileLibrary)表控制层
-// *
-// * @author makejava
-// * @since 2021-12-06 16:26:11
-// */
-//@RestController
-//@RequestMapping("tFileLibrary")
-//public class TFileLibraryController {
-//    /**
-//     * 服务对象
-//     */
-//    @Resource
-//    private TFileLibraryService tFileLibraryService;
-//
-//    /**
-//     * 查询文件信息
-//     *
-//     * @param typeId
-//     * @param page
-//     * @param limit
-//     * @return
-//     */
-//    @GetMapping("/getAllFileByType")
-//    public Map<String, Object> getAllFile(Integer typeId,Integer page, Integer limit) {
-//        if (Blank.isEmpty(limit, page)) {
-//            return SendUtil.send(false, ConstStr.REQUEST_WRONGPARAMS);
-//        }
-//        page = (page-1)*limit;
-//        return tFileLibraryService.getAllFile(typeId, page, limit);
-//    }
-//
-//    /**
-//     * 添加文件信息
-//     *
-//     * @param userId
-//     * @param typeId
-//     * @param title
-//     * @param content
-//     * @return
-//     */
-//    @PostMapping("/addFile")
-//    public Map<String, Object> addFile(Integer userId, Integer typeId, String title, String content, String createTime) {
-//        if (Blank.isEmpty(userId, typeId)) {
-//            return SendUtil.send(false, ConstStr.REQUEST_WRONGPARAMS);
-//        }
-//        TFileLibrary tFileLibrary = new TFileLibrary();
-//        tFileLibrary.setUserId(userId);
-//        tFileLibrary.setTypeId(typeId);
-//        tFileLibrary.setTitle(title);
-//        tFileLibrary.setContent(content);
-//        tFileLibrary.setState(0);
-//        if (createTime == null) {
-//            tFileLibrary.setCreateTime(new Date());
-//        }
-//        tFileLibrary.setCreateTime(DateUtil.parse(createTime));
-//        return tFileLibraryService.addFile(tFileLibrary);
-//    }
-//
-//    /**
-//     * 更新文件信息
-//     *
-//     * @param userId
-//     * @param typeId
-//     * @param title
-//     * @param content
-//     * @return
-//     */
-//    @PostMapping("/updateFile")
-//    public Map<String, Object> updateFile(Long id, Integer userId, Integer typeId, String title, Integer state, String content) {
-//        if (Blank.isEmpty(title, content, state, typeId, userId, id)) {
-//            return SendUtil.send(false, ConstStr.REQUEST_WRONGPARAMS);
-//        }
-//        TFileLibrary tFileLibrary = new TFileLibrary();
-//        tFileLibrary.setId(id);
-//        tFileLibrary.setUserId(userId);
-//        tFileLibrary.setTypeId(typeId);
-//        tFileLibrary.setTitle(title);
-//        tFileLibrary.setContent(content);
-//        tFileLibrary.setState(state);
-//        tFileLibrary.setUpdateTime(new Date());
-//        return tFileLibraryService.updateFile(tFileLibrary);
-//    }
-//
-//    /**
-//     * 删除文件
-//     *
-//     * @param id
-//     * @return
-//     */
-//    @GetMapping("/delFile")
-//    public Map<String, Object> delFile(Long id) {
-//        if (Blank.isEmpty(id)) {
-//            return SendUtil.send(false, ConstStr.REQUEST_WRONGPARAMS);
-//        }
-//        return tFileLibraryService.delFile(id);
-//    }
-//
-//    /**
-//     * Es搜索
-//     *
-//     * @param typeId
-//     * @return
-//     */
-//    @GetMapping("/getFileByEs")
-//    public Map<String, Object> getFileByEs(Integer page, Integer limit, Integer typeId, String keywords) {
-//        if (Blank.isEmpty(limit, page, keywords)) {
-//            return SendUtil.send(false, ConstStr.REQUEST_WRONGPARAMS);
-//        }
-//        page = (page-1)*limit;
-//        return tFileLibraryService.getFileByEs(page, limit, typeId, keywords);
-//    }
-//
-//    /**
-//     * 数据库添加到es(测试)
-//     *
-//     * @return
-//     */
-//    @GetMapping("/addFileByEs")
-//    public Map<String, Object> addFileByEs() {
-//        return tFileLibraryService.addFileByEs();
-//    }
-//}
-//

+ 49 - 0
nngkxxdp/src/main/resources/static/hqzc/index.css

@@ -268,6 +268,55 @@ body {
     line-height: 20px;
 }
 
+
+.check_content1 {
+    float: left;
+    width: 1095px;
+    line-height: 30px;
+}
+
+.check_content1 label {
+    margin-right: 10px;
+}
+
+.check_content1 li {
+    display: inline-block;
+    margin-bottom: 5px;
+    font-size: 16px;
+    padding-right: 30px;
+}
+
+.check_content1 input {
+    display: none;
+}
+
+.check_content1 label {
+    position: relative;
+    display: inline-block;
+    padding: 7px;
+    background-color: #fff;
+    border-radius: 2px;
+    border: 1px solid #e4e4e4;
+}
+
+.check_content1 input {
+}
+
+.check_content1 label.on {
+    border: 1px solid #004a93;
+}
+
+.check_content1 label.on:after {
+    content: '\2714';
+    position: absolute;
+    font-size: 16px;
+    top: -3px;
+    left: 0px;
+    color: #004a93;
+    font-weight: bold;
+    line-height: 20px;
+}
+
 .zk {
     margin-left: 95px;
     font-size: 16px;

+ 23 - 12
nngkxxdp/src/main/resources/static/hqzc/index.html

@@ -3,18 +3,10 @@
 
 <head>
     <meta charset="utf-8">
-    <title>惠企政策兑现专题_首都之窗_北京市人民政府门户网站</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
-    <!-- 首页 -->
-    <meta name="SiteName" content="首都之窗_北京市人民政府门户网站">
-    <meta name="SiteDomain" content="www.beijing.gov.cn">
-    <meta name="SiteIDCode" content="1100000088">
-    <!-- 栏目 -->
     <meta name="ColumnName" content="惠企政策精准办">
     <meta name="ColumnType" content="惠企政策精准办">
-    <meta name="ColumnDescription" content="惠企政策精准办,100余条惠企事项办理情况,帮助企业渡过难关">
-    <meta name="ColumnKeywords" content="资金补贴;人力资源;大型企业;市人力社保局">
     <meta name="applicable-device" content="pc,mobile">
     <link rel="stylesheet" href="./index.css">
     <style>
@@ -117,8 +109,8 @@
             <div class="zk"><i></i>展开</div>
         </div>
         <div class="check_box clearfix pb20">
-            <div class="check_title">主责部门:</div>
-            <ul class="check_content res_depart"></ul>
+            <div class=" check_title">主责部门:</div>
+            <ul class=" check_content1 res_depart"></ul>
             <div class="zk"><i></i>展开</div>
         </div>
         <div class="box mt20">
@@ -258,6 +250,7 @@
                 success: function (data) {
 
                     if (data.code == 0) {
+                        $(".zclist").empty()
                         document.getElementById("totalDocs").innerText = data.count;
 
 
@@ -270,7 +263,7 @@
                         $("#pageMessage").html(pageHtml)
 
                         var html = "";
-                        if (docList.length > 0) {
+                        if (docList!=null && docList.length > 0) {
                             for (var i = 0; i < docList.length; i++) {
                                 html += '<dl>';
                                 var unit = docList[i].unit;
@@ -337,7 +330,7 @@
                     if (msg.length > 0) {
                         var html = ''
                         for (let i = 0; i < msg.length; i++) {
-                            html += `<li><label></label><input type="checkbox" onclick="clickCheckbox()" name="zzbmCheckbox"
+                            html += `<li><label jj="1"></label><input type="radio" onclick="clickCheckbox()" name="zzbmCheckbox"
                         value="${msg[i]}">${msg[i]}</li>`
                         }
                     }
@@ -376,6 +369,24 @@
                     }
                     clickCheckbox();
                 });
+
+                $(".check_content1 label").click(function () {
+                    console.log($(this).attr('jj')=='1')
+                    $("[jj]").removeClass("on")
+                    if ($(this).attr('jj')=='1'){
+                        // $("[jj]").removeClass("on")
+                        $("[jj]").next("input").prop('checked', false);
+                        $("[jj]").attr("jj","1")
+                        $(this).attr("jj","2")
+                        $(this).toggleClass("on");
+                        $(this).next("input").prop('checked', true);
+                    }else {
+                        $("[jj]").attr("jj","1")
+                        $(this).next("input").prop('checked', false);
+                    }
+
+                    clickCheckbox();
+                });
             }, 500);
         });
     </script>

+ 1 - 1
nngkxxdp/src/main/resources/static/hqzc/indexs.html

@@ -20,7 +20,7 @@
 </style>
 <body>
 <div style="width:100%;" id="header"></div>
-    <iframe width="100%" height="1000px" src="index.html"></iframe>
+    <iframe width="100%" height="1000px" src="indexs.html"></iframe>
 <div style="width:100%;" id="footer"></div>
 </body>
 <script src="jquery-3.6.1.js"></script>