personMsgDialog.vue
4.25 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!-- 详情弹框 -->
<template>
<div class="detail">
<el-dialog
title="个人信息"
:visible.sync="personDialogVisible"
:before-close="handleClose"
width="600px"
>
<el-form
label-width="120px"
:model="detail"
>
<el-form-item
label="用户名:"
prop="userName"
>
<el-input
readonly="readonly"
v-model="detail.userName"
></el-input>
</el-form-item>
<el-form-item
label="姓名:"
prop="personName"
>
<el-input
readonly="readonly"
v-model="detail.personName"
></el-input>
</el-form-item>
<el-form-item
label="联系方式:"
prop="phone"
>
<el-input
readonly="readonly"
v-model="detail.phone"
></el-input>
</el-form-item>
<el-form-item
label="所属公司:"
prop="company"
>
<el-input
readonly="readonly"
v-model="detail.company"
></el-input>
</el-form-item>
<el-form-item
label="部门:"
prop="department"
>
<el-input
readonly="readonly"
v-model="detail.department"
></el-input>
</el-form-item>
<el-form-item
label="职务:"
prop="duties"
>
<el-input
readonly="readonly"
v-model="detail.duties"
></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="personDialogVisible = false">确 定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
// import { ctMethods, request } from '@/api'
export default {
name: 'PersonDetailDialog',
components: {
},
data () {
return {
detail: {
userName: 'abc123',
personName: '张三',
phone: '18511111111',
company: '长春富通机电设备有限公司',
department: '售后部',
duties: '仓库管理'
}
}
},
props: {
personDialogVisible: {
type: Boolean,
default: false
}
// detail: {
// type: Object,
// default: function() {
// // return {}
// return {
// userName : 'abc123',
// personName : '张三',
// phone : '18511111111',
// company : '长春富通机电设备有限公司',
// department : '售后部',
// duties : '仓库管理',
// }
// }
// }
},
watch: {
// personDialogVisible(val) {
// if (val) {
// this.getPersonalType()
// if (this.detail.merchants && this.detail.merchants.length > 0) {
// this.tableData_sendMerchants.data = this.detail.merchants
// }
// }
// }
},
methods: {
// getPersonalType() {
// const params = {}
// params.method = ctMethods.GetPersonalType
// request
// .req(params)
// .then(res => {
// this.sendObjList = res.merchantDictList
// })
// .catch(err => {
// console.log(err)
// })
// },
handleClose () {
this.personDialogVisible = false
}
}
}
</script>
<style>
.detail .el-dialog__body {
padding: 0 20px;
}
.detail .el-select {
width: 100%;
}
.detail .content {
overflow-x:auto;
max-height: 400px;
}
.detail .el-checkbox-group {
display: flex;
overflow-x: auto;
}
.detail .download a {
color: #409eff;
text-decoration: underline;
}
.detail .el-checkbox__input.is-disabled + span.el-checkbox__label,
.detail .el-radio__input.is-disabled + span.el-radio__label {
color: #606266;
}
.detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner,
.detail .el-radio__input.is-disabled.is-checked .el-radio__inner {
border-color: #409eff;
background: #409eff;
}
.detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
border-color: #fff;
}
.detail .el-radio__input.is-disabled.is-checked .el-radio__inner::after {
background-color: #fff;
}
.detail .el-radio:focus:not(.is-focus):not(:active) .el-radio__inner {
box-shadow: 0 0;
}
</style>