diff --git a/.env b/.env index b611e76..bffb53d 100644 --- a/.env +++ b/.env @@ -8,7 +8,7 @@ VITE_APP_PORT=8890 #如果 VITE_APP_BASE_URL 配置为空,所有请求就通过 VITE_APP_PROXY 代理转发 #如果 VITE_APP_BASE_URL 配置不为空,VITE_APP_PROXY 的配置就不生效 # 代理配置,必须在一行中 -VITE_APP_PROXY=[["/api","http://localhost:9900"]] +VITE_APP_PROXY=[["/api","http://localhost:9900"],["/mdwms","http://localhost:8083"]] # 后端地址 VITE_APP_BASE_URL='' diff --git a/.env.development b/.env.development index c495a44..193d22b 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE='DataView' VITE_APP_PORT=8890 # 代理配置(开发使用),必须在一行中 -VITE_APP_PROXY=[["/api","http://localhost:8000"]] +VITE_APP_PROXY=[["/api","http://localhost:8000"],["/mdwms","http://localhost:8083"]] # 后端地址 VITE_APP_BASE_URL='/' diff --git a/.env.production b/.env.production index f09e68a..a4995d9 100644 --- a/.env.production +++ b/.env.production @@ -5,7 +5,7 @@ VITE_APP_TITLE='DataView' VITE_APP_PORT=8890 # 代理配置,必须在一行中 -VITE_APP_PROXY=[["/api","http://localhost:9900"]] +VITE_APP_PROXY=[["/api","http://localhost:9900"],["/mdwms","http://localhost:8083"]] # 后端地址 VITE_APP_BASE_URL='/' diff --git a/examples/assets/kuwei/md3.png b/examples/assets/kuwei/md3.png new file mode 100644 index 0000000..499da77 Binary files /dev/null and b/examples/assets/kuwei/md3.png differ diff --git a/examples/assets/kuwei/md5.png b/examples/assets/kuwei/md5.png new file mode 100644 index 0000000..4df379d Binary files /dev/null and b/examples/assets/kuwei/md5.png differ diff --git a/resource/mdkw/KuWei.vue b/resource/mdkw/KuWei.vue new file mode 100644 index 0000000..67a6dbe --- /dev/null +++ b/resource/mdkw/KuWei.vue @@ -0,0 +1,269 @@ + + + + + diff --git a/resource/mdkw/KuWeiInfo.ts b/resource/mdkw/KuWeiInfo.ts new file mode 100644 index 0000000..1e17e4d --- /dev/null +++ b/resource/mdkw/KuWeiInfo.ts @@ -0,0 +1,11 @@ + +import { kuwei_item } from "./KuWeiIteam"; + +export interface kuwei_info { + width?: number + height?: number + mg_top?: number + mg_left?: number + positionDistin?: number + movieName?: string +} diff --git a/resource/mdkw/KuWeiIteam.ts b/resource/mdkw/KuWeiIteam.ts new file mode 100644 index 0000000..c80e32f --- /dev/null +++ b/resource/mdkw/KuWeiIteam.ts @@ -0,0 +1,10 @@ +import type { ComponentDataType } from 'open-data-v/base' +import type { CanvasStyleData } from 'open-data-v/designer' + +export interface kuwei_item { + id?: String + gRow?: number + gCol?: number + type?: String + item_code?: String +} diff --git a/resource/mdkw/config.ts b/resource/mdkw/config.ts new file mode 100644 index 0000000..a747876 --- /dev/null +++ b/resource/mdkw/config.ts @@ -0,0 +1,65 @@ +import type { MetaContainerItem } from 'open-data-v/base' +import { ComponentGroup, CustomComponent, FormType } from 'open-data-v/base' +import { h } from 'vue' + +export const componentName = 'MdKuWei' +class SubTextComponent extends CustomComponent { + constructor(id?: string, name?: string, icon?: string) { + super({ + component: componentName, + group: ComponentGroup.OTHER, + name: name ? 'CQMD库位' : 'CQMD库位', + id, + width: 100, + height: 30, + icon + }) + } + + _prop: MetaContainerItem[] = [ + { + label: '基础配置', + prop: 'base', + children: [ + { + prop: 'boxWidth', + label: '盒子宽度', + type: FormType.NUMBER, + props: { + defaultValue: 20, + suffix: () => h('span', {}, 'px') + } + },{ + prop: 'boxHeight', + label: '盒子高度度', + type: FormType.NUMBER, + props: { + defaultValue: 20, + suffix: () => h('span', {}, 'px') + } + }, + { + prop: 'boxWidithGap', + label: '盒子宽间距', + type: FormType.NUMBER, + props: { + defaultValue: 20, + suffix: () => h('span', {}, 'px') + } + }, + { + prop: 'boxHeightGap', + label: '盒子高间距', + type: FormType.NUMBER, + props: { + defaultValue: 20, + suffix: () => h('span', {}, 'px') + } + } + ] + } + ] + +} + +export default SubTextComponent diff --git a/resource/mdkw/index.ts b/resource/mdkw/index.ts new file mode 100644 index 0000000..ba83e54 --- /dev/null +++ b/resource/mdkw/index.ts @@ -0,0 +1,7 @@ +import SubTextComponent, { componentName } from './config' + +export default { + componentName, + component: () => import('./KuWei.vue'), + config: SubTextComponent +} diff --git a/resource/mdkw/type.ts b/resource/mdkw/type.ts new file mode 100644 index 0000000..aa7d86e --- /dev/null +++ b/resource/mdkw/type.ts @@ -0,0 +1,8 @@ +export interface KuWeiType { + base: { + boxWidth: string + boxHeight: string + boxWidithGap: string + boxHeightGap: string + } +}