Xiahai 11 месяцев назад
Родитель
Сommit
0d48f0a0d4

+ 1 - 1
application/admin/view/cms/manuscript/edit_chief.html

@@ -18,7 +18,7 @@
         <label for="c-chief_id" class="control-label col-xs-12 col-sm-2">{:__('Chief')}:</label>
         <div class="col-xs-12 col-sm-8">
             <!--@formatter:off-->
-            <select data-rule="required"  id="c-chief_id" class="form-control selectpicker" multiple="" name="row[chief_id]">
+            <select data-rule="required"  id="c-chief_id" class="form-control selectpicker" name="row[chief_id]">
                 {foreach name="chief_list" item="vo"}
                 <option value="{$key}" {in name="key" value="$row.chief_id" }selected{/in}>{$vo}</option>
                 {/foreach}

+ 141 - 42
application/api/controller/User.php

@@ -949,52 +949,55 @@ class User extends Api
     public function incomplete_submit()
     {
         $params = $this->request->post('row/a');
-        // 数组内容需转换为字符串
-        if (array_key_exists('author', $params) && !empty($params['author'])) {
-            $params['author_content'] = json_encode($params['author']);
-        }
-        if (array_key_exists('reviewer', $params) && !empty($params['reviewer'])) {
-            $params['review_content'] = json_encode($params['reviewer']);
-        }
-        if (empty($params['title'])) {
-            $params['title'] = 'Incomplete editing' . rand(0, 4);
-        }
-        if (empty($params['image'])) {
-            $params['image'] = '/assets/img/index/manuscript_empty.png';
-        }
-        $params['status'] = 'incomplete_submission';
-        $params['user_id'] = $this->auth->id;
-        // 因使用create方法返回自增id,但是验证字段有前端自定义字段所以需要删除
-        unset($params['author']);
-        unset($params['reviewer']);
-        $manuscript = new AuthorManuscript();
-
-        Db::startTrans();
-        try {
-            if (!empty($params['id'])) {
-                $manuscript = AuthorManuscript::where(['id' => $params['id']])->find();
-                $manuscript = $manuscript->allowField(true)->save($params);
-            } else {
-                $manuscript = $manuscript->allowField(true)->create($params);
+        if ($params['manuscript_zip']) {
+            // 数组内容需转换为字符串
+            if (array_key_exists('author', $params) && !empty($params['author'])) {
+                $params['author_content'] = json_encode($params['author']);
             }
-
-            // 手稿状态日志
-            $log = ManuscriptLog::where(['manuscript_id' => $params['id'], 'user_id' => $this->auth->id, 'type' => 'user', 'status' => $params['status']])->find();
-            if (!$log) {
-                $log = new ManuscriptLog();
-                $log->manuscript_id = $params['id'];
-                $log->user_id = $this->auth->id;
-                $log->type = 'user';
+            if (array_key_exists('reviewer', $params) && !empty($params['reviewer'])) {
+                $params['review_content'] = json_encode($params['reviewer']);
             }
-            $log->status = $params['status'];
-            $log->save();
+            if (empty($params['title'])) {
+                $params['title'] = 'Incomplete editing' . rand(0, 4);
+            }
+            if (empty($params['image'])) {
+                $params['image'] = '/assets/img/index/manuscript_empty.png';
+            }
+            $params['status'] = 'incomplete_submission';
+            $params['user_id'] = $this->auth->id;
+            // 因使用create方法返回自增id,但是验证字段有前端自定义字段所以需要删除
+            unset($params['author']);
+            unset($params['reviewer']);
+            $manuscript = new AuthorManuscript();
 
-            Db::commit();
-        } catch (ValidateException|PDOException|Exception $e) {
-            Db::rollback();
-            $this->error($e->getMessage());
+            Db::startTrans();
+            try {
+                if (!empty($params['id'])) {
+                    $manuscript = AuthorManuscript::where(['id' => $params['id']])->find();
+                    $manuscript = $manuscript->allowField(true)->save($params);
+                } else {
+                    $manuscript = $manuscript->allowField(true)->create($params);
+                }
+
+                // 手稿状态日志
+                $log = ManuscriptLog::where(['manuscript_id' => $params['id'], 'user_id' => $this->auth->id, 'type' => 'user', 'status' => $params['status']])->find();
+                if (!$log) {
+                    $log = new ManuscriptLog();
+                    $log->manuscript_id = $params['id'];
+                    $log->user_id = $this->auth->id;
+                    $log->type = 'user';
+                }
+                $log->status = $params['status'];
+                $log->save();
+
+                Db::commit();
+            } catch (ValidateException|PDOException|Exception $e) {
+                Db::rollback();
+                $this->error($e->getMessage());
+            }
+            $this->success('Success', $manuscript->id ?? $params['id']);
         }
-        $this->success('Success', $manuscript->id ?? $params['id']);
+        $this->success('Success', '');
     }
 
     /**
@@ -1068,4 +1071,100 @@ class User extends Api
         }
         $this->success('Successfully');
     }
+
+    /**
+     * 文章详情,根据表格类型获取对应表格信息
+     *
+     * @return void
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    public function get_article_detail_table()
+    {
+        $status = $this->request->param('status');
+        $manuscript_id = $this->request->param('manuscript_id');
+        $manuscript = AuthorManuscript::get($manuscript_id);
+        $reviewers = InviteReviewer::where(['manuscript_id' => $manuscript_id])->select();
+        // 邀请的审稿人信息
+        if ($status == 'reviewer_details') {
+            foreach ($reviewers as $reviewer) {
+                $reviewer_role = UserRoleContent::where(['id' => $reviewer['role_id']])->find();
+                $reviewer['reply_time'] = '';
+                $reviewer['submission_time'] = '';
+                if ($reviewer_role) {
+                    // 查询审稿人提交意见信息
+                    $reviewer_comment = Comments::where(['user_id' => $reviewer_role['user_id'], 'manuscript_id' => $manuscript_id])
+                        ->order('createtime', 'DESC')
+                        ->find();
+                    $reviewer_user = \app\admin\model\User::where(['id' => $reviewer_role['user_id']])->find();
+                    if ($reviewer_comment) {
+                        $reviewer['reply_time'] = date('Y-m-d', $reviewer_comment['createtime'] ?? time());
+                        $reviewer['submission_time'] = date('Y-m-d', $reviewer_comment['createtime'] ?? time());
+                        $reviewer['status'] = $reviewer_comment['recommendation'] ?? '';
+                    }
+                }
+                $reviewer['nickname'] = $reviewer_user['nickname'];
+                $reviewer['invited_time'] = date('Y-m-d', $reviewer['createtime']);
+            }
+        }
+        // 审稿人信息
+        if ($status == 'reviewer_suggestion') {
+            foreach ($reviewers as $reviewer) {
+                $reviewer_role = UserRoleContent::where(['id' => $reviewer['role_id']])->find();
+                if ($reviewer_role) {
+                    // 查询审稿人提交意见数量
+                    $reviewer_comment_num = Comments::where(['user_id' => $reviewer_role['user_id'], 'manuscript_id' => $manuscript_id])
+                        ->count();
+                    $reviewer_user = \app\admin\model\User::where(['id' => $reviewer_role['user_id']])->find();
+                }
+                $reviewer['nickname'] = $reviewer_user['nickname'];
+                $reviewer['affiliation'] = $reviewer_role['affiliation'];
+                $reviewer['comment_num'] = $reviewer_comment_num;
+            }
+        }
+
+        // 审稿人意见信息
+        if ($status == 'review_report') {
+            foreach ($reviewers as $reviewer) {
+                $reviewer_role = UserRoleContent::where(['id' => $reviewer['role_id']])->find();
+                $reviewer['createtime'] = '';
+                if ($reviewer_role) {
+                    // 查询审稿人提交意见信息
+                    $reviewer_comment = Comments::where(['user_id' => $reviewer_role['user_id'], 'manuscript_id' => $manuscript_id])
+                        ->order('createtime', 'DESC')
+                        ->find();
+                    $reviewer_user = \app\admin\model\User::where(['id' => $reviewer_role['user_id']])->find();
+                    if ($reviewer_comment) {
+                        $reviewer['createtime'] = date('Y-m-d', $reviewer_comment['createtime']);
+                    }
+                }
+                $reviewer['nickname'] = $reviewer_user['nickname'];
+                $reviewer['recommendation'] = $reviewer_comment['recommendation'] ?? '';
+                $reviewer['comment'] = $reviewer_comment['comments'] ?? '';
+                $reviewer['comment_id'] = $reviewer_comment['id'] ?? '';
+                $reviewer['is_send'] = $reviewer_comment['is_send'] ?? '';
+            }
+        }
+
+        // 作者回复意见
+        if ($status == 'author_report') {
+            // 查询作者提交意见信息回复
+            $author_comment = Comments::where(['user_id' => $manuscript_id, 'manuscript_id' => $manuscript_id, 'type' => 'author'])
+                ->order('createtime', 'DESC')
+                ->find();
+            if ($author_comment) {
+                $author_user = \app\admin\model\User::where(['id' => $manuscript['user_id']])->find();
+                $author['nickname'] = $author_user['nickname'] ?? '';
+                $author['comment'] = $author_comment['comments'] ?? '';
+                $author['createtime'] = date('Y-m-d', $author_comment['createtime']);
+            }
+        }
+        $data['reviewer'] = $reviewers;
+        $data['author'] = $author ?? [];
+        $data['user_id'] = $manuscript['user_id'];
+
+        $this->success('', $data);
+    }
 }

+ 3 - 0
application/common/library/Auth.php

@@ -321,6 +321,9 @@ class Auth
                 $this->_token = Random::uuid();
                 Token::set($this->_token, $user->id, $this->keeptime);
 
+                $user->token = $this->_token;
+                $user->save();
+
                 $this->_logined = true;
 
                 //登录成功的事件

+ 5 - 5
application/common/view/tpl/think_exception.tpl

@@ -4,11 +4,11 @@ $publicurl = function_exists('config') ? (config('view_replace_str.__PUBLIC__')?
 $debug = function_exists('config') ? config('app_debug') : false;
 
 $lang = [
-    'An error occurred' => '发生错误',
-    'Home' => '返回主页',
-    'Previous Page' => '返回上一页',
-    'The page you are looking for is temporarily unavailable' => '你所浏览的页面暂时无法访问',
-    'You can return to the previous page and try again' => '你可以返回上一页重试'
+    'An error occurred' => 'An error occurred',
+    'Home' => 'Home',
+    'Previous Page' => 'Previous Page',
+    'The page you are looking for is temporarily unavailable' => 'The page you are looking for is temporarily unavailable',
+    'You can return to the previous page and try again' => 'You can return to the previous page and try again'
 ];
 
 $langSet = '';

+ 9 - 8
application/index/controller/User.php

@@ -178,11 +178,11 @@ class User extends Frontend
             $account = $this->request->post('account');
             $password = $this->request->post('password');
             $keeplogin = (int)$this->request->post('keeplogin');
-            $token = $this->request->post('__token__');
+//            $token = $this->request->post('__token__');
             $rule = [
                 'account'   => 'require|length:3,50',
                 'password'  => 'require|length:6,30',
-                '__token__' => 'require|token',
+//                '__token__' => 'require|token',
             ];
 
             $msg = [
@@ -194,19 +194,21 @@ class User extends Frontend
             $data = [
                 'account'   => $account,
                 'password'  => $password,
-                '__token__' => $token,
+//                '__token__' => $token,
             ];
             $validate = new Validate($rule, $msg);
             $result = $validate->check($data);
             if (!$result) {
-                $this->error(__($validate->getError()), null, ['token' => $this->request->token()]);
+//                $this->error(__($validate->getError()), null, ['token' => $this->request->token()]);
+                $this->error(__($validate->getError()), null);
                 return false;
             }
             if ($this->auth->login($account, $password)) {
 //                $this->success('Logged in successful', $url ? $url : url('user/index'));
                 $this->success('Logged in successful', url('/'));
             } else {
-                $this->error($this->auth->getError(), null, ['token' => $this->request->token()]);
+//                $this->error($this->auth->getError(), null, ['token' => $this->request->token()]);
+                $this->error($this->auth->getError(), null);
             }
         }
         //判断来源
@@ -761,6 +763,7 @@ class User extends Frontend
                     $author['createtime'] = date('Y-m-d', $author_comment['createtime']);
                 }
             }
+
             $row['reviewer'] = $reviewers;
             $row['author'] = $author ?? [];
         }
@@ -927,14 +930,12 @@ class User extends Frontend
     public function invite_reviewers()
     {
         $id = $this->request->param('id');
-        // 构建分页参数
-        $limit = $this->request->param('limit', 10);
         $manuscript = AuthorManuscript::get($id);
         $manuscript_review_id_arr = explode(',', $manuscript['reviewer_ids']);
         $review_user_content = UserRoleContent::where(['user_id' => ['in', $manuscript_review_id_arr], 'type' => 'review'])->select();
 
         // 获取审稿人信息
-        $review_id_arr = \app\common\model\User::where(['is_review' => 'correct', 'id' => ['not in', $manuscript->user_id]])->column('id');
+        $review_id_arr = \app\common\model\User::where(['is_review' => 'correct', 'id' => ['<>', $manuscript->user_id]])->column('id');
         $list = UserRoleContent::with(['user'])->where(['user_id' => ['in', $review_id_arr], 'type' => 'review'])->select();
 //        $list = UserRoleContent::with(['user'])->where(['user_id' => ['in', $review_id_arr], 'type' => 'review'])->paginate($limit);
         foreach ($list as $value) {

+ 1 - 1
application/index/view/common/sidenav.html

@@ -79,13 +79,13 @@
                 <img src="__CDN__/assets/img/index/arrow_right_icon.png" alt="">
             </a>
         </li>
+        {if condition="$user.is_review == 'correct'"}
         <li class="list-group-item {:check_nav_active('user/invitation_letter')}">
             <a href="{:url('user/invitation_letter')}">
                 Invitation Letter for Review
                 <img src="__CDN__/assets/img/index/arrow_right_icon.png" alt="">
             </a>
         </li>
-        {if condition="$user.is_review == 'correct'"}
         <li class="list-group-item {:check_nav_active('user/show_reviewed_manuscripts')}">
             <a href="{:url('user/show_reviewed_manuscripts')}">
                 Show Reviewed Manuscripts

+ 13 - 48
application/index/view/user/article_details.html

@@ -225,17 +225,18 @@
                                 <div class="form-group">
                                     <div class="col-xs-12 col-sm-12 article-details-content">
                                         <nav aria-label="breadcrumb" class="breadcrumb-content">
-                                            <ol class="breadcrumb" style="width: 750px;">
+                                            <ul class="breadcrumb" style="width: 750px;">
                                                 {foreach name="$site.article_detail_report" item="item"}
-                                                <li class="breadcrumb-item <?php if($status == $key) echo 'active'; ?>"><a href="?id={$row.id}&type=editor&status={$key}">{$item}</a></li>
+                                                <li class="breadcrumb-item <?php if($status == $key) echo 'active'; ?>">
+                                                    <a href="#t-{$key}" data-value="{$key}" data-id="{$row.id}" data-user="{$user->id}" data-toggle="tab">{$item}</a>
+                                                </li>
                                                 {/foreach}
-                                            </ol>
+                                            </ul>
                                         </nav>
                                     </div>
                                 </div>
 
-                                {if condition="$status == 'reviewer_details'"}
-                                <div class="form-group">
+                                <div class="form-group reviewer_details" style="display: none">
                                     <div class="col-xs-12 col-sm-12 article-details-content">
                                         <div class="table-responsive">
                                             <table class="table inbox-table">
@@ -248,7 +249,7 @@
                                                     <th style="width: 200px">Status</th>
                                                 </tr>
                                                 </thead>
-                                                <tbody class="tbody">
+                                                <tbody class="tbody reviewer_details_content">
                                                 {foreach name="$row.reviewer" item="reviewer"}
                                                 <tr>
                                                     <td>{$reviewer.nickname}</td>
@@ -263,10 +264,8 @@
                                         </div>
                                     </div>
                                 </div>
-                                {/if}
 
-                                {if condition="$status == 'reviewer_suggestion'"}
-                                <div class="form-group">
+                                <div class="form-group reviewer_suggestion" style="display: none;">
                                     <div class="col-xs-12 col-sm-12 article-details-content">
                                         <div class="table-responsive">
                                             <table class="table inbox-table">
@@ -277,23 +276,14 @@
                                                     <th style="width: 100px">Number Of Comments</th>
                                                 </tr>
                                                 </thead>
-                                                <tbody class="tbody">
-                                                {foreach name="$row.reviewer" item="reviewer"}
-                                                <tr>
-                                                    <td>{$reviewer.nickname}</td>
-                                                    <td>{$reviewer.affiliation}</td>
-                                                    <td>{$reviewer.comment_num}</td>
-                                                </tr>
-                                                {/foreach}
+                                                <tbody class="tbody reviewer_suggestion_content">
                                                 </tbody>
                                             </table>
                                         </div>
                                     </div>
                                 </div>
-                                {/if}
 
-                                {if condition="$status == 'review_report'"}
-                                <div class="form-group">
+                                <div class="form-group review_report" style="display: none">
                                     <div class="col-xs-12 col-sm-12 article-details-content">
                                         <div class="table-responsive">
                                             <table class="table inbox-table">
@@ -306,31 +296,14 @@
                                                     <th style="width: 150px">Operate</th>
                                                 </tr>
                                                 </thead>
-                                                <tbody class="tbody">
-                                                {foreach name="$row.reviewer" item="reviewer"}
-                                                <tr>
-                                                    <td>{$reviewer.nickname}</td>
-                                                    <td>{$reviewer.recommendation}</td>
-                                                    <td>{$reviewer.comment}</td>
-                                                    <td>{$reviewer.createtime}</td>
-                                                    <td>
-                                                        {if condition="$row.user_id != $user->id"}
-                                                            {if condition="$reviewer.is_send == 'hidden'"}
-                                                            <a href="javascript:;" id="send-button" data-id="{$reviewer.comment_id}">SEND</a>
-                                                            {/if}
-                                                        {/if}
-                                                    </td>
-                                                </tr>
-                                                {/foreach}
+                                                <tbody class="tbody review_report_content">
                                                 </tbody>
                                             </table>
                                         </div>
                                     </div>
                                 </div>
-                                {/if}
 
-                                {if condition="$status == 'author_report'"}
-                                <div class="form-group">
+                                <div class="form-group author_report" style="display: none">
                                     <div class="col-xs-12 col-sm-12 article-details-content">
                                         <div class="table-responsive">
                                             <table class="table inbox-table">
@@ -341,20 +314,12 @@
                                                     <th style="width: 150px">Submission time</th>
                                                 </tr>
                                                 </thead>
-                                                <tbody class="tbody">
-                                                {if condition="$row.author"}
-                                                <tr>
-                                                    <td>{$row.author.nickname}</td>
-                                                    <td>{$row.author.comment}</td>
-                                                    <td>{$row.author.createtime}</td>
-                                                </tr>
-                                                {/if}
+                                                <tbody class="tbody author_report_content">
                                                 </tbody>
                                             </table>
                                         </div>
                                     </div>
                                 </div>
-                                {/if}
                             {/if}
                         </div>
 

+ 7 - 7
application/index/view/user/profile.html

@@ -68,7 +68,7 @@
                             </label>
                             <div class="col-xs-12 col-sm-8">
 <!--                                {$user.username|htmlentities}-->
-                                <select id="c-workplace" class="form-control" name="workplace">
+                                <select id="c-workplace" data-rule="required" class="form-control" name="workplace">
                                     <option value="">Please select</option>
                                     {foreach name="site.workplace" item="vo"}
                                     <option value="{$key}" {in name="key" value="$user.workplace" }selected{/in}>{$vo}</option>
@@ -82,7 +82,7 @@
                                 <span style="color:#ed534b;margin-right: 10px;">*</span>Job Type
                             </label>
                             <div class="col-xs-12 col-sm-8">
-                                <select id="c-job_type" class="form-control" name="job_type">
+                                <select id="c-job_type" data-rule="required" class="form-control" name="job_type">
                                     <option value="">Please select</option>
                                     {foreach name="site.job_type" item="vo"}
                                     <option value="{$key}" {in name="key" value="$user.job_type" }selected{/in}>{$vo}</option>
@@ -108,7 +108,7 @@
                                 <span style="color:#ed534b;margin-right: 10px;">*</span>First name
                             </label>
                             <div class="col-xs-12 col-sm-8">
-                                <input type="text" class="form-control" id="first_name" name="first_name" value="{$user.first_name}" placeholder="First name">
+                                <input data-rule="required" type="text" class="form-control" id="first_name" name="first_name" value="{$user.first_name}" placeholder="First name">
                             </div>
                         </div>
                         <div class="form-group">
@@ -124,7 +124,7 @@
                                 <span style="color:#ed534b;margin-right: 10px;">*</span>Last name
                             </label>
                             <div class="col-xs-12 col-sm-8">
-                                <input type="text" class="form-control" id="last_name" name="last_name" value="{$user.last_name}" placeholder="Last name">
+                                <input data-rule="required" type="text" class="form-control" id="last_name" name="last_name" value="{$user.last_name}" placeholder="Last name">
                             </div>
                         </div>
                         <div class="form-group">
@@ -156,7 +156,7 @@
                                 <span style="color:#ed534b;margin-right: 10px;">*</span>Affiliation
                             </label>
                             <div class="col-xs-12 col-sm-8">
-                                <input type="text" class="form-control" id="affiliation" name="affiliation" value="{$user.affiliation}" placeholder="Affiliation">
+                                <input data-rule="required" type="text" class="form-control" id="affiliation" name="affiliation" value="{$user.affiliation}" placeholder="Affiliation">
                             </div>
                         </div>
                         <div class="form-group">
@@ -164,7 +164,7 @@
                                 <span style="color:#ed534b;margin-right: 10px;">*</span>Address
                             </label>
                             <div class="col-xs-12 col-sm-8">
-                                <input type="text" class="form-control" id="address" name="address" value="{$user.address}" placeholder="Address">
+                                <input data-rule="required" type="text" class="form-control" id="address" name="address" value="{$user.address}" placeholder="Address">
                             </div>
                         </div>
                         <div class="form-group">
@@ -172,7 +172,7 @@
                                 <span style="color:#ed534b;margin-right: 10px;">*</span>Zip Code
                             </label>
                             <div class="col-xs-12 col-sm-8">
-                                <input type="text" class="form-control" id="zip_code" name="zip_code" value="{$user.zip_code}" placeholder="Zip Code">
+                                <input data-rule="required" type="text" class="form-control" id="zip_code" name="zip_code" value="{$user.zip_code}" placeholder="Zip Code">
                             </div>
                         </div>
                         <div class="form-group">

+ 1 - 1
application/index/view/user/register.html

@@ -3,7 +3,7 @@
         Login & Register
     </div>
 </div>
-<div id="content-container" class="container">
+<div id="content-cont ainer" class="container">
     <div class="user-section login-section">
         <div class="logon-tab clearfix">
             <a href="{:url('user/login')}?url={$url|urlencode|htmlentities}">Login on</a>

+ 110 - 0
public/assets/js/frontend/user.js

@@ -2144,8 +2144,118 @@ define(['jquery', 'bootstrap', 'frontend', 'form', 'template'], function ($, und
                         }
                     });
                 });
+            });
+
+            // 点击tab切换表格
+            $(document).on('click', '.breadcrumb-item', function () {
+                let status = $(this).children().attr('data-value');
+                let manuscript_id = $(this).children().attr('data-id');
+                let user_id = $(this).children().attr('data-user');
+                $.ajax({
+                    url: '/api/user/get_article_detail_table',
+                    type: 'POST',
+                    dataType: 'json',
+                    data: {
+                        status: status,
+                        manuscript_id: manuscript_id,
+                    },
+                    success: function (res) {
+                        if (res.code === 1) {
+                            // 邀请的审稿人信息
+                            let result = res.data;
+                            if (status == 'reviewer_details') {
+                                $('.reviewer_suggestion').hide();
+                                $('.review_report').hide();
+                                $('.author_report').hide();
+                                $('.reviewer_details').show();
+                                let data = result.reviewer;
+                                let str = '';
+                                for (let i = 0; i < data.length; i++) {
+                                    str += '<tr>\n' +
+                                        '                                                    <td>'+ data[i].nickname +'</td>\n' +
+                                        '                                                    <td>'+ data[i].invited_time +'</td>\n' +
+                                        '                                                    <td>'+ data[i].reply_time +'</td>\n' +
+                                        '                                                    <td>'+ data[i].submission_time +'</td>\n' +
+                                        '                                                    <td>'+ data[i].status +'</td>\n' +
+                                        '                                                </tr>';
+                                }
+                                $('.reviewer_details_content').html(str);
+                            }
+                            // 审稿人信息
+                            if (status == 'reviewer_suggestion') {
+                                $('.reviewer_suggestion').show();
+                                $('.review_report').hide();
+                                $('.author_report').hide();
+                                $('.reviewer_details').hide();
+                                let data = result.reviewer;
+                                let str = '';
+                                for (let i = 0; i < data.length; i++) {
+                                    str += '<tr>\n' +
+                                        '                                                    <td>'+ data[i].nickname +'</td>\n' +
+                                        '                                                    <td>'+ data[i].affiliation +'</td>\n' +
+                                        '                                                    <td>'+ data[i].comment_num +'</td>\n' +
+                                        '                                                </tr>';
+                                }
+                                $('.reviewer_suggestion_content').html(str);
+                            }
+                            // 审稿人意见信息
+                            if (status == 'review_report') {
+                                $('.reviewer_suggestion').hide();
+                                $('.review_report').show();
+                                $('.author_report').hide();
+                                $('.reviewer_details').hide();
+                                let data = result.reviewer;
+                                let str = '';
+                                let  is_button = '';
+                                for (let i = 0; i < data.length; i++) {
+                                    if (data.user_id != user_id) {
+                                        if (data[i].is_send == 'hidden') {
+                                            is_button = '<a href="javascript:;" id="send-button" data-id="'+ data[i].comment_id +'">SEND</a>'
+                                        }
+                                    }
+                                    str += '<tr>\n' +
+                                        '                                                    <td>'+ data[i].nickname +'</td>\n' +
+                                        '                                                    <td>'+ data[i].recommendation +'</td>\n' +
+                                        '                                                    <td>'+ data[i].comment +'</td>\n' +
+                                        '                                                    <td>'+ data[i].createtime +'</td>\n' +
+                                        '                                                    <td>\n' +
+                                        '                                                       '+ is_button +' \n' +
+                                        '                                                    </td>\n' +
+                                        '                                                </tr>';
+                                }
+                                $('.review_report_content').html(str);
+                            }
+                            // 作者回复意见
+                            if (status == 'author_report') {
+                                $('.reviewer_suggestion').hide();
+                                $('.review_report').hide();
+                                $('.author_report').show();
+                                $('.reviewer_details').hide();
+                                let data = result.author;
+                                let str = '';
+                                for (let i = 0; i < data.length; i++) {
+                                    str += '<tr>\n' +
+                                        '                                                    <td>'+ data[i].nickname +'</td>\n' +
+                                        '                                                    <td>'+ data[i].comment +'</td>\n' +
+                                        '                                                    <td>'+ data[i].createtime +'</td>\n' +
+                                        '                                                </tr>';
+                                }
+                                $('.author_report_content').html(str);
+                            }
+                        } else {
+                            Toastr.error(res.msg);
+                        }
+                    },
+                    error: function (xhr, status, error) {
+                        console.error(error);
+                    }
+                });
             })
 
+            $(document).ready(function () {
+               $('.reviewer_details').show();
+            });
+
             setTimeout(function () {
                 $('.btn-delete').remove();
                 $('.input-group-addon').remove();