Commit 05e4c2dd authored by Wallen姚文辉's avatar Wallen姚文辉

新增抄送人

parent b96fa7c4
......@@ -198,7 +198,10 @@
</Card>
<Space wrap>
<Modal title="选择收件人" v-model="modlShow" class-name="vertical-center-modal" @on-cancel="closeShow()">
<Select v-model="sendto" multiple style="width:260px">
<Select filterable v-model="sendto" multiple style="width:260px;margin-bottom: 15px" placeholder="收件人">
<Option v-for="item in emailList" :value="item.address" :key="item.id">{{ item.name }}</Option>
</Select>
<Select filterable v-model="sendcc" multiple style="width:260px" placeholder="抄送人">
<Option v-for="item in emailList" :value="item.address" :key="item.id">{{ item.name }}</Option>
</Select>
<template #footer>
......@@ -217,6 +220,7 @@ export default {
return {
modlShow: false,
sendto: [],
sendcc: [],
emailList: [],
bug_p_column: {
title: {
......@@ -546,7 +550,7 @@ export default {
const result = c + m
const sub = this.info.project + "-" + this.info.sprint + "测试报告"
this.closeShow()
this.$request("post", "/tool/testport/sendport", { to: this.sendto, subject: sub, contents: result }, this, () => { this.sendto = [] })
this.$request("post", "/tool/testport/sendport", { to: this.sendto, cc: this.sendcc, subject: sub, contents: result }, this, () => { this.sendto = [] })
});
},
getallEmail() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment