@@ -17,7 +17,7 @@
@@ -212,7 +212,8 @@
function showModal() {
openModal();
}
-
+ function handleHttpUpload(){
+ }
// 上传图片
function beforeUpload(file) {
const reader = new FileReader();
@@ -265,6 +266,10 @@
}
}
}
+ function handleClose(){
+ src.value =''
+ previewSource.value=''
+ }
return {
src,
@@ -273,10 +278,12 @@
previewSource,
showModal,
beforeUpload,
+ handleHttpUpload,
handleCropend,
handleReady,
handlerToolbar,
handleOk,
+ handleClose
};
},
});
diff --git a/src/views/system/user/edit.vue b/src/views/system/user/edit.vue
index c1b590a..40b697a 100644
--- a/src/views/system/user/edit.vue
+++ b/src/views/system/user/edit.vue
@@ -105,7 +105,7 @@
v-model:image-url="formData.avatar">
支持扩展名: jpg png jpeg;文件大小不超过200M
-->
-
+
@@ -193,6 +193,7 @@ const passwordConfirmValidator = (
const uploadSuccess =(data)=>{
formData.avatar = data.fileUrl
+ formRef.value?.validateField("avatar");
}
const dialogClose = () => {
emit("update:visible", false);
@@ -250,10 +251,6 @@ const getAllDict = async () => {
list = await getPositionAllList();
optionData.positionList = list ? list : [];
};
-function cropperCircledImg() {
- cropperCircled.value.openCropper();
- }
-
onMounted(() => {
getAllDict()
if (props.userId) {
From 5eba80536f3177c6ca2e0e80cabef60882999d08 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com>
Date: Tue, 3 Sep 2024 08:43:53 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=A3=81=E5=89=AA?=
=?UTF-8?q?=E3=80=81=E7=A7=9F=E6=88=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/tenant/index.vue | 6 +++---
src/views/system/user/index.vue | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue
index 89e4d40..c662fac 100644
--- a/src/views/system/tenant/index.vue
+++ b/src/views/system/tenant/index.vue
@@ -12,7 +12,7 @@
:columns="columns"
:request="loadDataTable"
:row-key="(row) => row.id"
- ref="basicTableRef"
+ ref="tableRef"
:actionColumn="actionColumn"
@selection-change="onSelectionChange"
scroll-x="1200"
@@ -61,7 +61,7 @@
import { columns } from './columns';
import { schemas } from './querySchemas';
const tenantId = ref(0);
- const basicTableRef = ref();
+ const tableRef = ref();
const editVisible = ref(false)
const selectionData = ref([])
const editDialog = defineAsyncComponent(() =>
@@ -146,7 +146,7 @@
reloadTable();
}
- function handleReset(values: Recordable) {
+ function handleReset() {
for (const key in formParams) {
formParams[key] ='';
}
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index c2ea89e..e8b0484 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -219,7 +219,7 @@
reloadTable();
}
- function handleReset(values: Recordable) {
+ function handleReset() {
for (const key in formParams) {
formParams[key] ='';
}