From aa17681e803561ecea9ec0f740d5b334b9207876 Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Thu, 28 Oct 2021 19:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E7=AB=AF=E5=9F=B9=E8=AE=AD=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/terminalTrain.js | 17 ++- .../terminalTrain/TerminalTrainDetail.vue | 66 +++++++++++ .../terminalTrain/TerminalTrainForm.vue | 96 ++++++++++++++++ .../terminalTrain/TerminalTrainList.vue | 104 +++++++++++++----- 4 files changed, 256 insertions(+), 27 deletions(-) create mode 100644 src/views/project/terminalTrain/TerminalTrainDetail.vue create mode 100644 src/views/project/terminalTrain/TerminalTrainForm.vue diff --git a/src/api/project/terminalTrain.js b/src/api/project/terminalTrain.js index df316f2..cd1fc31 100644 --- a/src/api/project/terminalTrain.js +++ b/src/api/project/terminalTrain.js @@ -3,16 +3,18 @@ import request from '@/utils/request' const terminalTrainApi = { edit: '/project/terminal/addOrUpdate', del: '/project/terminal/del', - list: '/project/terminal/pageList' + list: '/project/terminal/pageList', + get: '/project/terminal/get' } export function terminalTrainEdit(params) { return request({ - url: terminalTrainApi.add, + url: terminalTrainApi.edit, method: 'post', data: params }) } + export function terminalTrainDel (params) { return request({ url: terminalTrainApi.del, @@ -20,6 +22,7 @@ export function terminalTrainDel (params) { params: params }) } + export function terminalTrainList(params) { console.log("terminalTrainList------------{}", params) return request({ @@ -28,3 +31,13 @@ export function terminalTrainList(params) { params: params }) } + + +export function terminalTrainGet(params) { + console.log("terminalTrainGet------------{}", params) + return request({ + url: terminalTrainApi.get, + method: 'get', + params: params + }) +} diff --git a/src/views/project/terminalTrain/TerminalTrainDetail.vue b/src/views/project/terminalTrain/TerminalTrainDetail.vue new file mode 100644 index 0000000..4f8c587 --- /dev/null +++ b/src/views/project/terminalTrain/TerminalTrainDetail.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file diff --git a/src/views/project/terminalTrain/TerminalTrainForm.vue b/src/views/project/terminalTrain/TerminalTrainForm.vue new file mode 100644 index 0000000..2d1379c --- /dev/null +++ b/src/views/project/terminalTrain/TerminalTrainForm.vue @@ -0,0 +1,96 @@ + + + + \ No newline at end of file diff --git a/src/views/project/terminalTrain/TerminalTrainList.vue b/src/views/project/terminalTrain/TerminalTrainList.vue index 26bf0c5..d7b488d 100644 --- a/src/views/project/terminalTrain/TerminalTrainList.vue +++ b/src/views/project/terminalTrain/TerminalTrainList.vue @@ -11,6 +11,9 @@ } " > + + 新增项目 + @@ -19,10 +22,10 @@