Sfoglia il codice sorgente

小记者发布按钮和评论删除

natasha 6 giorni fa
parent
commit
77c58a762f

+ 9 - 0
src/views/reporter/components/ReportDetail.vue

@@ -312,6 +312,15 @@ export default {
       };
       getLogin(MethodName, data).then((res) => {
         if (res.status === 1) {
+          let MethodNames = "/PaperServer/Client/Xjz/XjzArticleDetail";
+          let datas = {
+            id: this.info.id,
+          };
+          getLogin(MethodNames, datas).then((res) => {
+            if (res.status === 1) {
+              this.infoDetail.comment_list = res.data.comment_list;
+            }
+          });
         }
       });
     },

+ 1 - 1
src/views/reporter/index.vue

@@ -26,7 +26,7 @@
         type="primary"
         @click="changePublist"
         size="small"
-        v-if="userMessage"
+        v-if="userMessage && userMessage.is_org_manager === 'true'"
         >发布</el-button
       >
       <span v-else></span>