liyongli 2 years ago
parent
commit
c4fefa653e
2 changed files with 20 additions and 17 deletions
  1. 9 6
      src/view/allMedia/components/reporting_list.vue
  2. 11 11
      src/view/allMedia/convergence.vue

+ 9 - 6
src/view/allMedia/components/reporting_list.vue

@@ -51,6 +51,7 @@
           </el-button>
           <el-button
             link
+            v-if="scope.row.replyFlag != 1"
             type="primary"
             size="small"
             @click="() => replyBL(scope)"
@@ -93,7 +94,7 @@
       <el-row>
         <el-col :span="5">报料内容:</el-col>
         <el-col :span="19">
-          <div v-text="reportingDetailData.content"></div>
+          <div v-text="reportingDetailData.row.content"></div>
         </el-col>
       </el-row>
       <br />
@@ -101,7 +102,7 @@
         <el-col :span="5">回复内容:</el-col>
         <el-col :span="19">
           <el-input
-            v-model="reportingDetailData.reply"
+            v-model="reportingDetailData.row.reply"
             :rows="2"
             type="textarea"
             placeholder="请输入回复内容"
@@ -185,23 +186,25 @@ const deleteBL = item => {
 const lookBL = item => {
   getreportingDetail({ data: { id: item.row.id } }).then(res => {
     reportingDetail.value = true;
-    reportingDetailData.value = res;
+    reportingDetailData.value.row = res;
   });
 };
 
 const replyBL = item => {
   reportingReplyStatus.value = true;
-  reportingDetailData.value = item.row;
+  reportingDetailData.value = item;
 };
 
 const replySave = () => {
   reportingReplyStatus.value = false;
   reportingReply({
     data: {
-      clueId: reportingDetailData.value.id,
-      content: reportingDetailData.value.reply || '',
+      clueId: reportingDetailData.value.row.id,
+      content: reportingDetailData.value.row.reply || '',
       userName: reportingReplyStatus.value.author || '',
     },
+  }).then(() => {
+
   });
 };
 

+ 11 - 11
src/view/allMedia/convergence.vue

@@ -165,20 +165,15 @@ const condition = ref({
 });
 const activeName = ref('T1');
 const btns = [
-  {
-    text: '微信',
-    platform: 'weixin',
-    class: 'icon-weixin',
-  },
   {
     text: '微博',
     platform: 'weibo',
     class: 'icon-weibo',
   },
   {
-    text: '快手',
-    platform: 'kuaishou',
-    class: 'icon-kuaishou',
+    text: '微信',
+    platform: 'weixin',
+    class: 'icon-weixin',
   },
   {
     text: '抖音',
@@ -186,15 +181,20 @@ const btns = [
     class: 'icon-douyin',
   },
   {
-    text: 'B站',
-    platform: 'bzhan',
-    class: 'icon-bzhan',
+    text: '快手',
+    platform: 'kuaishou',
+    class: 'icon-kuaishou',
   },
   {
     text: '头条',
     platform: 'jinritoutiao',
     class: 'icon-jinritoutiao',
   },
+  {
+    text: 'B站',
+    platform: 'bzhan',
+    class: 'icon-bzhan',
+  },
   //   {
   //     text: '闪视频',
   //     platform: 'ssp',