大屏页面初始化
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
<el-table-column prop="userName" label="登录账户" />
|
||||
<el-table-column prop="uname" label="用户名称" />
|
||||
<el-table-column prop="sex" label="性别" sortable />
|
||||
<el-table-column prop="email" label="电子邮箱" />
|
||||
<el-table-column prop="email" label="电子邮箱" width="225" show-overflow-tooltip="true" />
|
||||
<el-table-column prop="phone" label="联系电话" />
|
||||
<el-table-column prop="ustatus" label="状态" min-width="100" align="center" sortable>
|
||||
<template #default="scope">
|
||||
@@ -90,6 +90,7 @@
|
||||
|
||||
<PDialog
|
||||
v-model="dialogVisible"
|
||||
:loading="saveLoading"
|
||||
:title="isEdit ? '编辑数据' : '新增数据'"
|
||||
@close="handleDialogClose"
|
||||
@reset="handleDialogReset"
|
||||
@@ -113,7 +114,7 @@ import PDialog from '@/components/Dialog/proDialog.vue'
|
||||
import VForm from './form.vue'
|
||||
|
||||
const formComponentRef = ref(null)
|
||||
|
||||
const saveLoading = ref(false)
|
||||
const loading = ref(false)
|
||||
const searchForm = reactive({
|
||||
uname: '',
|
||||
@@ -269,7 +270,7 @@ const handleSave = async () => {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
saveLoading.value = true
|
||||
try {
|
||||
const reqParams = {
|
||||
...formData.value,
|
||||
@@ -277,9 +278,10 @@ const handleSave = async () => {
|
||||
userId: currentRow.value?.userId
|
||||
}
|
||||
const res = await getHomeUserSave(reqParams);
|
||||
saveLoading.value = false;
|
||||
dialogVisible.value = false;
|
||||
ElMessage.success(res.msg);
|
||||
getDataList();
|
||||
ElMessage.success(res.msg)
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user