Przeglądaj źródła

添加资讯发布人字段

Jing 4 dni temu
rodzic
commit
c0062a8d08

+ 9 - 1
src/views/news/NewList.vue

@@ -93,11 +93,19 @@
                 <span v-if="scope.row.status == 2">已拒绝</span>
               </template>
             </el-table-column>
+            <!-- 发布人 -->
+            <el-table-column label="发布人" width="160" v-if="creatNews_user_type == 10000">
+              <template slot-scope="scope">
+                <span v-if="(scope.row.is_collector == 0 || scope.row.is_collector == null) && scope.row.user">
+                  {{ scope.row.user.nickname || '' }}
+                </span>
+              </template>
+            </el-table-column>
             <el-table-column prop="c_show_time" label="C端展示时间" width=""
               v-if="creatNews_user_type != 10000"></el-table-column>
             <el-table-column fixed="right" label="操作" width="400" header-align="center"
               v-if="creatNews_user_type == 10000">
-              <template slot-scope="scope">  
+              <template slot-scope="scope">
                 <div class="listBtnBox">
                   <div class="listLinkBtn" @click="selectRow(scope.row.cat_arr_id, scope.row)">
                     <i class="el-icon-full-screen"></i>网站权限

+ 8 - 8
src/views/news/creatNews.vue

@@ -1131,10 +1131,10 @@ export default {
         }
         this.commend_article = data;
       }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '网络错误,请重试!'
-        });
+        // this.$message({
+        //   type: 'info',
+        //   message: '网络错误,请重试!'
+        // });
       })
     },
     // 远程搜索方法
@@ -1166,10 +1166,10 @@ export default {
           this.commend_article = data;
         }).catch(() => {
           this.loading = false;
-          this.$message({
-            type: 'info',
-            message: '网络错误,请重试!'
-          });
+          // this.$message({
+          //   type: 'info',
+          //   message: '网络错误,请重试!'
+          // });
         });
       } else {
         this.getNews()

+ 8 - 0
src/views/news/examine.vue

@@ -105,6 +105,14 @@
                 <span v-if="scope.row.status == 2">已拒绝</span>
               </template>
             </el-table-column>
+            <!-- 发布人 -->
+            <el-table-column label="发布人" width="" v-if="creatNews_user_type == 10000">
+              <template slot-scope="scope">
+                <span v-if="(scope.row.is_collector == 0 || scope.row.is_collector == null) && scope.row.user">
+                  {{ scope.row.user.nickname || '' }}
+                </span>
+              </template>
+            </el-table-column>
             <el-table-column fixed="right" label="操作" width="300" header-align="center"
               v-if="creatNews_user_type == 10000">
               <template slot-scope="scope">