#
Junjie
昨天 b37e141c00a123cf362fae00c1e63175d41c4bbe
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>设置我的资料</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../static/vue/element/element.css">
    <link rel="stylesheet" href="../static/css/cool.css">
    <style>
        :root {
            --card-bg: rgba(255, 255, 255, 0.96);
            --card-border: rgba(216, 226, 238, 0.96);
            --text-main: #243447;
        }
 
        [v-cloak] {
            display: none;
        }
 
        html,
        body {
            margin: 0;
            min-height: 100%;
            color: var(--text-main);
            font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
            background: #f5f7fb;
        }
 
        .page-shell {
            padding: 14px 16px;
            box-sizing: border-box;
        }
 
        .card-shell {
            max-width: 860px;
            margin: 0 auto;
            border-radius: 16px;
            border: 1px solid var(--card-border);
            background: var(--card-bg);
            box-shadow: 0 8px 20px rgba(44, 67, 96, 0.05);
            overflow: hidden;
        }
 
        .card-head {
            padding: 16px 20px 12px;
            border-bottom: 1px solid rgba(222, 230, 239, 0.92);
            background: #f8fbff;
        }
 
        .card-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main);
        }
 
        .card-body {
            padding: 18px 20px 16px;
        }
 
        .form-shell {
            max-width: 740px;
            margin: 0 auto;
        }
 
        .profile-form .el-form-item {
            margin-bottom: 14px;
        }
 
        .profile-form .el-form-item__label {
            font-weight: 600;
            color: #5c6f82;
        }
 
        .profile-form .el-input__inner,
        .profile-form .el-button {
            height: 34px;
            line-height: 34px;
        }
 
        .profile-form .el-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 16px;
            vertical-align: middle;
        }
 
        .profile-form .el-button [class^="el-icon-"],
        .profile-form .el-button [class*=" el-icon-"] {
            line-height: 1;
            margin-right: 6px;
        }
 
        .password-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
 
        .password-mask {
            width: 100%;
        }
 
        .password-row .el-button {
            min-width: 118px;
            flex: 0 0 118px;
        }
 
        .footer-bar {
            display: flex;
            justify-content: flex-end;
            padding-top: 4px;
        }
 
        .footer-bar .el-button {
            min-width: 118px;
        }
 
        .password-dialog .el-dialog {
            border-radius: 18px;
            overflow: hidden;
        }
 
        .password-dialog .el-dialog__header {
            padding: 18px 20px 12px;
            border-bottom: 1px solid rgba(222, 230, 239, 0.92);
            background: #f8fbff;
        }
 
        .password-dialog .el-dialog__title {
            font-weight: 700;
            color: var(--text-main);
        }
 
        .password-dialog .el-dialog__body {
            padding: 18px 20px 12px;
        }
 
        .password-form .el-form-item {
            margin-bottom: 16px;
        }
 
        .password-form .el-form-item__label {
            font-weight: 600;
            color: #5c6f82;
            white-space: nowrap;
        }
 
        .password-form .el-input__inner,
        .password-form .el-button {
            height: 34px;
            line-height: 34px;
        }
 
        .password-form .el-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 120px;
            padding: 0 18px;
        }
 
        .password-footer {
            display: flex;
            justify-content: center;
            gap: 12px;
            padding-top: 4px;
        }
 
        @media (max-width: 768px) {
            .page-shell {
                padding: 10px;
            }
 
            .password-row {
                flex-direction: column;
                align-items: stretch;
            }
 
            .form-shell {
                max-width: none;
            }
        }
    </style>
</head>
<body>
<div id="app" class="page-shell" v-cloak>
    <section class="card-shell">
        <div class="card-head">
            <div class="card-title">设置我的资料</div>
        </div>
        <div class="card-body">
            <div class="form-shell">
                <input id="id" type="hidden" v-model="form.id">
                <input id="password" type="hidden" v-model="form.password">
                <el-form
                    ref="profileForm"
                    class="profile-form"
                    :model="form"
                    :rules="rules"
                    label-width="78px"
                    size="small"
                    @submit.native.prevent>
                    <el-row :gutter="16">
                        <el-col :xs="24" :sm="12">
                            <el-form-item label="角色">
                                <el-input id="roleName" v-model="form.roleName" disabled></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :xs="24" :sm="12">
                            <el-form-item label="注册时间">
                                <el-input v-model="form.createTime$" disabled></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :xs="24" :sm="12">
                            <el-form-item label="名称" prop="username">
                                <el-input id="username" v-model.trim="form.username" maxlength="50" clearable placeholder="请输入"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :xs="24" :sm="12">
                            <el-form-item label="账号" prop="mobile">
                                <el-input id="mobile" v-model.trim="form.mobile" maxlength="50" clearable placeholder="请输入"></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :xs="24">
                            <el-form-item label="密码">
                                <div class="password-row">
                                    <el-input class="password-mask" value="已设置密码" disabled></el-input>
                                    <el-button type="primary" plain icon="el-icon-lock" @click="openPasswordDialog">修改密码</el-button>
                                </div>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    <div class="footer-bar">
                        <el-button type="primary" :loading="saving" @click="handleSave">确认修改</el-button>
                    </div>
                </el-form>
            </div>
        </div>
    </section>
 
    <el-dialog
        class="password-dialog"
        title="修改密码"
        :visible.sync="passwordDialogVisible"
        width="420px"
        :close-on-click-modal="false"
        append-to-body>
        <el-form
            ref="passwordForm"
            class="password-form"
            :model="passwordForm"
            :rules="passwordRules"
            label-width="112px"
            size="small"
            @submit.native.prevent>
            <el-form-item label="当前密码" prop="oldPassword">
                <el-input v-model="passwordForm.oldPassword" type="password" show-password autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="新密码" prop="password">
                <el-input v-model="passwordForm.password" type="password" show-password autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="确认新密码" prop="rePassword">
                <el-input v-model="passwordForm.rePassword" type="password" show-password autocomplete="off"></el-input>
            </el-form-item>
            <div class="password-footer">
                <el-button @click="closePasswordDialog">关闭</el-button>
                <el-button type="primary" :loading="passwordSaving" @click="handlePasswordSave">保存</el-button>
            </div>
        </el-form>
    </el-dialog>
</div>
</body>
<script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../static/js/tools/md5.js"></script>
<script type="text/javascript" src="../static/js/common.js?v=20260309_i18n_fix1"></script>
<script type="text/javascript" src="../static/vue/js/vue.min.js"></script>
<script type="text/javascript" src="../static/vue/element/element.js"></script>
<script type="text/javascript" src="../static/js/detail/detail.js?v=20260310_detail_vue3"></script>
</html>