|
|
@@ -115,7 +115,7 @@
|
|
|
</template>
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn prop="sent" label="已发送" align="center">
|
|
|
- <template #default="{ row }"> {{ row.sent || 0 }} / {{ row.total || 0 }} </template>
|
|
|
+ <template #default="{ row }"> {{ row.sent || 0 }} / {{ row.total || 0 }}</template>
|
|
|
</ElTableColumn>
|
|
|
<ElTableColumn prop="successRate" label="发送成功率" align="center" />
|
|
|
<ElTableColumn prop="createdAt" label="创建时间" :formatter="timeFormatter" width="150" />
|
|
|
@@ -430,6 +430,7 @@ async function pause(row) {
|
|
|
}
|
|
|
|
|
|
async function receipt(row) {
|
|
|
+ const successNum = await http.get(`/task/num/${row.id}`)
|
|
|
try {
|
|
|
const response = await http.post(`/task/item/${row.id}/receipt`)
|
|
|
const uint8Array = new Uint8Array(response.data)
|
|
|
@@ -437,7 +438,7 @@ async function receipt(row) {
|
|
|
const link = document.createElement('a')
|
|
|
const blobUrl = URL.createObjectURL(blob)
|
|
|
link.href = blobUrl
|
|
|
- link.download = `${row.name}_回执.xlsx`
|
|
|
+ link.download = `${row.name}_发送成功${successNum}_回执.xlsx`
|
|
|
link.click()
|
|
|
window.URL.revokeObjectURL(blobUrl)
|
|
|
} catch (error) {
|
|
|
@@ -451,6 +452,7 @@ const dmModel = ref({
|
|
|
values: []
|
|
|
})
|
|
|
const showDmDialog = ref(false)
|
|
|
+
|
|
|
function editDm(row) {
|
|
|
dmModel.value = row || {
|
|
|
key: '',
|
|
|
@@ -458,9 +460,11 @@ function editDm(row) {
|
|
|
}
|
|
|
showDmDialog.value = true
|
|
|
}
|
|
|
+
|
|
|
function addValue() {
|
|
|
dmModel.value.values.push('')
|
|
|
}
|
|
|
+
|
|
|
function delValue(index) {
|
|
|
dmModel.value.values.splice(index, 1)
|
|
|
}
|
|
|
@@ -471,6 +475,7 @@ function delValue(index) {
|
|
|
font-size: 12px;
|
|
|
margin-left: 10px;
|
|
|
}
|
|
|
+
|
|
|
.task-edit-dialog {
|
|
|
.el-form-item {
|
|
|
width: 50%;
|
|
|
@@ -478,6 +483,7 @@ function delValue(index) {
|
|
|
padding-left: 20px;
|
|
|
vertical-align: top;
|
|
|
}
|
|
|
+
|
|
|
.el-input,
|
|
|
.el-input-number,
|
|
|
.el-select {
|