lushuncheng 5 years ago
parent
commit
3bd12b5019
61 changed files with 472 additions and 373 deletions
  1. 2 2
      dist/200.html
  2. 1 0
      dist/_nuxt/0e7f383feadd54799a69.css
  3. 1 0
      dist/_nuxt/169b81ecaa4e92ac9def.css
  4. 1 1
      dist/_nuxt/3bfa87b9961d9b4a6e11.js
  5. 1 0
      dist/_nuxt/301da40f75e205a12e46.js
  6. 0 1
      dist/_nuxt/46fe71224b86dd12f890.js
  7. 1 0
      dist/_nuxt/65a91fb8fbc58f4d60e5.js
  8. 0 1
      dist/_nuxt/77e6c3160067d96ad55b.js
  9. 1 1
      dist/_nuxt/888d6295793257571487.js
  10. 1 0
      dist/_nuxt/941131da0e858271b370.css
  11. 0 1
      dist/_nuxt/cea5e444b4553e6f39cc.css
  12. 0 1
      dist/_nuxt/efdf950ef02844c3487c.css
  13. 0 1
      dist/_nuxt/f6bc31878664df5577f0.css
  14. 2 2
      dist/index.html
  15. 2 2
      dist/login/index.html
  16. 2 2
      dist/main/404/index.html
  17. 2 2
      dist/main/artificial_order/index.html
  18. 2 2
      dist/main/artificial_orders/index.html
  19. 2 2
      dist/main/balance_change/index.html
  20. 2 2
      dist/main/cats/index.html
  21. 2 2
      dist/main/cert_check/index.html
  22. 2 2
      dist/main/cert_edit/index.html
  23. 2 2
      dist/main/cert_pro/index.html
  24. 2 2
      dist/main/chat_users/index.html
  25. 2 2
      dist/main/cloud_balance/index.html
  26. 2 2
      dist/main/cloud_developer/index.html
  27. 2 2
      dist/main/cloud_job/index.html
  28. 2 2
      dist/main/dev_check/index.html
  29. 2 2
      dist/main/dev_check_detail/index.html
  30. 2 2
      dist/main/dev_show/index.html
  31. 2 2
      dist/main/gongmall/index.html
  32. 2 2
      dist/main/group_list/index.html
  33. 2 2
      dist/main/index.html
  34. 2 2
      dist/main/jishuquan/index.html
  35. 2 2
      dist/main/job/index.html
  36. 2 2
      dist/main/jobs/index.html
  37. 2 2
      dist/main/jobs_publish_company/index.html
  38. 2 2
      dist/main/orders/index.html
  39. 2 2
      dist/main/orders_detail/index.html
  40. 2 2
      dist/main/orders_frozen/index.html
  41. 2 2
      dist/main/outsource_bill/index.html
  42. 2 2
      dist/main/present_job_apply/index.html
  43. 2 2
      dist/main/publish_present/index.html
  44. 2 2
      dist/main/qingtuanbao/index.html
  45. 2 2
      dist/main/solution/index.html
  46. 2 2
      dist/main/solution_detail/index.html
  47. 2 2
      dist/main/user_bills/index.html
  48. 2 2
      dist/main/user_credit_item/index.html
  49. 2 2
      dist/main/user_credit_list/index.html
  50. 2 2
      dist/main/user_credit_setting/index.html
  51. 2 2
      dist/main/vip_manager/index.html
  52. 2 2
      dist/main/vip_order/index.html
  53. 2 2
      dist/main/vip_setting/index.html
  54. 2 2
      dist/main/wage_details/index.html
  55. 2 2
      dist/main/wage_settlement/index.html
  56. 2 2
      dist/main/wait_expend/index.html
  57. 2 2
      dist/main/withdraw/index.html
  58. 2 2
      dist/main/work_bill/index.html
  59. 12 16
      pages/main/index/chat_users.vue
  60. 342 249
      pages/main/index/jishuquan.vue
  61. 19 9
      pages/main/index/jobs_publish_company.vue

File diff suppressed because it is too large
+ 2 - 2
dist/200.html


+ 1 - 0
dist/_nuxt/0e7f383feadd54799a69.css

