| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../css/init.css" />
- <title>新版知识库添加</title>
- <style type="text/css">
- ul,li{
- padding: 0;
- margin: 0;
- list-style: none;
- }
- .tab_list{
- border-bottom: 1px solid #d5d5d5;
- }
- .tab_list li{
- padding: 10px 15px;
- float: left;
- color: #333333;
- font-size: 14px;
- position: relative;
- }
- .tab_list li.active{
- color: #19aad0;
- }
- .tab_list li.active:after{
- content: "";
- width: 100%;
- height: 2px;
- background: #19aad0;
- position: absolute;
- bottom: -1px;
- left: 0;
- }
- .tab_content{
- font-size: 14px;
- color: #4c4c4c;
- padding: 15px 0;
- /*text-indent: 28px;*/
- }
- .tab_content>div{
- display: none;
- }
- .table tr td input[type="text"]{
- width: 100%;
- height: 30px;
- background: #f3f3f4;
- border: 0;
- outline: none;
- }
- .radio-inline input[type=radio]{
- margin-top: 2px;
- }
- .table tr td textarea{
- width: 100%;
- height: 100%;
- background: #f3f3f4;
- border: 0;
- resize: none;
- }
- #scwj{
- background-color: #FFF;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px!important;
- }
- .files{
- padding: 5px!important;
- }
- .time-box{
- position: relative;
- width: 197px!important;
- height: 34px;
- margin: 0;
- }
- .tub + input {
- padding-right: 30px;
- border: 1px solid #e5e6e7!important;
- }
- i.tub {
- position: absolute;
- right: 8px;
- top: 8px;
- font-size: 18px;
- color: #00a0ca;
- }
- .tab_content textarea{
- display: block;
- background: #f3f3f4;
- width: 100%;
- height: 298px;
- box-sizing: border-box;
- text-indent: 28px;
- }
- .tab_content .cons >div{
- background: #f3f3f4;
- width: 100%;
- min-height: 298px;
- box-sizing: border-box;
- text-indent: 28px;
- word-break:break-all;
- word-wrap:break-word;
- }
- .tab_content .cons >div img{
- max-width: 100%;
- /*width: 95%;
- margin: 0 auto;*/
- }
-
- </style>
- </head>
- <body class="gray-bg">
- <div class="container-fluid wrapper-content animated fadeInRight">
- <table class="table table-bordered table-condensed">
- <tr>
- <td width="100">关键词</td>
- <td colspan="3"><input type="text" id="key" readonly="readonly"/></td>
- </tr>
- <tr>
- <td width="100">事件名称</td>
- <td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
- </tr>
- <tr>
- <td width="100">主办单位</td>
- <td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
- </tr>
- <tr >
- <td rowspan="2" width="100">公开电话</td>
- <td> <input type="text" id="publicphone1" readonly="readonly"/></td>
- <td rowspan="2" width="100">内部电话</td>
- <td> <input type="text" id="privatephone1" readonly="readonly" /></td>
-
- </tr>
- <tr>
- <td> <input type="text" id="publicphone2" readonly="readonly" /></td>
- <td> <input type="text" id="privatephone2" readonly="readonly" /></td>
- </tr>
- <tr>
- <td width="100" height="100"> 咨询要点</td>
- <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="points" readonly="readonly"></textarea></td>
- </tr>
- <tr>
- <td width="100"> 标准话术</td>
- <td colspan="3"> <textarea name="" rows="" cols="" id="baseanswer" readonly="readonly"></textarea></td>
- </tr>
- <tr>
- <td width="100" height="100"> 结案参考</td>
- <td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
- </tr>
- <tr>
- <td width="100"> 办理方式</td>
- <td><input type="text" id="dealtype" readonly="readonly"/></td>
- <td width="100"> 法定办结时限</td>
- <td><input type="text" id="legallimittime" readonly="readonly" /></td>
- </tr>
- <tr>
- <td width="100"> 是否收费</td>
- <td>
- <label class="radio-inline">
- <input type="radio" name="ispay" disabled="disabled" id="ispay1" value="1" readonly="readonly"> 是
- </label>
- <label class="radio-inline">
- <input type="radio" name="ispay" disabled="disabled" id="ispay2" value="0" readonly="readonly"> 否
- </label>
-
-
- </td>
- <td width="100"> 承诺办结时限</td>
- <td><input type="text" id="promiselimittime" readonly="readonly" /></td>
- </tr>
- <tr>
- <td width="100"> 紧急事项</td>
- <td>
- <label class="radio-inline">
- <input type="radio" name="isUrgency" disabled="disabled" id="isUrgency" value="1"> 是
- </label>
- <label class="radio-inline">
- <input type="radio" name="isUrgency" disabled="disabled" id="isUrgency" value="0"> 否
- </label>
- </td>
- </tr>
- <tr>
- <td width="100"> 收费标准</td>
- <td> <input type="text" id="paymoney" readonly="readonly" /></td>
- <td width="100"> 办公地点</td>
- <td><textarea name="" rows="" cols="" id="officeaddress" readonly="readonly"></textarea></td>
- </tr>
- <tr>
- <td width="100"> 办理对象</td>
- <td><input type="text" id="serobject" readonly="readonly" /></td>
- <td width="100"> 乘车路线</td>
- <td><textarea name="" rows="" cols=""id="busline" readonly="readonly"></textarea></td>
- </tr>
- <tr>
- <td width="100"> 办公时间</td>
- <td colspan="3">
- <input type="text" id="officetime" readonly="readonly" />
- <!--<div class="form-group time-box">
- <i class="tub fa fa-calendar"></i>
- <input class="form-control" type="text" id="officetime" placeholder="请选择开始时间" readonly="readonly">
- </div>-->
-
- </td>
- </tr>
- <tr>
- <td width="100" rowspan="2"> 协办单位</td>
- <td rowspan="2"><input type="text" name="otherdept" id="otherdept" readonly="readonly" /></td>
- <td width="100"> 公开电话</td>
- <td><input type="text" id="otherpublicphone" readonly="readonly" /></td>
- </tr>
- <tr>
- <td width="100"> 内部电话</td>
- <td><input type="text" id="otherprivatephone" readonly="readonly" /></td>
- </tr>
- <tr>
- <td width="100" height="100"> 备注</td>
- <td colspan="3" height="100"><textarea name="" rows="" cols="" id="remark" readonly="readonly"></textarea> </td>
- </tr>
- <!--<tr>
- <td width="100" > 修改人</td>
- <td></td>
- <td width="100" > 修改日期</td>
- <td></td>
- </tr>-->
- </table>
-
- <ul class="tab_list clearfix">
- <li class="active">设定依据</li>
- <li>办理流程</li>
- <li>办理材料</li>
- <li>办理结果样本</li>
- <li>收费标准及依据</li>
- <li>附件</li>
- </ul>
- <div class="tab_content">
- <div class="cons" style="display: block;">
- <div id="baseon" >
-
- </div>
- <!--<textarea name="" readonly="readonly"></textarea>-->
- </div>
- <div class="cons">
- <div id="process" >
-
- </div>
- <!--<textarea name="" id="process" readonly="readonly"></textarea>-->
- </div>
- <div class="cons">
- <div id="material" >
-
- </div>
- <!--<textarea name="" id="material" readonly="readonly"></textarea>-->
- </div>
- <div class="cons">
- <div id="template" >
-
- </div>
- <!--<textarea name="" id="template" readonly="readonly"></textarea>-->
- </div>
- <div class="cons">
- <div id="payinfo" >
-
- </div>
- <!--<textarea name="" id="payinfo" readonly="readonly"></textarea>-->
- </div>
-
- <div class="cons">
- <div>
-
-
- <table class="table-bordered table-condensed feilTable" style="width: 100%;">
- <thead>
- <tr>
- <th>文件名称</th>
- <th>添加时间</th>
- <th>文件大小</th>
- </tr>
- </thead>
- <tbody>
-
- </tbody>
-
- </table>
- </div>
- </div>
- </div>
-
- <script src="../js/kindeditor/kindeditor-all-min.js"></script>
- <script src="../js/kindeditor/lang/zh-CN.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script src="../js/laydate/laydate.js"></script>
- <script>
-
- var ids=helper.request.queryString("ids");
- $(document).ready(function(){
- $('.tab_list li').click(function(){
- var index=$(this).index();
- $(this).addClass('active').siblings().removeClass('active');
- $('.tab_content>div').eq(index).show().siblings().hide();
-
- })
- $.ajax({
- type:"get",
- url:huayi.config.callcenter_url +"Repository/GetRepository",
- async:true,
- dataType:'json',
- data:{
- token: $.cookie("token"),
- id:ids
- },
- success:function(res){
- if(res.state.toLowerCase()=='success'){
- var con=res.data.data;
- $('#key').val(con.F_Key);//关键字
- $('#title').val(con.F_Title);//事件名称
- $('#maindept').val(con.F_MainDept);//主办单位
- $('#publicphone1').val(con.F_PublicPhone1);//公开电话1
- $('#publicphone2').val(con.F_PublicPhone2);//公开电话2
- $('#privatephone1').val(con.F_PrivatePhone1);//内部电话1
- $('#privatephone2').val(con.F_PrivatePhone2);//内部电话2
- $('#points').val(con.F_Points);//询问要点
- $('#baseanswer').val(con.F_BaseAnswer);//标准话术
- $('#endanswer').val(con.F_EndAnswer);//结案参考
- $('#dealtype').val(con.F_DealType);//办理方式
- $('#legallimittime').val(con.F_LegalLimitTime);//法定办结时限
- $('#promiselimittime').val(con.F_PromiseLimitTime);//承诺办结时限
- // $('input[name="ispay"]:checked ').val(F_PayMoney);//是否收费
- $('input[name="ispay"][value="'+con.F_IsPay+'"]').prop("checked","checked");//是否收费
- $('input[name="isUrgency"][value="'+con.F_IsUrgent+'"]').prop("checked","checked"),//是否紧急事项
- $('#paymoney').val(con.F_PayMoney);//收费标准
- $('#officeaddress').val(con.F_OfficeAddress);//办公地点
- $('#serobject').val(con.F_Object);//办理对象
- $('#busline').val(con.F_BusLine);//乘车路线
- $('#officetime').val(con.F_OfficeTime);//办公时间
- $('#otherdept').val(con.F_OtherDept);// 协办单位
- $('#otherpublicphone').val(con.F_OtherPublicPhone);// 协办单位公开电话
- $('#otherprivatephone').val(con.F_OtherPrivatePhone);//协办单位内部电话
- $('#remark').val(con.F_Remark);//备注
- $('#baseon').html(con.F_BaseOn);//设定依据
- $('#process').html(con.F_Process);//办理流程
- $('#material').html(con.F_Material);//办理材料
- $('#template').html(con.F_Template);//办理结果样本
- $('#payinfo').html(con.F_PayInfo);//收费标准及依据
- // $('#files').val() //收费标准及依据
- console.log()
- $(res.data.file).each(function(k,q){
- // var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'</span>'
- var size= (q.F_Size/1024).toFixed(2)
- var strs='<tr>'+
- '<td><a href="'+ q.F_FileUrl+'" download="test.pdf">'+ q.F_FileName.substring(19) +'</a></td>'+
- '<td>'+ q.F_AddTime +'</td>'+
- '<td>'+ size +'kb</td>'+
- '</tr>'
- $(strs).appendTo($('.feilTable tbody'))
- })
-
-
-
-
-
-
- }
-
- }
- });
-
-
-
-
-
- })
-
-
-
-
- </script>
- </body>
- </html>
|