From 63e77952667a1829847b7d194d0f106faadf1278 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 28 二月 2023 19:30:02 +0800 Subject: [PATCH] 数据上传,版本管理 --- src/views/datamanage/versionManage.vue | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/datamanage/versionManage.vue b/src/views/datamanage/versionManage.vue index bf121ce..0ef85c8 100644 --- a/src/views/datamanage/versionManage.vue +++ b/src/views/datamanage/versionManage.vue @@ -300,7 +300,7 @@ > <el-select :popper-append-to-body="false" - v-model="insertform.path" + v-model="insertform.dirName" placeholder="璇烽�夋嫨" style="width:85%" > @@ -550,7 +550,10 @@ this.insertform.dirid = value; }, catalogChangeAdd(data, node, nodeData) { - this.$set(this.insertform, "path", data.id); + + this.insertform.path = data.id + this.insertform.dirid = data.id + // this.$set(this.insertform, "path", data.id); this.$set(this.insertform, "dirName", data.name); }, upCatalogChange(val) { @@ -592,9 +595,9 @@ return; } this.insertform.name = this.getYMD(); - this.insertform.path = 1; - this.insertform.dirid = 1; - this.upform.dirid == 1; + // this.insertform.path = 1; + // this.insertform.dirid = 1; + // this.upform.dirid == 1; this.catalogOption = this.treeData(res.result); this.editcatalogOption = this.treeData(res.result); }, @@ -709,6 +712,7 @@ this.insertform = {}; }, async insertFromData() { + if (this.insertform.dirid == null) { this.$message({ message: "璇烽�夋嫨瑙掕壊鎵�灞炲崟浣�", @@ -716,6 +720,7 @@ }); return; } + const data = await insertVersion(this.insertform); if (data.code == 200) { this.InsertFormdialog = false; -- Gitblit v1.9.3