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

新增抄送人

parent b96fa7c4
...@@ -198,7 +198,10 @@ ...@@ -198,7 +198,10 @@
</Card> </Card>
<Space wrap> <Space wrap>
<Modal title="选择收件人" v-model="modlShow" class-name="vertical-center-modal" @on-cancel="closeShow()"> <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> <Option v-for="item in emailList" :value="item.address" :key="item.id">{{ item.name }}</Option>
</Select> </Select>
<template #footer> <template #footer>
...@@ -217,6 +220,7 @@ export default { ...@@ -217,6 +220,7 @@ export default {
return { return {
modlShow: false, modlShow: false,
sendto: [], sendto: [],
sendcc: [],
emailList: [], emailList: [],
bug_p_column: { bug_p_column: {
title: { title: {
...@@ -546,7 +550,7 @@ export default { ...@@ -546,7 +550,7 @@ export default {
const result = c + m const result = c + m
const sub = this.info.project + "-" + this.info.sprint + "测试报告" const sub = this.info.project + "-" + this.info.sprint + "测试报告"
this.closeShow() 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() { 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