fix: 文件乱码修复,代码生成指定ts类型,登录移除租户选择

This commit is contained in:
Ray.Hao
2026-01-16 23:19:29 +08:00
parent 23b789badd
commit da2002f6d0
9 changed files with 65 additions and 153 deletions

View File

@@ -1,4 +1,4 @@
<template>
<template>
<el-select
v-if="type === 'select'"
v-model="selectedValue"
@@ -90,7 +90,7 @@ const selectedValue = ref<any>(
: undefined
);
// çå<EFBFBD>¬ modelValue å’?options çš„å<EFBFBD>˜åŒ?
// 监听 modelValue options 的变化
watch(
[() => props.modelValue, () => options.value],
([newValue, newOptions]) => {

View File

@@ -1,4 +1,4 @@
<template>
<template>
<template v-if="tagType">
<el-tag :type="tagType" :size="tagSize">{{ label }}</el-tag>
</template>
@@ -12,7 +12,7 @@ import { useDictStore } from "@/store";
const props = defineProps({
code: String, // 字典编码
modelValue: [String, Number], // 字典项的�
modelValue: [String, Number], // 字典项的值
size: {
type: String,
default: "default", // 标签大小
@@ -26,10 +26,10 @@ const tagSize = ref<"default" | "large" | "small">(props.size as "default" | "la
const dictStore = useDictStore();
/**
* æ ¹æ<EFBFBD>®å­—典项的值获å<EFBFBD>对应的 label å’?tagType
* 根据字典项的值获取对应的 label tagType
* @param dictCode 字典编码
* @param value 字典项的�
* @returns 包å<EFBFBD>« label å’?tagType 的对è±?
* @param value 字典项的值
* @returns 包含 label tagType 的对象
*/
const getLabelAndTagByValue = async (dictCode: string, value: any) => {
// 按需加载字典数据
@@ -45,7 +45,7 @@ const getLabelAndTagByValue = async (dictCode: string, value: any) => {
};
/**
* æ›´æ–° label å’?tagType
* 更新 label tagType
*/
const updateLabelAndTag = async () => {
if (!props.code || props.modelValue === undefined) return;