liuyifan 4 yıl önce
ebeveyn
işleme
d5e5db52dc
26 değiştirilmiş dosya ile 2398 ekleme ve 142 silme
  1. 1 1
      WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html
  2. 4 3
      WebUI/CallCenterWeb.UI/keHuManager/ContactPersonManger.html
  3. 48 0
      WebUI/CallCenterWeb.UI/keHuManager/js/keHuManger.js
  4. BIN
      WebUI/CallCenterWeb.UI/static/xls/客户模板.xlsx
  5. 26 18
      WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuGuide.html
  6. 176 0
      WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuHotLssues.html
  7. 170 0
      WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuPoliciesRegulations.html
  8. 26 7
      WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuPolicyExpert.html
  9. 29 0
      WebUI/CallCenterWeb.UI/zhiShiKu/css/reflectCategory.css
  10. 174 0
      WebUI/CallCenterWeb.UI/zhiShiKu/detailZhiShiHotLssues.html
  11. 203 0
      WebUI/CallCenterWeb.UI/zhiShiKu/detailZhiShiKuGuide.html
  12. 167 0
      WebUI/CallCenterWeb.UI/zhiShiKu/detaileZhiShiKuPoliciesRegulations.html
  13. 58 37
      WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuGuide.js
  14. 218 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuHotLssues.js
  15. 216 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuPoliciesRegulations.js
  16. 45 66
      WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuPolicyExpert.js
  17. 71 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/detailZhiShiHotLssues.js
  18. 77 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/detailZhiShiKuGuide.js
  19. 70 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/detaileZhiShiKuPoliciesRegulations.js
  20. 82 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/reflectCategory.js
  21. 15 5
      WebUI/CallCenterWeb.UI/zhiShiKu/js/zhiShiKuGuide.js
  22. 132 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/zhiShiKuHotLssues.js
  23. 132 0
      WebUI/CallCenterWeb.UI/zhiShiKu/js/zhiShiKuPoliciesRegulations.js
  24. 26 5
      WebUI/CallCenterWeb.UI/zhiShiKu/zhiShiKuGuide.html
  25. 116 0
      WebUI/CallCenterWeb.UI/zhiShiKu/zhiShiKuHotLssues.html
  26. 116 0
      WebUI/CallCenterWeb.UI/zhiShiKu/zhiShiKuPoliciesRegulations.html

+ 1 - 1
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -798,7 +798,7 @@
798 798
                 }
799 799
             });
800 800
 
