diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..cd79f72 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,31 @@ +import js from "@eslint/js"; +import globals from "globals"; +import pluginVue from "eslint-plugin-vue"; +import { defineConfig } from "eslint/config"; + + +export default defineConfig([ + { files: ["**/*.{js,mjs,cjs,vue}"], plugins: { js }, extends: ["js/recommended"] }, + { files: ["**/*.{js,mjs,cjs,vue}"], languageOptions: { globals: globals.browser } }, + pluginVue.configs["flat/essential"], + { + plugins: { + 'auto-import': { + extensions: ['.js', '.mjs', '.jsx', '.vue'], + }, + }, + }, + { + rules: { + 'auto-import/export': 'error', + }, + }, + { + settings: { + 'auto-import': { + // 自动导入的模块配置,与 unplugin-auto-import 配置一致 + imports: ['vue'], + }, + }, + }, +]); diff --git a/index.html b/index.html index 46161a4..22fe2b7 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,7 @@ 实验室检验系统 + \ No newline at end of file diff --git a/src/views/liswork/work/components/DictInput.vue b/src/views/liswork/work/components/DictInput.vue new file mode 100644 index 0000000..dbe08ef --- /dev/null +++ b/src/views/liswork/work/components/DictInput.vue @@ -0,0 +1,276 @@ + + + + + \ No newline at end of file diff --git a/src/views/liswork/work/components/ddlb.vue b/src/views/liswork/work/components/ddlb.vue new file mode 100644 index 0000000..e5c72bb --- /dev/null +++ b/src/views/liswork/work/components/ddlb.vue @@ -0,0 +1,102 @@ + + + + + \ No newline at end of file diff --git a/src/views/liswork/work/components/labpat.vue b/src/views/liswork/work/components/labpat.vue new file mode 100644 index 0000000..7d88d21 --- /dev/null +++ b/src/views/liswork/work/components/labpat.vue @@ -0,0 +1,144 @@ + + + + \ No newline at end of file diff --git a/src/views/liswork/work/components/labpatlist.vue b/src/views/liswork/work/components/labpatlist.vue new file mode 100644 index 0000000..4acde70 --- /dev/null +++ b/src/views/liswork/work/components/labpatlist.vue @@ -0,0 +1,206 @@ + + + + \ No newline at end of file diff --git a/src/views/liswork/work/components/labresult.vue b/src/views/liswork/work/components/labresult.vue new file mode 100644 index 0000000..72fdde4 --- /dev/null +++ b/src/views/liswork/work/components/labresult.vue @@ -0,0 +1,240 @@ + + + + + \ No newline at end of file diff --git a/src/views/liswork/work/index.vue b/src/views/liswork/work/index.vue new file mode 100644 index 0000000..13aec18 --- /dev/null +++ b/src/views/liswork/work/index.vue @@ -0,0 +1,505 @@ + + + + + diff --git a/vite.config.js b/vite.config.js index 9f1472c..334026c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -62,4 +62,7 @@ export default defineConfig(({ mode, command }) => { } } } + optimizeDeps: { + include: ['jquery', 'select2', 'vue3-select2-component'] + } })