|
@@ -156,35 +156,14 @@
|
156
|
156
|
</el-table-column>
|
157
|
157
|
<el-table-column prop="published_count" min-width="100" label="已发送人数" show-overflow-tooltip align="center"></el-table-column>
|
158
|
158
|
<el-table-column prop="unpublished_count" min-width="100" label="未发送人数" show-overflow-tooltip align="center"></el-table-column>
|
159
|
|
- <el-table-column label="发送状态" width="140" align="center">
|
|
159
|
+ <el-table-column label="发送状态" min-width="100" show-overflow-tooltip align="center">
|
160
|
160
|
<template slot-scope="scope">
|
161
|
161
|
<div>
|
162
|
|
- <!-- -1 发送失败 && 失败原因 -->
|
163
|
|
- <div v-if="scope.row.status==-1" class="status-wrap">
|
164
|
|
- <p class="c-F03F5C">发送失败!</p>
|
165
|
|
- <template v-if="scope.row.statusTexts && scope.row.statusTexts.length">
|
166
|
|
- <template v-for="statusText in scope.row.statusTexts">
|
167
|
|
- <el-tooltip v-if="statusText.length > 9" class="item" effect="dark" placement="left" :content="statusText">
|
168
|
|
- <div class="c-666 reason">{{ statusText }}</div>
|
169
|
|
- </el-tooltip>
|
170
|
|
- <div v-else class="c-666" :title="statusText">{{ statusText }}</div>
|
171
|
|
- </template>
|
172
|
|
- </template>
|
173
|
|
- </div>
|
|
162
|
+ <span v-if="scope.row.status == -1" class="c-666">发送失败</span>
|
174
|
163
|
<span v-else-if="scope.row.status == 1" class="c-FFB055">待发送</span>
|
175
|
164
|
<span v-else-if="scope.row.status == 2" class="c-448AFF">正在发送中</span>
|
176
|
165
|
<span v-else-if="scope.row.status == 3" class="c-F03F5C">待客服确认</span>
|
177
|
|
- <div v-else-if="scope.row.status == 4" class="status-wrap">
|
178
|
|
- <span :class="[scope.row.statusTexts ? 'c-F03F5C' : 'c-58BCA6']">发送完成</span>
|
179
|
|
- <template v-if="scope.row.statusTexts && scope.row.statusTexts.length">
|
180
|
|
- <template v-for="statusText in scope.row.statusTexts">
|
181
|
|
- <el-tooltip v-if="statusText.length > 9" class="item" effect="dark" placement="left" :content="statusText">
|
182
|
|
- <div class="c-666 reason">{{ statusText }}</div>
|
183
|
|
- </el-tooltip>
|
184
|
|
- <div v-else class="c-666" :title="statusText">{{ statusText }}</div>
|
185
|
|
- </template>
|
186
|
|
- </template>
|
187
|
|
- </div>
|
|
166
|
+ <span v-else-if="scope.row.status == 4" class="c-58BCA6">发送完成</span>
|
188
|
167
|
<span v-else>-</span>
|
189
|
168
|
</div>
|
190
|
169
|
</template>
|
|
@@ -443,16 +422,6 @@ export default {
|
443
|
422
|
if (type == 'export') {
|
444
|
423
|
this.exportEvent(res.rst.data)
|
445
|
424
|
} else {
|
446
|
|
-
|
447
|
|
- res.rst.data[0].status = 4 // mock
|
448
|
|
- res.rst.data[0].statusTexts = ['123456789', '12345678901', '原因原因原因原因原因原因原因原因'] // mock
|
449
|
|
- res.rst.data[1].status = 4 // mock
|
450
|
|
- res.rst.data[1].statusTexts = '' // mock
|
451
|
|
- res.rst.data[2].status = -1 // mock
|
452
|
|
- res.rst.data[2].statusTexts = ['123456789', '12345678901', '原因原因原因原因原因原因原因原因'] // mock
|
453
|
|
- res.rst.data[3].status = -1 // mock
|
454
|
|
- res.rst.data[3].statusTexts = ['原因原因原因原因原因', '原因原因原因原因因'] // mock
|
455
|
|
-
|
456
|
425
|
this.tableData = res.rst.data;
|
457
|
426
|
this.$nextTick(() => {
|
458
|
427
|
this.$refs.multipleTable.doLayout()
|
|
@@ -514,14 +483,4 @@ export default {
|
514
|
483
|
color: #111;
|
515
|
484
|
font-size: 14px;
|
516
|
485
|
}
|
517
|
|
-.status-wrap {
|
518
|
|
- width: 100%;
|
519
|
|
- .reason {
|
520
|
|
- width: 100%;
|
521
|
|
- overflow:hidden;
|
522
|
|
- white-space: nowrap;
|
523
|
|
- text-overflow: ellipsis;
|
524
|
|
- -o-text-overflow:ellipsis;
|
525
|
|
- }
|
526
|
|
-}
|
527
|
|
-</style>
|
|
486
|
+</style>
|