From 58106e9fe469358a51e795ad90903d7507c91b8d Mon Sep 17 00:00:00 2001 From: easy <1358086367@qq.com> Date: Wed, 8 Mar 2023 19:43:36 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=9B=BF=E6=8D=A2=E3=80=81=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/Apply/Save/components/Does.vue | 10 +- .../system/Apply/Save/components/EditForm.vue | 422 +++++++++--------- .../Apply/Save/components/FormLabel.vue | 4 +- .../Apply/Save/components/RequestTable.vue | 29 +- src/views/system/Apply/Save/index.vue | 21 +- .../system/Apply/componenets/MenuDialog.vue | 113 +++-- src/views/system/Apply/index.vue | 67 +-- 7 files changed, 338 insertions(+), 328 deletions(-) diff --git a/src/views/system/Apply/Save/components/Does.vue b/src/views/system/Apply/Save/components/Does.vue index e6653501..8f792a25 100644 --- a/src/views/system/Apply/Save/components/Does.vue +++ b/src/views/system/Apply/Save/components/Does.vue @@ -12,7 +12,7 @@ 内部独立应用的后端服务相互独立运行,互不影响。
- +

2.接入方式说明

@@ -58,7 +58,7 @@
内部独立应用的后端服务在同一个环境运行
- +

2.接入方式说明

1、页面集成
@@ -86,7 +86,7 @@

1.概述

钉钉企业内部应用适用于通过钉钉登录物联网平台
- +

2.接入方式说明

1、单点登录
@@ -106,7 +106,7 @@

1.概述

微信网站应用适用于通过微信授权登录物联网平台
- +

2.接入方式说明

1、单点登录
@@ -121,7 +121,7 @@ 。例如将公司业务管理系统集成至物联网平台,或者将物联网平台集成至业务管理系统。以实现多处访问、集中管控的业务场景。
- +

2.接入方式说明

1、页面集成
diff --git a/src/views/system/Apply/Save/components/EditForm.vue b/src/views/system/Apply/Save/components/EditForm.vue index 1146df17..f7219994 100644 --- a/src/views/system/Apply/Save/components/EditForm.vue +++ b/src/views/system/Apply/Save/components/EditForm.vue @@ -1,13 +1,13 @@ - - - - + - - hash - history + hash + history - - + + - + - - - +
- - - - + - - - + + - - - + - - - + - - +
- - - + OAuth2 - - + + 基本认证 - - + + bearer认证 - - - + + +
- - - + - - - + 请求体 - - + + 请求头 - - - + + + - - - - + - - +
- - - - + - - +
- - - +
- + - - - + - - - - + @@ -685,12 +685,12 @@ tooltip="授权完成后跳转到具体页面的回调地址" /> - - - + - + > - - + + - {{ name }} - + - +
- + - - - - + + - +
- + - @@ -815,7 +815,7 @@
- - - + - - - - + - - - + - - +
- - - +
- - - - + + -
+
-
点击上传图片
- + - - - - + - - - + - - - - + + - +
- - - + - - - + - - - + - - - +
- + - - +
- - - - + - - + - - + + > - - - + + {{ name }} - + - +
- - + + - - + - - + + - 保存 - +
@@ -1415,7 +1414,6 @@ const menuStory = useMenuStore(); const deptPermission = 'system/Department'; const rolePermission = 'system/Role'; -const dialogRef = ref(); // 初始化表单 const initForm: formType = { name: '', @@ -1584,6 +1582,12 @@ const joinOptions = computed(() => { ]; }); +const dialog = reactive({ + visible: false, + selectId: '', + selectProvider: '' as any, +}); + init(); function init() { @@ -1703,11 +1707,9 @@ function clickSave() { const isPage = params.integrationModes.includes('page'); if (isPage) { form.data = params; - dialogRef.value && - dialogRef.value.openDialog( - routeQuery.id || resp.result.id, - form.data.provider, - ); + dialog.selectId = routeQuery.id || resp.result.id; + dialog.selectProvider = form.data.provider; + dialog.visible = true; } else { message.success('保存成功'); menuStory.jumpPage('system/Apply'); @@ -1783,7 +1785,7 @@ function clearNullProp(obj: object) { max-width: 150px; max-height: 150px; - >.ant-upload { + > .ant-upload { height: 150px; } } diff --git a/src/views/system/Apply/Save/components/FormLabel.vue b/src/views/system/Apply/Save/components/FormLabel.vue index 4be698bd..e7842dcd 100644 --- a/src/views/system/Apply/Save/components/FormLabel.vue +++ b/src/views/system/Apply/Save/components/FormLabel.vue @@ -2,10 +2,10 @@
{{ props.text }} * - + - +
diff --git a/src/views/system/Apply/Save/components/RequestTable.vue b/src/views/system/Apply/Save/components/RequestTable.vue index 4c8ff9ee..7ebb7f31 100644 --- a/src/views/system/Apply/Save/components/RequestTable.vue +++ b/src/views/system/Apply/Save/components/RequestTable.vue @@ -1,52 +1,52 @@ @@ -120,7 +120,6 @@ function addRow() { label: '', value: '', }; - console.log(111); emits('update:value', [...props.value, newRow]); } diff --git a/src/views/system/Apply/Save/index.vue b/src/views/system/Apply/Save/index.vue index b18dfb58..8797e473 100644 --- a/src/views/system/Apply/Save/index.vue +++ b/src/views/system/Apply/Save/index.vue @@ -1,13 +1,13 @@ @@ -21,3 +21,10 @@ const chengeType = (newType: applyType) => { rightType.value = newType; }; + + diff --git a/src/views/system/Apply/componenets/MenuDialog.vue b/src/views/system/Apply/componenets/MenuDialog.vue index bc4a5d7a..a5c306b0 100644 --- a/src/views/system/Apply/componenets/MenuDialog.vue +++ b/src/views/system/Apply/componenets/MenuDialog.vue @@ -1,30 +1,30 @@ - - + +