From 52d60a3f1463fe4741e050ac9448f3bae7637bae Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Thu, 19 May 2022 14:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E7=94=A8=E5=AD=97=E6=AE=B5=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/archivesConfig/field.js | 26 ++++ .../archivesConfig/commonFields/index.vue | 47 ++++++- .../commonFields/module/form.vue | 123 ++++++++---------- 3 files changed, 121 insertions(+), 75 deletions(-) create mode 100644 src/api/archivesConfig/field.js diff --git a/src/api/archivesConfig/field.js b/src/api/archivesConfig/field.js new file mode 100644 index 0000000..6d25936 --- /dev/null +++ b/src/api/archivesConfig/field.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +export function getDicts() { + return request({ + url: 'api/dict/all', + method: 'get' + }) +} + +export function add(data) { + return request({ + url: 'api/field/edit', + method: 'post', + data + }) +} + +export function edit(data) { + return request({ + url: 'api/field/edit', + method: 'post', + data + }) +} + +export default { add, edit } diff --git a/src/views/archivesConfig/commonFields/index.vue b/src/views/archivesConfig/commonFields/index.vue index ef3470d..6874bd9 100644 --- a/src/views/archivesConfig/commonFields/index.vue +++ b/src/views/archivesConfig/commonFields/index.vue @@ -6,12 +6,19 @@ 说明 - + - - - + + + + + + + @@ -19,7 +26,7 @@ diff --git a/src/views/archivesConfig/commonFields/module/form.vue b/src/views/archivesConfig/commonFields/module/form.vue index 77f9c8c..4f182e7 100644 --- a/src/views/archivesConfig/commonFields/module/form.vue +++ b/src/views/archivesConfig/commonFields/module/form.vue @@ -1,65 +1,29 @@