@@ -0,0 +1 @@
+.count-list[data-v-39b67dcf]{padding-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.count-item[data-v-39b67dcf]{margin-right:20px;font-size:16px}.content[data-v-39b67dcf]{margin-top:30px;white-space:nowrap;overflow-x:scroll;height:calc(100vh - 150px)}.btn[data-v-39b67dcf]{width:80px}.order-footer[data-v-39b67dcf]{margin-top:10px}

+ 1 - 0
dist/_nuxt/169b81ecaa4e92ac9def.css

@@ -0,0 +1 @@
+.count-list[data-v-1f12ae96]{padding-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.count-item[data-v-1f12ae96]{margin-right:20px;font-size:16px}.content[data-v-1f12ae96]{white-space:nowrap;overflow-x:hidden}.btn[data-v-1f12ae96]{width:80px}.order-footer[data-v-1f12ae96]{margin-top:10px}.clickable[data-v-1f12ae96]{cursor:pointer;color:#409eff}

File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/3bfa87b9961d9b4a6e11.js


File diff suppressed because it is too large
+ 1 - 0
dist/_nuxt/301da40f75e205a12e46.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/46fe71224b86dd12f890.js


File diff suppressed because it is too large
+ 1 - 0
dist/_nuxt/65a91fb8fbc58f4d60e5.js


File diff suppressed because it is too large
+ 0 - 1
dist/_nuxt/77e6c3160067d96ad55b.js


File diff suppressed because it is too large
+ 1 - 1
dist/_nuxt/888d6295793257571487.js


+ 1 - 0
dist/_nuxt/941131da0e858271b370.css

@@ -0,0 +1 @@
+.count-list[data-v-c9be5e84]{padding-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.count-item[data-v-c9be5e84]{margin-right:20px;font-size:16px}.content[data-v-c9be5e84]{white-space:nowrap;overflow-x:hidden}.btn[data-v-c9be5e84]{width:80px}.order-footer[data-v-c9be5e84]{margin-top:10px}.clickable[data-v-c9be5e84]{cursor:pointer;color:#409eff}

+ 0 - 1
dist/_nuxt/cea5e444b4553e6f39cc.css

@@ -1 +0,0 @@
-.count-list[data-v-0f553d2c]{padding-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.count-item[data-v-0f553d2c]{margin-right:20px;font-size:16px}.content[data-v-0f553d2c]{margin-top:30px;white-space:nowrap;overflow-x:scroll;height:calc(100vh - 150px)}.btn[data-v-0f553d2c]{width:80px}.order-footer[data-v-0f553d2c]{margin-top:10px}

+ 0 - 1
dist/_nuxt/efdf950ef02844c3487c.css

@@ -1 +0,0 @@
-.count-list[data-v-1810b606]{padding-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.count-item[data-v-1810b606]{margin-right:20px;font-size:16px}.content[data-v-1810b606]{white-space:nowrap;overflow-x:hidden}.btn[data-v-1810b606]{width:80px}.order-footer[data-v-1810b606]{margin-top:10px}.clickable[data-v-1810b606]{cursor:pointer;color:#409eff}

+ 0 - 1
dist/_nuxt/f6bc31878664df5577f0.css

@@ -1 +0,0 @@
-.count-list[data-v-1b4d670c]{padding-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.count-item[data-v-1b4d670c]{margin-right:20px;font-size:16px}.content[data-v-1b4d670c]{white-space:nowrap;overflow-x:hidden}.btn[data-v-1b4d670c]{width:80px}.order-footer[data-v-1b4d670c]{margin-top:10px}.clickable[data-v-1b4d670c]{cursor:pointer;color:#409eff}

File diff suppressed because it is too large
+ 2 - 2
dist/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/login/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/404/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/artificial_order/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/artificial_orders/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/balance_change/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cats/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cert_check/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cert_edit/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cert_pro/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/chat_users/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cloud_balance/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cloud_developer/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/cloud_job/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/dev_check/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/dev_check_detail/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/dev_show/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/gongmall/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/group_list/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/jishuquan/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/job/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/jobs/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/jobs_publish_company/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/orders/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/orders_detail/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/orders_frozen/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/outsource_bill/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/present_job_apply/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/publish_present/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/qingtuanbao/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/solution/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/solution_detail/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/user_bills/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/user_credit_item/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/user_credit_list/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/user_credit_setting/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/vip_manager/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/vip_order/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/vip_setting/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/wage_details/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/wage_settlement/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/wait_expend/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/withdraw/index.html


File diff suppressed because it is too large
+ 2 - 2
dist/main/work_bill/index.html


+ 12 - 16
pages/main/index/chat_users.vue

@@ -4,14 +4,12 @@
       <div>
         <div class="content" v-if="comChatUsers && comChatUsers.list">
           <el-table :data="comChatUsers.list" border>
-            <el-table-column
-              class="clickable"
-              prop="username"
-              @click="goCompany(scope.row)"
-              label="企业名称"
-              width="400"
-            ></el-table-column>
-            <el-table-column class="clickable" prop="lastChatTimeFormat" label="最近聊天" width="160"></el-table-column>
+            <el-table-column :className="`clickable`" prop="username" label="企业名称" width="400">
+              <template slot-scope="scope">
+                <span @click="goCompany(scope.row)">{{scope.row.username}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column prop="lastChatTimeFormat" label="最近聊天" width="160"></el-table-column>
             <el-table-column prop="totalChatTime" label="总计聊天时长" width="160"></el-table-column>
             <el-table-column prop="totalChatUsers" label="总计聊天用户数" width="120"></el-table-column>
             <el-table-column prop="totalSendMessage" label="总计发送消息数" width="120"></el-table-column>
@@ -31,14 +29,12 @@
       <div>
         <div class="content" v-if="devChatUsers && devChatUsers.list">
           <el-table :data="devChatUsers.list" border>
-            <el-table-column
-              class="clickable"
-              prop="username"
-              @click="goRooterUser(scope.row)"
-              label="开发者名称"
-              width="400"
-            ></el-table-column>
-            <el-table-column class="clickable" prop="lastChatTimeFormat" label="最近聊天" width="160"></el-table-column>
+            <el-table-column :className="`clickable`" prop="username" label="开发者名称" width="400">
+              <template slot-scope="scope">
+                <span @click="goRooterUser(scope.row)">{{scope.row.username}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column prop="lastChatTimeFormat" label="最近聊天" width="160"></el-table-column>
             <el-table-column prop="totalChatTime" label="总计聊天时长" width="160"></el-table-column>
             <el-table-column prop="totalChatUsers" label="总计聊天用户数" width="120"></el-table-column>
             <el-table-column prop="totalSendMessage" label="总计发送消息数" width="120"></el-table-column>

+ 342 - 249
pages/main/index/jishuquan.vue

@@ -5,7 +5,7 @@
       <el-radio-button label="topic">文章管理</el-radio-button>
       <el-radio-button label="video">视频管理</el-radio-button>
     </el-radio-group>
-    <br/>
+    <br />
     <template v-if="tab==='ad'">
       <div>
         <el-button type="success" style="margin-top: 20px;" @click="showAdEdit(null)">添加活动</el-button>
@@ -23,23 +23,40 @@
           <el-table-column prop="created_at" label="创建时间"></el-table-column>
           <el-table-column label="操作" width="300px;">
             <template slot-scope="ad" v-if="tab==='ad'">
-              <el-button type="primary" @click="showAdEdit(ad.row)">编辑<i class="el-icon-edit el-icon--right"></i>
+              <el-button type="primary" @click="showAdEdit(ad.row)">
+                编辑
+                <i class="el-icon-edit el-icon--right"></i>
               </el-button>
-              <el-button type="danger" @click="deleteAd(ad.row.id)">删除<i class="el-icon-delete el-icon--right"></i>
+              <el-button type="danger" @click="deleteAd(ad.row.id)">
+                删除
+                <i class="el-icon-delete el-icon--right"></i>
               </el-button>
             </template>
           </el-table-column>
         </el-table>
       </div>
-      <el-pagination class="order-footer" background layout="prev, pager, next" :page-size="20"
-                     :total="total" @current-change="handleCurrentChange"/>
-
+      <el-pagination
+        class="order-footer"
+        background
+        layout="prev, pager, next"
+        :page-size="20"
+        :total="total"
+        @current-change="handleCurrentChange"
+      />
     </template>
     <template v-if="tab==='topic'">
       <div class="content" v-if="topics">
         <el-table :data="topics" height="100%" border style="width: 100%">
-          <el-table-column prop="title" label="文章标题"></el-table-column>
-          <el-table-column prop="nickname" label="作者"></el-table-column>
+          <el-table-column :className="`clickable`" prop="title" label="文章标题">
+            <template slot-scope="scope">
+              <span @click="goTopic(scope.row)">{{scope.row.title}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column :className="`clickable`" prop="nickname" label="作者">
+            <template slot-scope="scope">
+              <span @click="goRooterUser(scope.row)">{{scope.row.nickname}}</span>
+            </template>
+          </el-table-column>
           <el-table-column prop="created_at" label="发布时间"></el-table-column>
           <el-table-column label="基本数据" width="290px">
             <template slot-scope="topic" v-if="tab==='topic'">
@@ -52,38 +69,59 @@
           <el-table-column label="操作" width="380px" v-if="tab==='topic'">
             <template slot-scope="topic" v-if="tab==='topic'">
               <template v-if="Number(topic.row.order) > 0">
-                <el-button type="primary" @click="topTopic(topic.row.id,topic.row.order)">取消置顶<i
-                  class="el-icon-top el-icon--right"></i>
+                <el-button type="primary" @click="topTopic(topic.row.id,topic.row.order)">
+                  取消置顶
+                  <i class="el-icon-top el-icon--right"></i>
                 </el-button>
               </template>
               <template v-if="Number(topic.row.order) === 0">
-                <el-button type="primary" @click="topTopic(topic.row.id,topic.row.order)">置顶<i
-                  class="el-icon-top el-icon--right"></i>
+                <el-button type="primary" @click="topTopic(topic.row.id,topic.row.order)">
+                  置顶
+                  <i class="el-icon-top el-icon--right"></i>
                 </el-button>
               </template>
               <template v-if="topic.row.is_excellent==='yes'">
-                <el-button type="success" @click="recTopic(topic.row.id,topic.row.is_excellent)">取消推荐<i
-                  class="el-icon-collection-tag el-icon--right"></i></el-button>
+                <el-button type="success" @click="recTopic(topic.row.id,topic.row.is_excellent)">
+                  取消推荐
+                  <i class="el-icon-collection-tag el-icon--right"></i>
+                </el-button>
               </template>
               <template v-if="topic.row.is_excellent==='no'">
-                <el-button type="success" @click="recTopic(topic.row.id,topic.row.is_excellent)">推荐<i
-                  class="el-icon-collection-tag el-icon--right"></i></el-button>
+                <el-button type="success" @click="recTopic(topic.row.id,topic.row.is_excellent)">
+                  推荐
+                  <i class="el-icon-collection-tag el-icon--right"></i>
+                </el-button>
               </template>
-              <el-button type="danger" @click="delTopic(topic.row.id)">删除<i
-                class="el-icon-delete el-icon--right"></i></el-button>
+              <el-button type="danger" @click="delTopic(topic.row.id)">
+                删除
+                <i class="el-icon-delete el-icon--right"></i>
+              </el-button>
             </template>
           </el-table-column>
         </el-table>
       </div>
-      <el-pagination class="order-footer" background layout="prev, pager, next" :page-size="20"
-                     :total="total" @current-change="handleCurrentChange"/>
-
+      <el-pagination
+        class="order-footer"
+        background
+        layout="prev, pager, next"
+        :page-size="20"
+        :total="total"
+        @current-change="handleCurrentChange"
+      />
     </template>
     <template v-if="tab==='video'">
       <div class="content" v-if="videos">
         <el-table :data="videos" height="100%" border style="width: 100%">
-          <el-table-column prop="title" label="视频简介"></el-table-column>
-          <el-table-column prop="nickname" label="作者"></el-table-column>
+          <el-table-column prop="title" :className="`clickable`" label="视频简介">
+            <template slot-scope="scope">
+              <span @click="goVideo(scope.row)">{{scope.row.title}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column prop="nickname" :className="`clickable`" label="作者">
+            <template slot-scope="scope">
+              <span @click="goRooterUser(scope.row)">{{scope.row.nickname}}</span>
+            </template>
+          </el-table-column>
           <el-table-column prop="created_at" label="发布时间"></el-table-column>
           <el-table-column label="基本数据" width="340px">
             <template slot-scope="video" v-if="tab==='video'">
@@ -96,19 +134,38 @@
           <el-table-column prop="status_name" label="状态"></el-table-column>
           <el-table-column label="操作" width="340px">
             <template slot-scope="video" v-if="tab==='video'">
-              <el-button type="primary" v-if="video.row.status==1" @click="approveVideo(video.row.id)">下架<i
-                class="el-icon-bottom el-icon--right"></i></el-button>
-              <el-button type="primary" v-if="video.row.status==0" @click="approveVideo(video.row.id)">上架<i
-                class="el-icon-top el-icon--right"></i></el-button>
-              <el-button type="danger" @click="deleteVideo(video.row.id)">删除<i
-                class="el-icon-delete el-icon--right"></i></el-button>
+              <el-button
+                type="primary"
+                v-if="video.row.status==1"
+                @click="approveVideo(video.row.id)"
+              >
+                下架
+                <i class="el-icon-bottom el-icon--right"></i>
+              </el-button>
+              <el-button
+                type="primary"
+                v-if="video.row.status==0"
+                @click="approveVideo(video.row.id)"
+              >
+                上架
+                <i class="el-icon-top el-icon--right"></i>
+              </el-button>
+              <el-button type="danger" @click="deleteVideo(video.row.id)">
+                删除
+                <i class="el-icon-delete el-icon--right"></i>
+              </el-button>
             </template>
           </el-table-column>
         </el-table>
       </div>
-      <el-pagination class="order-footer" background layout="prev, pager, next" :page-size="20"
-                     :total="total" @current-change="handleCurrentChange"/>
-
+      <el-pagination
+        class="order-footer"
+        background
+        layout="prev, pager, next"
+        :page-size="20"
+        :total="total"
+        @current-change="handleCurrentChange"
+      />
     </template>
 
     <el-dialog title="活动管理" :visible.sync="dialogFormVisible">
@@ -153,289 +210,325 @@
 </template>
 
 <script>
-  export default {
-    data() {
-      return {
-        page: 1,
-        size: 20,
-        tab: 'ad',
-        total: 1,
-        ads: [],
-        topics: [],
-        videos: [],
-        form: {
-          title: '',
-          url: '',
-          type: '1',
-          tags: '',
-          status: '1',
-          position: '1'
-        },
-        dialogFormVisible: false,
-        formLabelWidth: '120px',
-      };
+export default {
+  data() {
+    return {
+      page: 1,
+      size: 20,
+      tab: "ad",
+      total: 1,
+      ads: [],
+      topics: [],
+      videos: [],
+      form: {
+        title: "",
+        url: "",
+        type: "1",
+        tags: "",
+        status: "1",
+        position: "1"
+      },
+      dialogFormVisible: false,
+      formLabelWidth: "120px"
+    };
+  },
+  mounted() {
+    this.getList();
+  },
+  methods: {
+    goTopic(topic) {
+      console.log(topic);
+      window.open(
+        this.$store.state.domainConfig.jishuinUrl + "/p/" + topic.id + ".html"
+      );
     },
-    mounted() {
-      this.getList();
+    goVideo(topic) {
+      console.log(topic);
+      window.open(
+        this.$store.state.domainConfig.jishuinUrl + "/video/" + topic.video_id
+      );
     },
-    methods: {
-      topTopic(id, order) {
-        let hint = '是否置顶文章?';
-        if (order > 0) {
-          hint = '是否取消推荐文章?';
-        }
-        this.$confirm(hint, '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(() => {
-          let res = this.$post('/api/admin/jishuquan/top_topic', {id: id}).then(res => {
+    goRooterUser(topic) {
+      window.open(
+        this.$store.state.domainConfig.siteUrl + "/rooter/user/" + topic.user_id
+      );
+    },
+    topTopic(id, order) {
+      let hint = "是否置顶文章?";
+      if (order > 0) {
+        hint = "是否取消推荐文章?";
+      }
+      this.$confirm(hint, "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(() => {
+          let res = this.$post("/api/admin/jishuquan/top_topic", {
+            id: id
+          }).then(res => {
             if (res.status === 1) {
               this.$message({
-                type: 'success',
-                message: '操作成功!'
+                type: "success",
+                message: "操作成功!"
               });
               this.getList();
             }
           });
-        }).catch(() => {
+        })
+        .catch(() => {
           this.$message({
-            type: 'info',
-            message: '已取消'
+            type: "info",
+            message: "已取消"
           });
         });
-      },
-      recTopic(id, status) {
-        let hint = '是否推荐文章?';
-        if (status === 'yes') {
-          hint = '是否取消推荐文章?';
-        }
-        this.$confirm(hint, '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(() => {
-          let res = this.$post('/api/admin/jishuquan/rec_topic', {id: id}).then(res => {
+    },
+    recTopic(id, status) {
+      let hint = "是否推荐文章?";
+      if (status === "yes") {
+        hint = "是否取消推荐文章?";
+      }
+      this.$confirm(hint, "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(() => {
+          let res = this.$post("/api/admin/jishuquan/rec_topic", {
+            id: id
+          }).then(res => {
             if (res.status === 1) {
               this.$message({
-                type: 'success',
-                message: '操作成功!'
+                type: "success",
+                message: "操作成功!"
               });
               this.getList();
             }
           });
-        }).catch(() => {
+        })
+        .catch(() => {
           this.$message({
-            type: 'info',
-            message: '已取消'
+            type: "info",
+            message: "已取消"
           });
         });
-      },
-      delTopic(id) {
-        this.$confirm('此操作将永久删除该文章, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(() => {
-          let res = this.$post('/api/admin/jishuquan/delete_topic', {id: id}).then(res => {
+    },
+    delTopic(id) {
+      this.$confirm("此操作将永久删除该文章, 是否继续?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(() => {
+          let res = this.$post("/api/admin/jishuquan/delete_topic", {
+            id: id
+          }).then(res => {
             if (res.status == 1) {
               this.$message({
-                type: 'success',
-                message: '删除成功!'
+                type: "success",
+                message: "删除成功!"
               });
               this.getList();
             }
           });
-        }).catch(() => {
+        })
+        .catch(() => {
           this.$message({
-            type: 'info',
-            message: '已取消删除'
+            type: "info",
+            message: "已取消删除"
           });
         });
-      },
-      approveVideo(id) {
-        this.$confirm('更改视频状态', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(() => {
-          let res = this.$post('/api/admin/jishuquan/audit_video', {id: id}).then(res => {
+    },
+    approveVideo(id) {
+      this.$confirm("更改视频状态", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(() => {
+          let res = this.$post("/api/admin/jishuquan/audit_video", {
+            id: id
+          }).then(res => {
             if (res.status == 1) {
               this.$message({
-                type: 'success',
-                message: '操作成功!'
+                type: "success",
+                message: "操作成功!"
               });
               this.getList();
             }
           });
-        }).catch(() => {
+        })
+        .catch(() => {
           this.$message({
-            type: 'info',
-            message: '已取消'
+            type: "info",
+            message: "已取消"
           });
         });
-      },
-      deleteVideo(id) {
-        this.$confirm('此操作将永久删除该视频, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(() => {
-          let res = this.$post('/api/admin/jishuquan/delete_video', {id: id}).then(res => {
+    },
+    deleteVideo(id) {
+      this.$confirm("此操作将永久删除该视频, 是否继续?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(() => {
+          let res = this.$post("/api/admin/jishuquan/delete_video", {
+            id: id
+          }).then(res => {
             if (res.status == 1) {
               this.$message({
-                type: 'success',
-                message: '删除成功!'
+                type: "success",
+                message: "删除成功!"
               });
               this.getList();
             }
           });
-        }).catch(() => {
+        })
+        .catch(() => {
           this.$message({
-            type: 'info',
-            message: '已取消删除'
+            type: "info",
+            message: "已取消删除"
           });
         });
-      },
-      showAdEdit(item) {
-        console.log(item);
-        if (item != null) {
-          this.form.id = item.id;
-          this.form.title = item.title;
-          this.form.url = item.url;
-          this.form.type = item.type;
-          this.form.tags = item.tags;
-          this.form.status = item.status;
-          this.form.position = item.position;
-          this.form.uid = item.uid;
-        }
-        this.dialogFormVisible = true;
-      },
+    },
+    showAdEdit(item) {
+      console.log(item);
+      if (item != null) {
+        this.form.id = item.id;
+        this.form.title = item.title;
+        this.form.url = item.url;
+        this.form.type = item.type;
+        this.form.tags = item.tags;
+        this.form.status = item.status;
+        this.form.position = item.position;
+        this.form.uid = item.uid;
+      }
+      this.dialogFormVisible = true;
+    },
 
-      deleteAd(id) {
-        this.$confirm('此操作将永久删除该活动, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(() => {
-          let res = this.$post('/api/admin/jishuquan/delete_ad', {id: id}).then(res => {
+    deleteAd(id) {
+      this.$confirm("此操作将永久删除该活动, 是否继续?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(() => {
+          let res = this.$post("/api/admin/jishuquan/delete_ad", {
+            id: id
+          }).then(res => {
             if (res.status == 1) {
               this.$message({
-                type: 'success',
-                message: '删除成功!'
+                type: "success",
+                message: "删除成功!"
               });
               this.getList();
             }
           });
-        }).catch(() => {
+        })
+        .catch(() => {
           this.$message({
-            type: 'info',
-            message: '已取消删除'
+            type: "info",
+            message: "已取消删除"
           });
         });
-      },
-      async editAd() {
-        let form = this.form;
-        if (form.id) {
-          let res = await this.$post("/api/admin/jishuquan/update_ad", form);
-          console.log(res);
-          if (res.status == 1) {
-            this.$message({
-              type: "success",
-              message: "修改成功"
-            });
-          }
-        } else {
-          let res = this.$post("/api/admin/jishuquan/create_ad", form);
-          if (res.status == 1) {
-            this.$message.success("创建成功");
-            this.form = {
-              title: '',
-              url: '',
-              type: '1',
-              tags: '',
-              status: '1',
-              position: '1'
-            };
-          }
+    },
+    async editAd() {
+      let form = this.form;
+      if (form.id) {
+        let res = await this.$post("/api/admin/jishuquan/update_ad", form);
+        console.log(res);
+        if (res.status == 1) {
+          this.$message({
+            type: "success",
+            message: "修改成功"
+          });
         }
-
-        this.getList();
-        this.dialogFormVisible = false;
-
-      },
-      handleCurrentChange(val) {
-        this.page = val;
-        this.getList();
-      },
-      async getList() {
-        const page = this.page;
-        const size = this.size;
-        const data = {
-          page,
-          size
-        };
-        let res;
-        switch (this.tab) {
-          case "ad":
-            res = await this.$post("/api/admin/jishuquan/get_ads", data);
-            this.ads = res.data.ads;
-            this.total = res.data.total;
-            break;
-          case 'video':
-            res = await this.$post("/api/admin/jishuquan/get_videos", data);
-            this.videos = res.data.videos;
-            this.total = res.data.total;
-            break;
-          case 'topic':
-            res = await this.$post("/api/admin/jishuquan/get_topics", data);
-            this.topics = res.data.topics;
-            this.total = res.data.total;
-            break;
-
+      } else {
+        let res = this.$post("/api/admin/jishuquan/create_ad", form);
+        if (res.status == 1) {
+          this.$message.success("创建成功");
+          this.form = {
+            title: "",
+            url: "",
+            type: "1",
+            tags: "",
+            status: "1",
+            position: "1"
+          };
         }
+      }
 
-
-      },
-      async contact(id) {
-
-        const data = {
-          id
-        };
-        let res = await this.$post("/api/admin/jishuquan/get_ads", data);
-        this.$message({
-          message: res.info,
-          type: 'success'
-        });
-      },
+      this.getList();
+      this.dialogFormVisible = false;
+    },
+    handleCurrentChange(val) {
+      this.page = val;
+      this.getList();
+    },
+    async getList() {
+      const page = this.page;
+      const size = this.size;
+      const data = {
+        page,
+        size
+      };
+      let res;
+      switch (this.tab) {
+        case "ad":
+          res = await this.$post("/api/admin/jishuquan/get_ads", data);
+          this.ads = res.data.ads;
+          this.total = res.data.total;
+          break;
+        case "video":
+          res = await this.$post("/api/admin/jishuquan/get_videos", data);
+          this.videos = res.data.videos;
+          this.total = res.data.total;
+          break;
+        case "topic":
+          res = await this.$post("/api/admin/jishuquan/get_topics", data);
+          this.topics = res.data.topics;
+          this.total = res.data.total;
+          break;
+      }
+    },
+    async contact(id) {
+      const data = {
+        id
+      };
+      let res = await this.$post("/api/admin/jishuquan/get_ads", data);
+      this.$message({
+        message: res.info,
+        type: "success"
+      });
     }
-  };
+  }
+};
 </script>
 
 <style lang="scss" scoped>
-  .count-list {
-    padding-bottom: 10px;
-    display: flex;
-    align-items: center;
-  }
+.count-list {
+  padding-bottom: 10px;
+  display: flex;
+  align-items: center;
+}
 
-  .count-item {
-    margin-right: 20px;
-    font-size: 16px;
-  }
+.count-item {
+  margin-right: 20px;
+  font-size: 16px;
+}
 
-  .content {
-    margin-top: 30px;
-    white-space: nowrap;
-    overflow-x: scroll;
-    height: calc(100vh - 150px);
-  }
+.content {
+  margin-top: 30px;
+  white-space: nowrap;
+  overflow-x: scroll;
+  height: calc(100vh - 150px);
+}
 
-  .btn {
-    width: 80px;
-  }
+.btn {
+  width: 80px;
+}
 
-  .order-footer {
-    margin-top: 10px;
-  }
+.order-footer {
+  margin-top: 10px;
+}
 </style>

+ 19 - 9
pages/main/index/jobs_publish_company.vue

@@ -5,9 +5,17 @@
     </div>
     <div class="content" v-if="publishCompanies && publishCompanies.list">
       <el-table :data="publishCompanies.list" border>
-        <el-table-column className="clickable" prop="companyInfo.name" @click="goCompany(scope.row)" label="企业名称" width="400"></el-table-column>
-        <el-table-column className="clickable" prop="userInfo.nickname" @click="goCompany(scope.row)" label="昵称"  width="160"></el-table-column>
-        <el-table-column prop="total" label="发布岗位总数"  width="160"></el-table-column>
+        <el-table-column :className="`clickable`" prop="companyInfo.name" label="企业名称" width="400">
+          <template slot-scope="scope">
+            <span @click="goCompany(scope.row)">{{scope.row.companyInfo.name}}</span>
+          </template>
+        </el-table-column>
+        <el-table-column :className="`clickable`" prop="userInfo.nickname" label="昵称" width="160">
+          <template slot-scope="scope">
+            <span @click="goRooterUser(scope.row)">{{scope.row.userInfo.nickname}}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="total" label="发布岗位总数" width="160"></el-table-column>
         <el-table-column prop="totalOpen" label="开放中" width="120"></el-table-column>
       </el-table>
     </div>
@@ -27,7 +35,7 @@ export default {
   data() {
     return {
       page: 1,
-      publishCompanies: "",
+      publishCompanies: ""
     };
   },
   mounted() {
@@ -37,9 +45,12 @@ export default {
     async getAuditList() {
       const page = this.page;
       const data = {
-        page,
+        page
       };
-      let res = await this.$post("/api/admin/recruit/getPublishCompanies", data);
+      let res = await this.$post(
+        "/api/admin/recruit/getPublishCompanies",
+        data
+      );
       if (res && res.status === 1) {
         this.publishCompanies = res.data;
         console.log(this.publishCompanies);
@@ -54,8 +65,7 @@ export default {
         this.$store.state.domainConfig.siteUrl + `/company/${row.uid}`
       );
     },
-    goRooterUser()
-    {
+    goRooterUser() {
       window.open(
         this.$store.state.domainConfig.siteUrl + `/rooter/user/${row.uid}`
       );
@@ -90,6 +100,6 @@ export default {
 }
 .clickable {
   cursor: pointer;
-  color: #409EFF;
+  color: #409eff;
 }
 </style>