---用户管理,网元管理等中英文

This commit is contained in:
lai
2023-11-08 11:21:39 +08:00
parent 8e467b95a2
commit 1bc9358d30
37 changed files with 582 additions and 404 deletions

View File

@@ -40,19 +40,19 @@ function fnInitstateForm() {
/**表单验证通过 */
function fnFinish() {
Modal.confirm({
title: '提示',
title: t('common.tipTitle'),
content: `确认要提交修改用户基本信息吗?`,
onOk() {
stateForm.formClick = true;
// 发送请求
const hide = message.loading('请稍等...', 0);
const hide = message.loading(t('common.loading'), 0);
const form = toRaw(stateForm.form);
updateUserProfile(form).then(res => {
hide();
stateForm.formClick = false;
if (res.code === RESULT_CODE_SUCCESS) {
Modal.success({
title: '提示',
title: t('common.tipTitle'),
content: `用户基本信息修改成功!`,
okText: '我知道了',
onOk() {
@@ -87,11 +87,11 @@ function fnBeforeUpload(file: FileType) {
/**上传变更 */
function fnUpload(up: UploadRequestOption) {
Modal.confirm({
title: '提示',
title: t('common.tipTitle'),
content: `确认要上传/变更用户头像吗?`,
onOk() {
// 发送请求
const hide = message.loading('请稍等...', 0);
const hide = message.loading(t('common.loading'), 0);
upState.value = true;
let formData = new FormData();
formData.append('file', up.file);