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 @@ +