From 7b94333a160668d8978b5f58e0d267a0e5e1a057 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 24 Aug 2022 14:54:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainingManage/create.vue | 4 +++- src/views/trainingManage/editDetails.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/trainingManage/create.vue b/src/views/trainingManage/create.vue index 0bc6295c9..92367fba5 100644 --- a/src/views/trainingManage/create.vue +++ b/src/views/trainingManage/create.vue @@ -16,7 +16,6 @@ v-if="inputVisible" ref="saveTagInput" v-model="inputValue" - autofocus class="input-new-tag" size="small" @keyup.enter.native="handleInputConfirm" @@ -99,6 +98,9 @@ export default { }, showInput() { this.inputVisible = true; + this.$nextTick(_ => { + this.$refs.saveTagInput.$refs.input.focus(); + }); }, handleInputConfirm() { const inputValue = this.inputValue; diff --git a/src/views/trainingManage/editDetails.vue b/src/views/trainingManage/editDetails.vue index 3b218ce78..3e8ef0045 100644 --- a/src/views/trainingManage/editDetails.vue +++ b/src/views/trainingManage/editDetails.vue @@ -182,7 +182,7 @@ export default { updateTrainingStep(this.editData.id, list).then(res => { console.log('保存步骤成功!', res); this.$message.success('保存步骤成功!'); - this.doClose(); + // this.doClose(); }).catch(err => { console.log('保存步骤失败', err); this.$message.error('保存步骤失败'); From a61c51d5c50b1a8fe3a87613b431e9d358be241e Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 24 Aug 2022 16:09:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainingManage/trainingList.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/trainingManage/trainingList.vue b/src/views/trainingManage/trainingList.vue index d601bddfa..a477513b9 100644 --- a/src/views/trainingManage/trainingList.vue +++ b/src/views/trainingManage/trainingList.vue @@ -111,7 +111,11 @@ export default { computed: { }, methods: { - queryFunction(params) { + queryFunction(param) { + const params = { + ...param, + mapId: this.$route.query.mapId + }; return getTrainingList(params); }, doShow() {