st-comp 0.0.203 → 0.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +5 -5
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +181 -172
- package/es/User.cjs +1 -1
- package/es/User.js +420 -417
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +39 -39
- package/lib/{index-233becad.js → index-ca5075d2.js} +596 -584
- package/lib/{python-5d251ebd.js → python-d88672d8.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/FactorWarning/index.vue +14 -3
- package/packages/User/components/EditInfoDialog/Mobile.vue +46 -22
- package/packages/User/components/EditInfoDialog/index.vue +32 -7
- package/packages/User/components/EditPasswordDialog.vue +97 -69
- package/packages/User/components/SetPasswordDialog.vue +87 -59
- package/packages/User/index.vue +5 -2
- package/src/pages/FactorWarning/index.vue +73 -84
- package/src/pages/User/index.vue +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { nextTick, ref, watch } from "vue";
|
|
3
2
|
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
|
4
3
|
import { InfoFilled } from "@element-plus/icons-vue";
|
|
4
|
+
import { ref, watch } from "vue";
|
|
5
5
|
import { defaultShowConfig } from "./tools";
|
|
6
6
|
import { debounce } from "st-func";
|
|
7
7
|
|
|
@@ -82,9 +82,20 @@ const handleThreeAdd = async (factorName) => {
|
|
|
82
82
|
});
|
|
83
83
|
const fsParams = {
|
|
84
84
|
factorSelectedList: ruleForm.value.factorSelectedList.map((factorName) => {
|
|
85
|
+
let totalCount = 3;
|
|
86
|
+
// 判断表格里面有没有同因子的数据, 如果有的话需要确保增加以后的有效次数 <= 12
|
|
87
|
+
const repeatData = props.tableData.find(({ factorExtendName }) => factorExtendName === factorName);
|
|
88
|
+
if (repeatData) {
|
|
89
|
+
const diff = repeatData.totalCount - repeatData.currentCount;
|
|
90
|
+
// 如果: 已触发次数 === 触发次数上限, 直接全额添加, 此时后端会另起一行数据的
|
|
91
|
+
if (diff === 0) totalCount = 3;
|
|
92
|
+
// 如果: 已触发次数 !== 触发次数上限 确保添加后的diff要小于等于12, 出于兼容老数据1/20类似的情况考虑, 加个容错
|
|
93
|
+
else totalCount = Math.min(3, 12 - diff >= 0 ? 12 - diff : 0);
|
|
94
|
+
}
|
|
85
95
|
return {
|
|
86
96
|
factorName,
|
|
87
97
|
...ruleForm.value,
|
|
98
|
+
totalCount,
|
|
88
99
|
};
|
|
89
100
|
}),
|
|
90
101
|
};
|
|
@@ -111,9 +122,9 @@ const handleFastControls = async (item) => {
|
|
|
111
122
|
const repeatData = props.tableData.find(({ factorExtendName }) => factorExtendName === factorName);
|
|
112
123
|
if (repeatData) {
|
|
113
124
|
const diff = repeatData.totalCount - repeatData.currentCount;
|
|
114
|
-
// 如果: 已触发次数 === 触发次数上限,
|
|
125
|
+
// 如果: 已触发次数 === 触发次数上限, 直接全额添加, 此时后端会另起一行数据的
|
|
115
126
|
if (diff === 0) totalCount = data.totalCount;
|
|
116
|
-
// 确保添加后的diff要小于等于10, 出于兼容老数据1/20类似的情况考虑, 加个容错
|
|
127
|
+
// 如果: 已触发次数 !== 触发次数上限 确保添加后的diff要小于等于10, 出于兼容老数据1/20类似的情况考虑, 加个容错
|
|
117
128
|
else totalCount = Math.min(data.totalCount, 10 - diff >= 0 ? 10 - diff : 0);
|
|
118
129
|
}
|
|
119
130
|
return {
|
|
@@ -89,27 +89,23 @@ const handleSubmit = () => {
|
|
|
89
89
|
|
|
90
90
|
<template>
|
|
91
91
|
<div class="mobile">
|
|
92
|
-
<el-text
|
|
93
|
-
v-if="userData.mobile"
|
|
94
|
-
type="info"
|
|
95
|
-
>
|
|
92
|
+
<el-text v-if="userData.mobile">
|
|
96
93
|
{{ userData.mobile }}
|
|
97
94
|
</el-text>
|
|
98
|
-
<el-
|
|
95
|
+
<el-button
|
|
99
96
|
class="btn"
|
|
100
|
-
size="small"
|
|
101
|
-
type="primary"
|
|
102
97
|
@click="handleOpen"
|
|
103
98
|
>
|
|
104
99
|
{{ userData.mobile ? "更换手机号" : "立即绑定" }}
|
|
105
|
-
</el-
|
|
100
|
+
</el-button>
|
|
106
101
|
</div>
|
|
107
102
|
<!-- 手机号绑定窗口 -->
|
|
108
103
|
<el-dialog
|
|
109
104
|
modal-class="mobile-dialog"
|
|
110
105
|
v-model="visible"
|
|
111
|
-
width="
|
|
106
|
+
width="400"
|
|
112
107
|
title="手机号绑定"
|
|
108
|
+
align-center
|
|
113
109
|
append-to-body
|
|
114
110
|
destroy-on-close
|
|
115
111
|
>
|
|
@@ -117,15 +113,16 @@ const handleSubmit = () => {
|
|
|
117
113
|
ref="ruleFormRef"
|
|
118
114
|
:rules="rules"
|
|
119
115
|
:model="ruleForm"
|
|
116
|
+
hide-required-asterisk
|
|
120
117
|
>
|
|
121
118
|
<el-form-item
|
|
122
|
-
label="
|
|
119
|
+
label="新手机:"
|
|
123
120
|
prop="mobile"
|
|
124
121
|
>
|
|
125
122
|
<el-input v-model="ruleForm.mobile" />
|
|
126
123
|
</el-form-item>
|
|
127
124
|
<el-form-item
|
|
128
|
-
label="
|
|
125
|
+
label="验证码:"
|
|
129
126
|
prop="verifyCode"
|
|
130
127
|
>
|
|
131
128
|
<el-input
|
|
@@ -164,26 +161,53 @@ const handleSubmit = () => {
|
|
|
164
161
|
</el-dialog>
|
|
165
162
|
</template>
|
|
166
163
|
|
|
164
|
+
<style lang="scss">
|
|
165
|
+
.mobile-dialog {
|
|
166
|
+
.el-dialog {
|
|
167
|
+
padding: 0;
|
|
168
|
+
.el-dialog__header {
|
|
169
|
+
padding: 10px;
|
|
170
|
+
}
|
|
171
|
+
.el-dialog__body {
|
|
172
|
+
border: 1px solid rgba(220, 223, 230, 0.5);
|
|
173
|
+
backdrop-filter: opacity(0.2);
|
|
174
|
+
border-left: none;
|
|
175
|
+
border-right: none;
|
|
176
|
+
padding: 18px 20px;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
}
|
|
179
|
+
.el-dialog__footer {
|
|
180
|
+
padding: 10px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
</style>
|
|
167
185
|
<style lang="scss" scoped>
|
|
168
186
|
.mobile {
|
|
169
187
|
display: flex;
|
|
170
|
-
|
|
188
|
+
align-items: center;
|
|
189
|
+
gap: 10px;
|
|
171
190
|
.btn {
|
|
172
191
|
cursor: pointer;
|
|
173
192
|
}
|
|
174
193
|
}
|
|
175
194
|
.mobile-dialog {
|
|
176
|
-
.
|
|
177
|
-
.
|
|
178
|
-
|
|
179
|
-
line-height: 16px;
|
|
180
|
-
border-left: var(--el-border);
|
|
181
|
-
padding-left: 10px;
|
|
182
|
-
cursor: pointer;
|
|
195
|
+
.el-form {
|
|
196
|
+
.el-input {
|
|
197
|
+
width: 260px;
|
|
183
198
|
}
|
|
184
|
-
.
|
|
185
|
-
|
|
186
|
-
|
|
199
|
+
.sms-input {
|
|
200
|
+
.get-button {
|
|
201
|
+
color: var(--el-color-primary);
|
|
202
|
+
line-height: 16px;
|
|
203
|
+
border-left: var(--el-border);
|
|
204
|
+
padding-left: 10px;
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
}
|
|
207
|
+
.disabled {
|
|
208
|
+
color: var(--el-color-info);
|
|
209
|
+
cursor: not-allowed;
|
|
210
|
+
}
|
|
187
211
|
}
|
|
188
212
|
}
|
|
189
213
|
}
|
|
@@ -83,33 +83,35 @@ defineExpose({
|
|
|
83
83
|
modal-class="edit-info"
|
|
84
84
|
v-model="visible"
|
|
85
85
|
title="设置资料"
|
|
86
|
-
width="
|
|
86
|
+
width="400"
|
|
87
|
+
align-center
|
|
87
88
|
destroy-on-close
|
|
88
89
|
:z-index="200"
|
|
89
90
|
>
|
|
90
91
|
<el-form
|
|
91
92
|
ref="ruleFormRef"
|
|
93
|
+
label-width="auto"
|
|
92
94
|
:rules="rules"
|
|
93
95
|
:model="ruleForm"
|
|
94
96
|
>
|
|
95
97
|
<!-- 用户名 -->
|
|
96
|
-
<el-form-item label="
|
|
97
|
-
<el-text
|
|
98
|
+
<el-form-item label="用户名:">
|
|
99
|
+
<el-text>{{ userData.username }}</el-text>
|
|
98
100
|
</el-form-item>
|
|
99
101
|
<!-- 手机号 -->
|
|
100
|
-
<el-form-item label="
|
|
102
|
+
<el-form-item label="手机号:">
|
|
101
103
|
<Mobile />
|
|
102
104
|
</el-form-item>
|
|
103
105
|
<!-- 昵称 -->
|
|
104
106
|
<el-form-item
|
|
105
|
-
label="
|
|
107
|
+
label="昵称:"
|
|
106
108
|
prop="nickName"
|
|
107
109
|
>
|
|
108
110
|
<el-input v-model="ruleForm.nickName" />
|
|
109
111
|
</el-form-item>
|
|
110
112
|
<!-- 邮箱 -->
|
|
111
113
|
<el-form-item
|
|
112
|
-
label="
|
|
114
|
+
label="邮箱:"
|
|
113
115
|
prop="email"
|
|
114
116
|
>
|
|
115
117
|
<el-input v-model="ruleForm.email" />
|
|
@@ -127,10 +129,33 @@ defineExpose({
|
|
|
127
129
|
</el-dialog>
|
|
128
130
|
</template>
|
|
129
131
|
|
|
132
|
+
<style lang="scss">
|
|
133
|
+
.edit-info {
|
|
134
|
+
.el-dialog {
|
|
135
|
+
padding: 0;
|
|
136
|
+
.el-dialog__header {
|
|
137
|
+
padding: 10px;
|
|
138
|
+
}
|
|
139
|
+
.el-dialog__body {
|
|
140
|
+
border: 1px solid rgba(220, 223, 230, 0.5);
|
|
141
|
+
backdrop-filter: opacity(0.2);
|
|
142
|
+
border-left: none;
|
|
143
|
+
border-right: none;
|
|
144
|
+
padding: 18px 20px;
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
}
|
|
147
|
+
.el-dialog__footer {
|
|
148
|
+
padding: 10px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
</style>
|
|
130
153
|
<style lang="scss" scoped>
|
|
131
154
|
.edit-info {
|
|
132
155
|
.el-form {
|
|
133
|
-
|
|
156
|
+
.el-input {
|
|
157
|
+
width: 260px;
|
|
158
|
+
}
|
|
134
159
|
}
|
|
135
160
|
}
|
|
136
161
|
</style>
|
|
@@ -66,75 +66,103 @@ defineExpose({
|
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<template>
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
<el-dialog
|
|
70
|
+
modal-class="edit-password"
|
|
71
|
+
v-model="visible"
|
|
72
|
+
title="修改密码"
|
|
73
|
+
width="400"
|
|
74
|
+
align-center
|
|
75
|
+
destroy-on-close
|
|
76
|
+
:z-index="200"
|
|
77
|
+
>
|
|
78
|
+
<el-form
|
|
79
|
+
ref="ruleFormRef"
|
|
80
|
+
:rules="rules"
|
|
81
|
+
:model="ruleForm"
|
|
82
|
+
label-width="auto"
|
|
83
|
+
hide-required-asterisk
|
|
84
|
+
:validate-on-rule-change="false"
|
|
85
|
+
@submit.native.prevent="handleSubmit(ruleFormRef)"
|
|
86
|
+
@keyup.enter.native="handleSubmit(ruleFormRef)"
|
|
76
87
|
>
|
|
77
|
-
<el-form
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
:model="ruleForm"
|
|
81
|
-
label-width="auto"
|
|
82
|
-
:validate-on-rule-change="false"
|
|
83
|
-
@submit.native.prevent="handleSubmit(ruleFormRef)"
|
|
84
|
-
@keyup.enter.native="handleSubmit(ruleFormRef)"
|
|
88
|
+
<el-form-item
|
|
89
|
+
label="原密码:"
|
|
90
|
+
prop="password"
|
|
85
91
|
>
|
|
86
|
-
<el-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<el-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<el-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
确认
|
|
136
|
-
</el-button>
|
|
137
|
-
</template>
|
|
138
|
-
</el-dialog>
|
|
139
|
-
</div>
|
|
92
|
+
<el-input
|
|
93
|
+
v-model="ruleForm.password"
|
|
94
|
+
type="password"
|
|
95
|
+
:show-password="true"
|
|
96
|
+
/>
|
|
97
|
+
</el-form-item>
|
|
98
|
+
<el-form-item
|
|
99
|
+
label="新密码:"
|
|
100
|
+
prop="newPassword"
|
|
101
|
+
>
|
|
102
|
+
<el-input
|
|
103
|
+
v-model="ruleForm.newPassword"
|
|
104
|
+
type="password"
|
|
105
|
+
:show-password="true"
|
|
106
|
+
@focus="
|
|
107
|
+
() => {
|
|
108
|
+
ruleFormRef.clearValidate(['newPassword']);
|
|
109
|
+
isFocusNewPassword = true;
|
|
110
|
+
}
|
|
111
|
+
"
|
|
112
|
+
@blur="isFocusNewPassword = false"
|
|
113
|
+
/>
|
|
114
|
+
<PasswordPrompt
|
|
115
|
+
ref="PasswordPromptRef"
|
|
116
|
+
:value="ruleForm.newPassword"
|
|
117
|
+
:isFocus="isFocusNewPassword"
|
|
118
|
+
/>
|
|
119
|
+
</el-form-item>
|
|
120
|
+
<el-form-item
|
|
121
|
+
label="确认密码:"
|
|
122
|
+
prop="newPassword2"
|
|
123
|
+
>
|
|
124
|
+
<el-input
|
|
125
|
+
v-model="ruleForm.newPassword2"
|
|
126
|
+
type="password"
|
|
127
|
+
:show-password="true"
|
|
128
|
+
/>
|
|
129
|
+
</el-form-item>
|
|
130
|
+
</el-form>
|
|
131
|
+
<template #footer>
|
|
132
|
+
<el-button @click="visible = false"> 取消 </el-button>
|
|
133
|
+
<el-button
|
|
134
|
+
type="primary"
|
|
135
|
+
@click="handleSubmit(ruleFormRef)"
|
|
136
|
+
>
|
|
137
|
+
确认
|
|
138
|
+
</el-button>
|
|
139
|
+
</template>
|
|
140
|
+
</el-dialog>
|
|
140
141
|
</template>
|
|
142
|
+
|
|
143
|
+
<style lang="scss">
|
|
144
|
+
.edit-password {
|
|
145
|
+
.el-dialog {
|
|
146
|
+
padding: 0;
|
|
147
|
+
.el-dialog__header {
|
|
148
|
+
padding: 10px;
|
|
149
|
+
}
|
|
150
|
+
.el-dialog__body {
|
|
151
|
+
border: 1px solid rgba(220, 223, 230, 0.5);
|
|
152
|
+
backdrop-filter: opacity(0.2);
|
|
153
|
+
border-left: none;
|
|
154
|
+
border-right: none;
|
|
155
|
+
padding: 18px 20px;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
.el-form {
|
|
158
|
+
.el-input {
|
|
159
|
+
width: 260px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
.el-dialog__footer {
|
|
164
|
+
padding: 10px;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
</style>
|
|
@@ -68,65 +68,93 @@ defineExpose({
|
|
|
68
68
|
</script>
|
|
69
69
|
|
|
70
70
|
<template>
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
<el-dialog
|
|
72
|
+
modal-class="set-password"
|
|
73
|
+
v-model="visible"
|
|
74
|
+
title="设置密码"
|
|
75
|
+
width="400"
|
|
76
|
+
align-center
|
|
77
|
+
destroy-on-close
|
|
78
|
+
:z-index="200"
|
|
79
|
+
>
|
|
80
|
+
<el-form
|
|
81
|
+
ref="ruleFormRef"
|
|
82
|
+
:rules="rules"
|
|
83
|
+
:model="ruleForm"
|
|
84
|
+
label-width="auto"
|
|
85
|
+
hide-required-asterisk
|
|
86
|
+
:validate-on-rule-change="false"
|
|
87
|
+
@submit.native.prevent="handleSubmit(ruleFormRef)"
|
|
88
|
+
@keyup.enter.native="handleSubmit(ruleFormRef)"
|
|
78
89
|
>
|
|
79
|
-
<el-form
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
:model="ruleForm"
|
|
83
|
-
label-width="auto"
|
|
84
|
-
:validate-on-rule-change="false"
|
|
85
|
-
@submit.native.prevent="handleSubmit(ruleFormRef)"
|
|
86
|
-
@keyup.enter.native="handleSubmit(ruleFormRef)"
|
|
90
|
+
<el-form-item
|
|
91
|
+
label="密码:"
|
|
92
|
+
prop="newPassword"
|
|
87
93
|
>
|
|
88
|
-
<el-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<el-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
确认
|
|
128
|
-
</el-button>
|
|
129
|
-
</template>
|
|
130
|
-
</el-dialog>
|
|
131
|
-
</div>
|
|
94
|
+
<el-input
|
|
95
|
+
v-model="ruleForm.newPassword"
|
|
96
|
+
type="password"
|
|
97
|
+
:show-password="true"
|
|
98
|
+
@focus="
|
|
99
|
+
() => {
|
|
100
|
+
ruleFormRef.clearValidate(['newPassword']);
|
|
101
|
+
isFocusNewPassword = true;
|
|
102
|
+
}
|
|
103
|
+
"
|
|
104
|
+
@blur="isFocusNewPassword = false"
|
|
105
|
+
/>
|
|
106
|
+
<PasswordPrompt
|
|
107
|
+
ref="PasswordPromptRef"
|
|
108
|
+
:value="ruleForm.newPassword"
|
|
109
|
+
:isFocus="isFocusNewPassword"
|
|
110
|
+
/>
|
|
111
|
+
</el-form-item>
|
|
112
|
+
<el-form-item
|
|
113
|
+
label="确认密码:"
|
|
114
|
+
prop="newPassword2"
|
|
115
|
+
>
|
|
116
|
+
<el-input
|
|
117
|
+
v-model="ruleForm.newPassword2"
|
|
118
|
+
type="password"
|
|
119
|
+
:show-password="true"
|
|
120
|
+
/>
|
|
121
|
+
</el-form-item>
|
|
122
|
+
</el-form>
|
|
123
|
+
<template #footer>
|
|
124
|
+
<el-button @click="visible = false"> 取消 </el-button>
|
|
125
|
+
<el-button
|
|
126
|
+
type="primary"
|
|
127
|
+
@click="handleSubmit(ruleFormRef)"
|
|
128
|
+
>
|
|
129
|
+
确认
|
|
130
|
+
</el-button>
|
|
131
|
+
</template>
|
|
132
|
+
</el-dialog>
|
|
132
133
|
</template>
|
|
134
|
+
|
|
135
|
+
<style lang="scss">
|
|
136
|
+
.set-password {
|
|
137
|
+
.el-dialog {
|
|
138
|
+
padding: 0;
|
|
139
|
+
.el-dialog__header {
|
|
140
|
+
padding: 10px;
|
|
141
|
+
}
|
|
142
|
+
.el-dialog__body {
|
|
143
|
+
border: 1px solid rgba(220, 223, 230, 0.5);
|
|
144
|
+
backdrop-filter: opacity(0.2);
|
|
145
|
+
border-left: none;
|
|
146
|
+
border-right: none;
|
|
147
|
+
padding: 18px 20px;
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
.el-form {
|
|
150
|
+
.el-input {
|
|
151
|
+
width: 260px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
.el-dialog__footer {
|
|
156
|
+
padding: 10px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
</style>
|
package/packages/User/index.vue
CHANGED
|
@@ -46,22 +46,25 @@ provide("userData", userData);
|
|
|
46
46
|
</div>
|
|
47
47
|
<template #dropdown>
|
|
48
48
|
<el-dropdown-menu>
|
|
49
|
-
<!--
|
|
49
|
+
<!-- 插槽 -->
|
|
50
50
|
<slot name="dropdown-items"></slot>
|
|
51
|
-
<!--
|
|
51
|
+
<!-- 设置资料 -->
|
|
52
52
|
<el-dropdown-item @click="EditInfoDialogRef?.open()">设置资料</el-dropdown-item>
|
|
53
|
+
<!-- 设置密码 -->
|
|
53
54
|
<el-dropdown-item
|
|
54
55
|
v-if="userData.canSet"
|
|
55
56
|
@click="SetPasswordDialogRef?.open()"
|
|
56
57
|
>
|
|
57
58
|
设置密码
|
|
58
59
|
</el-dropdown-item>
|
|
60
|
+
<!-- 修改密码 -->
|
|
59
61
|
<el-dropdown-item
|
|
60
62
|
v-else
|
|
61
63
|
@click="EditPasswordDialogRef?.open()"
|
|
62
64
|
>
|
|
63
65
|
修改密码
|
|
64
66
|
</el-dropdown-item>
|
|
67
|
+
<!-- 退出登录 -->
|
|
65
68
|
<el-dropdown-item @click="handleLoginOut">退出登录</el-dropdown-item>
|
|
66
69
|
</el-dropdown-menu>
|
|
67
70
|
</template>
|