1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
| <template>
| <div>
| <el-button size="mini" icon="el-icon-plus" type="primary" @click="selectOrg" round>选择抄送人</el-button>
| <div class="option">
| <el-checkbox label="允许发起人添加抄送人" v-model="config.shouldAdd"></el-checkbox>
| </div>
| <org-items v-model="select"/>
| <org-picker multiple ref="orgPicker" :selected="select" @ok="selected"/>
| </div>
| </template>
|
| <script>
| import OrgPicker from "@/components/common/OrgPicker";
| import OrgItems from "../OrgItems";
|
| export default {
| name: "CcNodeConfig.vue",
| components: {OrgPicker, OrgItems},
| props:{
| config:{
| type: Object,
| default: ()=>{
| return {}
| }
| }
| },
| computed:{
| select: {
| get(){
| return this.config.assignedUser || []
| },
| set(val){
| this.config.assignedUser = val
| }
| }
| },
| data() {
| return {}
| },
| methods: {
| selectOrg() {
| this.$refs.orgPicker.show()
| },
| selected(select) {
| console.log(select)
| this.select = Object.assign([], select)
| },
| removeOrgItem(index){
| this.select.splice(index, 1)
| }
| }
| }
| </script>
|
| <style lang="less" scoped>
| .option{
| color: #606266;
| margin-top: 20px;
| font-size: small;
| }
|
| .desc{
| font-size: small;
| color: #8c8c8c;
| }
| .org-item{
| margin: 5px;
| }
| </style>
|
|