| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <!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/layer/need/layer.css" />-->
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>知识库审核</title>
- <style>
- .toolBar {
- padding: 15px 0;
- border-bottom: 1px solid #ccc;
- }
-
- .boxCon table th {
- width: 20%;
- }
-
- .boxCon table td textarea {
- width: 100%;
- }
-
- .inpBox {
- border: 1px solid #a9a9a9;
- height: 27px;
- width: 55%;
- display: inline-block;
- position: relative;
- vertical-align: middle;
- }
-
- .inps1,
- .inps4 {
- width: 100%;
- height: 24px;
- outline: none;
- border: 0;
- border-image-width: 0;
- padding: 0;
- padding-left: 3px;
- }
-
- .changeTitle,
- .changeKey,
- .addTitle,
- .addKey {
- width: 55%;
- }
-
- .xl {
- display: inline-block;
- background: url(../img/dropDown.png) no-repeat;
- height: 100%;
- background-position: center center;
- width: 20px;
- position: absolute;
- right: 0;
- top: 0px;
- background-color: #f7bc8b;
- cursor: pointer;
- }
-
- .xl:hover {
- background-color: #e6d523;
- }
-
- .addTree {
- background: #fff;
- position: absolute;
- width: 100%;
- border: 1px solid darkgrey;
- right: 0;
- top: 26px;
- display: none;
- height: 220px;
- overflow-y: auto;
- }
-
- .treeTable {
- height: 400px;
- /*overflow-y: auto;*/
- }
-
- .tree {
- height: 100%;
- }
-
- .trTitle {
- width: 100%;
- height: 34px;
- line-height: 34px;
- border-bottom: 1px solid #ebebeb;
- color: red;
- font-weight: 700;
- margin-bottom: 15px;
- }
-
- .treeCon {
- border: 1px solid #ebebeb;
- overflow-y: auto;
- }
-
- .ztree li {
- width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
-
- .content {
- width: 270px;
- height: 25px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- text-align: left;
- }
-
- .detail {
- width: 80%;
- display: block;
- margin: 0 auto;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="container-fluid wrapper-content animated fadeInRight">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn><i class="syIcon"></i>位置:
- <a id="ReIndex">首页</a>>
- <a href="javaScript:;">知识库</a>>
- <a href="" class="nowPosition">知识库答复</a>
- </sapn>
- </div>
- <div class="dhRight">
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div class="toolBar clearfix">
- <div class="toolRight">
- <span>
- 答复状态:<select name="" id="replyState" class="select_">
- <option value="-1">全部</option>
- <option value="0">新提问</option>
- <option value="1">已答复</option>
- <option value="2">拒绝答复</option>
- <option value="3">已退回</option>
- <option value="4">重新答复</option>
- </select>
- </span>
- <button class="btns searchGo">搜索</button>
- </div>
- </div>
- <div class="treeTable clearfix">
- <div class="tableCon col-md-12">
- <table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
- <thead>
- <tr>
- <th data-checkbox="true" data-align="center"></th>
- <th data-align="center" data-formatter="setCode">编号</th>
- <th data-field="KINFO_KNAME" data-align="left">知识库标题</th>
- <th data-field="KINFO_KCONTENT" data-align="left">知识库内容</th>
-
- <!--<th data-field="ReKINFO_KNAME" data-align="center">知识库回复标题</th>
- <th data-field="ReKINFO_KCONTENT" data-align="left">知识库回复内容</th>
- <th data-field="ReUser" data-align="center">回复人</th>-->
-
- <th data-field="F_State" data-formatter="states" data-align="center">状态</th>
- <th data-field="F_CreateTime" data-align="center">创建时间</th>
- <th data-align="center" data-formatter="caoZuo">操作</th>
- </tr>
- </thead>
- <tbody id="tbody"></tbody>
- </table>
- </div>
- </div>
- </div>
- <script src="../css/layer/layer.js"></script>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
- <script src="../js/kindeditor/kindeditor-all-min.js"></script>
- <script src="../js/kindeditor/lang/zh-CN.js"></script>
- <script src="./js/common.js"></script>
- <script>
- var token = $.cookie("token");
- var table = $('#table1');
- var action = $('#action').val(); //动作
- var isPass = $('#isPass').val(); //是否审核
- //搜索
- $('.searchGo').click(function() {
- action = $('#action').val();
- isPass = $('#isPass').val();
- initTable(action, isPass);
- })
- initTable(action, isPass);
- function initTable(action, isPass) {
- //先销毁表格
- table.bootstrapTable('destroy');
- //初始化表格,动态从服务器加载数据
- table.bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- url: huayi.config.callcenter_url + "Affairs/GetKinfoList", //获取数据的Servlet地址
- contentType: "application/x-www-form-urlencoded",
- striped: true, //表格显示条纹
- pagination: true, //启动分页
- pageSize: 10, //每页显示的记录数
- pageNumber: 1, //当前第几页
- pageList: [10, 20, 50, 100], //记录数可选列表
- search: false, //是否启用查询
- showColumns: false, //显示下拉框勾选要显示的列
- showRefresh: false, //显示刷新按钮
- sidePagination: "server", //表示服务端请求
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
- //设置为limit可以获取limit, offset, search, sort, order
- queryParamsType: "undefined",
- queryParams: function queryParams(params) { //设置查询参数
- var param = {
- page: params.pageNumber,
- pagesize: params.pageSize,
- token: $.cookie("token"),
- state:$("#replyState").val()
- };
- return param;
- },
- onLoadSuccess: function() { //加载成功时执行
- //layer.msg("加载成功");
- },
- onLoadError: function() { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- function setCode(val, row, index) {
- return index + 1;
- }
- function states(val) {
- return '<div class="imgs">'+getStateString(val)+'</div>';
- }
- function caoZuo(val, row) {
- var htm = ''
- if (row.F_State ==0) {
- htm = '<div><button class="btns" onclick="reply(' + row.F_ID + ')">回复按钮</button>'+
- '<button class="btns" onclick="refuseReply(' + row.F_ID + ')">拒绝回复</button>'
- } else if(row.F_State ==3){
- htm = '<div><button class="btns" onclick="reinstate(' + row.F_ID + ')">重新回复</button>'
- }
- htm += '<button class="btns" onclick="seeConDetail(' + row.F_ID + ')">查看详情</button></div>'
- return htm
- }
- //知识库答复
- function reply(id){
- layer.open({
- type: 2,
- content: "./commonHtml/addReply.html?id="+id+'&replyState=1', //iframe的url,no代表不显示滚动条
- title: '知识库答复',
- area: ['60%', '80%'], //宽高
- });
- }
- //拒绝回复
- function refuseReply(id){
- layer.open({
- type: 2,
- content: "./commonHtml/refuseReply.html?id="+id, //iframe的url,no代表不显示滚动条
- title: '知识库拒绝答复',
- area: ['60%', '80%'], //宽高
- });
- }
- // 重新回复
- function reinstate(id){
- layer.open({
- type: 2,
- content: "./commonHtml/addReply.html?id="+id+'&replyState=2', //iframe的url,no代表不显示滚动条
- title: '知识库重新答复',
- area: ['60%', '80%'], //宽高
- });
- }
- function seeConDetail(id) {
- layer.open({
- type: 2,
- content: "./commonHtml/replyDetail.html?id="+id, //iframe的url,no代表不显示滚动条
- title: '查看内容详情',
- area: ['60%', '70%'], //宽高
- });
-
- }
- </script>
- </body>
- </html>
|