From 41c4b8f0a578cd29cdc1cf7d726ccc4a5f1d04fd Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sat, 18 Jul 2020 14:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8=E5=AD=97?= =?UTF-8?q?=E5=85=B8=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=E6=B6=89?= =?UTF-8?q?=E5=8F=8Asql=E5=85=B3=E9=94=AE=E5=AD=97=E6=97=B6sql=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/mixins/infoList.js | 9 + .../autoCode/component/fieldDialog.vue | 349 ++++++++++-------- web/src/view/systemTools/autoCode/index.vue | 7 +- 3 files changed, 213 insertions(+), 152 deletions(-) diff --git a/web/src/components/mixins/infoList.js b/web/src/components/mixins/infoList.js index ed0e303a..be753b7f 100644 --- a/web/src/components/mixins/infoList.js +++ b/web/src/components/mixins/infoList.js @@ -1,3 +1,4 @@ +import { getDict } from "@/utils/dictionary"; export default { data() { return { @@ -9,6 +10,14 @@ export default { } }, methods: { + filterDict(value,type){ + const rowLabel = this[type+"Options"]&&this[type+"Options"].filter(item=>item.value == value) + return rowLabel&&rowLabel[0]&&rowLabel[0].label + }, + async getDict(type){ + const dicts = await getDict(type) + this[type+"Options"] = dicts + }, handleSizeChange(val) { this.pageSize = val this.getTableData() diff --git a/web/src/view/systemTools/autoCode/component/fieldDialog.vue b/web/src/view/systemTools/autoCode/component/fieldDialog.vue index f8c5cda0..1838e246 100644 --- a/web/src/view/systemTools/autoCode/component/fieldDialog.vue +++ b/web/src/view/systemTools/autoCode/component/fieldDialog.vue @@ -1,160 +1,209 @@ diff --git a/web/src/view/systemTools/autoCode/index.vue b/web/src/view/systemTools/autoCode/index.vue index c97b53a0..f84576ba 100644 --- a/web/src/view/systemTools/autoCode/index.vue +++ b/web/src/view/systemTools/autoCode/index.vue @@ -79,6 +79,7 @@ +