From 116b4389a03c0d91078a110d1b03a343c196b509 Mon Sep 17 00:00:00 2001 From: lbw Date: Tue, 14 Feb 2023 13:16:18 +0800 Subject: [PATCH] =?UTF-8?q?:fix=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=AF=86?= =?UTF-8?q?=E9=92=A5=E7=BB=B4=E6=8A=A4=E4=B8=8D=E8=83=BD=E8=84=B1=E6=95=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/QueryTree/index.vue | 8 +-- src/views/app/appsocial/form.vue | 8 +++ src/views/app/appsocial/index.vue | 83 ++++++++++++++++-------------- 3 files changed, 55 insertions(+), 44 deletions(-) diff --git a/src/components/QueryTree/index.vue b/src/components/QueryTree/index.vue index 7248df94..3ed84a6b 100644 --- a/src/components/QueryTree/index.vue +++ b/src/components/QueryTree/index.vue @@ -13,7 +13,7 @@ import { onMounted, reactive, ref, unref } from "vue"; const emit = defineEmits(['search', 'nodeClick']) -const props = defineProps({ +const { placeholder, props, query, loading } = defineProps({ props: { type: Object, default: () => { @@ -40,7 +40,7 @@ const props = defineProps({ const state = reactive({ List: [], - localLoading: props.loading + localLoading: loading }) @@ -51,9 +51,9 @@ const handleNodeClick = (item: any) => { } const getDeptTree = () => { - if (props.query instanceof Function) { + if (query instanceof Function) { state.localLoading = true - const result = props.query(unref(searchName)) + const result = query(unref(searchName)) if ((typeof result === 'object' || typeof result === 'function') && typeof result.then === 'function') { result.then((r: any) => { state.List = r.data diff --git a/src/views/app/appsocial/form.vue b/src/views/app/appsocial/form.vue index 18215834..0161bdce 100644 --- a/src/views/app/appsocial/form.vue +++ b/src/views/app/appsocial/form.vue @@ -111,6 +111,14 @@ const onSubmit = () => { return false } + if (form.appSecret && form.appSecret.indexOf("******") >= 0) { + form.appSecret = '' + } + + if (form.appId && form.appId.indexOf("******") >= 0) { + form.appId = '' + } + // 更新 if (form.id) { putObj(form).then(() => { diff --git a/src/views/app/appsocial/index.vue b/src/views/app/appsocial/index.vue index 232c807d..207a1495 100644 --- a/src/views/app/appsocial/index.vue +++ b/src/views/app/appsocial/index.vue @@ -3,11 +3,12 @@ - - - - - + + + + + {{ $t('common.queryBtn') }} @@ -19,64 +20,66 @@
+ v-auth="'app_social_details_add'"> {{ $t('common.addBtn') }} {{ $t('common.exportBtn') }} + v-auth="'app_social_details_del'" @click="handleDelete(undefined)"> {{ $t('common.delBtn') }} + @queryTable="getDataList">
- - - - - - - - - + @selection-change="handleSelectionChange" @sort-change="sortChangeHandle"> + + + + + + + + + - +
- +