diff --git a/src/api/DesignForm/requestapi.ts b/src/api/DesignForm/requestapi.ts index c71c34c12..ac414fdfe 100644 --- a/src/api/DesignForm/requestapi.ts +++ b/src/api/DesignForm/requestapi.ts @@ -343,3 +343,35 @@ export function gainFormPageListCont(data: any) { data: data }); } +//创建APP +export function createApp(data: any) { + return request({ + url: '/systemapi/app/createApp', + method: 'post', + data: data + }); +} +//获取应用编辑页面信息 +export function gainAppEditPsge(data: any) { + return request({ + url: '/systemapi/app/gainAppEditPsge', + method: 'post', + data: data + }); +} +//获取除固定菜单以外的数据 +export function ginOthenMenuTree(data: any) { + return request({ + url: '/systemapi/app/ginOthenMenuTree', + method: 'post', + data: data + }); +} +//新增菜单 +export function saveAppMenu(data: any) { + return request({ + url: '/systemapi/app/saveAppMenu', + method: 'post', + data: data + }); +} diff --git a/src/api/date/type.ts b/src/api/date/type.ts index ed2c52acd..12c679d6b 100644 --- a/src/api/date/type.ts +++ b/src/api/date/type.ts @@ -78,9 +78,25 @@ export interface appMenuTreeInfo { svg?:string; //图标 pcIsShow:number; //pc端显示与隐藏 wapIsShow:number; //移动端显示与隐藏 + parent:string; // 父级 + appkey:string; //app唯一识别符 isLock:number; + sort:number; //排序 children?:appMenuTreeInfo[]; //子级 } + +/** +@ 作者: 秦东 +@ 时间: 2024-04-23 16:03:48 +@ 功能: appCont +*/ +export interface appSetInfo { + appKey:string; + appName:string; + appSvg:string; + state:number; + uuid:string; +} /** @ 作者: 秦东 @ 时间: 2024-04-22 08:31:22 diff --git a/src/assets/icons/ziJianApp.svg b/src/assets/icons/ziJianApp.svg new file mode 100644 index 000000000..fcf841ae5 --- /dev/null +++ b/src/assets/icons/ziJianApp.svg @@ -0,0 +1 @@ + diff --git a/src/components/IconSelect/appMenuSvgPage.vue b/src/components/IconSelect/appMenuSvgPage.vue index c31ed9569..294852549 100644 --- a/src/components/IconSelect/appMenuSvgPage.vue +++ b/src/components/IconSelect/appMenuSvgPage.vue @@ -53,8 +53,8 @@ const handleClose = () => { @ 时间: 2024-04-22 16:54:03 @ 功能: 确定 */ -const sendClick = () => { - emits("update:svgName","liuChengBiaoDan") +const handleSelect = (svgName:string) => { + emits("update:svgName",svgName) handleClose() } @@ -65,18 +65,61 @@ const sendClick = () => { width="500" :before-close="handleClose" > - {{filterIconNames}} + + + + +
    +
  • + + + +
  • +
+
- diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 7a1a67917..494e33af9 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -60,8 +60,6 @@ declare module '@vue/runtime-core' { ElMain: typeof import('element-plus/es')['ElMain'] ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] - ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup'] - ElMenuMenu: typeof import('element-plus/es')['ElMenuMenu'] ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] @@ -112,10 +110,8 @@ declare module '@vue/runtime-core' { Hamburger: typeof import('./../components/Hamburger/index.vue')['default'] HeadTools: typeof import('./../components/DesignForm/public/headTools.vue')['default'] HeadToolsNew: typeof import('./../components/DesignForm/public/headToolsNew.vue')['default'] - Icon: typeof import('./../components/IconSelect/icon.vue')['default'] IconSelect: typeof import('./../components/IconSelect/index.vue')['default'] IEpCaretBottom: typeof import('~icons/ep/caret-bottom')['default'] - IEpCaretTop: typeof import('~icons/ep/caret-top')['default'] IEpClose: typeof import('~icons/ep/close')['default'] IEpDelete: typeof import('~icons/ep/delete')['default'] IEpEdit: typeof import('~icons/ep/edit')['default'] diff --git a/src/views/sysworkflow/lowcodepage/appFormList.vue b/src/views/sysworkflow/lowcodepage/appFormList.vue index 854c8a1b9..573ac8c0b 100644 --- a/src/views/sysworkflow/lowcodepage/appFormList.vue +++ b/src/views/sysworkflow/lowcodepage/appFormList.vue @@ -12,6 +12,7 @@ import { json2string,objToStringify,string2json,stringToObj } from '@/utils/Desi import LowCodeFormPage from "@/views/sysworkflow/lowcodepage/lowCodeFormPage.vue" import TaskCustomerForm from '@/views/taskplatform/taskmanagement/taskcustomerformnew.vue' import TableFlow from '@/views/sysworkflow/lowcodepage/pageFlow/tableFlow.vue' +import DesignAPPpage from "@/views/sysworkflow/lowcodepage/appPage/index.vue" //自建应用 const props = defineProps({ groupId:{ @@ -132,6 +133,17 @@ const refreshPage = (pageType:string) =>{ onMounted(()=>{ getFormAppList() }) + +/** +@ 作者: 秦东 +@ 时间: 2024-04-24 08:21:32 +@ 功能: 关闭应用刷新页面 +*/ +const closeAppPage = () =>{ + console.log("关闭应用刷新页面") + getFormAppList() +} + /** @ 作者: 秦东 @ 时间: 2024-04-01 14:32:18 @@ -201,6 +213,18 @@ const state = reactive({ dict: {}, refreshTable: true }) + +const appPageShow = ref(false) +const appKey = ref("") +/** +@ 作者: 秦东 +@ 时间: 2024-04-23 15:30:17 +@ 功能: 编辑app内容 +*/ +const editAppCont = (val:string) => { + appKey.value = val.toString(); + appPageShow.value = true; +}