Browse Source

fix: 客户群群发 - 群发详情状态调整

zhengxy 1 year ago
parent
commit
661bc665ea

+ 1 - 1
project/src/assets/js/staticTypes.js

@@ -157,7 +157,7 @@ export const remove_type = [
157 157
 
158 158
 export const chat_group_status = [
159 159
   { key: 1, val: '群主已发送' },
160
-  { key: 2, val: '群主未发送' },
160
+  { key: 0, val: '群主未发送' },
161 161
   { key: 3, val: '发送失败' },
162 162
 ]
163 163
 

+ 11 - 4
project/src/components/customOperate/chatGroup/createMsgDetail.vue

@@ -167,10 +167,8 @@
167 167
         </el-table-column>
168 168
         <el-table-column prop="department_name" label="企微主体" show-overflow-tooltip align="center"></el-table-column>
169 169
         <el-table-column prop="status" min-width="80" label="消息送达状态" show-overflow-tooltip align="center">
170
-          <template slot-scope="scope">
171
-            <div v-if="scope.row.status == 1">群主已发送</div>
172
-            <div v-if="scope.row.status == 2">群主未发送</div>
173
-            <div v-if="scope.row.status == 3">发送失败</div>
170
+          <template slot-scope="{ row }">
171
+            <div>{{ handleGetStatusDesc(row.status) }}</div>
174 172
           </template>
175 173
         </el-table-column>
176 174
         <el-table-column prop="send_time" label="群聊发送时间" show-overflow-tooltip align="center"></el-table-column>
@@ -206,6 +204,11 @@ import selfChannel from '@/components/assembly/screen/channel.vue'
206 204
 import qunDetail from './chatGroupDetail.vue'
207 205
 import phonePreview from '@/components/assembly/phonePreview.vue'
208 206
 import groupOwnDialog from './components/groupOwnDialog.vue'
207
+const statusMap = new Map([
208
+  [1, '群主已发送'],
209
+  [0, '群主未发送'],
210
+  [3, '发送失败'],
211
+])
209 212
 
210 213
 export default {
211 214
   components: {
@@ -341,6 +344,10 @@ export default {
341 344
     onCloseGroupOwn() {
342 345
       this.groupOwnDialogVisible = false
343 346
     },
347
+
348
+    handleGetStatusDesc(status) {
349
+      return statusMap.get(Number(status)) || '-'
350
+    },
344 351
   }
345 352
 }
346 353
 </script>