diff --git a/src/components/SelectTable/index.vue b/src/components/SelectTable/index.vue index 30ca499..b05183c 100644 --- a/src/components/SelectTable/index.vue +++ b/src/components/SelectTable/index.vue @@ -45,7 +45,7 @@ + + \ No newline at end of file diff --git a/src/utils/classCom.ts b/src/utils/classCom.ts index 94f8938..4819eb4 100644 --- a/src/utils/classCom.ts +++ b/src/utils/classCom.ts @@ -114,7 +114,6 @@ import { ref, onMounted, onUnmounted, Ref } from 'vue'; */ function useAutoSize() { const autoSize = ref<'small' | 'default'>('default'); - console.log('333==>', 333); // 防抖函数,避免频繁触发 const debounce = (fn: Function, delay: number) => { let timer: number; @@ -126,7 +125,6 @@ function useAutoSize() { const calculateSize = () => { const screenWidth = window.innerWidth || document.documentElement.clientWidth; - console.log('screenWidth==>', screenWidth); autoSize.value = screenWidth < 1600 ? 'small' : 'default'; }; diff --git a/src/api/pinyin.js b/src/utils/pinyin.js similarity index 100% rename from src/api/pinyin.js rename to src/utils/pinyin.js diff --git a/src/views/liswork/work/components/DictInput.vue b/src/views/liswork/work/components/DictInput.vue index ab6569c..878d45b 100644 --- a/src/views/liswork/work/components/DictInput.vue +++ b/src/views/liswork/work/components/DictInput.vue @@ -1,16 +1,11 @@ - + - + + + @@ -20,28 +15,11 @@ - - + + - + @@ -59,16 +37,16 @@ import { ref, computed, watch, onMounted } from 'vue'; import { Loading, ArrowDown } from '@element-plus/icons-vue'; -import { getFirstLetter } from '@/api/pinyin.js'; // 引入拼音处理工具 +import { getFirstLetter } from '@/utils/pinyin.js'; // 引入拼音处理工具 // 组件参数 const props = defineProps({ modelValue: { type: [String, Number], default: '' }, dictType: { type: String, required: true }, placeholder: { type: String, default: '请输入或双击选择' }, clearable: { type: Boolean, default: true }, - disabled: {type: Boolean, default: false}, - fetchDict: {type: Function, required: true}, - dialogTitle: {type: String, default: '选择字典项'} + disabled: { type: Boolean, default: false }, + fetchDict: { type: Function, required: true }, + dialogTitle: { type: String, default: '选择字典项' } }); // 组件事件 @@ -184,7 +162,7 @@ watch(() => props.modelValue, (newVal) => { labelValue.value = matched?.label || newVal; emit('update:labelValue', labelValue.value); } -}, {immediate: true}); +}, { immediate: true }); // 组件挂载时加载字典 onMounted(async () => { diff --git a/src/views/liswork/work/components/DictInputany.vue b/src/views/liswork/work/components/DictInputany.vue index 0883fd7..077dd83 100644 --- a/src/views/liswork/work/components/DictInputany.vue +++ b/src/views/liswork/work/components/DictInputany.vue @@ -1,25 +1,14 @@ - + - + {{ title }} - + × @@ -27,24 +16,12 @@ - + - + @@ -61,7 +38,7 @@