From c42f6006b862e79f16013d6eacd657c7a988e549 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 5 Jan 2023 09:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BD=93=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E5=BA=94=E7=94=A8=E6=97=B6,=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=9A=84=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/oms/apps/develop/AppDeployCustom/AiLibTable.vue | 7 ++++--- project/oms/apps/develop/AppDeployCustom/add.vue | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue b/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue index 3c77004b..60a6ffe8 100644 --- a/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue +++ b/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue @@ -54,7 +54,8 @@ export default { multiple: Boolean, disabled: Boolean, meta: {default: () => []}, - choose: {default: null} + choose: {default: null}, + customData: Boolean }, data() { return { @@ -83,8 +84,8 @@ export default { }, methods: { getTableData() { - const {page, search, action, meta, searchKey, dict} = this - if (meta.length > 0) { + const {page, search, action, meta, searchKey, dict, customData} = this + if (meta.length > 0 || customData) { const reg = new RegExp(search[searchKey]) this.handleTableData(meta.filter(e => reg.test(e.label) || reg.test(e.name) || reg.test(dict.getLabel('appsCategory', e.category)))) } else this.instance?.post(action, null, { diff --git a/project/oms/apps/develop/AppDeployCustom/add.vue b/project/oms/apps/develop/AppDeployCustom/add.vue index 51ced626..3049b065 100644 --- a/project/oms/apps/develop/AppDeployCustom/add.vue +++ b/project/oms/apps/develop/AppDeployCustom/add.vue @@ -189,7 +189,7 @@ - +