From b22b8d84037f3306b88b675ffeed4eb8dd38bb70 Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Thu, 25 May 2023 18:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E7=AB=8B=E4=B8=AD=E9=97=B4=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/basicDelineMiddle.js | 50 +++++ src/option/basic/basicDelineNode.js | 1 + src/views/basic/deline/basicDeline.vue | 8 +- src/views/basic/deline/basicdeLineform.vue | 203 +++++++++++++++------ src/views/basic/line/basicLineform.vue | 12 +- 5 files changed, 209 insertions(+), 65 deletions(-) create mode 100644 src/api/basic/basicDelineMiddle.js diff --git a/src/api/basic/basicDelineMiddle.js b/src/api/basic/basicDelineMiddle.js new file mode 100644 index 00000000..5c16f511 --- /dev/null +++ b/src/api/basic/basicDelineMiddle.js @@ -0,0 +1,50 @@ +import request from '@/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/logpm-basic/delinemiddle/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/logpm-basic/delinemiddle/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/logpm-basic/delinemiddle/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/logpm-basic/delinemiddle/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/logpm-basic/delinemiddle/submit', + method: 'post', + data: row + }) +} + diff --git a/src/option/basic/basicDelineNode.js b/src/option/basic/basicDelineNode.js index 2b56cab5..81d24f96 100644 --- a/src/option/basic/basicDelineNode.js +++ b/src/option/basic/basicDelineNode.js @@ -148,6 +148,7 @@ export default { type: "input", labelWidth:'150', align:'center', + rules: [{pattern: /^1[34578]\d{9}$/, message: '号码格式不正确!'}], span:11, }, { diff --git a/src/views/basic/deline/basicDeline.vue b/src/views/basic/deline/basicDeline.vue index 0019a581..2ca4b271 100644 --- a/src/views/basic/deline/basicDeline.vue +++ b/src/views/basic/deline/basicDeline.vue @@ -1,6 +1,7 @@ - + @@ -52,8 +53,9 @@ import {dateNow} from "@/utils/date"; import NProgress from 'nprogress'; import 'nprogress/nprogress.css'; - + import basicDeLineform from '/src/views/basic/deline/basicdeLineform.vue' export default { + components: { basicDeLineform }, data() { return { form: {}, diff --git a/src/views/basic/deline/basicdeLineform.vue b/src/views/basic/deline/basicdeLineform.vue index 6b8a4254..667f81e0 100644 --- a/src/views/basic/deline/basicdeLineform.vue +++ b/src/views/basic/deline/basicdeLineform.vue @@ -1,7 +1,7 @@