🎨 反馈问题修改

This commit is contained in:
gaofy 2023-12-27 14:06:02 +08:00
parent 5dd57e8461
commit 2cefe72878
17 changed files with 73 additions and 40 deletions

View File

@ -210,7 +210,8 @@ body {
height: calc(100% - 170px); height: calc(100% - 170px);
margin-top: 10px; margin-top: 10px;
.el-table { .el-table {
color: $main-color; color: $text1-color;
font-size: 14px;
.el-table__header { .el-table__header {
thead { thead {
color: $main-color; color: $main-color;
@ -226,7 +227,10 @@ body {
.el-button.is-round { .el-button.is-round {
height: 28px; height: 28px;
padding: 5px 10px; padding: 5px 10px;
font-size: 15px; font-size: 14px;
}
.el-button.is-link {
font-size: 14px;
} }
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<el-dialog v-model="dialogVisible" :title="title" width="50%"> <el-dialog v-model="dialogVisible" :title="title" width="50%">
<el-upload v-model:file-list="fileList" drag accept=".xls, .xlsx" :auto-upload="false" :limit="1"> <el-upload v-model:file-list="fileList" drag accept=".xls, .xlsx" :auto-upload="false" :limit="1">
<div class="el-upload__text" style="padding: 80px 10px;font-size: 20px;"> <div class="el-upload__text" style="padding: 40px 10px;font-size: 20px;">
将文件拖到此处 <em>点击上传</em> 将文件拖到此处 <em>点击上传</em>
</div> </div>
<template #tip> <template #tip>

View File

@ -32,13 +32,13 @@
</template> </template>
<template v-else> <template v-else>
<el-form-item label="密码" prop="password" label-width="100"> <el-form-item label="密码" prop="password" label-width="100">
<el-input v-model="formData.password" type="password" placeholder="请输入密码"></el-input> <el-input v-model="formData.password" type="password" show-password placeholder="请输入密码"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="新密码" prop="newPassword" label-width="100"> <el-form-item label="新密码" prop="newPassword" label-width="100">
<el-input v-model="formData.newPassword" type="password" placeholder="请输入新密码"></el-input> <el-input v-model="formData.newPassword" type="password" show-password placeholder="请输入新密码"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="确认密码" prop="confirmPassword" label-width="100"> <el-form-item label="确认密码" prop="confirmPassword" label-width="100">
<el-input v-model="formData.confirmPassword" type="password" placeholder="请输入新密码"></el-input> <el-input v-model="formData.confirmPassword" type="password" show-password placeholder="请输入新密码"></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-form> </el-form>
@ -52,9 +52,12 @@
import { onMounted, reactive, ref, toRefs, watch } from 'vue' import { onMounted, reactive, ref, toRefs, watch } from 'vue'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import type { UploadProps } from 'element-plus' import type { UploadProps } from 'element-plus'
import { useLoginStore } from '@/stores/user-info-store'
const emit = defineEmits(['close']) const emit = defineEmits(['close'])
const userInfo = useLoginStore().getlogin()
const formRef = ref() const formRef = ref()
const validatePassword = (rule: any, value: any, callback: any) => { const validatePassword = (rule: any, value: any, callback: any) => {
@ -90,9 +93,9 @@ const rules = reactive({
const tabActive = ref(0) const tabActive = ref(0)
const formData = ref({ const formData = ref({
avatar: '', avatar: '',
account: '', account: userInfo.account,
phone: '', phone: '',
name: '', name: userInfo.name,
mailbox: '', mailbox: '',
password: '', password: '',
newPassword: '', newPassword: '',
@ -103,7 +106,6 @@ const close = () => {
emit('close') emit('close')
} }
const handleAvatarSuccess: UploadProps['onSuccess'] = ( const handleAvatarSuccess: UploadProps['onSuccess'] = (
response,
uploadFile uploadFile
) => { ) => {
formData.value.avatar = URL.createObjectURL(uploadFile.raw!) formData.value.avatar = URL.createObjectURL(uploadFile.raw!)
@ -122,6 +124,8 @@ const submitForm = async () => {
await formRef.value.validate((valid: any, fields: any) => { await formRef.value.validate((valid: any, fields: any) => {
if (valid) { if (valid) {
console.log('submit!') console.log('submit!')
//
useLoginStore().setlogin('name', formData.value.name)
ElMessage.success('更新成功') ElMessage.success('更新成功')
close() close()
} else { } else {

View File

@ -46,7 +46,7 @@
<div class="system-logs move_2"> <div class="system-logs move_2">
<div class="title"> <div class="title">
<span>系统日志</span> <span>系统日志</span>
<span class="f14" style="cursor: pointer;" @click="router.push('./logs-manage')">更多</span> <span class="f14" style="cursor: pointer;" @click="router.push('./logs-manage/logs-manage')">更多</span>
</div> </div>
<div class="content move_2"> <div class="content move_2">
<SystemLogs /> <SystemLogs />

View File

@ -54,8 +54,8 @@ function initChart(chartData: any) {
}, },
series: [{ series: [{
type: 'pie', type: 'pie',
center: ['68%', '50%'], center: ['50%', '50%'],
radius: ['0%', '70%'], radius: ['0%', '60%'],
clockwise: true, clockwise: true,
label: { label: {
show: true, show: true,
@ -147,8 +147,9 @@ const getData = (date: any) => {
} }
.chart-dom { .chart-dom {
width: 100%; width: 70%;
height: 100%; height: 100%;
margin-left: 30%;
} }
.total-box { .total-box {

View File

@ -53,7 +53,7 @@ function initChart(chartData: any) {
} }
}, },
legend: { legend: {
right: 50, right: 0,
data: chartData.dataName data: chartData.dataName
}, },
grid: { grid: {

View File

@ -26,7 +26,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="password"> <el-form-item prop="password">
<el-input v-model="loginParams.password" type="password" placeholder="请输入密码"> <el-input v-model="loginParams.password" type="password" show-password placeholder="请输入密码">
<template #prepend> <template #prepend>
<el-icon> <el-icon>
<Lock /> <Lock />
@ -79,7 +79,7 @@
<el-input v-model="registerParams.account" placeholder="请输入用户名"></el-input> <el-input v-model="registerParams.account" placeholder="请输入用户名"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="密码" prop="password"> <el-form-item label="密码" prop="password">
<el-input v-model="registerParams.password" type="password" placeholder="请输入密码"></el-input> <el-input v-model="registerParams.password" type="password" show-password placeholder="请输入密码"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="姓名" prop="name"> <el-form-item label="姓名" prop="name">
<el-input v-model="registerParams.name" placeholder="请输入姓名"></el-input> <el-input v-model="registerParams.name" placeholder="请输入姓名"></el-input>
@ -276,7 +276,7 @@ const toHome = () => {
} }
useLoginStore().setlogin('isLogin', true) useLoginStore().setlogin('isLogin', true)
useLoginStore().setlogin('account', loginParams.value.account) useLoginStore().setlogin('account', loginParams.value.account)
useLoginStore().setlogin('name', loginParams.value.name) useLoginStore().setlogin('name', loginParams.value.name || '暂未设置姓名')
useLoginStore().setlogin('hospital', currentHospital.value) useLoginStore().setlogin('hospital', currentHospital.value)
useLoginStore().setlogin('permissions', getPermissions()) useLoginStore().setlogin('permissions', getPermissions())
router.push('/home') router.push('/home')

View File

@ -35,7 +35,7 @@
<template #default="scope"> <template #default="scope">
<span @click.stop> <span @click.stop>
<el-button link icon="EditPen" @click="editData(scope.row)">修改</el-button> <el-button link icon="EditPen" @click="editData(scope.row)">修改</el-button>
<el-button type="danger" link icon="Delete" @click="removeData(scope.row)">删除</el-button> <el-button link icon="Delete" @click="removeData(scope.row)">删除</el-button>
</span> </span>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -33,7 +33,7 @@
<el-row :gutter="gutter"> <el-row :gutter="gutter">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="身高" prop="bodyHeight"> <el-form-item label="身高" prop="bodyHeight">
<el-input v-model="formData.bodyHeight" placeholder="请输入电话"></el-input> <el-input v-model="formData.bodyHeight" placeholder="请输入身高"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -181,4 +181,7 @@ const saveData = async () => {
} }
} }
} }
.el-row>.el-col.el-col-12:first-of-type {
padding: 0 30px 0 30px !important;
}
</style> </style>

View File

@ -11,7 +11,7 @@
<div class="search-box"> <div class="search-box">
<div class="search-cell"> <div class="search-cell">
<span class="label">姓名</span> <span class="label">姓名</span>
<el-select v-model="queryParams.name" popper-class="custom-patients-option" filterable placeholder="请输入选择姓名" <el-select v-model="queryParams.name" popper-class="custom-patients-option" filterable placeholder="请选择(可搜素)"
remote :remote-method="remoteSearchName" @change="selectNameChange"> remote :remote-method="remoteSearchName" @change="selectNameChange">
<el-option v-for="(item, index) in patientsOption.slice(0, 999)" :key="'name-' + index" <el-option v-for="(item, index) in patientsOption.slice(0, 999)" :key="'name-' + index"
:label="item.name" :value="item.code" /> :label="item.name" :value="item.code" />
@ -19,7 +19,7 @@
</div> </div>
<div class="search-cell"> <div class="search-cell">
<span class="label">住院号</span> <span class="label">住院号</span>
<el-input v-model="queryParams.code"></el-input> <el-input v-model="queryParams.code" placeholder="请输入"></el-input>
</div> </div>
<div class="search-cell"> <div class="search-cell">
<span class="label">性别</span> <span class="label">性别</span>
@ -30,7 +30,7 @@
</div> </div>
<div class="search-cell"> <div class="search-cell">
<span class="label">手术名称</span> <span class="label">手术名称</span>
<el-input v-model="queryParams.surgeryName"></el-input> <el-input v-model="queryParams.surgeryName" placeholder="请输入"></el-input>
</div> </div>
<div class="search-cell"> <div class="search-cell">
<span class="label">麻醉方式</span> <span class="label">麻醉方式</span>

View File

@ -8,10 +8,12 @@
<el-button type="primary" icon="Search" @click="queryData(queryParams)">查询</el-button> <el-button type="primary" icon="Search" @click="queryData(queryParams)">查询</el-button>
<el-button icon="Refresh" @click="queryParams = {}">重置</el-button> <el-button icon="Refresh" @click="queryParams = {}">重置</el-button>
</div> </div>
<div class="button-part"> <div class="button-part" style="justify-content: space-between;">
<div>
<el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button> <el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button>
<el-button icon="FirstAidKit" @click="importData">导入</el-button> <el-button icon="FirstAidKit" @click="importData">导入</el-button>
<el-button icon="Delete" @click="removeData()">删除</el-button> <el-button icon="Delete" @click="removeData()">删除</el-button>
</div>
<el-button icon="Download" @click="exportData('医生数据', tableData)">导出</el-button> <el-button icon="Download" @click="exportData('医生数据', tableData)">导出</el-button>
</div> </div>
<div class="table-part"> <div class="table-part">
@ -45,7 +47,7 @@
<CommonPagination :total="100" @paginationChange="paginationChange" /> <CommonPagination :total="100" @paginationChange="paginationChange" />
</div> </div>
</div> </div>
<el-dialog v-model="isFormDialog" :title="formDialogTitle" width="40%"><DoctorForm ref="doctorFormRef" :type="formDialogTitle === '添加' ? 'add' : 'edit'" @close="isFormDialog = false" /></el-dialog> <el-dialog v-model="isFormDialog" :title="formDialogTitle" width="750px"><DoctorForm ref="doctorFormRef" :type="formDialogTitle === '添加' ? 'add' : 'edit'" @close="isFormDialog = false" /></el-dialog>
<ImportDialog ref="importDialogRef" title="用户导入" templateUrl="#" importUrl="#" /> <ImportDialog ref="importDialogRef" title="用户导入" templateUrl="#" importUrl="#" />
</template> </template>

View File

@ -13,7 +13,7 @@
<el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button> <el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button>
<el-button @click="expandTable">展开/折叠</el-button> <el-button @click="expandTable">展开/折叠</el-button>
</div> </div>
<el-button icon="Download" @click="exportData('角色数据', tableData)">导出</el-button> <!-- <el-button icon="Download" @click="exportData('角色数据', tableData)">导出</el-button> -->
</div> </div>
<div class="table-part"> <div class="table-part">
<el-table ref="tableRef" :data="tableData" row-key="id" height="100%" border show-overflow-tooltip <el-table ref="tableRef" :data="tableData" row-key="id" height="100%" border show-overflow-tooltip

View File

@ -8,10 +8,12 @@
<el-button type="primary" icon="Search" @click="queryData(queryParams)">查询</el-button> <el-button type="primary" icon="Search" @click="queryData(queryParams)">查询</el-button>
<el-button icon="Refresh" @click="queryParams = {}">重置</el-button> <el-button icon="Refresh" @click="queryParams = {}">重置</el-button>
</div> </div>
<div class="button-part"> <div class="button-part" style="justify-content: space-between;">
<div>
<el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button> <el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button>
<el-button icon="FirstAidKit" @click="importData">导入</el-button> <el-button icon="FirstAidKit" @click="importData">导入</el-button>
<el-button icon="Delete" @click="removeData()">删除</el-button> <el-button icon="Delete" @click="removeData()">删除</el-button>
</div>
<el-button icon="Download" @click="exportData('角色数据', tableData)">导出</el-button> <el-button icon="Download" @click="exportData('角色数据', tableData)">导出</el-button>
</div> </div>
<div class="table-part"> <div class="table-part">

View File

@ -47,10 +47,22 @@
<el-select v-model="formData.admin.name" filterable placeholder="请输入选择姓名" <el-select v-model="formData.admin.name" filterable placeholder="请输入选择姓名"
remote :remote-method="remoteSearchName" @change="selectNameChange"> remote :remote-method="remoteSearchName" @change="selectNameChange">
<el-option v-for="(item, index) in userOption" :key="'name-' + index" <el-option v-for="(item, index) in userOption" :key="'name-' + index"
:label="item.name" :value="item.code" /> :label="item.code" :value="item.code" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="电话" prop="admin.phone">
<el-input v-model="formData.admin.phone" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="姓名" prop="admin.name">
<el-input v-model="formData.admin.name" disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
</el-col> </el-col>
@ -96,7 +108,6 @@ const formData = ref({
} as any) } as any)
const userOption = ref([] as any) const userOption = ref([] as any)
onMounted(() => { onMounted(() => {
resetData() resetData()
}) })
@ -129,6 +140,9 @@ const remoteSearchName = (e: any) => {
if (e) { if (e) {
userOption.value = users.filter((o: any) => o.name.indexOf(e) !== -1) userOption.value = users.filter((o: any) => o.name.indexOf(e) !== -1)
} }
}
const selectNameChange = (e: any) => {
} }
const saveData = async () => { const saveData = async () => {
await formRef.value.validate((valid: any, fields: any) => { await formRef.value.validate((valid: any, fields: any) => {

View File

@ -8,9 +8,11 @@
<el-button type="primary" icon="Search" @click="queryData(queryParams)">查询</el-button> <el-button type="primary" icon="Search" @click="queryData(queryParams)">查询</el-button>
<el-button icon="Refresh" @click="queryParams = {}">重置</el-button> <el-button icon="Refresh" @click="queryParams = {}">重置</el-button>
</div> </div>
<div class="button-part"> <div class="button-part" style="justify-content: space-between;">
<div>
<el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button> <el-button type="primary" icon="FirstAidKit" @click="addData">新增</el-button>
<el-button icon="Delete" @click="removeData()">删除</el-button> <el-button icon="Delete" @click="removeData()">删除</el-button>
</div>
<el-button icon="Download" @click="exportData('医生数据', tableData)">导出</el-button> <el-button icon="Download" @click="exportData('医生数据', tableData)">导出</el-button>
</div> </div>
<div class="table-part"> <div class="table-part">
@ -130,4 +132,5 @@ const paginationChange = (page: number, size: number) => {
} }
</script> </script>
<style lang='scss' scoped></style> <style lang='scss' scoped>
</style>

View File

@ -20,7 +20,7 @@
<div class="system-log-box block-border swing_skew_1"> <div class="system-log-box block-border swing_skew_1">
<div class="title-box"> <div class="title-box">
<span class="title"><el-icon><List /></el-icon></span> <span class="title"><el-icon><List /></el-icon></span>
<span class="more">更多</span> <span class="more" @click="router.push('/logs-manage/logs-manage')">更多</span>
</div> </div>
<div class="system-log"> <div class="system-log">
<SystemLogs /> <SystemLogs />

View File

@ -40,7 +40,7 @@
<CommonPagination :total="100" @paginationChange="paginationChange" /> <CommonPagination :total="100" @paginationChange="paginationChange" />
</div> </div>
</div> </div>
<el-dialog v-model="isFormDialog" :title="formDialogTitle" width="40%"><UserForm ref="userFormRef" :type="formDialogTitle === '添加' ? 'add' : 'edit'" @close="isFormDialog = false" /></el-dialog> <el-dialog v-model="isFormDialog" :title="formDialogTitle" width="750px"><UserForm ref="userFormRef" :type="formDialogTitle === '添加' ? 'add' : 'edit'" @close="isFormDialog = false" /></el-dialog>
</template> </template>
<script lang='ts' setup> <script lang='ts' setup>