801
-            if (roleCode === "GLY" || roleCode === "ZXHWY" || roleCode === "ZXLD") {
801
+            if (roleCode === "GLY" || roleCode === "ZXHWY" || roleCode === "ZXLD" || roleCode === "MTDD") {
802 802
                 $(".content-wrapper").show();
803 803
             } else {
804 804
                 $(".content-wrapper").hide();

+ 4 - 3
WebUI/CallCenterWeb.UI/keHuManager/ContactPersonManger.html

@@ -145,9 +145,10 @@
145 145
 					<!--<span>登录时间:<input type="text" class="laydate-icon loginTime" id="startTime"/></span>-->
146 146
 				    <button class="btns search">搜索</button>
147 147
 					<button class="btns exportFile">导出</button>
148
-					<button class="btns exportFile">模板</button>
149
-					<button class="btns exportFile">导入</button>
150
-                    <input type="file"  style="display: none;">
148
+					<button class="btns exportTemplate">模板</button>
149
+                    <!-- <input id="importFile" type="button" class="btns importFile" value="导入" /> -->
150
+					<button class="btns importFile">导入</button>
151
+                    <input type="file" id="upFile" name="upFile"  accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" style="display: none;">
151 152
 				</div>	
152 153
 			</div>
153 154
 			<div class="tableBox">

+ 48 - 0
WebUI/CallCenterWeb.UI/keHuManager/js/keHuManger.js

@@ -229,6 +229,54 @@ function cleanText(){
229 229
 	$(".add_email").val('');
230 230
 }
231 231
 
232
+$(".importFile").click(function() {
233
+    $("#upFile").trigger("click");
234
+})
235
+
236
+$("#upFile").change(function() {
237
+    upload();
238
+})
239
+
240
+function upload() {
241
+    if(document.getElementById("upFile").files.length > 0) {
242
+        var formData = new FormData();
243
+        formData.append("upFile", document.getElementById("upFile").files[0]);
244
+        formData.append("token", $.cookie("token"));
245
+        $.ajax({
246
+            url: huayi.config.callcenter_url + "Customer/ImportExcel",
247
+            type: "POST",
248
+            data: formData,
249
+            contentType: false,
250
+            processData: false,
251
+            success: function (result) {
252
+                document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
253
+                $("#upFile").change(function () {
254
+                    upload();
255
+                });
256
+                var r = $.parseJSON(result);
257
+                if (r.state.toLowerCase() == "success") {
258
+                	layer.msg("导入成功");
259
+                    initTable();
260
+                }
261
+            }
262
+        })
263
+    } else {
264
+        layer.confirm("请上传文件!", {
265
+            btn: ["确定"],
266
+        });
267
+    }
268
+}
269
+
270
+$(".exportTemplate").click(function() {
271
+    var a = document.createElement("a");
272
+    a.style.display = 'none';
273
+    a.download = "客户模板.xlsx";
274
+    a.href = "../static/xls/客户模板.xlsx";
275
+    document.body.appendChild(a);
276
+    a.click();
277
+    document.body.removeChild(a);
278
+})
279
+
232 280
 $(".exportFile").click(function() {
233 281
     var keyWord = $('.czName').val();
234 282
     

BIN
WebUI/CallCenterWeb.UI/static/xls/客户模板.xlsx


+ 26 - 18
WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuGuide.html

@@ -6,6 +6,8 @@
6 6
     <script src="../Script/Common/huayi.load.js"></script>
7 7
     <script src="../Script/Common/huayi.config.js"></script>
8 8
     <link rel="stylesheet" href="../css/init.css" />
9
+    <link rel="stylesheet" href="./css/reflectCategory.css">
10
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
9 11
     <title>新版知识库添加</title>
10 12
     <style type="text/css">
11 13
         ul,
@@ -90,9 +92,16 @@
90 92
         <table class="table table-bordered table-condensed">
91 93
             <tr>
92 94
                 <td width="100">关键词</td>
93
-                <td><input type="text" id="key" autocomplete="off" /></td>
95
+                <td width="40%" class="reflectCategory-wrapper">
96
+                    <input type="text" id="reflectCategory" class="" autocomplete="off"/>
97
+                    <input type="hidden" id="keyId">
98
+                    <div class="reflectCategoryList-wrapper">
99
+                        <ul id="reflectCategoryList">
100
+                        </ul>
101
+                    </div>
102
+                </td>
94 103
                 <td width="100">发布单位</td>
95
-                <td><input type="text" id="publishUnit" autocomplete="off" /></td>
104
+                <td width="40%"><input type="text" id="publishUnit" autocomplete="off" /></td>
96 105
             </tr>
97 106
             <tr>
98 107
                 <td width="100">发布人</td>
@@ -128,7 +137,19 @@
128 137
                 <td width="100">网上办理连接</td>
129 138
                 <td><input type="text" id="onlineURL" autocomplete="off" /></td>
130 139
                 <td width="100">附件</td>
131
-                <td><input type="text" id="" autocomplete="off" /></td>
140
+                <td>
141
+                    <div class="fileBox">
142
+                        <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
143
+                    </div>
144
+                    <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
145
+                    <input class="input" type="button" value="上传" id="scwj" />
146
+                    <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
147
+                    <input type="hidden" id="file" />
148
+                    <span style="color:#FF0000; border: none;">
149
+                        (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
150
+                    </span>     
151
+                    <!-- <input type="text" id="" autocomplete="off" /> -->
152
+                </td>
132 153
             </tr>
133 154
             <tr>
134 155
                 <th colspan="4">办理流程</th>
@@ -171,27 +192,14 @@
171 192
                         id="remark"></textarea></td>
172 193
             </tr>
173 194
         </table>
174
-        <div class="">
175
-            <span>附件:</span>
176
-            <div class="fileBox">
177
-                <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
178
-            </div>
179
-            <!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
180
-            <!--<span class="fjnr"></span>-->
181
-            <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
182
-            <input class="input" type="button" value="上传" id="scwj" />
183
-            <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
184
-            <input type="hidden" id="file" />
185
-            <span style="color:#FF0000; border: none;">
186
-                (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
187
-            </span>
188
-        </div>
189 195
         <p style="text-align: center;">
190 196
             <button class="btns save">保存</button>
191 197
         </p>
192 198
     </div>
199
+    <script src="../js/layui/layui.js"></script>
193 200
     <script src="../js/adjustHeight.js"></script>
194 201
     <script src="../css/laydate/laydate.js"></script>
202
+    <script src="./js/reflectCategory.js"></script>
195 203
     <script src="js/addOrEditZhiShiKuGuide.js"></script>
196 204
 </body>
197 205
 

+ 176 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuHotLssues.html

@@ -0,0 +1,176 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="../css/init.css" />
9
+    <link rel="stylesheet" href="./css/reflectCategory.css">
10
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
11
+    <title>新版知识库添加</title>
12
+    <style type="text/css">
13
+        ul,
14
+        li {
15
+            padding: 0;
16
+            margin: 0;
17
+            list-style: none;
18
+        }
19
+
20
+        .table tr td input[type="text"] {
21
+            width: 100%;
22
+            height: 34px;
23
+            background: #f3f3f4;
24
+            outline: none;
25
+            border: 1px solid #e7e7e7;
26
+            /*padding-left: 10px;*/
27
+        }
28
+
29
+        .radio-inline input[type=radio] {
30
+            margin-top: 2px;
31
+        }
32
+
33
+        .table tr td textarea {
34
+            width: 100%;
35
+            height: 100%;
36
+            background: #f3f3f4;
37
+            border: 1px solid #e7e7e7;
38
+            resize: none;
39
+            padding: 0px;
40
+            /*padding-left: 10px;*/
41
+        }
42
+
43
+        #scwj {
44
+            background-color: #FFF;
45
+            background-image: none;
46
+            border: 1px solid #ccc;
47
+            border-radius: 1px;
48
+            color: inherit;
49
+            padding: 6px 12px !important;
50
+        }
51
+
52
+        .files {
53
+            padding: 5px !important;
54
+        }
55
+
56
+        .time-box {
57
+            position: relative;
58
+            width: 197px !important;
59
+            height: 34px;
60
+            margin: 0;
61
+        }
62
+
63
+        .tub+input {
64
+            padding-right: 30px;
65
+            border: 1px solid #e5e6e7 !important;
66
+        }
67
+
68
+        i.tub {
69
+            position: absolute;
70
+            right: 8px;
71
+            top: 8px;
72
+            font-size: 18px;
73
+            color: #00a0ca;
74
+        }
75
+
76
+        .operation_bj {
77
+            float: right;
78
+        }
79
+
80
+        .msg_time {
81
+            max-width: 240px;
82
+            min-width: 190px;
83
+        }
84
+    </style>
85
+</head>
86
+
87
+<body class="gray-bg">
88
+    <div class="container-fluid wrapper-content animated fadeInRight">
89
+        <div class="operation_bj">
90
+
91
+        </div>
92
+        <table class="table table-bordered table-condensed">
93
+            <tr>
94
+                <td width="100">关键词</td>
95
+                <td width="40%" class="reflectCategory-wrapper">
96
+                    <input type="text" id="reflectCategory" class="" autocomplete="off"/>
97
+                    <input type="hidden" id="keyId">
98
+                    <div class="reflectCategoryList-wrapper">
99
+                        <ul id="reflectCategoryList">
100
+                        </ul>
101
+                    </div>
102
+                </td>
103
+                <td width="100">发布单位</td>
104
+                <td width="40%"><input type="text" id="publishUnit" autocomplete="off" /></td>
105
+            </tr>
106
+            <tr>
107
+                <td width="100">发布人</td>
108
+                <td><input type="text" id="publishPersonal" autocomplete="off" /></td>
109
+                <td width="100">所属行业</td>
110
+                <td><input type="text" id="industry" autocomplete="off" /></td>
111
+            </tr>
112
+            <tr>
113
+                <td width="100">地区</td>
114
+                <td><input type="text" id="address" autocomplete="off" /></td>
115
+                <td width="100">发布时间</td>
116
+                <td><input type="text" id="publishTime" autocomplete="off" /></td>
117
+            </tr>
118
+            <tr>
119
+                <td width="100">生效时间</td>
120
+                <td><input type="text" id="effectiveTime" autocomplete="off" /></td>
121
+                <td width="100">失效时间</td>
122
+                <td><input type="text" id="invalidTime" autocomplete="off" /></td>
123
+            </tr>
124
+            <tr>
125
+                <td width="100">发文文号</td>
126
+                <td><input type="text" id="documentNumber" autocomplete="off" /></td>
127
+                <td width="100">发文单位</td>
128
+                <td><input type="text" id="documentUnit" autocomplete="off" /></td>
129
+            </tr>
130
+            <tr>
131
+                <td width="100">标识编码</td>
132
+                <td><input type="text" id="identifyEncoding" autocomplete="off" /></td>
133
+                <td width="100">附件</td>
134
+                <td>
135
+                    <div class="fileBox">
136
+                        <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
137
+                    </div>
138
+                    <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
139
+                    <input class="input" type="button" value="上传" id="scwj" />
140
+                    <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
141
+                    <input type="hidden" id="file" />
142
+                    <span style="color:#FF0000; border: none;">
143
+                        (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
144
+                    </span>     
145
+                    <!-- <input type="text" id="" autocomplete="off" /> -->
146
+                </td>
147
+            </tr>
148
+            <tr>
149
+                <td width="100">政策名称</td>
150
+                <td colspan="3"><input type="text" id="policyName" autocomplete="off" /></td>
151
+            </tr>
152
+            <tr>
153
+                <td width="100">解答单位</td>
154
+                <td colspan="3"><input type="text" id="answeringUnit" autocomplete="off" /></td>
155
+            </tr>
156
+            <tr>
157
+                <td width="100" height="100">热点问题</td>
158
+                <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="hotIssues"></textarea></td>
159
+            </tr>
160
+            <tr>
161
+                <td width="100" height="100">内容解答</td>
162
+                <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="contentAnswer"></textarea></td>
163
+            </tr>
164
+        </table>
165
+        <p style="text-align: center;">
166
+            <button class="btns save">保存</button>
167
+        </p>
168
+    </div>
169
+    <script src="../js/layui/layui.js"></script>
170
+    <script src="../js/adjustHeight.js"></script>
171
+    <script src="../css/laydate/laydate.js"></script>
172
+    <script src="./js/reflectCategory.js"></script>
173
+    <script src="js/addOrEditZhiShiKuHotLssues.js"></script>
174
+</body>
175
+
176
+</html>

+ 170 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuPoliciesRegulations.html

@@ -0,0 +1,170 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="../css/init.css" />
9
+    <link rel="stylesheet" href="./css/reflectCategory.css">
10
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
11
+    <title>新版知识库添加</title>
12
+    <style type="text/css">
13
+        ul,
14
+        li {
15
+            padding: 0;
16
+            margin: 0;
17
+            list-style: none;
18
+        }
19
+
20
+        .table tr td input[type="text"] {
21
+            width: 100%;
22
+            height: 34px;
23
+            background: #f3f3f4;
24
+            outline: none;
25
+            border: 1px solid #e7e7e7;
26
+            /*padding-left: 10px;*/
27
+        }
28
+
29
+        .radio-inline input[type=radio] {
30
+            margin-top: 2px;
31
+        }
32
+
33
+        .table tr td textarea {
34
+            width: 100%;
35
+            height: 100%;
36
+            background: #f3f3f4;
37
+            border: 1px solid #e7e7e7;
38
+            resize: none;
39
+            padding: 0px;
40
+            /*padding-left: 10px;*/
41
+        }
42
+
43
+        #scwj {
44
+            background-color: #FFF;
45
+            background-image: none;
46
+            border: 1px solid #ccc;
47
+            border-radius: 1px;
48
+            color: inherit;
49
+            padding: 6px 12px !important;
50
+        }
51
+
52
+        .files {
53
+            padding: 5px !important;
54
+        }
55
+
56
+        .time-box {
57
+            position: relative;
58
+            width: 197px !important;
59
+            height: 34px;
60
+            margin: 0;
61
+        }
62
+
63
+        .tub+input {
64
+            padding-right: 30px;
65
+            border: 1px solid #e5e6e7 !important;
66
+        }
67
+
68
+        i.tub {
69
+            position: absolute;
70
+            right: 8px;
71
+            top: 8px;
72
+            font-size: 18px;
73
+            color: #00a0ca;
74
+        }
75
+
76
+        .operation_bj {
77
+            float: right;
78
+        }
79
+
80
+        .msg_time {
81
+            max-width: 240px;
82
+            min-width: 190px;
83
+        }
84
+    </style>
85
+</head>
86
+
87
+<body class="gray-bg">
88
+    <div class="container-fluid wrapper-content animated fadeInRight">
89
+        <div class="operation_bj">
90
+
91
+        </div>
92
+        <table class="table table-bordered table-condensed">
93
+            <tr>
94
+                <td width="100">关键词</td>
95
+                <td width="40%" class="reflectCategory-wrapper">
96
+                    <input type="text" id="reflectCategory" class="" autocomplete="off"/>
97
+                    <input type="hidden" id="keyId">
98
+                    <div class="reflectCategoryList-wrapper">
99
+                        <ul id="reflectCategoryList">
100
+                        </ul>
101
+                    </div>
102
+                </td>
103
+                <td width="100">发布单位</td>
104
+                <td width="40%"><input type="text" id="publishUnit" autocomplete="off" /></td>
105
+            </tr>
106
+            <tr>
107
+                <td width="100">发布人</td>
108
+                <td><input type="text" id="publishPersonal" autocomplete="off" /></td>
109
+                <td width="100">所属行业</td>
110
+                <td><input type="text" id="industry" autocomplete="off" /></td>
111
+            </tr>
112
+            <tr>
113
+                <td width="100">地区</td>
114
+                <td><input type="text" id="address" autocomplete="off" /></td>
115
+                <td width="100">发布时间</td>
116
+                <td><input type="text" id="publishTime" autocomplete="off" /></td>
117
+            </tr>
118
+            <tr>
119
+                <td width="100">生效时间</td>
120
+                <td><input type="text" id="effectiveTime" autocomplete="off" /></td>
121
+                <td width="100">失效时间</td>
122
+                <td><input type="text" id="invalidTime" autocomplete="off" /></td>
123
+            </tr>
124
+            <tr>
125
+                <td width="100">发文文号</td>
126
+                <td><input type="text" id="documentNumber" autocomplete="off" /></td>
127
+                <td width="100">发文单位</td>
128
+                <td><input type="text" id="documentUnit" autocomplete="off" /></td>
129
+            </tr>
130
+            <tr>
131
+                <td width="100">职能部门</td>
132
+                <td><input type="text" id="functionalDepartment" autocomplete="off" /></td>
133
+                <td width="100">标识编码</td>
134
+                <td><input type="text" id="identifyEncoding" autocomplete="off" /></td>
135
+            </tr>
136
+            <tr>
137
+                <td width="100">文件名称</td>
138
+                <td><input type="text" id="fileName" autocomplete="off" /></td>
139
+                <td width="100">附件</td>
140
+                <td>
141
+                    <div class="fileBox">
142
+                        <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
143
+                    </div>
144
+                    <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
145
+                    <input class="input" type="button" value="上传" id="scwj" />
146
+                    <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
147
+                    <input type="hidden" id="file" />
148
+                    <span style="color:#FF0000; border: none;">
149
+                        (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
150
+                    </span>     
151
+                    <!-- <input type="text" id="" autocomplete="off" /> -->
152
+                </td>
153
+            </tr>
154
+            <tr>
155
+                <td width="100" height="100">文件内容</td>
156
+                <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="documentContent"></textarea></td>
157
+            </tr>
158
+        </table>
159
+        <p style="text-align: center;">
160
+            <button class="btns save">保存</button>
161
+        </p>
162
+    </div>
163
+    <script src="../js/layui/layui.js"></script>
164
+    <script src="../js/adjustHeight.js"></script>
165
+    <script src="../css/laydate/laydate.js"></script>
166
+    <script src="./js/reflectCategory.js"></script>
167
+    <script src="js/addOrEditZhiShiKuPoliciesRegulations.js"></script>
168
+</body>
169
+
170
+</html>

+ 26 - 7
WebUI/CallCenterWeb.UI/zhiShiKu/addOrEditZhiShiKuPolicyExpert.html

@@ -75,9 +75,26 @@
75 75
             float: right;
76 76
         }
77 77
 
78
-        .msg_time {
79
-            max-width: 240px;
80
-            min-width: 190px;
78
+        .imgBox {
79
+            display: inline-block;
80
+        }
81
+        .imgWrapper {
82
+            position: relative;
83
+        }
84
+        .imgMask {
85
+            display: none;
86
+            position: absolute;
87
+            top: 0;
88
+            left: 0;
89
+            width: 100%;
90
+            height: 20px;
91
+            background: rgba(0, 0, 0, 0.8);
92
+        }
93
+        .del_file {
94
+            position: absolute;
95
+            top: 2px;
96
+            right: 5px;
97
+            color: #FFF;
81 98
         }
82 99
     </style>
83 100
 </head>
@@ -125,8 +142,8 @@
125 142
                 <td><input type="text" id="publishPersonal" autocomplete="off" /></td>
126 143
             </tr>
127 144
             <tr>
128
-                <td width="100">标识编码</td>
129
-                <td><input type="text" id="identifyEncoding" autocomplete="off" /></td>
145
+                <!-- <td width="100">标识编码</td>
146
+                <td><input type="text" id="identifyEncoding" autocomplete="off" /></td> -->
130 147
                 <td width="100">发布单位</td>
131 148
                 <td><input type="text" id="publishUnit" autocomplete="off" /></td>
132 149
             </tr>
@@ -141,14 +158,16 @@
141 158
             <div class="fileBox">
142 159
                 <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
143 160
             </div>
161
+            <div class="imgBox">
162
+            </div>
144 163
             <!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
145 164
             <!--<span class="fjnr"></span>-->
146
-            <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
165
+            <input class="input" type="file" name="upFile" id="upFile" style="display: none;">
147 166
             <input class="input" type="button" value="上传" id="scwj" />
148 167
             <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
149 168
             <input type="hidden" id="file" />
150 169
             <span style="color:#FF0000; border: none;">
151
-                (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
170
+                (文件格式为png,jpg)
152 171
             </span>
153 172
         </div>
154 173
         <p style="text-align: center;">

+ 29 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/css/reflectCategory.css

@@ -0,0 +1,29 @@
1
+.reflectCategory-wrapper {
2
+    position: relative;
3
+}
4
+
5
+.reflectCategoryList-wrapper {
6
+    display: none;
7
+    position: absolute;
8
+    top: 38px;
9
+    z-index: 9999;
10
+    line-height: 32px;
11
+    background: #FFF;
12
+}
13
+
14
+#reflectCategoryList {
15
+    height: 240px;
16
+    background: #FFF;
17
+    border: 1px solid #e5e6e7;
18
+    overflow: auto;
19
+}
20
+
21
+#reflectCategoryList li {
22
+    padding: 0 10px;
23
+    width: 100%;
24
+    line-height: 32px;
25
+}
26
+
27
+#reflectCategoryList li:hover {
28
+    background: #00a1cb;
29
+}

+ 174 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/detailZhiShiHotLssues.html

@@ -0,0 +1,174 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="../css/init.css" />
9
+    <link rel="stylesheet" href="./css/reflectCategory.css">
10
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
11
+    <title>知识库详情</title>
12
+    <style type="text/css">
13
+        ul,
14
+        li {
15
+            padding: 0;
16
+            margin: 0;
17
+            list-style: none;
18
+        }
19
+
20
+        .table tr td input[type="text"] {
21
+            width: 100%;
22
+            height: 34px;
23
+            background: #f3f3f4;
24
+            outline: none;
25
+            border: 1px solid #e7e7e7;
26
+            /*padding-left: 10px;*/
27
+        }
28
+
29
+        .radio-inline input[type=radio] {
30
+            margin-top: 2px;
31
+        }
32
+
33
+        .table tr td textarea {
34
+            width: 100%;
35
+            height: 100%;
36
+            background: #f3f3f4;
37
+            border: 1px solid #e7e7e7;
38
+            resize: none;
39
+            padding: 0px;
40
+            /*padding-left: 10px;*/
41
+        }
42
+
43
+        #scwj {
44
+            background-color: #FFF;
45
+            background-image: none;
46
+            border: 1px solid #ccc;
47
+            border-radius: 1px;
48
+            color: inherit;
49
+            padding: 6px 12px !important;
50
+        }
51
+
52
+        .files {
53
+            padding: 5px !important;
54
+        }
55
+
56
+        .time-box {
57
+            position: relative;
58
+            width: 197px !important;
59
+            height: 34px;
60
+            margin: 0;
61
+        }
62
+
63
+        .tub+input {
64
+            padding-right: 30px;
65
+            border: 1px solid #e5e6e7 !important;
66
+        }
67
+
68
+        i.tub {
69
+            position: absolute;
70
+            right: 8px;
71
+            top: 8px;
72
+            font-size: 18px;
73
+            color: #00a0ca;
74
+        }
75
+
76
+        .operation_bj {
77
+            float: right;
78
+        }
79
+
80
+        .msg_time {
81
+            max-width: 240px;
82
+            min-width: 190px;
83
+        }
84
+    </style>
85
+</head>
86
+
87
+<body class="gray-bg">
88
+    <div class="container-fluid wrapper-content animated fadeInRight">
89
+        <div class="operation_bj">
90
+
91
+        </div>
92
+        <table class="table table-bordered table-condensed">
93
+            <tr>
94
+                <td width="100">关键词</td>
95
+                <td width="40%" class="reflectCategory-wrapper">
96
+                    <input type="text" id="reflectCategory" class="" autocomplete="off" readonly="readonly"/>
97
+                    <input type="hidden" id="keyId">
98
+                    <div class="reflectCategoryList-wrapper">
99
+                        <ul id="reflectCategoryList">
100
+                        </ul>
101
+                    </div>
102
+                </td>
103
+                <td width="100">发布单位</td>
104
+                <td width="40%"><input type="text" id="publishUnit" autocomplete="off" readonly="readonly" /></td>
105
+            </tr>
106
+            <tr>
107
+                <td width="100">发布人</td>
108
+                <td><input type="text" id="publishPersonal" autocomplete="off" readonly="readonly" /></td>
109
+                <td width="100">所属行业</td>
110
+                <td><input type="text" id="industry" autocomplete="off" readonly="readonly" /></td>
111
+            </tr>
112
+            <tr>
113
+                <td width="100">地区</td>
114
+                <td><input type="text" id="address" autocomplete="off" readonly="readonly" /></td>
115
+                <td width="100">发布时间</td>
116
+                <td><input type="text" id="publishTime" autocomplete="off" readonly="readonly" /></td>
117
+            </tr>
118
+            <tr>
119
+                <td width="100">生效时间</td>
120
+                <td><input type="text" id="effectiveTime" autocomplete="off" readonly="readonly" /></td>
121
+                <td width="100">失效时间</td>
122
+                <td><input type="text" id="invalidTime" autocomplete="off" readonly="readonly" /></td>
123
+            </tr>
124
+            <tr>
125
+                <td width="100">发文文号</td>
126
+                <td><input type="text" id="documentNumber" autocomplete="off" readonly="readonly" /></td>
127
+                <td width="100">发文单位</td>
128
+                <td><input type="text" id="documentUnit" autocomplete="off" readonly="readonly" /></td>
129
+            </tr>
130
+
131
+            <tr>
132
+                <td width="100">标识编码</td>
133
+                <td><input type="text" id="identifyEncoding" autocomplete="off" readonly="readonly" /></td>
134
+                <td width="100">附件</td>
135
+                <td id="file">
136
+                    <!-- <div class="fileBox"> -->
137
+                        <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
138
+                    <!-- </div> -->
139
+                    <!-- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
140
+                    <input class="input" type="button" value="上传" id="scwj" />
141
+                    <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
142
+                    <input type="hidden" id="file" />
143
+                    <span style="color:#FF0000; border: none;">
144
+                        (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
145
+                    </span>      -->
146
+                    <!-- <input type="text" id="" autocomplete="off" /> -->
147
+                </td>
148
+            </tr>
149
+            <tr>
150
+                <td width="100">政策名称</td>
151
+                <td colspan="3"><input type="text" id="policyName" autocomplete="off" readonly="readonly" /></td>
152
+            </tr>
153
+            <tr>
154
+                <td width="100">解答单位</td>
155
+                <td colspan="3"><input type="text" id="answeringUnit" autocomplete="off" readonly="readonly" /></td>
156
+            </tr>
157
+            <tr>
158
+                <td width="100" height="100">热点问题</td>
159
+                <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="hotIssues" readonly="readonly"></textarea></td>
160
+            </tr>
161
+            <tr>
162
+                <td width="100" height="100">内容解答</td>
163
+                <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="contentAnswer" readonly="readonly"></textarea></td>
164
+            </tr>
165
+        </table>
166
+    </div>
167
+    <script src="../js/layui/layui.js"></script>
168
+    <script src="../js/adjustHeight.js"></script>
169
+    <script src="../css/laydate/laydate.js"></script>
170
+    <script src="./js/reflectCategory.js"></script>
171
+    <script src="js/detailZhiShiHotLssues.js"></script>
172
+</body>
173
+
174
+</html>

+ 203 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/detailZhiShiKuGuide.html

@@ -0,0 +1,203 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="../css/init.css" />
9
+    <link rel="stylesheet" href="./css/reflectCategory.css">
10
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
11
+    <title>知识库详情</title>
12
+    <style type="text/css">
13
+        ul,
14
+        li {
15
+            padding: 0;
16
+            margin: 0;
17
+            list-style: none;
18
+        }
19
+
20
+        .table tr td input[type="text"] {
21
+            width: 100%;
22
+            height: 34px;
23
+            background: #f3f3f4;
24
+            outline: none;
25
+            border: 1px solid #e7e7e7;
26
+            /*padding-left: 10px;*/
27
+        }
28
+
29
+        .radio-inline input[type=radio] {
30
+            margin-top: 2px;
31
+        }
32
+
33
+        .table tr td textarea {
34
+            width: 100%;
35
+            height: 100%;
36
+            background: #f3f3f4;
37
+            border: 1px solid #e7e7e7;
38
+            resize: none;
39
+            padding: 0px;
40
+            /*padding-left: 10px;*/
41
+        }
42
+
43
+        #scwj {
44
+            background-color: #FFF;
45
+            background-image: none;
46
+            border: 1px solid #ccc;
47
+            border-radius: 1px;
48
+            color: inherit;
49
+            padding: 6px 12px !important;
50
+        }
51
+
52
+        .files {
53
+            padding: 5px !important;
54
+        }
55
+
56
+        .time-box {
57
+            position: relative;
58
+            width: 197px !important;
59
+            height: 34px;
60
+            margin: 0;
61
+        }
62
+
63
+        .tub+input {
64
+            padding-right: 30px;
65
+            border: 1px solid #e5e6e7 !important;
66
+        }
67
+
68
+        i.tub {
69
+            position: absolute;
70
+            right: 8px;
71
+            top: 8px;
72
+            font-size: 18px;
73
+            color: #00a0ca;
74
+        }
75
+
76
+        .operation_bj {
77
+            float: right;
78
+        }
79
+
80
+        .msg_time {
81
+            max-width: 240px;
82
+            min-width: 190px;
83
+        }
84
+    </style>
85
+</head>
86
+
87
+<body class="gray-bg">
88
+    <div class="container-fluid wrapper-content animated fadeInRight">
89
+        <div class="operation_bj">
90
+
91
+        </div>
92
+        <table class="table table-bordered table-condensed">
93
+            <tr>
94
+                <td width="100">关键词</td>
95
+                <td width="40%" class="reflectCategory-wrapper">
96
+                    <input type="text" id="reflectCategory" class="" autocomplete="off" readonly="readonly"/>
97
+                    <input type="hidden" id="keyId">
98
+                    <div class="reflectCategoryList-wrapper">
99
+                        <ul id="reflectCategoryList">
100
+                        </ul>
101
+                    </div>
102
+                </td>
103
+                <td width="100">发布单位</td>
104
+                <td width="40%"><input type="text" id="publishUnit" autocomplete="off" readonly="readonly" /></td>
105
+            </tr>
106
+            <tr>
107
+                <td width="100">发布人</td>
108
+                <td><input type="text" id="publishPersonal" autocomplete="off" readonly="readonly" /></td>
109
+                <td width="100">所属行业</td>
110
+                <td><input type="text" id="industry" autocomplete="off" readonly="readonly" /></td>
111
+            </tr>
112
+            <tr>
113
+                <td width="100">地区</td>
114
+                <td><input type="text" id="address" autocomplete="off" readonly="readonly" /></td>
115
+                <td width="100">发布时间</td>
116
+                <td><input type="text" id="publishTime" autocomplete="off" readonly="readonly" /></td>
117
+            </tr>
118
+            <tr>
119
+                <td width="100">生效时间</td>
120
+                <td><input type="text" id="effectiveTime" autocomplete="off" readonly="readonly" /></td>
121
+                <td width="100">失效时间</td>
122
+                <td><input type="text" id="invalidTime" autocomplete="off" readonly="readonly" /></td>
123
+            </tr>
124
+            <tr>
125
+                <td width="100">业务名称</td>
126
+                <td><input type="text" id="businessName" autocomplete="off" readonly="readonly" /></td>
127
+                <td width="100">标识编码</td>
128
+                <td><input type="text" id="identifyEncoding" autocomplete="off" readonly="readonly" /></td>
129
+            </tr>
130
+            <tr>
131
+                <td width="100">申请条件</td>
132
+                <td><input type="text" id="applicationConditions" autocomplete="off" readonly="readonly" /></td>
133
+                <td width="100">政策依据</td>
134
+                <td><input type="text" id="policyBased" autocomplete="off" readonly="readonly" /></td>
135
+            </tr>
136
+            <tr>
137
+                <td width="100">网上办理连接</td>
138
+                <td><input type="text" id="onlineURL" autocomplete="off" readonly="readonly" /></td>
139
+                <td width="100">附件</td>
140
+                <td id="file">
141
+                    <!-- <div class="fileBox"> -->
142
+                        <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
143
+                    <!-- </div> -->
144
+                    <!-- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
145
+                    <input class="input" type="button" value="上传" id="scwj" />
146
+                    <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
147
+                    <input type="hidden" id="file" />
148
+                    <span style="color:#FF0000; border: none;">
149
+                        (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
150
+                    </span>      -->
151
+                    <!-- <input type="text" id="" autocomplete="off" /> -->
152
+                </td>
153
+            </tr>
154
+            <tr>
155
+                <th colspan="4">办理流程</th>
156
+            </tr>
157
+            <tr>
158
+                <td width="100">办理材料</td>
159
+                <td colspan="3"><input type="text" id="handlingMaterials" autocomplete="off"  readonly="readonly"/></td>
160
+            </tr>
161
+            <tr>
162
+                <td width="100">办理时限</td>
163
+                <td colspan="3"><input type="text" id="processingTimeLimit" autocomplete="off" readonly="readonly" /></td>
164
+            </tr>
165
+            <tr>
166
+                <td width="100">办理地点</td>
167
+                <td colspan="3"><input type="text" id="handlingPlace" autocomplete="off"  readonly="readonly" /></td>
168
+            </tr>
169
+            <tr>
170
+                <td width="100">办理时间</td>
171
+                <td colspan="3"><input type="text" id="processingTime" autocomplete="off" readonly="readonly" /></td>
172
+            </tr>
173
+            <tr>
174
+                <td width="100">电话</td>
175
+                <td colspan="3"><input type="text" id="telephone" autocomplete="off" readonly="readonly" /></td>
176
+            </tr>
177
+            <tr>
178
+                <td width="100">其他说明</td>
179
+                <td colspan="3"><input type="text" id="otherInstructions" autocomplete="off" readonly="readonly" /></td>
180
+            </tr>
181
+            <tr>
182
+                <td width="100">办理流程</td>
183
+                <td colspan="3"><input type="text" id="process" autocomplete="off" readonly="readonly" /></td>
184
+            </tr>
185
+            <!-- <tr>
186
+                <td width="100">备注</td>
187
+                <td colspan="3"><input type="text" id="publishUnit" autocomplete="off" /></td>
188
+            </tr> -->
189
+            <tr>
190
+                <td width="100" height="100">备注</td>
191
+                <td colspan="3" height="100"> <textarea name="" rows="" cols=""
192
+                        id="remark" readonly="readonly"></textarea></td>
193
+            </tr>
194
+        </table>
195
+    </div>
196
+    <script src="../js/layui/layui.js"></script>
197
+    <script src="../js/adjustHeight.js"></script>
198
+    <script src="../css/laydate/laydate.js"></script>
199
+    <script src="./js/reflectCategory.js"></script>
200
+    <script src="js/detailZhiShiKuGuide.js"></script>
201
+</body>
202
+
203
+</html>

+ 167 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/detaileZhiShiKuPoliciesRegulations.html

@@ -0,0 +1,167 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link rel="stylesheet" href="../css/init.css" />
9
+    <link rel="stylesheet" href="./css/reflectCategory.css">
10
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
11
+    <title>知识库详情</title>
12
+    <style type="text/css">
13
+        ul,
14
+        li {
15
+            padding: 0;
16
+            margin: 0;
17
+            list-style: none;
18
+        }
19
+
20
+        .table tr td input[type="text"] {
21
+            width: 100%;
22
+            height: 34px;
23
+            background: #f3f3f4;
24
+            outline: none;
25
+            border: 1px solid #e7e7e7;
26
+            /*padding-left: 10px;*/
27
+        }
28
+
29
+        .radio-inline input[type=radio] {
30
+            margin-top: 2px;
31
+        }
32
+
33
+        .table tr td textarea {
34
+            width: 100%;
35
+            height: 100%;
36
+            background: #f3f3f4;
37
+            border: 1px solid #e7e7e7;
38
+            resize: none;
39
+            padding: 0px;
40
+            /*padding-left: 10px;*/
41
+        }
42
+
43
+        #scwj {
44
+            background-color: #FFF;
45
+            background-image: none;
46
+            border: 1px solid #ccc;
47
+            border-radius: 1px;
48
+            color: inherit;
49
+            padding: 6px 12px !important;
50
+        }
51
+
52
+        .files {
53
+            padding: 5px !important;
54
+        }
55
+
56
+        .time-box {
57
+            position: relative;
58
+            width: 197px !important;
59
+            height: 34px;
60
+            margin: 0;
61
+        }
62
+
63
+        .tub+input {
64
+            padding-right: 30px;
65
+            border: 1px solid #e5e6e7 !important;
66
+        }
67
+
68
+        i.tub {
69
+            position: absolute;
70
+            right: 8px;
71
+            top: 8px;
72
+            font-size: 18px;
73
+            color: #00a0ca;
74
+        }
75
+
76
+        .operation_bj {
77
+            float: right;
78
+        }
79
+
80
+        .msg_time {
81
+            max-width: 240px;
82
+            min-width: 190px;
83
+        }
84
+    </style>
85
+</head>
86
+
87
+<body class="gray-bg">
88
+    <div class="container-fluid wrapper-content animated fadeInRight">
89
+        <div class="operation_bj">
90
+
91
+        </div>
92
+        <table class="table table-bordered table-condensed">
93
+            <tr>
94
+                <td width="100">关键词</td>
95
+                <td width="40%" class="reflectCategory-wrapper">
96
+                    <input type="text" id="reflectCategory" class="" autocomplete="off" readonly="readonly"/>
97
+                    <input type="hidden" id="keyId">
98
+                    <div class="reflectCategoryList-wrapper">
99
+                        <ul id="reflectCategoryList">
100
+                        </ul>
101
+                    </div>
102
+                </td>
103
+                <td width="100">发布单位</td>
104
+                <td width="40%"><input type="text" id="publishUnit" autocomplete="off" readonly="readonly" /></td>
105
+            </tr>
106
+            <tr>
107
+                <td width="100">发布人</td>
108
+                <td><input type="text" id="publishPersonal" autocomplete="off" readonly="readonly" /></td>
109
+                <td width="100">所属行业</td>
110
+                <td><input type="text" id="industry" autocomplete="off" readonly="readonly" /></td>
111
+            </tr>
112
+            <tr>
113
+                <td width="100">地区</td>
114
+                <td><input type="text" id="address" autocomplete="off" readonly="readonly" /></td>
115
+                <td width="100">发布时间</td>
116
+                <td><input type="text" id="publishTime" autocomplete="off" readonly="readonly" /></td>
117
+            </tr>
118
+            <tr>
119
+                <td width="100">生效时间</td>
120
+                <td><input type="text" id="effectiveTime" autocomplete="off" readonly="readonly" /></td>
121
+                <td width="100">失效时间</td>
122
+                <td><input type="text" id="invalidTime" autocomplete="off" readonly="readonly" /></td>
123
+            </tr>
124
+            <tr>
125
+                <td width="100">发文文号</td>
126
+                <td><input type="text" id="documentNumber" autocomplete="off" readonly="readonly" /></td>
127
+                <td width="100">发文单位</td>
128
+                <td><input type="text" id="documentUnit" autocomplete="off" readonly="readonly" /></td>
129
+            </tr>
130
+            <tr>
131
+                <td width="100">职能部门</td>
132
+                <td><input type="text" id="functionalDepartment" autocomplete="off" readonly="readonly" /></td>
133
+                <td width="100">标识编码</td>
134
+                <td><input type="text" id="identifyEncoding" autocomplete="off" readonly="readonly" /></td>
135
+            </tr>
136
+            <tr>
137
+                <td width="100">文件名称</td>
138
+                <td><input type="text" id="fileName" autocomplete="off" readonly="readonly" /></td>
139
+                <td width="100">附件</td>
140
+                <td id="file">
141
+                    <!-- <div class="fileBox"> -->
142
+                        <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
143
+                    <!-- </div> -->
144
+                    <!-- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
145
+                    <input class="input" type="button" value="上传" id="scwj" />
146
+                    <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
147
+                    <input type="hidden" id="file" />
148
+                    <span style="color:#FF0000; border: none;">
149
+                        (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
150
+                    </span>      -->
151
+                    <!-- <input type="text" id="" autocomplete="off" /> -->
152
+                </td>
153
+            </tr>
154
+            <tr>
155
+                <td width="100" height="100">文件内容</td>
156
+                <td colspan="3" height="100"><textarea name="" rows="" cols="" id="documentContent" readonly="readonly"></textarea></td>
157
+            </tr>
158
+        </table>
159
+    </div>
160
+    <script src="../js/layui/layui.js"></script>
161
+    <script src="../js/adjustHeight.js"></script>
162
+    <script src="../css/laydate/laydate.js"></script>
163
+    <script src="./js/reflectCategory.js"></script>
164
+    <script src="js/detaileZhiShiKuPoliciesRegulations.js"></script>
165
+</body>
166
+
167
+</html>

+ 58 - 37
WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuGuide.js

@@ -1,24 +1,36 @@
1 1
 var id = helper.request.queryString("id");
2 2
 $(document).ready(function () {
3 3
     laydate.skin('blue');
4
-    // laydate({
5
-    //     elem: '#effectiveTime',
6
-    //     event: 'focus',
7
-    //     istime: true,
8
-    //     format: 'YYYY-MM-DD hh:mm:ss'
9
-    // });
10
-    // laydate({
11
-    //     elem: '#expirationTime',
12
-    //     event: 'focus',
13
-    //     istime: true,
14
-    //     format: 'YYYY-MM-DD hh:mm:ss'
15
-    // });
16
-    // laydate({
17
-    //     elem: '#publishTime',
18
-    //     event: 'focus',
19
-    //     istime: true,
20
-    //     format: 'YYYY-MM-DD hh:mm:ss'
21
-    // });
4
+    laydate({
5
+        elem: '#publishTime',
6
+        event: 'focus',
7
+        istime: true,
8
+        format: 'YYYY-MM-DD hh:mm:ss'
9
+    });
10
+    laydate({
11
+        elem: '#effectiveTime',
12
+        event: 'focus',
13
+        istime: true,
14
+        format: 'YYYY-MM-DD hh:mm:ss'
15
+    });
16
+    laydate({
17
+        elem: '#invalidTime',
18
+        event: 'focus',
19
+        istime: true,
20
+        format: 'YYYY-MM-DD hh:mm:ss'
21
+    });
22
+    laydate({
23
+        elem: '#processingTimeLimit',
24
+        event: 'focus',
25
+        istime: true,
26
+        format: 'YYYY-MM-DD hh:mm:ss'
27
+    });
28
+    laydate({
29
+        elem: '#processingTime',
30
+        event: 'focus',
31
+        istime: true,
32
+        format: 'YYYY-MM-DD hh:mm:ss'
33
+    });
22 34
 
23 35
     $(".save").click(function () {
24 36
         saveCon();
@@ -41,7 +53,7 @@ $(document).ready(function () {
41 53
             data: {
42 54
                 token: $.cookie("token"),
43 55
                 id: id, //知识库id
44
-                key: 107, // 关键词id
56
+                key: $("#keyId").val(), // 关键词id
45 57
                 fabudanwei: $("#publishUnit").val(), // 发布单位
46 58
                 faburen: $("#publishPersonal").val(), // 发布人
47 59
                 hangye: $("#industry").val(), // 所属行业
@@ -54,7 +66,7 @@ $(document).ready(function () {
54 66
                 shenqingtiaojian: $("#applicationConditions").val(), // 申请条件
55 67
                 zhengceyiju: $("#policyBased").val(), // 政策依据
56 68
                 wangshangbanlilianjie: $("#onlineURL").val(), // 网上办理链接
57
-                file: "", // 附件
69
+                file: $("#file").val(), // 附件
58 70
                 banlicailiao: $("#handlingMaterials").val(), // 办理材料
59 71
                 banlishixian: $("#processingTimeLimit").val(), // 办理时限
60 72
                 banlididian: $("#handlingPlace").val(), // 办理地点
@@ -87,24 +99,33 @@ $(document).ready(function () {
87 99
             },
88 100
             success: function (result) {
89 101
                 if (result.state.toLowerCase() == "success") {
90
-                    var data = result.data;
91
-                    $("#name").val(data.F_XingMing);
92
-                    $("#address").val(data.F_DiQu);
93
-                    $("#unit").val(data.F_DanWei);
94
-                    $("#industry").val(data.F_HangYe);
95
-                    $("#department").val(data.F_KeShi);
96
-                    $("#effectiveTime").val(data.F_ShengXiaoShiJian);
97
-                    $("#job").val(data.F_ZhiWu);
98
-                    $("#expirationTime").val(data.F_ShiXiaoShiJian);
99
-                    $("#phoneNumber").val(data.F_ShouJi);
100
-                    $("#publishTime").val(data.F_FaBuShiJian);
101
-                    $("#officePhone").val(data.F_DianHua);
102
-                    $("#publishPersonal").val(data.F_FaBuRen);
103
-                    $("#identifyEncoding").val(data.F_BiaoShiBianMa);
104
-                    $("#publishUnit").val(data.F_FaBuDanWei);
105
-                    $("#introductionFieldExpertise").val(data.F_ZhuanYeLingYuJianJie);
102
+                    var model = result.data.model;
103
+                    var dtkey = result.data.dtkey;
104
+                    var dtfile = result.data.dtfile;
106 105
 
107
-                    $(result.data.F_TouXiang).each(function (k, q) {
106
+                    $("#publishUnit").val(model.F_FaBuDanWei);
107
+                    $("#publishPersonal").val(model.F_FaBuRen);
108
+                    $("#industry").val(model.F_HangYe);
109
+                    $("#address").val(model.F_DiQu);
110
+                    $("#publishTime").val(model.F_FaBuShiJian);
111
+                    $("#effectiveTime").val(model.F_ShengXiaoShiJian);
112
+                    $("#invalidTime").val(model.F_ShiXiaoShiJian);
113
+                    $("#businessName").val(model.F_YeWuMingCheng);
114
+                    $("#identifyEncoding").val(model.F_BiaoShiBianMa);
115
+                    $("#applicationConditions").val(model.F_ShenQingTiaoJian);
116
+                    $("#policyBased").val(model.F_ZhengCeYiJu);
117
+                    $("#onlineURL").val(model.F_WangShangBanLiLianJie);
118
+                    $("#handlingMaterials").val(model.F_BanLiCaiLiao);
119
+                    $("#processingTimeLimit").val(model.F_BanLiShiXian);
120
+                    $("#handlingPlace").val(model.F_BanLiDiDian);
121
+                    $("#processingTime").val(model.F_BanLiShiJian);
122
+                    $("#telephone").val(model.F_BanLiDianHua);
123
+                    $("#otherInstructions").val(model.F_QiTaShuoMing);
124
+                    $("#process").val(model.F_BanLiLiuCheng);
125
+                    $("#remark").val(model.F_BeiZhu);
126
+                    $("#reflectCategory").val(dtkey[0].name);
127
+                    $("#keyId").val(dtkey[0].id);
128
+                    $(dtfile).each(function (k, q) {
108 129
                         var strs =
109 130
                             '<span class="files" fiel-num="' +
110 131
                             q.F_FileId +

+ 218 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuHotLssues.js

@@ -0,0 +1,218 @@
1
+var id = helper.request.queryString("id");
2
+$(document).ready(function () {
3
+    laydate.skin('blue');
4
+    laydate({
5
+        elem: '#publishTime',
6
+        event: 'focus',
7
+        istime: true,
8
+        format: 'YYYY-MM-DD hh:mm:ss'
9
+    });
10
+    laydate({
11
+        elem: '#effectiveTime',
12
+        event: 'focus',
13
+        istime: true,
14
+        format: 'YYYY-MM-DD hh:mm:ss'
15
+    });
16
+    laydate({
17
+        elem: '#invalidTime',
18
+        event: 'focus',
19
+        istime: true,
20
+        format: 'YYYY-MM-DD hh:mm:ss'
21
+    });
22
+
23
+    $(".save").click(function () {
24
+        saveCon();
25
+    });
26
+    //上传附件
27
+    $("#scwj").click(function () {
28
+        $("#upFile").trigger("click");
29
+    });
30
+    $("#upFile").change(function () {
31
+        upload();
32
+    });
33
+
34
+    //保存
35
+    function saveCon() {
36
+        $.ajax({
37
+            type: "post",
38
+            url: huayi.config.callcenter_url + "HotspotGlossary/AddModel",
39
+            async: true,
40
+            dataType: "json",
41
+            data: {
42
+                token: $.cookie("token"),
43
+                id: id, //知识库id
44
+                key: $("#keyId").val(), // 关键词id
45
+                fabudanwei: $("#publishUnit").val(), // 发布单位
46
+                faburen: $("#publishPersonal").val(), // 发布人
47
+                hangye: $("#industry").val(), // 所属行业
48
+                diqu: $("#address").val(), // 地区
49
+                fabushijian: $("#publishTime").val(), // 发布时间
50
+                shengxiaoshijian: $("#effectiveTime").val(), // 生效时间
51
+                shixiaoshijian: $("#invalidTime").val(), // 失效时间
52
+                fawenwenhao: $("#documentNumber").val(), // 发文文号
53
+                fawendanwei: $("#documentUnit").val(), // 发文单位
54
+                biaoshibianma: $("#identifyEncoding").val(), // 标识编码
55
+                file: $("#file").val(), // 附件
56
+                zhengcemingci: $("#policyName").val(), // 政策名称
57
+                jiedadanwei: $("#answeringUnit").val(), // 解答单位
58
+                redianwenti: $("#hotIssues").val(), // 热点问题
59
+                wentijieda: $("#contentAnswer").val(), // 内容解答
60
+            },
61
+            success: function (data) {
62
+                if (data.state.toLowerCase() == "success") {
63
+                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
64
+                    parent.layer.close(index); //再执行关闭
65
+                    parent.layer.msg(data.message); //再执行关闭
66
+                    parent.$("#tableList").bootstrapTable("refresh"); //再执行关闭
67
+                }
68
+            },
69
+        });
70
+    }
71
+    //获取知识库详情
72
+    if (id) {
73
+        $.ajax({
74
+            type: "get",
75
+            url: huayi.config.callcenter_url + "HotspotGlossary/GetModel",
76
+            async: true,
77
+            dataType: "json",
78
+            data: {
79
+                token: $.cookie("token"),
80
+                id: id,
81
+            },
82
+            success: function (result) {
83
+                if (result.state.toLowerCase() == "success") {
84
+                    var model = result.data.model;
85
+                    var dtkey = result.data.dtkey;
86
+                    var dtfile = result.data.dtfile;
87
+
88
+                    $("#publishUnit").val(model.F_FaBuDanWei);
89
+                    $("#publishPersonal").val(model.F_FaBuRen);
90
+                    $("#industry").val(model.F_HangYe);
91
+                    $("#address").val(model.F_DiQu);
92
+                    $("#publishTime").val(model.F_FaBuShiJian);
93
+                    $("#effectiveTime").val(model.F_ShengXiaoShiJian);
94
+                    $("#invalidTime").val(model.F_ShiXiaoShiJian);
95
+                    $("#documentNumber").val(model.F_FaWenWenHao);
96
+                    $("#documentUnit").val(model.F_FaWenDanWei);
97
+                    $("#identifyEncoding").val(model.F_BiaoShiBianMa);
98
+                    $("#policyName").val(model.F_ZhengCeMingCi);
99
+                    $("#answeringUnit").val(model.F_JieDaDanWei);
100
+                    $("#hotIssues").val(model.F_ReDianWenTi);
101
+                    $("#contentAnswer").val(model.F_WenTiJieDa);
102
+                    $("#reflectCategory").val(dtkey[0].name);
103
+                    $("#keyId").val(dtkey[0].id);
104
+
105
+                    $(dtfile).each(function (k, q) {
106
+                        var strs =
107
+                            '<span class="files" fiel-num="' +
108
+                            q.F_FileId +
109
+                            '">' +
110
+                            q.F_FileName.substring(19) +
111
+                            '<i class="fa fa-remove del_file"></i></span>';
112
+                        $(strs)
113
+                            .appendTo($(".fileBox"))
114
+                            .find(".del_file")
115
+                            .click(function (event) {
116
+                                event.stopPropagation();
117
+                                $(this).parent().remove();
118
+                                file_num();
119
+                                console.log($(".fileBox").find(".del_file"));
120
+                            });
121
+                        file_num();
122
+                    });
123
+                }
124
+            },
125
+        });
126
+    }
127
+});
128
+
129
+//上传文件
130
+function upload() {
131
+    var Files = document.getElementById("upFile").files;
132
+    if (Files.length > 0) {
133
+        var formData = new FormData();
134
+        for (var i = 0; i < Files.length; i++) {
135
+            formData.append("file" + i, Files[i]);
136
+        }
137
+        formData.append("token", $.cookie("token"));
138
+        console.log(formData);
139
+        console.log("123",formData.file0);
140
+        var typeName = Files[0].name.split(".")[1];
141
+        if (
142
+            typeName == "png" ||
143
+            typeName == "jpg" ||
144
+            typeName == "mp4" ||
145
+            typeName == "mp3" ||
146
+            typeName == "pdf" ||
147
+            typeName == "doc" ||
148
+            typeName == "docx" ||
149
+            typeName == "xls" ||
150
+            typeName == "xlsx"
151
+        ) {
152
+            $.ajax({
153
+                url: huayi.config.callcenter_url + "HotspotGlossary/UploadFile",
154
+                type: "POST",
155
+                data: formData,
156
+                /**
157
+                 *必须false才会自动加上正确的Content-Type
158
+                 */
159
+                contentType: false,
160
+                /**
161
+                 * 必须false才会避开jQuery对 formdata 的默认处理
162
+                 * XMLHttpRequest会对 formdata 进行正确的处理
163
+                 */
164
+                processData: false,
165
+                success: function (result) {
166
+                    document.getElementById("upFile").outerHTML =
167
+                        document.getElementById("upFile").outerHTML;
168
+                    $("#upFile").change(function () {
169
+                        upload();
170
+                    });
171
+                    var r = $.parseJSON(result);
172
+                    if (r.state.toLowerCase() == "success") {
173
+                        //								$(".fjnr").text(r.data[0].F_FileName);
174
+                        var a = r.data;
175
+                        $(a).each(function (i, n) {
176
+                            var strs =
177
+                                '<span class="files" fiel-num="' +
178
+                                n.F_FileId +
179
+                                '">' +
180
+                                n.F_FileName.substring(19) +
181
+                                '<i class="fa fa-remove del_file"></i></span>';
182
+                            $(strs)
183
+                                .appendTo($(".fileBox"))
184
+                                .find(".del_file")
185
+                                .click(function (event) {
186
+                                    event.stopPropagation();
187
+                                    $(this).parent().remove();
188
+                                    file_num();
189
+                                });
190
+                        });
191
+                        file_num();
192
+                    }
193
+                },
194
+            });
195
+        } else {
196
+            layer.msg("格式不正确");
197
+        }
198
+    } else {
199
+        layer.confirm("请上传文件!", {
200
+            btn: ["确定"],
201
+        });
202
+    }
203
+}
204
+//上传文件隐藏域值
205
+function file_num() {
206
+    var str = "";
207
+    var Str;
208
+    $(".fileBox .files").each(function (j, m) {
209
+        var aa = $(m).attr("fiel-num");
210
+        console.log(aa);
211
+        str += aa + ",";
212
+        Str =
213
+            str.substring(str.length - 1) == ","
214
+                ? str.substring(0, str.length - 1)
215
+                : str;
216
+    });
217
+    $("#file").val(Str);
218
+}

+ 216 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuPoliciesRegulations.js

@@ -0,0 +1,216 @@
1
+var id = helper.request.queryString("id");
2
+$(document).ready(function () {
3
+    laydate.skin('blue');
4
+    laydate({
5
+        elem: '#publishTime',
6
+        event: 'focus',
7
+        istime: true,
8
+        format: 'YYYY-MM-DD hh:mm:ss'
9
+    });
10
+    laydate({
11
+        elem: '#effectiveTime',
12
+        event: 'focus',
13
+        istime: true,
14
+        format: 'YYYY-MM-DD hh:mm:ss'
15
+    });
16
+    laydate({
17
+        elem: '#invalidTime',
18
+        event: 'focus',
19
+        istime: true,
20
+        format: 'YYYY-MM-DD hh:mm:ss'
21
+    });
22
+
23
+    $(".save").click(function () {
24
+        saveCon();
25
+    });
26
+    //上传附件
27
+    $("#scwj").click(function () {
28
+        $("#upFile").trigger("click");
29
+    });
30
+    $("#upFile").change(function () {
31
+        upload();
32
+    });
33
+
34
+    //保存
35
+    function saveCon() {
36
+        $.ajax({
37
+            type: "post",
38
+            url: huayi.config.callcenter_url + "Policy/AddModel",
39
+            async: true,
40
+            dataType: "json",
41
+            data: {
42
+                token: $.cookie("token"),
43
+                id: id, //知识库id
44
+                key: $("#keyId").val(), // 关键词id
45
+                fabudanwei: $("#publishUnit").val(), // 发布单位
46
+                faburen: $("#publishPersonal").val(), // 发布人
47
+                hangye: $("#industry").val(), // 所属行业
48
+                diqu: $("#address").val(), // 地区
49
+                fabushijian: $("#publishTime").val(), // 发布时间
50
+                shengxiaoshijian: $("#effectiveTime").val(), // 生效时间
51
+                shixiaoshijian: $("#invalidTime").val(), // 失效时间
52
+                fawenwenhao: $("#documentNumber").val(), // 发文文号
53
+                fawendanwei: $("#documentUnit").val(), // 发文单位
54
+                zhinengbumen: $("#functionalDepartment").val(), // 职能部门
55
+                biaoshibianma: $("#identifyEncoding").val(), // 标识编码
56
+                file: $("#file").val(), // 附件
57
+                wenjianmingcheng: $("#fileName").val(), // 文件名称
58
+                wenjianneirong: $("#documentContent").val(), // 文件内容
59
+            },
60
+            success: function (data) {
61
+                if (data.state.toLowerCase() == "success") {
62
+                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
63
+                    parent.layer.close(index); //再执行关闭
64
+                    parent.layer.msg(data.message); //再执行关闭
65
+                    parent.$("#tableList").bootstrapTable("refresh"); //再执行关闭
66
+                }
67
+            },
68
+        });
69
+    }
70
+    //获取知识库详情
71
+    if (id) {
72
+        $.ajax({
73
+            type: "get",
74
+            url: huayi.config.callcenter_url + "Policy/GetModel",
75
+            async: true,
76
+            dataType: "json",
77
+            data: {
78
+                token: $.cookie("token"),
79
+                id: id,
80
+            },
81
+            success: function (result) {
82
+                if (result.state.toLowerCase() == "success") {
83
+                    var model = result.data.model;
84
+                    var dtkey = result.data.dtkey;
85
+                    var dtfile = result.data.dtfile;
86
+
87
+                    $("#publishUnit").val(model.F_FaBuDanWei);
88
+                    $("#publishPersonal").val(model.F_FaBuRen);
89
+                    $("#industry").val(model.F_HangYe);
90
+                    $("#address").val(model.F_DiQu);
91
+                    $("#publishTime").val(model.F_FaBuShiJian);
92
+                    $("#effectiveTime").val(model.F_ShengXiaoShiJian);
93
+                    $("#invalidTime").val(model.F_ShiXiaoShiJian);
94
+                    $("#documentNumber").val(model.F_FaWenWenHao);
95
+                    $("#documentUnit").val(model.F_FaWenDanWei);
96
+                    $("#functionalDepartment").val(model.F_ZhiNengBuMen);
97
+                    $("#identifyEncoding").val(model.F_BiaoShiBianMa);
98
+                    $("#fileName").val(model.F_WenJianMingCheng);
99
+                    $("#documentContent").val(model.F_WenJianNeiRong);
100
+                    $("#reflectCategory").val(dtkey[0].name);
101
+                    $("#keyId").val(dtkey[0].id);
102
+
103
+                    $(dtfile).each(function (k, q) {
104
+                        var strs =
105
+                            '<span class="files" fiel-num="' +
106
+                            q.F_FileId +
107
+                            '">' +
108
+                            q.F_FileName.substring(19) +
109
+                            '<i class="fa fa-remove del_file"></i></span>';
110
+                        $(strs)
111
+                            .appendTo($(".fileBox"))
112
+                            .find(".del_file")
113
+                            .click(function (event) {
114
+                                event.stopPropagation();
115
+                                $(this).parent().remove();
116
+                                file_num();
117
+                                console.log($(".fileBox").find(".del_file"));
118
+                            });
119
+                        file_num();
120
+                    });
121
+                }
122
+            },
123
+        });
124
+    }
125
+});
126
+
127
+//上传文件
128
+function upload() {
129
+    var Files = document.getElementById("upFile").files;
130
+    if (Files.length > 0) {
131
+        var formData = new FormData();
132
+        for (var i = 0; i < Files.length; i++) {
133
+            formData.append("file" + i, Files[i]);
134
+        }
135
+        formData.append("token", $.cookie("token"));
136
+        console.log(formData);
137
+        console.log("123",formData.file0);
138
+        var typeName = Files[0].name.split(".")[1];
139
+        if (
140
+            typeName == "png" ||
141
+            typeName == "jpg" ||
142
+            typeName == "mp4" ||
143
+            typeName == "mp3" ||
144
+            typeName == "pdf" ||
145
+            typeName == "doc" ||
146
+            typeName == "docx" ||
147
+            typeName == "xls" ||
148
+            typeName == "xlsx"
149
+        ) {
150
+            $.ajax({
151
+                url: huayi.config.callcenter_url + "HotspotGlossary/UploadFile",
152
+                type: "POST",
153
+                data: formData,
154
+                /**
155
+                 *必须false才会自动加上正确的Content-Type
156
+                 */
157
+                contentType: false,
158
+                /**
159
+                 * 必须false才会避开jQuery对 formdata 的默认处理
160
+                 * XMLHttpRequest会对 formdata 进行正确的处理
161
+                 */
162
+                processData: false,
163
+                success: function (result) {
164
+                    document.getElementById("upFile").outerHTML =
165
+                        document.getElementById("upFile").outerHTML;
166
+                    $("#upFile").change(function () {
167
+                        upload();
168
+                    });
169
+                    var r = $.parseJSON(result);
170
+                    if (r.state.toLowerCase() == "success") {
171
+                        //								$(".fjnr").text(r.data[0].F_FileName);
172
+                        var a = r.data;
173
+                        $(a).each(function (i, n) {
174
+                            var strs =
175
+                                '<span class="files" fiel-num="' +
176
+                                n.F_FileId +
177
+                                '">' +
178
+                                n.F_FileName.substring(19) +
179
+                                '<i class="fa fa-remove del_file"></i></span>';
180
+                            $(strs)
181
+                                .appendTo($(".fileBox"))
182
+                                .find(".del_file")
183
+                                .click(function (event) {
184
+                                    event.stopPropagation();
185
+                                    $(this).parent().remove();
186
+                                    file_num();
187
+                                });
188
+                        });
189
+                        file_num();
190
+                    }
191
+                },
192
+            });
193
+        } else {
194
+            layer.msg("格式不正确");
195
+        }
196
+    } else {
197
+        layer.confirm("请上传文件!", {
198
+            btn: ["确定"],
199
+        });
200
+    }
201
+}
202
+//上传文件隐藏域值
203
+function file_num() {
204
+    var str = "";
205
+    var Str;
206
+    $(".fileBox .files").each(function (j, m) {
207
+        var aa = $(m).attr("fiel-num");
208
+        console.log(aa);
209
+        str += aa + ",";
210
+        Str =
211
+            str.substring(str.length - 1) == ","
212
+                ? str.substring(0, str.length - 1)
213
+                : str;
214
+    });
215
+    $("#file").val(Str);
216
+}

+ 45 - 66
WebUI/CallCenterWeb.UI/zhiShiKu/js/addOrEditZhiShiKuPolicyExpert.js

@@ -47,7 +47,7 @@ $(document).ready(function () {
47 47
                 zhiwu: $("#job").val(), // 职务
48 48
                 shouji: $("#phoneNumber").val(), // 手机号码
49 49
                 dianhua: $("#officePhone").val(), // 办公电话
50
-                biaoshibianma: $("#identifyEncoding").val(), // 标识编码
50
+                // biaoshibianma: $("#identifyEncoding").val(), // 标识编码
51 51
                 diqu: $("#address").val(), // 地区
52 52
                 hangye: $("#industry").val(), // 行业
53 53
                 shengxiaoshijian: $("#effectiveTime").val(), // 生效时间
@@ -94,28 +94,13 @@ $(document).ready(function () {
94 94
                     $("#publishTime").val(data.F_FaBuShiJian);
95 95
                     $("#officePhone").val(data.F_DianHua);
96 96
                     $("#publishPersonal").val(data.F_FaBuRen);
97
-                    $("#identifyEncoding").val(data.F_BiaoShiBianMa);
97
+                    // $("#identifyEncoding").val(data.F_BiaoShiBianMa);
98 98
                     $("#publishUnit").val(data.F_FaBuDanWei);
99 99
                     $("#introductionFieldExpertise").val(data.F_ZhuanYeLingYuJianJie);
100 100
 
101
-                    $(result.data.F_TouXiang).each(function (k, q) {
102
-                        var strs =
103
-                            '<span class="files" fiel-num="' +
104
-                            q.F_FileId +
105
-                            '">' +
106
-                            q.F_FileName.substring(19) +
107
-                            '<i class="fa fa-remove del_file"></i></span>';
108
-                        $(strs)
109
-                            .appendTo($(".fileBox"))
110
-                            .find(".del_file")
111
-                            .click(function (event) {
112
-                                event.stopPropagation();
113
-                                $(this).parent().remove();
114
-                                file_num();
115
-                                console.log($(".fileBox").find(".del_file"));
116
-                            });
117
-                        file_num();
118
-                    });
101
+                    if(data.F_TouXiang) {
102
+                        avatarDisplay(data.F_TouXiang);
103
+                    }
119 104
                 }
120 105
             },
121 106
         });
@@ -127,23 +112,15 @@ function upload() {
127 112
     var Files = document.getElementById("upFile").files;
128 113
     if (Files.length > 0) {
129 114
         var formData = new FormData();
130
-        for (var i = 0; i < Files.length; i++) {
131
-            formData.append("file" + i, Files[i]);
132
-        }
115
+        // for (var i = 0; i < Files.length; i++) {
116
+        //     formData.append("file" + i, Files[i]);
117
+        // }
118
+        formData.append("upFile", Files[0]);
133 119
         formData.append("token", $.cookie("token"));
134
-        console.log(formData);
135
-        console.log("123",formData.file0);
136 120
         var typeName = Files[0].name.split(".")[1];
137 121
         if (
138 122
             typeName == "png" ||
139
-            typeName == "jpg" ||
140
-            typeName == "mp4" ||
141
-            typeName == "mp3" ||
142
-            typeName == "pdf" ||
143
-            typeName == "doc" ||
144
-            typeName == "docx" ||
145
-            typeName == "xls" ||
146
-            typeName == "xlsx"
123
+            typeName == "jpg"
147 124
         ) {
148 125
             $.ajax({
149 126
                 url: huayi.config.callcenter_url + "Professor/UploadTX",
@@ -166,25 +143,8 @@ function upload() {
166 143
                     });
167 144
                     var r = $.parseJSON(result);
168 145
                     if (r.state.toLowerCase() == "success") {
169
-                        //								$(".fjnr").text(r.data[0].F_FileName);
170
-                        var a = r.data;
171
-                        $(a).each(function (i, n) {
172
-                            var strs =
173
-                                '<span class="files" fiel-num="' +
174
-                                n.F_FileId +
175
-                                '">' +
176
-                                n.F_FileName.substring(19) +
177
-                                '<i class="fa fa-remove del_file"></i></span>';
178
-                            $(strs)
179
-                                .appendTo($(".fileBox"))
180
-                                .find(".del_file")
181
-                                .click(function (event) {
182
-                                    event.stopPropagation();
183
-                                    $(this).parent().remove();
184
-                                    file_num();
185
-                                });
186
-                        });
187
-                        file_num();
146
+                        var data = r.data;
147
+                        avatarDisplay(data);
188 148
                     }
189 149
                 },
190 150
             });
@@ -198,17 +158,36 @@ function upload() {
198 158
     }
199 159
 }
200 160
 //上传文件隐藏域值
201
-function file_num() {
202
-    var str = "";
203
-    var Str;
204
-    $(".fileBox .files").each(function (j, m) {
205
-        var aa = $(m).attr("fiel-num");
206
-        console.log(aa);
207
-        str += aa + ",";
208
-        Str =
209
-            str.substring(str.length - 1) == ","
210
-                ? str.substring(0, str.length - 1)
211
-                : str;
212
-    });
213
-    $("#file").val(Str);
214
-}
161
+// function file_num() {
162
+//     var str = "";
163
+//     var Str;
164
+//     $(".fileBox .files").each(function (j, m) {
165
+//         var aa = $(m).attr("fiel-num");
166
+//         console.log(aa);
167
+//         str += aa + ",";
168
+//         Str =
169
+//             str.substring(str.length - 1) == ","
170
+//                 ? str.substring(0, str.length - 1)
171
+//                 : str;
172
+//     });
173
+//     $("#file").val(Str);
174
+// }
175
+
176
+// 头像展示
177
+function avatarDisplay(data) {
178
+    $(".imgBox").empty();
179
+    var str = "<div class='imgWrapper'><img class='' with='80' height='80' src="+ huayi.config.callcenter_url + data + "><div class='imgMask'><i class='fa fa-remove del_file'></i></div></div>"
180
+    $(".imgBox").append(str);
181
+    $(".imgBox").find(".imgWrapper").mouseenter(function() {
182
+        $(this).find(".imgMask").show()
183
+    })
184
+    $(".imgBox").find(".imgWrapper").mouseleave(function() {
185
+        $(this).find(".imgMask").hide()
186
+    })
187
+    $(".imgBox").find(".imgWrapper").find(".del_file").click(function(event) {
188
+        event.stopPropagation();
189
+        $(this).parent().parent().remove();
190
+        $("#file").val("");
191
+    })
192
+    $("#file").val(data);
193
+}

+ 71 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/detailZhiShiHotLssues.js

@@ -0,0 +1,71 @@
1
+var id = helper.request.queryString("id");
2
+$(document).ready(function () {
3
+    if (id) {
4
+        $.ajax({
5
+            type: "get",
6
+            url: huayi.config.callcenter_url + "HotspotGlossary/GetModel",
7
+            async: true,
8
+            dataType: "json",
9
+            data: {
10
+                token: $.cookie("token"),
11
+                id: id,
12
+            },
13
+            success: function (result) {
14
+                if (result.state.toLowerCase() == "success") {
15
+                    var model = result.data.model;
16
+                    var dtkey = result.data.dtkey;
17
+                    var dtfile = result.data.dtfile;
18
+
19
+                    $("#publishUnit").val(model.F_FaBuDanWei);
20
+                    $("#publishPersonal").val(model.F_FaBuRen);
21
+                    $("#industry").val(model.F_HangYe);
22
+                    $("#address").val(model.F_DiQu);
23
+                    $("#publishTime").val(model.F_FaBuShiJian);
24
+                    $("#effectiveTime").val(model.F_ShengXiaoShiJian);
25
+                    $("#invalidTime").val(model.F_ShiXiaoShiJian);
26
+                    $("#documentNumber").val(model.F_FaWenWenHao);
27
+                    $("#documentUnit").val(model.F_FaWenDanWei);
28
+                    $("#identifyEncoding").val(model.F_BiaoShiBianMa);
29
+                    $("#policyName").val(model.F_ZhengCeMingCi);
30
+                    $("#answeringUnit").val(model.F_JieDaDanWei);
31
+                    $("#hotIssues").val(model.F_ReDianWenTi);
32
+                    $("#contentAnswer").val(model.F_WenTiJieDa);
33
+                    $("#reflectCategory").val(dtkey[0].name);
34
+                    $("#keyId").val(dtkey[0].id);
35
+
36
+                    var htmls = "";
37
+                    $(dtfile).each(function (j, m) {
38
+                        var FileHtmls;
39
+                        if (m.F_FileType == ".jpg" || m.F_FileType == ".png") {
40
+                            FileHtmls = '<img style="width: 80px; height: 80px" border="0" onclick="viewImage(this)" src="' + m.F_FileUrl + '" alt="' + m.F_FileName + '" fileId="' + m.F_FileId +'">';
41
+                        } else {
42
+                            FileHtmls = '<div><a style="margin-right:5px;" target="view_window" href="' + m.F_FileUrl + '" download="' + m.F_FileName + '">' + m.F_FileName.substring(19) + '</a></div>'
43
+                        }
44
+                        htmls += FileHtmls;
45
+                    })
46
+                    $("#file").append(htmls);
47
+                }
48
+            },
49
+        });
50
+    }
51
+});
52
+
53
+function viewImage(file) {
54
+    var json = {
55
+        "title": "", //相册标题
56
+        "id": 1, //相册id
57
+        "start": 0, //初始显示的图片序号,默认0
58
+        "data": [ //相册包含的图片,数组格式
59
+            {
60
+                "alt": $(file).attr("alt"),
61
+                "pid": $(file).attr("fileId"), //图片id
62
+                "src": $(file).attr("src"), //原图地址
63
+                "thumb": "" //缩略图地址
64
+            }
65
+        ]
66
+    }
67
+    layer.photos({
68
+        photos: json,
69
+        anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
70
+    });
71
+}

+ 77 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/detailZhiShiKuGuide.js

@@ -0,0 +1,77 @@
1
+var id = helper.request.queryString("id");
2
+$(document).ready(function () {
3
+    if (id) {
4
+        $.ajax({
5
+            type: "get",
6
+            url: huayi.config.callcenter_url + "LawGuide/GetModel",
7
+            async: true,
8
+            dataType: "json",
9
+            data: {
10
+                token: $.cookie("token"),
11
+                id: id,
12
+            },
13
+            success: function (result) {
14
+                if (result.state.toLowerCase() == "success") {
15
+                    var model = result.data.model;
16
+                    var dtkey = result.data.dtkey;
17
+                    var dtfile = result.data.dtfile;
18
+
19
+                    $("#publishUnit").val(model.F_FaBuDanWei);
20
+                    $("#publishPersonal").val(model.F_FaBuRen);
21
+                    $("#industry").val(model.F_HangYe);
22
+                    $("#address").val(model.F_DiQu);
23
+                    $("#publishTime").val(model.F_FaBuShiJian);
24
+                    $("#effectiveTime").val(model.F_ShengXiaoShiJian);
25
+                    $("#invalidTime").val(model.F_ShiXiaoShiJian);
26
+                    $("#businessName").val(model.F_YeWuMingCheng);
27
+                    $("#identifyEncoding").val(model.F_BiaoShiBianMa);
28
+                    $("#applicationConditions").val(model.F_ShenQingTiaoJian);
29
+                    $("#policyBased").val(model.F_ZhengCeYiJu);
30
+                    $("#onlineURL").val(model.F_WangShangBanLiLianJie);
31
+                    $("#handlingMaterials").val(model.F_BanLiCaiLiao);
32
+                    $("#processingTimeLimit").val(model.F_BanLiShiXian);
33
+                    $("#handlingPlace").val(model.F_BanLiDiDian);
34
+                    $("#processingTime").val(model.F_BanLiShiJian);
35
+                    $("#telephone").val(model.F_BanLiDianHua);
36
+                    $("#otherInstructions").val(model.F_QiTaShuoMing);
37
+                    $("#process").val(model.F_BanLiLiuCheng);
38
+                    $("#remark").val(model.F_BeiZhu);
39
+                    $("#reflectCategory").val(dtkey[0].name);
40
+                    $("#keyId").val(dtkey[0].id);
41
+                    
42
+                    var htmls = "";
43
+                    $(dtfile).each(function (j, m) {
44
+                        var FileHtmls;
45
+                        if (m.F_FileType == ".jpg" || m.F_FileType == ".png") {
46
+                            FileHtmls = '<img style="width: 80px; height: 80px" border="0" onclick="viewImage(this)" src="' + m.F_FileUrl + '" alt="' + m.F_FileName + '" fileId="' + m.F_FileId +'">';
47
+                        } else {
48
+                            FileHtmls = '<div><a style="margin-right:5px;" target="view_window" href="' + m.F_FileUrl + '" download="' + m.F_FileName + '">' + m.F_FileName.substring(19) + '</a></div>'
49
+                        }
50
+                        htmls += FileHtmls;
51
+                    })
52
+                    $("#file").append(htmls);
53
+                }
54
+            },
55
+        });
56
+    }
57
+});
58
+
59
+function viewImage(file) {
60
+    var json = {
61
+        "title": "", //相册标题
62
+        "id": 1, //相册id
63
+        "start": 0, //初始显示的图片序号,默认0
64
+        "data": [ //相册包含的图片,数组格式
65
+            {
66
+                "alt": $(file).attr("alt"),
67
+                "pid": $(file).attr("fileId"), //图片id
68
+                "src": $(file).attr("src"), //原图地址
69
+                "thumb": "" //缩略图地址
70
+            }
71
+        ]
72
+    }
73
+    layer.photos({
74
+        photos: json,
75
+        anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
76
+    });
77
+}

+ 70 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/detaileZhiShiKuPoliciesRegulations.js

@@ -0,0 +1,70 @@
1
+var id = helper.request.queryString("id");
2
+$(document).ready(function () {
3
+    if (id) {
4
+        $.ajax({
5
+            type: "get",
6
+            url: huayi.config.callcenter_url + "Policy/GetModel",
7
+            async: true,
8
+            dataType: "json",
9
+            data: {
10
+                token: $.cookie("token"),
11
+                id: id,
12
+            },
13
+            success: function (result) {
14
+                if (result.state.toLowerCase() == "success") {
15
+                    var model = result.data.model;
16
+                    var dtkey = result.data.dtkey;
17
+                    var dtfile = result.data.dtfile;
18
+
19
+                    $("#publishUnit").val(model.F_FaBuDanWei);
20
+                    $("#publishPersonal").val(model.F_FaBuRen);
21
+                    $("#industry").val(model.F_HangYe);
22
+                    $("#address").val(model.F_DiQu);
23
+                    $("#publishTime").val(model.F_FaBuShiJian);
24
+                    $("#effectiveTime").val(model.F_ShengXiaoShiJian);
25
+                    $("#invalidTime").val(model.F_ShiXiaoShiJian);
26
+                    $("#documentNumber").val(model.F_FaWenWenHao);
27
+                    $("#documentUnit").val(model.F_FaWenDanWei);
28
+                    $("#functionalDepartment").val(model.F_ZhiNengBuMen);
29
+                    $("#identifyEncoding").val(model.F_BiaoShiBianMa);
30
+                    $("#fileName").val(model.F_WenJianMingCheng);
31
+                    $("#documentContent").val(model.F_WenJianNeiRong);
32
+                    $("#reflectCategory").val(dtkey[0].name);
33
+                    $("#keyId").val(dtkey[0].id);
34
+
35
+                    var htmls = "";
36
+                    $(dtfile).each(function (j, m) {
37
+                        var FileHtmls;
38
+                        if (m.F_FileType == ".jpg" || m.F_FileType == ".png") {
39
+                            FileHtmls = '<img style="width: 80px; height: 80px" border="0" onclick="viewImage(this)" src="' + m.F_FileUrl + '" alt="' + m.F_FileName + '" fileId="' + m.F_FileId +'">';
40
+                        } else {
41
+                            FileHtmls = '<div><a style="margin-right:5px;" target="view_window" href="' + m.F_FileUrl + '" download="' + m.F_FileName + '">' + m.F_FileName.substring(19) + '</a></div>'
42
+                        }
43
+                        htmls += FileHtmls;
44
+                    })
45
+                    $("#file").append(htmls);
46
+                }
47
+            },
48
+        });
49
+    }
50
+});
51
+
52
+function viewImage(file) {
53
+    var json = {
54
+        "title": "", //相册标题
55
+        "id": 1, //相册id
56
+        "start": 0, //初始显示的图片序号,默认0
57
+        "data": [ //相册包含的图片,数组格式
58
+            {
59
+                "alt": $(file).attr("alt"),
60
+                "pid": $(file).attr("fileId"), //图片id
61
+                "src": $(file).attr("src"), //原图地址
62
+                "thumb": "" //缩略图地址
63
+            }
64
+        ]
65
+    }
66
+    layer.photos({
67
+        photos: json,
68
+        anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
69
+    });
70
+}

+ 82 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/reflectCategory.js

@@ -0,0 +1,82 @@
1
+$(document).ready(function() {
2
+    // 获取反映类别
3
+    getReactionCategory();
4
+    $("#reflectCategory").bind("input propertychange", function () {
5
+        $(".layui-dropdown").hide();
6
+        if ($("#reflectCategory").val() == "") {
7
+            $(".reflectCategoryList-wrapper").hide();
8
+            return;
9
+        }
10
+        var debounceGetSearchReactionCategory = debounce(getSearchReactionCategory, 500)
11
+        $(".reflectCategoryList-wrapper").show();
12
+        debounceGetSearchReactionCategory($("#reflectCategory").val())
13
+    })
14
+    $("#reflectCategoryList").on("click", "li", function () {
15
+        $(".reflectCategoryList-wrapper").hide();
16
+        $("#reflectCategory").val($(this).attr("indexName"));
17
+        $("#keyId").val($(this).attr("index"));
18
+    });
19
+})
20
+
21
+function getReactionCategory(pid = 38) {
22
+    $.get(
23
+        huayi.config.callcenter_url + "Dictionary/GetZTreeNew", {
24
+            token: $.cookie("token"),
25
+            pid: pid,
26
+        },
27
+        function (result) {
28
+            result = $.parseJSON(result);
29
+            var content = JSON.parse(result.data);
30
+            layui.use("dropdown", function () {
31
+                var dropdown = layui.dropdown;
32
+                dropdown.render({
33
+                    elem: "#reflectCategory", //可绑定在任意元素中,此处以上述按钮为例
34
+                    data: content,
35
+                    id: "reflectCategory",
36
+                    //菜单被点击的事件
37
+                    click: function (obj) {
38
+                        $("#reflectCategory").val(obj.title)
39
+                        $("#keyId").val(obj.id)
40
+                    },
41
+                });
42
+                
43
+            });
44
+        }
45
+    );
46
+}
47
+
48
+function getSearchReactionCategory(key) {
49
+    $.get(
50
+        huayi.config.callcenter_url + "Dictionary/GetKeyListNew", {
51
+            token: $.cookie("token"),
52
+            key: key,
53
+        },
54
+        function (result) {
55
+            result = $.parseJSON(result);
56
+            if (result.state.toLowerCase() === "success") {
57
+                $("#reflectCategoryList").empty();
58
+                var content = result.data;
59
+                if (content.length > 0) {
60
+                    content.forEach(function (e, i) {
61
+                        $("<li index='" + e.id + "' indexName='" + e.name + "'>" + e.names +
62
+                                "</li>")
63
+                            .appendTo("#reflectCategoryList");
64
+                    });
65
+                } else {
66
+                    $("<li index='' indexName=''>没有相关数据</li>").appendTo("#reflectCategoryList");
67
+                }
68
+            }
69
+        }
70
+    );
71
+}
72
+
73
+function debounce(fun, delay) {
74
+    return function (args) {
75
+        var that = this;
76
+        var _args = args
77
+        clearTimeout(fun.id)
78
+        fun.id = setTimeout(function () {
79
+            fun.call(that, _args)
80
+        }, delay)
81
+    }
82
+}

+ 15 - 5
WebUI/CallCenterWeb.UI/zhiShiKu/js/zhiShiKuGuide.js

@@ -43,6 +43,7 @@ function initTable(action, isPass) {
43 43
                 pagesize: params.pageSize,
44 44
                 token: $.cookie("token"),
45 45
                 keyvalue: $("#keyvalue").val(),
46
+                key: $("#keyId").val(),
46 47
                 stime: $("#starttime").val(),
47 48
                 etime: $("#endtime").val(),
48 49
             };
@@ -66,11 +67,11 @@ function setCode(val, row, index) {
66 67
 function operation(val, row) {
67 68
     return (
68 69
         '<div class="tool_downs">' +
69
-        // '<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' +
70
-        // row.F_Id +
71
-        // '" onclick="detail(\'' +
72
-        // row.F_Id +
73
-        // '\')" title="详情">详情</a>' +
70
+        '<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' +
71
+        row.F_Id +
72
+        '" onclick="detailBtn(\'' +
73
+        row.F_Id +
74
+        '\')" title="详情">详情</a>' +
74 75
         '<a href="javascript:;" class="aBtn" authorize="yes" onclick="editBtn(' +
75 76
         row.F_Id +
76 77
         ')" title="编辑">编辑</a>' +
@@ -120,3 +121,12 @@ function deleteBtn(id) {
120 121
         })
121 122
     });
122 123
 }
124
+
125
+function detailBtn(id) {
126
+    layer.open({
127
+        type: 2,
128
+        content: "./detailZhiShiKuGuide.html?id=" + id, //iframe的url,no代表不显示滚动条
129
+        title: "办事指南",
130
+        area: ["80%", "80%"], //宽高
131
+    });
132
+}

+ 132 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/zhiShiKuHotLssues.js

@@ -0,0 +1,132 @@
1
+var table = $("#tableList");
2
+$(document).ready(function () {
3
+    initTable();
4
+    laydate.skin('blue');
5
+    laydate({
6
+        elem: '#starttime',
7
+        event: 'focus',
8
+        istime: true,
9
+        format: 'YYYY-MM-DD hh:mm:ss'
10
+    });
11
+    laydate({
12
+        elem: '#endtime',
13
+        event: 'focus',
14
+        istime: true,
15
+        format: 'YYYY-MM-DD hh:mm:ss'
16
+    });
17
+});
18
+
19
+function initTable(action, isPass) {
20
+    //先销毁表格
21
+    table.bootstrapTable("destroy");
22
+    //初始化表格,动态从服务器加载数据
23
+    table.bootstrapTable({
24
+        method: "get", //使用get请求到服务器获取数据
25
+        url: huayi.config.callcenter_url + "HotspotGlossary/GetList", //获取数据的Servlet地址
26
+        contentType: "application/x-www-form-urlencoded",
27
+        striped: true, //表格显示条纹
28
+        pagination: true, //启动分页
29
+        pageSize: 10, //每页显示的记录数
30
+        pageNumber: 1, //当前第几页
31
+        pageList: [10, 20, 50, 100], //记录数可选列表
32
+        search: false, //是否启用查询
33
+        showColumns: false, //显示下拉框勾选要显示的列
34
+        showRefresh: false, //显示刷新按钮
35
+        sidePagination: "server", //表示服务端请求
36
+        //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
37
+        //设置为limit可以获取limit, offset, search, sort, order
38
+        queryParamsType: "undefined",
39
+        queryParams: function queryParams(params) {
40
+            //设置查询参数
41
+            var param = {
42
+                page: params.pageNumber,
43
+                pagesize: params.pageSize,
44
+                token: $.cookie("token"),
45
+                keyvalue: $("#keyvalue").val(),
46
+                key: $("#keyId").val(),
47
+                stime: $("#starttime").val(),
48
+                etime: $("#endtime").val(),
49
+            };
50
+            return param;
51
+        },
52
+        onLoadSuccess: function () {
53
+            //加载成功时执行
54
+            //layer.msg("加载成功");
55
+        },
56
+        onLoadError: function () {
57
+            //加载失败时执行
58
+            //layer.msg("加载数据失败", { time: 1500, icon: 2 });
59
+        },
60
+    });
61
+}
62
+
63
+function setCode(val, row, index) {
64
+    return index + 1;
65
+}
66
+
67
+function operation(val, row) {
68
+    return (
69
+        '<div class="tool_downs">' +
70
+        '<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' +
71
+        row.F_Id +
72
+        '" onclick="detailBtn(\'' +
73
+        row.F_Id +
74
+        '\')" title="详情">详情</a>' +
75
+        '<a href="javascript:;" class="aBtn" authorize="yes" onclick="editBtn(' +
76
+        row.F_Id +
77
+        ')" title="编辑">编辑</a>' +
78
+        '<div class="tool_downs">' +
79
+        '<a href="javascript:;" class="aBtn" authorize="yes" onclick="deleteBtn(' +
80
+        row.F_Id +
81
+        ')" title="删除">删除</a>' +
82
+        "</div>"
83
+    );
84
+}
85
+
86
+$(".searchGo").click(function () {
87
+    initTable();
88
+});
89
+
90
+$(".addBtn").click(function () {
91
+    layer.open({
92
+        type: 2,
93
+        content: "./addOrEditZhiShiKuHotLssues.html", //iframe的url,no代表不显示滚动条
94
+        title: "热点问题",
95
+        area: ["80%", "80%"], //宽高
96
+    });
97
+});
98
+
99
+function editBtn(id) {
100
+    layer.open({
101
+        type: 2,
102
+        content: "./addOrEditZhiShiKuHotLssues.html?id=" + id, //iframe的url,no代表不显示滚动条
103
+        title: "热点问题",
104
+        area: ["80%", "80%"], //宽高
105
+    });
106
+}
107
+
108
+function deleteBtn(id) {
109
+    layer.confirm('确定删除吗?', {
110
+        btn: ['是', '否'] //按钮
111
+    }, function () {
112
+        $.post(huayi.config.callcenter_url + "HotspotGlossary/DelModel", {
113
+            ids: id,
114
+            token: $.cookie("token")
115
+        }, function (result) {
116
+            result = JSON.parse(result);
117
+            if (result.state.toLowerCase() == "success") {
118
+                layer.msg("删除成功");
119
+                initTable()
120
+            }
121
+        })
122
+    });
123
+}
124
+
125
+function detailBtn(id) {
126
+    layer.open({
127
+        type: 2,
128
+        content: "./detailZhiShiHotLssues.html?id=" + id, //iframe的url,no代表不显示滚动条
129
+        title: "热点问题",
130
+        area: ["80%", "80%"], //宽高
131
+    });
132
+}

+ 132 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/zhiShiKuPoliciesRegulations.js

@@ -0,0 +1,132 @@
1
+var table = $("#tableList");
2
+$(document).ready(function () {
3
+    initTable();
4
+    laydate.skin('blue');
5
+    laydate({
6
+        elem: '#starttime',
7
+        event: 'focus',
8
+        istime: true,
9
+        format: 'YYYY-MM-DD hh:mm:ss'
10
+    });
11
+    laydate({
12
+        elem: '#endtime',
13
+        event: 'focus',
14
+        istime: true,
15
+        format: 'YYYY-MM-DD hh:mm:ss'
16
+    });
17
+});
18
+
19
+function initTable(action, isPass) {
20
+    //先销毁表格
21
+    table.bootstrapTable("destroy");
22
+    //初始化表格,动态从服务器加载数据
23
+    table.bootstrapTable({
24
+        method: "get", //使用get请求到服务器获取数据
25
+        url: huayi.config.callcenter_url + "Policy/GetList", //获取数据的Servlet地址
26
+        contentType: "application/x-www-form-urlencoded",
27
+        striped: true, //表格显示条纹
28
+        pagination: true, //启动分页
29
+        pageSize: 10, //每页显示的记录数
30
+        pageNumber: 1, //当前第几页
31
+        pageList: [10, 20, 50, 100], //记录数可选列表
32
+        search: false, //是否启用查询
33
+        showColumns: false, //显示下拉框勾选要显示的列
34
+        showRefresh: false, //显示刷新按钮
35
+        sidePagination: "server", //表示服务端请求
36
+        //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
37
+        //设置为limit可以获取limit, offset, search, sort, order
38
+        queryParamsType: "undefined",
39
+        queryParams: function queryParams(params) {
40
+            //设置查询参数
41
+            var param = {
42
+                page: params.pageNumber,
43
+                pagesize: params.pageSize,
44
+                token: $.cookie("token"),
45
+                keyvalue: $("#keyvalue").val(),
46
+                key: $("#keyId").val(),
47
+                stime: $("#starttime").val(),
48
+                etime: $("#endtime").val(),
49
+            };
50
+            return param;
51
+        },
52
+        onLoadSuccess: function () {
53
+            //加载成功时执行
54
+            //layer.msg("加载成功");
55
+        },
56
+        onLoadError: function () {
57
+            //加载失败时执行
58
+            //layer.msg("加载数据失败", { time: 1500, icon: 2 });
59
+        },
60
+    });
61
+}
62
+
63
+function setCode(val, row, index) {
64
+    return index + 1;
65
+}
66
+
67
+function operation(val, row) {
68
+    return (
69
+        '<div class="tool_downs">' +
70
+        '<a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' +
71
+        row.F_Id +
72
+        '" onclick="detailBtn(\'' +
73
+        row.F_Id +
74
+        '\')" title="详情">详情</a>' +
75
+        '<a href="javascript:;" class="aBtn" authorize="yes" onclick="editBtn(' +
76
+        row.F_Id +
77
+        ')" title="编辑">编辑</a>' +
78
+        '<div class="tool_downs">' +
79
+        '<a href="javascript:;" class="aBtn" authorize="yes" onclick="deleteBtn(' +
80
+        row.F_Id +
81
+        ')" title="删除">删除</a>' +
82
+        "</div>"
83
+    );
84
+}
85
+
86
+$(".searchGo").click(function () {
87
+    initTable();
88
+});
89
+
90
+$(".addBtn").click(function () {
91
+    layer.open({
92
+        type: 2,
93
+        content: "./addOrEditZhiShiKuPoliciesRegulations.html", //iframe的url,no代表不显示滚动条
94
+        title: "政策法规",
95
+        area: ["80%", "80%"], //宽高
96
+    });
97
+});
98
+
99
+function editBtn(id) {
100
+    layer.open({
101
+        type: 2,
102
+        content: "./addOrEditZhiShiKuPoliciesRegulations.html?id=" + id, //iframe的url,no代表不显示滚动条
103
+        title: "政策法规",
104
+        area: ["80%", "80%"], //宽高
105
+    });
106
+}
107
+
108
+function deleteBtn(id) {
109
+    layer.confirm('确定删除吗?', {
110
+        btn: ['是', '否'] //按钮
111
+    }, function () {
112
+        $.post(huayi.config.callcenter_url + "Policy/DelModel", {
113
+            ids: id,
114
+            token: $.cookie("token")
115
+        }, function (result) {
116
+            result = JSON.parse(result);
117
+            if (result.state.toLowerCase() == "success") {
118
+                layer.msg("删除成功");
119
+                initTable()
120
+            }
121
+        })
122
+    });
123
+}
124
+
125
+function detailBtn(id) {
126
+    layer.open({
127
+        type: 2,
128
+        content: "./detaileZhiShiKuPoliciesRegulations.html?id=" + id, //iframe的url,no代表不显示滚动条
129
+        title: "政策法规",
130
+        area: ["80%", "80%"], //宽高
131
+    });
132
+}

+ 26 - 5
WebUI/CallCenterWeb.UI/zhiShiKu/zhiShiKuGuide.html

@@ -9,7 +9,9 @@
9 9
     <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10 10
     <link rel="stylesheet" href="../css/init.css" />
11 11
     <link rel="stylesheet" href="../js/layui/css/layui.css">
12
-    <title>政策专家库</title>
12
+    <link rel="stylesheet" href="./css/reflectCategory.css">
13
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
14
+    <title>办事指南</title>
13 15
     <style>
14 16
         .toolBar {
15 17
             padding: 15px 0;
@@ -36,6 +38,9 @@
36 38
         	float: left;
37 39
         	padding-left: 10px;
38 40
         }
41
+        .reflectCategory-wrapper {
42
+            display: inline-block;
43
+        }
39 44
     </style>
40 45
 </head>
41 46
 
@@ -44,7 +49,7 @@
44 49
         <div class="daoHang clearfix">
45 50
             <div class="dhLeft">
46 51
                 <sapn><i class="syIcon"></i>位置:<a id="ReIndex">首页</a>&gt;<a href="javaScript:;">知识库</a>&gt;<a href=""
47
-                        class="nowPosition">政策专家库</a></sapn>
52
+                        class="nowPosition">办事指南</a></sapn>
48 53
             </div>
49 54
             <div class="dhRight"><a href="" title="刷新"><i class="fa fa-refresh"></i></a></div>
50 55
         </div>
@@ -55,6 +60,17 @@
55 60
                     <input id="keyvalue" type="text" class="">
56 61
                 </span>
57 62
                 <span>
63
+                    关键词:
64
+                     <div class="reflectCategory-wrapper">
65
+                        <input type="text" id="reflectCategory" class="" autocomplete="off" />
66
+                        <input type="hidden" id="keyId">
67
+                        <div class="reflectCategoryList-wrapper">
68
+                            <ul id="reflectCategoryList">
69
+                            </ul>
70
+                        </div>
71
+                    </div>
72
+                </span>
73
+                <span>
58 74
                     开始时间
59 75
                     <input id="starttime" type="text" class="">
60 76
                 </span>
@@ -75,10 +91,13 @@
75 91
                         <tr>
76 92
                             <!-- <th data-checkbox="true" data-align="center"></th> -->
77 93
                             <th data-align="center" data-formatter="setCode">编号</th>
78
-                            <th data-field="F_XingMing" data-align="center">专家姓名</th>
79
-                            <th data-field="F_ShouJi" data-align="center">手机号码</th>
80
-                            <th data-field="F_FaBuShiJian" data-align="center">发布时间</th>
81 94
                             <th data-field="F_FaBuDanWei" data-align="center">发布单位</th>
95
+                            <th data-field="F_FaBuShiJian" data-align="center">发布时间</th>
96
+                            <th data-field="F_YeWuMingCheng" data-align="center">业务名称</th>
97
+                            <th data-field="F_BiaoShiBianMa" data-align="center">标识编码</th>
98
+                            <th data-field="F_QiTaShuoMing" data-align="center">其他说明</th>
99
+                            <th data-field="F_BanLiLiuCheng" data-align="center">办理流程</th>
100
+                            <th data-field="F_BeiZhu" data-align="center">备注</th>
82 101
                             <th data-align="center" data-formatter="operation">操作</th>
83 102
                         </tr>
84 103
                     </thead>
@@ -87,8 +106,10 @@
87 106
             </div>
88 107
         </div>
89 108
     </div>
109
+    <script src="../js/layui/layui.js"></script>
90 110
     <script src="../css/layer/layer.js"></script>
91 111
     <script src="../css/laydate/laydate.js"></script>
112
+    <script src="./js/reflectCategory.js"></script>
92 113
     <script src="./js/zhiShiKuGuide.js"></script>
93 114
 </body>
94 115
 

+ 116 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/zhiShiKuHotLssues.html

@@ -0,0 +1,116 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <!--<link rel="stylesheet" href="../css/layer/need/layer.css" />-->
9
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10
+    <link rel="stylesheet" href="../css/init.css" />
11
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
12
+    <link rel="stylesheet" href="./css/reflectCategory.css">
13
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
14
+    <title>热点问题</title>
15
+    <style>
16
+        .toolBar {
17
+            padding: 15px 0;
18
+            border-bottom: 1px solid #ccc;
19
+        }
20
+
21
+        .treeTable {
22
+            height: 400px;
23
+        }
24
+
25
+        .tool_downs{
26
+        	display: flex;
27
+        	justify-content: center;
28
+        }
29
+        .tool_downs span{
30
+        	display: block;
31
+        	width: 100%;
32
+        	height: 100%;
33
+        	text-align: center;
34
+        }
35
+        .tool_downs a{
36
+        	display: block;
37
+        	list-style: none;
38
+        	float: left;
39
+        	padding-left: 10px;
40
+        }
41
+        .reflectCategory-wrapper {
42
+            display: inline-block;
43
+        }
44
+    </style>
45
+</head>
46
+
47
+<body class="gray-bg">
48
+    <div class="container-fluid wrapper-content animated fadeInRight">
49
+        <div class="daoHang clearfix">
50
+            <div class="dhLeft">
51
+                <sapn><i class="syIcon"></i>位置:<a id="ReIndex">首页</a>&gt;<a href="javaScript:;">知识库</a>&gt;<a href=""
52
+                        class="nowPosition">热点问题</a></sapn>
53
+            </div>
54
+            <div class="dhRight"><a href="" title="刷新"><i class="fa fa-refresh"></i></a></div>
55
+        </div>
56
+        <div class="toolBar clearfix">
57
+            <div class="toolRight">
58
+                <span>
59
+                    关键字:
60
+                    <input id="keyvalue" type="text" class="">
61
+                </span>
62
+                <span>
63
+                    关键词:
64
+                     <div class="reflectCategory-wrapper">
65
+                        <input type="text" id="reflectCategory" class="" autocomplete="off" />
66
+                        <input type="hidden" id="keyId">
67
+                        <div class="reflectCategoryList-wrapper">
68
+                            <ul id="reflectCategoryList">
69
+                            </ul>
70
+                        </div>
71
+                    </div>
72
+                </span>
73
+                <span>
74
+                    开始时间
75
+                    <input id="starttime" type="text" class="">
76
+                </span>
77
+                <span>
78
+                    结束时间
79
+                    <input id="endtime" type="text" class="">
80
+                </span>
81
+                <button class="btns searchGo">搜索</button>
82
+                <button class="btns addBtn">添加</button>
83
+            </div>
84
+
85
+        </div>
86
+        <div class="treeTable clearfix">
87
+
88
+            <div class="tableCon col-md-12">
89
+                <table id="tableList" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
90
+                    <thead>
91
+                        <tr>
92
+                            <!-- <th data-checkbox="true" data-align="center"></th> -->
93
+                            <th data-align="center" data-formatter="setCode">编号</th>
94
+                            <th data-field="F_FaBuShiJian" data-align="center">发布时间</th>
95
+                            <th data-field="F_FaWenWenHao" data-align="center">发文文号</th>
96
+                            <th data-field="F_FaWenDanWei" data-align="center">发文单位</th>
97
+                            <th data-field="F_BiaoShiBianMa" data-align="center">标识编码</th>
98
+                            <th data-field="F_ZhengCeMingCi" data-align="center">政策名称</th>
99
+                            <th data-field="F_ReDianWenTi" data-align="center">热点问题</th>
100
+                            <th data-field="F_WenTiJieDa" data-align="center">内容解答</th>
101
+                            <th data-align="center" data-formatter="operation">操作</th>
102
+                        </tr>
103
+                    </thead>
104
+                    <tbody id="tbody"></tbody>
105
+                </table>
106
+            </div>
107
+        </div>
108
+    </div>
109
+    <script src="../js/layui/layui.js"></script>
110
+    <script src="../css/layer/layer.js"></script>
111
+    <script src="../css/laydate/laydate.js"></script>
112
+    <script src="./js/reflectCategory.js"></script>
113
+    <script src="./js/zhiShiKuHotLssues.js"></script>
114
+</body>
115
+
116
+</html>

+ 116 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/zhiShiKuPoliciesRegulations.html

@@ -0,0 +1,116 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <!--<link rel="stylesheet" href="../css/layer/need/layer.css" />-->
9
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10
+    <link rel="stylesheet" href="../css/init.css" />
11
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
12
+    <link rel="stylesheet" href="./css/reflectCategory.css">
13
+    <link rel="stylesheet" href="../js/layui/css/layui.css">
14
+    <title>政策法规</title>
15
+    <style>
16
+        .toolBar {
17
+            padding: 15px 0;
18
+            border-bottom: 1px solid #ccc;
19
+        }
20
+
21
+        .treeTable {
22
+            height: 400px;
23
+        }
24
+
25
+        .tool_downs{
26
+        	display: flex;
27
+        	justify-content: center;
28
+        }
29
+        .tool_downs span{
30
+        	display: block;
31
+        	width: 100%;
32
+        	height: 100%;
33
+        	text-align: center;
34
+        }
35
+        .tool_downs a{
36
+        	display: block;
37
+        	list-style: none;
38
+        	float: left;
39
+        	padding-left: 10px;
40
+        }
41
+        .reflectCategory-wrapper {
42
+            display: inline-block;
43
+        }
44
+    </style>
45
+</head>
46
+
47
+<body class="gray-bg">
48
+    <div class="container-fluid wrapper-content animated fadeInRight">
49
+        <div class="daoHang clearfix">
50
+            <div class="dhLeft">
51
+                <sapn><i class="syIcon"></i>位置:<a id="ReIndex">首页</a>&gt;<a href="javaScript:;">知识库</a>&gt;<a href=""
52
+                        class="nowPosition">政策法规</a></sapn>
53
+            </div>
54
+            <div class="dhRight"><a href="" title="刷新"><i class="fa fa-refresh"></i></a></div>
55
+        </div>
56
+        <div class="toolBar clearfix">
57
+            <div class="toolRight">
58
+                <span>
59
+                    关键字:
60
+                    <input id="keyvalue" type="text" class="">
61
+                </span>
62
+                <span>
63
+                    关键词:
64
+                     <div class="reflectCategory-wrapper">
65
+                        <input type="text" id="reflectCategory" class="" autocomplete="off" />
66
+                        <input type="hidden" id="keyId">
67
+                        <div class="reflectCategoryList-wrapper">
68
+                            <ul id="reflectCategoryList">
69
+                            </ul>
70
+                        </div>
71
+                    </div>
72
+                </span>
73
+                <span>
74
+                    开始时间
75
+                    <input id="starttime" type="text" class="">
76
+                </span>
77
+                <span>
78
+                    结束时间
79
+                    <input id="endtime" type="text" class="">
80
+                </span>
81
+                <button class="btns searchGo">搜索</button>
82
+                <button class="btns addBtn">添加</button>
83
+            </div>
84
+
85
+        </div>
86
+        <div class="treeTable clearfix">
87
+
88
+            <div class="tableCon col-md-12">
89
+                <table id="tableList" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
90
+                    <thead>
91
+                        <tr>
92
+                            <!-- <th data-checkbox="true" data-align="center"></th> -->
93
+                            <th data-align="center" data-formatter="setCode">编号</th>
94
+                            <th data-field="F_FaBuShiJian" data-align="center">发布时间</th>
95
+                            <th data-field="F_FaWenWenHao" data-align="center">发文文号</th>
96
+                            <th data-field="F_FaWenDanWei" data-align="center">发文单位</th>
97
+                            <th data-field="F_ZhiNengBuMen" data-align="center">职能部门</th>
98
+                            <th data-field="F_BiaoShiBianMa" data-align="center">标识编码</th>
99
+                            <th data-field="F_WenJianMingCheng" data-align="center">文件名称</th>
100
+                            <th data-field="F_WenJianNeiRong" data-align="center">文件内容</th>
101
+                            <th data-align="center" data-formatter="operation">操作</th>
102
+                        </tr>
103
+                    </thead>
104
+                    <tbody id="tbody"></tbody>
105
+                </table>
106
+            </div>
107
+        </div>
108
+    </div>
109
+    <script src="../js/layui/layui.js"></script>
110
+    <script src="../css/layer/layer.js"></script>
111
+    <script src="../css/laydate/laydate.js"></script>
112
+    <script src="./js/reflectCategory.js"></script>
113
+    <script src="./js/zhiShiKuPoliciesRegulations.js"></script>
114
+</body>
115
+
116
+</html>