-
+
@@ -58,7 +58,7 @@
-
+
@@ -85,6 +85,13 @@
border: none;
}
+
+.xuavatar:deep(.x-upload__img-actions) span{
+ height: 20px;
+ display: flex;
+ width: 100%;
+}
+
.mr15 {
margin-right: 15px !important;
}
@@ -165,7 +172,7 @@ export default {
activeName: '',
avatarupload: '',
updateKey: '',
- page: "xtable",
+ page: "",
selectpage: "0-0"
}
},
@@ -202,15 +209,22 @@ export default {
});
},
onRemove() {
- this.$http.post('avatar/admin/delete', { token: this.token }).then((res) => {
- if (res.code == 200) {
- this.userData.avatar = '';
- this.$refs.uploader.clearFiles();
- this.$message.success(res.message || "操作成功")
- return false;
- }
- this.$alert(res.message, "提示", { type: 'error' });
- });
+
+ this.$confirm(`确定${this.user.nickname || this.user.username}的头像吗?`, '提示', {
+ type: 'warning'
+ }).then(() => {
+ this.$http.post('avatar/admin/delete', { token: this.token }).then((res) => {
+ if (res.code == 200) {
+ this.userData.avatar = '';
+ this.$refs.uploader.clearFiles();
+ this.$message.success(res.message || "操作成功")
+ return false;
+ }
+ this.$alert(res.message, "提示", { type: 'error' });
+ });
+ }).catch(() => {
+
+ })
return false;
},
openPage(item) {