|
|
@@ -1,10 +1,36 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div>
|
|
3
|
|
- <el-dialog title="编辑内容" :visible="emailVidable" @close="cancel" center
|
|
|
3
|
+ <el-dialog title="邮件内容" :visible="emailVidable" @close="cancel" center
|
|
4
|
4
|
:distroy-on-close="true">
|
|
5
|
5
|
<div>
|
|
6
|
|
- <el-input type="textarea" :rows="6" placeholder="请输入内容" v-model="sendData">
|
|
7
|
|
- </el-input>
|
|
|
6
|
+ <el-form>
|
|
|
7
|
+ <el-col :span="24">
|
|
|
8
|
+ <el-form-item label="邮件主题:" label-width="100px">
|
|
|
9
|
+ <div>主题</div>
|
|
|
10
|
+ </el-form-item>
|
|
|
11
|
+ </el-col>
|
|
|
12
|
+ <el-col :span="12">
|
|
|
13
|
+ <el-form-item label="收件人:" label-width="100px">
|
|
|
14
|
+ <div>收件人</div>
|
|
|
15
|
+ </el-form-item>
|
|
|
16
|
+ </el-col>
|
|
|
17
|
+ <el-col :span="12">
|
|
|
18
|
+ <el-form-item label="发件人:" label-width="100px">
|
|
|
19
|
+ <div>发件人</div>
|
|
|
20
|
+ </el-form-item>
|
|
|
21
|
+ </el-col>
|
|
|
22
|
+ <el-col :span="24">
|
|
|
23
|
+ <el-form-item label="邮件附件:" label-width="100px">
|
|
|
24
|
+ <div style="color: blue; cursor: pointer" @click="viewAttachments">附件</div>
|
|
|
25
|
+ </el-form-item>
|
|
|
26
|
+ </el-col>
|
|
|
27
|
+ <el-col :span="24">
|
|
|
28
|
+ <el-form-item label="邮件正文:" label-width="100px">
|
|
|
29
|
+ <el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="sendData"></el-input>
|
|
|
30
|
+ </el-form-item>
|
|
|
31
|
+ </el-col>
|
|
|
32
|
+ </el-form>
|
|
|
33
|
+
|
|
8
|
34
|
</div>
|
|
9
|
35
|
<div slot="footer" class="dialog-footer">
|
|
10
|
36
|
<el-button @click="cancel" class="endbutton1" round><span>取 消</span></el-button>
|
|
|
@@ -22,7 +48,8 @@ export default {
|
|
22
|
48
|
props: ["emailVidable", "emailRow","queryParams"],
|
|
23
|
49
|
data() {
|
|
24
|
50
|
return {
|
|
25
|
|
- sendData:''
|
|
|
51
|
+ sendData:'',
|
|
|
52
|
+ fileURL: window.location.origin + "/API",
|
|
26
|
53
|
};
|
|
27
|
54
|
},
|
|
28
|
55
|
watch: {
|
|
|
@@ -49,6 +76,10 @@ export default {
|
|
49
|
76
|
this.$emit("cancelEmail");
|
|
50
|
77
|
this.$emit('getList',this.queryParams);
|
|
51
|
78
|
})
|
|
|
79
|
+ },
|
|
|
80
|
+ // 查看附件下载附件
|
|
|
81
|
+ viewAttachments(val){
|
|
|
82
|
+ window.open(this.fileURL + val);
|
|
52
|
83
|
}
|
|
53
|
84
|
},
|
|
54
|
85
|
};
|