|
@@ -87,7 +87,7 @@
|
|
|
|
|
|
</template>
|
|
|
|
|
|
- <span slot="action" slot-scope="text, record">
|
|
|
+ <span slot="action" slot-scope="text, record" >
|
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
@@ -99,13 +99,16 @@
|
|
|
</a-popconfirm>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
|
- <a @click="handleAnalysis(record.id)">解析</a>
|
|
|
+ <a @click="handleAnalysis(record.id)" >解析</a>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
|
<a @click="handleReport(record.id)">生成报告</a>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
|
- <a @click="handleEmal(record.id)">发送邮件</a>
|
|
|
+ <a @click="handleEmal(record.id)">
|
|
|
+ <span v-if="record.sendState === 1">重新发送</span>
|
|
|
+ <span v-else>发送邮件</span>
|
|
|
+ </a>
|
|
|
</span>
|
|
|
|
|
|
</a-table>
|
|
@@ -161,7 +164,10 @@
|
|
|
{
|
|
|
title:'发件状态',
|
|
|
align:"center",
|
|
|
- dataIndex: 'sendState'
|
|
|
+ dataIndex: 'sendState',
|
|
|
+ customRender:function (text) {
|
|
|
+ return text === 1 ? "已发送" : "未发送"
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
@@ -270,6 +276,7 @@
|
|
|
backgroundColor: '#fff' // 设置背景色
|
|
|
}).replace(/^data:image\/\w+;base64,/, '')
|
|
|
postAction(that.url.email, {id: id,pie:pie}).then((res) => {
|
|
|
+ this.searchQuery();
|
|
|
if (res.success) {
|
|
|
that.$message.success(res.message);
|
|
|
} else {
|