12345市长热线标准版-前端

newRepositoryDetail.html 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link rel="stylesheet" href="../css/init.css" />
  8. <title>新版知识库添加</title>
  9. <style type="text/css">
  10. ul,li{
  11. padding: 0;
  12. margin: 0;
  13. list-style: none;
  14. }
  15. .tab_list{
  16. border-bottom: 1px solid #d5d5d5;
  17. }
  18. .tab_list li{
  19. padding: 10px 15px;
  20. float: left;
  21. color: #333333;
  22. font-size: 14px;
  23. position: relative;
  24. }
  25. .tab_list li.active{
  26. color: #19aad0;
  27. }
  28. .tab_list li.active:after{
  29. content: "";
  30. width: 100%;
  31. height: 2px;
  32. background: #19aad0;
  33. position: absolute;
  34. bottom: -1px;
  35. left: 0;
  36. }
  37. .tab_content{
  38. font-size: 14px;
  39. color: #4c4c4c;
  40. padding: 15px 0;
  41. /*text-indent: 28px;*/
  42. }
  43. .tab_content>div{
  44. display: none;
  45. }
  46. .table tr td input[type="text"]{
  47. width: 100%;
  48. height: 30px;
  49. background: #f3f3f4;
  50. border: 0;
  51. outline: none;
  52. }
  53. .radio-inline input[type=radio]{
  54. margin-top: 2px;
  55. }
  56. .table tr td textarea{
  57. width: 100%;
  58. height: 100%;
  59. background: #f3f3f4;
  60. border: 0;
  61. resize: none;
  62. }
  63. #scwj{
  64. background-color: #FFF;
  65. background-image: none;
  66. border: 1px solid #ccc;
  67. border-radius: 1px;
  68. color: inherit;
  69. padding: 6px 12px!important;
  70. }
  71. .files{
  72. padding: 5px!important;
  73. }
  74. .time-box{
  75. position: relative;
  76. width: 197px!important;
  77. height: 34px;
  78. margin: 0;
  79. }
  80. .tub + input {
  81. padding-right: 30px;
  82. border: 1px solid #e5e6e7!important;
  83. }
  84. i.tub {
  85. position: absolute;
  86. right: 8px;
  87. top: 8px;
  88. font-size: 18px;
  89. color: #00a0ca;
  90. }
  91. .tab_content textarea{
  92. display: block;
  93. background: #f3f3f4;
  94. width: 100%;
  95. height: 298px;
  96. box-sizing: border-box;
  97. text-indent: 28px;
  98. }
  99. </style>
  100. </head>
  101. <body class="gray-bg">
  102. <div class="container-fluid wrapper-content animated fadeInRight">
  103. <table class="table table-bordered table-condensed">
  104. <tr>
  105. <td width="100">关键词</td>
  106. <td colspan="3"><input type="text" id="key" readonly="readonly"/></td>
  107. </tr>
  108. <tr>
  109. <td width="100">事件名称</td>
  110. <td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
  111. </tr>
  112. <tr >
  113. <td rowspan="2" width="100">公开电话</td>
  114. <td> <input type="text" id="publicphone1" readonly="readonly"/></td>
  115. <td rowspan="2" width="100">内部电话</td>
  116. <td> <input type="text" id="privatephone1" readonly="readonly" /></td>
  117. </tr>
  118. <tr>
  119. <td> <input type="text" id="publicphone2" readonly="readonly" /></td>
  120. <td> <input type="text" id="privatephone2" readonly="readonly" /></td>
  121. </tr>
  122. <tr>
  123. <td width="100" height="100"> 咨询要点</td>
  124. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="points" readonly="readonly"></textarea></td>
  125. </tr>
  126. <tr>
  127. <td width="100"> 标准话术</td>
  128. <td colspan="3"> <textarea name="" rows="" cols="" id="baseanswer" readonly="readonly"></textarea></td>
  129. </tr>
  130. <tr>
  131. <td width="100" height="100"> 结案参考</td>
  132. <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
  133. </tr>
  134. <tr>
  135. <td width="100"> 办理方式</td>
  136. <td><input type="text" id="dealtype" readonly="readonly"/></td>
  137. <td width="100"> 法定办结时限</td>
  138. <td><input type="text" id="legallimittime" readonly="readonly" /></td>
  139. </tr>
  140. <tr>
  141. <td width="100"> 是否收费</td>
  142. <td>
  143. <label class="radio-inline">
  144. <input type="radio" name="ispay" id="ispay1" value="1" readonly="readonly"> 是
  145. </label>
  146. <label class="radio-inline">
  147. <input type="radio" name="ispay" id="ispay2" value="0" readonly="readonly"> 否
  148. </label>
  149. </td>
  150. <td width="100"> 承诺办结时限</td>
  151. <td><input type="text" id="promiselimittime" readonly="readonly" /></td>
  152. </tr>
  153. <tr>
  154. <td width="100"> 收费标准</td>
  155. <td> <input type="text" id="paymoney" readonly="readonly" /></td>
  156. <td width="100"> 办公地点</td>
  157. <td><textarea name="" rows="" cols="" id="officeaddress" readonly="readonly"></textarea></td>
  158. </tr>
  159. <tr>
  160. <td width="100"> 办理对象</td>
  161. <td><input type="text" id="serobject" readonly="readonly" /></td>
  162. <td width="100"> 乘车路线</td>
  163. <td><textarea name="" rows="" cols=""id="busline" readonly="readonly"></textarea></td>
  164. </tr>
  165. <tr>
  166. <td width="100"> 办公时间</td>
  167. <td colspan="3">
  168. <input type="text" id="officetime" readonly="readonly" />
  169. <!--<div class="form-group time-box">
  170. <i class="tub fa fa-calendar"></i>
  171. <input class="form-control" type="text" id="officetime" placeholder="请选择开始时间" readonly="readonly">
  172. </div>-->
  173. </td>
  174. </tr>
  175. <tr>
  176. <td width="100" rowspan="2"> 协办单位</td>
  177. <td rowspan="2"><input type="text" name="otherdept" id="otherdept" readonly="readonly" /></td>
  178. <td width="100"> 公开电话</td>
  179. <td><input type="text" id="otherpublicphone" readonly="readonly" /></td>
  180. </tr>
  181. <tr>
  182. <td width="100"> 内部电话</td>
  183. <td><input type="text" id="otherprivatephone" readonly="readonly" /></td>
  184. </tr>
  185. <tr>
  186. <td width="100" height="100"> 备注</td>
  187. <td colspan="3" height="100"><input type="text" id="remark" readonly="readonly"/></td>
  188. </tr>
  189. <!--<tr>
  190. <td width="100" > 修改人</td>
  191. <td></td>
  192. <td width="100" > 修改日期</td>
  193. <td></td>
  194. </tr>-->
  195. </table>
  196. <ul class="tab_list clearfix">
  197. <li class="active">设定依据</li>
  198. <li>办理流程</li>
  199. <li>办理材料</li>
  200. <li>办理结果样本</li>
  201. <li>收费标准及依据</li>
  202. <li>附件</li>
  203. </ul>
  204. <div class="tab_content">
  205. <div class="cons" style="display: block;">
  206. <textarea name="" id="baseon" readonly="readonly"></textarea>
  207. </div>
  208. <div class="cons">
  209. <textarea name="" id="process" readonly="readonly"></textarea>
  210. </div>
  211. <div class="cons">
  212. <textarea name="" id="material" readonly="readonly"></textarea>
  213. </div>
  214. <div class="cons">
  215. <textarea name="" id="template" readonly="readonly"></textarea>
  216. </div>
  217. <div class="cons">
  218. <textarea name="" id="payinfo" readonly="readonly"></textarea>
  219. </div>
  220. <div class="cons">
  221. <table class="table-bordered table-condensed feilTable" style="width: 100%;">
  222. <thead>
  223. <tr>
  224. <th>文件名称</th>
  225. <th>添加时间</th>
  226. <th>文件大小</th>
  227. </tr>
  228. </thead>
  229. <tbody>
  230. </tbody>
  231. </table>
  232. <div class="fileBox">
  233. <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
  234. </div>
  235. <!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
  236. <!--<span class="fjnr"></span>-->
  237. <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
  238. <!--<input class="input" type="button" value="上传" id="scwj" />-->
  239. <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
  240. <input type="hidden" id="file" />
  241. </div>
  242. </div>
  243. </div>
  244. <script src="../js/kindeditor/kindeditor-all-min.js"></script>
  245. <script src="../js/kindeditor/lang/zh-CN.js"></script>
  246. <script src="../js/adjustHeight.js"></script>
  247. <script src="../js/laydate/laydate.js"></script>
  248. <script>
  249. var ids=helper.request.queryString("ids");
  250. $(document).ready(function(){
  251. $('.tab_list li').click(function(){
  252. var index=$(this).index();
  253. $(this).addClass('active').siblings().removeClass('active');
  254. $('.tab_content>div').eq(index).show().siblings().hide();
  255. })
  256. $.ajax({
  257. type:"get",
  258. url:huayi.config.callcenter_url +"Repository/GetRepository",
  259. async:true,
  260. dataType:'json',
  261. data:{
  262. token: $.cookie("token"),
  263. id:ids
  264. },
  265. success:function(res){
  266. if(res.state.toLowerCase()=='success'){
  267. var con=res.data.data;
  268. $('#key').val(con.F_Key);//关键字
  269. $('#title').val(con.F_Title);//事件名称
  270. $('#publicphone1').val(con.F_PublicPhone1);//公开电话1
  271. $('#publicphone2').val(con.F_PublicPhone2);//公开电话2
  272. $('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
  273. $('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
  274. $('#points').val(con.F_Points);//询问要点
  275. $('#baseanswer').val(con.F_BaseAnswer);//标准话术
  276. $('#endanswer').val(con.F_EndAnswer);//结案参考
  277. $('#dealtype').val(con.F_DealType);//办理方式
  278. $('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
  279. $('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
  280. // $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
  281. $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
  282. $('#paymoney').val(con.F_PayMoney);//收费标准
  283. $('#officeaddress').val(con.F_OfficeAddress);//办公地点
  284. $('#serobject').val(con.F_Object);//办理对象
  285. $('#busline').val(con.F_BusLine);//乘车路线
  286. $('#officetime').val(con.F_OfficeTime);//办公时间
  287. $('#otherdept').val(con.F_OtherDept);// 协办单位
  288. $('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
  289. $('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
  290. $('#remark').val(con.F_Remark);//备注
  291. $('#baseon').val(con.F_BaseOn);//设定依据
  292. $('#process').val(con.F_Process);//办理流程
  293. $('#material').val(con.F_Material);//办理材料
  294. $('#template').val(con.F_Template);//办理结果样本
  295. $('#payinfo').val(con.F_PayInfo);//收费标准及依据
  296. // $('#files').val() //收费标准及依据
  297. console.log()
  298. $(res.data.file).each(function(k,q){
  299. // var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName +'</span>'
  300. var strs='<tr>'+
  301. '<td><a href="'+ q.F_FileUrl+'">'+ q.F_FileName +'</a></td>'+
  302. '<td>'+ q.F_AddTime +'</td>'+
  303. '<td>'+ q.F_Size +'</td>'+
  304. '</tr>'
  305. $(strs).appendTo($('.feilTable tbody'))
  306. })
  307. }
  308. }
  309. });
  310. })
  311. </script>
  312. </body>
  313. </html>