feat(系统参数): 新增系统参数管理模块

refactor(前端): 统一按钮权限属性顺序
style(前端): 格式化代码缩进和换行
This commit is contained in:
zhangtao
2025-10-06 01:37:27 +08:00
parent 7f573fc144
commit ca58dee1c5
18 changed files with 113 additions and 155 deletions
+6 -6
View File
@@ -24,8 +24,8 @@
<el-upload
ref="uploadRef"
class="el-upload"
v-model:file-list="fileList"
class="el-upload"
name="file"
:show-file-list="false"
:before-upload="handleBeforeUpload"
@@ -36,7 +36,7 @@
@change="handleFileChange"
>
<template #trigger>
<el-button type="primary" :icon="Camera" class="upload-trigger" v-hasPerm="['system:user:update']"/>
<el-button v-hasPerm="['system:user:update']" type="primary" :icon="Camera" class="upload-trigger"/>
</template>
</el-upload>
</div>
@@ -145,7 +145,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" :loading="infoSubmitting" icon="edit" @click="handleSave" v-hasPerm="['system:user:update']">保存更改</el-button>
<el-button v-hasPerm="['system:user:update']" type="primary" :loading="infoSubmitting" icon="edit" @click="handleSave">保存更改</el-button>
</el-form-item>
</el-form>
</div>
@@ -185,7 +185,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" :loading="passwordChanging" icon="edit" @click="handlePasswordChange" v-hasPerm="['current:profile:change_password']">更新密码</el-button>
<el-button v-hasPerm="['current:profile:change_password']" type="primary" :loading="passwordChanging" icon="edit" @click="handlePasswordChange">更新密码</el-button>
</el-form-item>
</el-form>
</div>
@@ -198,12 +198,12 @@
</template>
<script lang="ts" setup>
import type { FormInstance, UploadRequestOptions, UploadFile } from 'element-plus'
import type { FormInstance, UploadRequestOptions, UploadFile, ElUpload } from 'element-plus'
import UserAPI, { type InfoFormState, type PasswordFormState } from '@/api/system/user';
import { useUserStore, useDictStore } from "@/store";
import { useUserStoreHook } from "@/store/modules/user.store";
import { Camera } from '@element-plus/icons-vue';
import { ElUpload, ElMessage } from 'element-plus';
import { ElMessage } from 'element-plus';
import { useI18n } from "vue-i18n";
import { nextTick } from 'vue';
import router from "@/router";