From c02b19f3eb15d0baf367365020d1fe3132789a3e Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 23 Mar 2023 11:29:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E4=B9=B1=E6=90=9E,?= =?UTF-8?q?=E5=AE=9A=E5=88=B6=E6=96=B9=E6=A1=88=E5=AD=97=E5=85=B8=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E4=BB=A3=E7=A0=81=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oms/apps/develop/AppDeployCustom/AiLibTable.vue | 5 ++--- .../apps/develop/AppDeployCustom/AppDeployCustom.vue | 11 ++++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue b/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue index 60a6ffe8..f9c28eec 100644 --- a/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue +++ b/project/oms/apps/develop/AppDeployCustom/AiLibTable.vue @@ -45,7 +45,7 @@ export default { default: () => [ {prop: 'label', label: "应用名称"}, {prop: 'project', label: "项目/框架"}, - {prop: 'category', label: "分类", dict: "appsCategory"}, + {prop: 'category', label: "分类"}, {prop: 'name', label: "模块名"}, ] }, @@ -87,7 +87,7 @@ export default { 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)))) + this.handleTableData(meta.filter(e => reg.test(e.label) || reg.test(e.name) || reg.test(e.category))) } else this.instance?.post(action, null, { params: {...page, ...search} }).then(res => { @@ -143,7 +143,6 @@ export default { } }, created() { - this.dict.load('appsCategory') this.$set(this.search, this.searchKey, "") this.getTableData() } diff --git a/project/oms/apps/develop/AppDeployCustom/AppDeployCustom.vue b/project/oms/apps/develop/AppDeployCustom/AppDeployCustom.vue index 2f5dd796..f8c01c10 100644 --- a/project/oms/apps/develop/AppDeployCustom/AppDeployCustom.vue +++ b/project/oms/apps/develop/AppDeployCustom/AppDeployCustom.vue @@ -24,7 +24,16 @@ export default { } }, created() { - this.dict.load('yesOrNo', 'systemType', 'appsCategory') + this.dict.setStorage([{ + key: "systemType", + name: "系统类型", + values: [ + {dictValue: "web", dictName: "web端"}, + {dictValue: "mp", dictName: "小程序"}, + {dictValue: "h5", dictName: "移动端H5"}, + ] + }]) + this.dict.load('yesOrNo') } }