| | |
| | | <div class="relative" :style="{ width: width }"> |
| | | <el-input v-model="modelValue" readonly @click="visible = !visible" placeholder="点击选择图标"> |
| | | <template #prepend> |
| | | <svg-icon :icon-class="modelValue as string" /> |
| | | <svg-icon :icon-class="modelValue" /> |
| | | </template> |
| | | </el-input> |
| | | |
| | |
| | | </template> |
| | | |
| | | <sidebar-item |
| | | v-for="(child) in item.children as RouteOption[]" |
| | | :key="child.path" |
| | | v-for="(child, index) in item.children" |
| | | :key="child.path + index" |
| | | :is-nest="true" |
| | | :item="child" |
| | | :base-path="resolvePath(child.path)" |
| | |
| | | removeToken(); |
| | | }; |
| | | |
| | | const setAvatar = (value: string) => { |
| | | avatar.value = value; |
| | | }; |
| | | |
| | | return { |
| | | userId, |
| | | token, |
| | |
| | | permissions, |
| | | login, |
| | | getInfo, |
| | | logout |
| | | logout, |
| | | setAvatar |
| | | }; |
| | | }); |
| | | |
| | |
| | | const codeUrl = ref(""); |
| | | const loading = ref(false); |
| | | const captchaEnabled = ref(true); |
| | | const registerRef = ref(ElForm); |
| | | const registerRef = ref<ElFormInstance>(); |
| | | // 租户列表 |
| | | const tenantList = ref<TenantVO[]>([]); |
| | | |
| | | const handleRegister = () => { |
| | | registerRef.value.validate(async (valid: boolean) => { |
| | | registerRef.value?.validate(async (valid: boolean) => { |
| | | if (valid) { |
| | | loading.value = true; |
| | | const [err] = await to(register(registerForm.value)); |
| | |
| | | <template> |
| | | <div class="user-info-head" @click="editCropper()"> |
| | | <img :src="options.img as string" title="点击上传头像" class="img-circle img-lg" /> |
| | | <img :src="options.img" title="点击上传头像" class="img-circle img-lg" /> |
| | | <el-dialog :title="title" v-model="open" width="800px" append-to-body @opened="modalOpened" @close="closeDialog"> |
| | | <el-row> |
| | | <el-col :xs="24" :md="12" :style="{ height: '350px' }"> |
| | |
| | | const res = await uploadAvatar(formData); |
| | | open.value = false; |
| | | options.img = res.data.imgUrl; |
| | | userStore.avatar = options.img as string |
| | | userStore.setAvatar(options.img as string) |
| | | proxy?.$modal.msgSuccess("修改成功"); |
| | | visible.value = false; |
| | | }); |
| | |
| | | <el-tabs v-model="preview.activeName"> |
| | | <el-tab-pane |
| | | v-for="(value, key) in preview.data" |
| | | :label="(key as any).substring((key as any).lastIndexOf('/') + 1, (key as any).indexOf('.vm'))" |
| | | :name="(key as any).substring((key as any).lastIndexOf('/') + 1, (key as any).indexOf('.vm'))" |
| | | :label="key.substring(key.lastIndexOf('/') + 1, key.indexOf('.vm'))" |
| | | :name="key.substring(key.lastIndexOf('/') + 1, key.indexOf('.vm'))" |
| | | :key="value" |
| | | > |
| | | <el-link :underline="false" icon="DocumentCopy" v-copyText="value" v-copyText:callback="copyTextSuccess" style="float:right"> |