From 33d90c45b0119e415482680d04dc564aac04ff4b Mon Sep 17 00:00:00 2001 From: ctw <> Date: Sun, 12 Jan 2025 21:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AF=8F=E6=97=A5=E8=8F=9C?= =?UTF-8?q?=E8=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Select/SelectCtcg.vue | 48 +++--- .../{SelectCtcgd.vue => SelectCtcgol.vue} | 48 +++--- src/components/index.ts | 120 +++++++------- src/views/canteen/canteenDailyMenu/form.vue | 25 +-- src/views/canteen/canteenDailyMenu/index.vue | 110 ++++++++---- src/views/canteen/canteenOnlineSpu/form.vue | 126 +++++++------- src/views/canteen/canteenOnlineSpu/index.vue | 103 +++++++----- src/views/canteen/canteenSpu/form.vue | 156 +++++++++--------- 8 files changed, 408 insertions(+), 328 deletions(-) rename src/components/Select/{SelectCtcgd.vue => SelectCtcgol.vue} (68%) diff --git a/src/components/Select/SelectCtcg.vue b/src/components/Select/SelectCtcg.vue index 412d0d3..20db09d 100644 --- a/src/components/Select/SelectCtcg.vue +++ b/src/components/Select/SelectCtcg.vue @@ -25,61 +25,61 @@ diff --git a/src/components/Select/SelectCtcgd.vue b/src/components/Select/SelectCtcgol.vue similarity index 68% rename from src/components/Select/SelectCtcgd.vue rename to src/components/Select/SelectCtcgol.vue index c48a8a5..9d526fc 100644 --- a/src/components/Select/SelectCtcgd.vue +++ b/src/components/Select/SelectCtcgol.vue @@ -25,61 +25,61 @@ diff --git a/src/components/index.ts b/src/components/index.ts index 5d54803..15dfe9b 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,79 +1,79 @@ -import Pagination from '/@/components/Pagination/index.vue'; -import RightToolbar from '/@/components/RightToolbar/index.vue'; -import DictTag from '/@/components/DictTag/index.vue'; -import DictSelect from '/@/components/DictSelect/index.vue'; -import UploadExcel from '/@/components/Upload/Excel.vue'; -import UploadFile from '/@/components/Upload/index.vue'; -import UploadImg from '/@/components/Upload/Image.vue'; -import UploadImgs from '/@/components/Upload/Images.vue'; -import DelWrap from '/@/components/DelWrap/index.vue'; -import Editor from '/@/components/Editor/index.vue'; -import Tip from '/@/components/Tip/index.vue'; -import TagList from '/@/components/TagList/index.vue'; -import SvgIcon from '/@/components/SvgIcon/index.vue'; -import PreviewImage from '/@/components/PreviewImage/index.vue'; +import Pagination from "/@/components/Pagination/index.vue" +import RightToolbar from "/@/components/RightToolbar/index.vue" +import DictTag from "/@/components/DictTag/index.vue" +import DictSelect from "/@/components/DictSelect/index.vue" +import UploadExcel from "/@/components/Upload/Excel.vue" +import UploadFile from "/@/components/Upload/index.vue" +import UploadImg from "/@/components/Upload/Image.vue" +import UploadImgs from "/@/components/Upload/Images.vue" +import DelWrap from "/@/components/DelWrap/index.vue" +import Editor from "/@/components/Editor/index.vue" +import Tip from "/@/components/Tip/index.vue" +import TagList from "/@/components/TagList/index.vue" +import SvgIcon from "/@/components/SvgIcon/index.vue" +import PreviewImage from "/@/components/PreviewImage/index.vue" // 业务组件 -import SelectUser from '/@/components/Select/SelectUser.vue'; -import SelectWalletType from '/@/components/Select/SelectWalletType.vue'; -import SelectMch from '/@/components/Select/SelectMch.vue'; -import SelectDept from '/@/components/Select/SelectDept.vue'; -import SelectCtcg from '/@/components/Select/SelectCtcg.vue'; -import SelectCtcgd from '/@/components/Select/SelectCtcgd.vue'; +import SelectUser from "/@/components/Select/SelectUser.vue" +import SelectWalletType from "/@/components/Select/SelectWalletType.vue" +import SelectMch from "/@/components/Select/SelectMch.vue" +import SelectDept from "/@/components/Select/SelectDept.vue" +import SelectCtcg from "/@/components/Select/SelectCtcg.vue" +import SelectCtcgol from "/@/components/Select/SelectCtcgol.vue" // 第三方组件 -import ElementPlus from 'element-plus'; -import * as ElementPlusIconsVue from '@element-plus/icons-vue'; -import 'element-plus/dist/index.css'; -import { Pane, Splitpanes } from 'splitpanes'; -import 'splitpanes/dist/splitpanes.css'; +import ElementPlus from "element-plus" +import * as ElementPlusIconsVue from "@element-plus/icons-vue" +import "element-plus/dist/index.css" +import { Pane, Splitpanes } from "splitpanes" +import "splitpanes/dist/splitpanes.css" // 日历组件 -import { setupCalendar } from 'v-calendar'; +import { setupCalendar } from "v-calendar" // @ts-ignore 引入VForm3库 -import VForm3 from 'form-designer-plus'; // -import 'form-designer-plus/dist/designer.style.css'; //引入VForm3样式 +import VForm3 from "form-designer-plus" // +import "form-designer-plus/dist/designer.style.css" //引入VForm3样式 // 部门树组件 -import vue3TreeOrg from 'vue3-tree-org'; -import 'vue3-tree-org/lib/vue3-tree-org.css'; +import vue3TreeOrg from "vue3-tree-org" +import "vue3-tree-org/lib/vue3-tree-org.css" // 导入声明 -import { App } from 'vue'; +import { App } from "vue" export default { install(app: App) { - app.component('DictTag', DictTag); - app.component('DictSelect', DictSelect); - app.component('Pagination', Pagination); - app.component('RightToolbar', RightToolbar); - app.component('uploadExcel', UploadExcel); - app.component('UploadFile', UploadFile); - app.component('UploadImg', UploadImg); - app.component('UploadImgs', UploadImgs); - app.component('Editor', Editor); - app.component('Tip', Tip); - app.component('DelWrap', DelWrap); - app.component('TagList', TagList); - app.component('SvgIcon', SvgIcon); - app.component('PreviewImage', PreviewImage); - app.component('SelectUser', SelectUser); - app.component('SelectWalletType', SelectWalletType); - app.component('SelectMch', SelectMch); - app.component('SelectDept', SelectDept); - app.component('SelectCtcg', SelectCtcg); - app.component('SelectCtcgd', SelectCtcgd); + app.component("DictTag", DictTag) + app.component("DictSelect", DictSelect) + app.component("Pagination", Pagination) + app.component("RightToolbar", RightToolbar) + app.component("uploadExcel", UploadExcel) + app.component("UploadFile", UploadFile) + app.component("UploadImg", UploadImg) + app.component("UploadImgs", UploadImgs) + app.component("Editor", Editor) + app.component("Tip", Tip) + app.component("DelWrap", DelWrap) + app.component("TagList", TagList) + app.component("SvgIcon", SvgIcon) + app.component("PreviewImage", PreviewImage) + app.component("SelectUser", SelectUser) + app.component("SelectWalletType", SelectWalletType) + app.component("SelectMch", SelectMch) + app.component("SelectDept", SelectDept) + app.component("SelectCtcg", SelectCtcg) + app.component("SelectCtcgol", SelectCtcgol) // 导入全部的elmenet-plus的图标 for (const [key, component] of Object.entries(ElementPlusIconsVue)) { - app.component(key, component); + app.component(key, component) // 兼容性 - app.component(`ele-${key}`, component); + app.component(`ele-${key}`, component) } // 导入布局插件 - app.component('Splitpanes', Splitpanes); - app.component('Pane', Pane); - app.use(ElementPlus); // ELEMENT 组件 - app.use(setupCalendar, {}); // 日历组件 - app.use(VForm3); // 表单设计 - app.use(vue3TreeOrg); // 组织架构组件 + app.component("Splitpanes", Splitpanes) + app.component("Pane", Pane) + app.use(ElementPlus) // ELEMENT 组件 + app.use(setupCalendar, {}) // 日历组件 + app.use(VForm3) // 表单设计 + app.use(vue3TreeOrg) // 组织架构组件 }, -}; +} diff --git a/src/views/canteen/canteenDailyMenu/form.vue b/src/views/canteen/canteenDailyMenu/form.vue index 06d7f51..f73697d 100644 --- a/src/views/canteen/canteenDailyMenu/form.vue +++ b/src/views/canteen/canteenDailyMenu/form.vue @@ -29,15 +29,17 @@ --> -

预览图

-
- -
+

预览图

+ + +
+
+ + +
+ +
{{ item.name }}
+