From ab0ff8a248793f3ffb7074799324d58cddfb8381 Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Tue, 2 Nov 2021 21:02:22 +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 --- .../terminalTrain/TerminalTrainDetail.vue | 4 +-- .../terminalTrain/TerminalTrainForm.vue | 31 +++++++++++++------ .../terminalTrain/TerminalTrainList.vue | 7 ++--- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/src/views/project/terminalTrain/TerminalTrainDetail.vue b/src/views/project/terminalTrain/TerminalTrainDetail.vue index 4f8c587..b0c9562 100644 --- a/src/views/project/terminalTrain/TerminalTrainDetail.vue +++ b/src/views/project/terminalTrain/TerminalTrainDetail.vue @@ -31,13 +31,13 @@ export default { }, data() { return { - queryParam: { id: this.$route.query.terminalTrainId }, + queryParam: this.$route.query.terminalTrainId, detailData: {}, } }, created: function () { let parameter = {} - terminalTrainGet(Object.assign(parameter, this.queryParam)).then((res) => { + terminalTrainGet(this.queryParam).then((res) => { this.detailData = res.data }) }, diff --git a/src/views/project/terminalTrain/TerminalTrainForm.vue b/src/views/project/terminalTrain/TerminalTrainForm.vue index 3229310..bd1ec72 100644 --- a/src/views/project/terminalTrain/TerminalTrainForm.vue +++ b/src/views/project/terminalTrain/TerminalTrainForm.vue @@ -1,6 +1,6 @@