From bcc49791f51402fbbb5bba1638d4a907553828d4 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期一, 04 九月 2023 18:02:00 +0800 Subject: [PATCH] bug修改标准库 --- src/views/standardLibrary/index.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/views/standardLibrary/index.vue b/src/views/standardLibrary/index.vue index 8adee1f..d476cc5 100644 --- a/src/views/standardLibrary/index.vue +++ b/src/views/standardLibrary/index.vue @@ -167,7 +167,8 @@ }, async insertVersion() { const resp = await addVersion({ - specificationsId: this.selectData.id + specificationsId: this.selectData.id, + version: this.versionValue }); if (resp.code === 200) { this.initSelect(); @@ -359,6 +360,8 @@ this.addTreeFormVisible = false; this.getStandardTree(); this.getTableByClick(this.selectData, this.versionValue); + this.addTreeForm=null + this.addTreeForm.addTypeArr=[] }, changeCascader(data) { this.addTreeForm.addTypeArr = data; @@ -379,14 +382,18 @@ }); }, selectDataList() { + let i=0 this.tableData.forEach((a) => { + a.id="0"+i a.code = "[1]"; + i++; if (a.children != undefined) { a.children.forEach((b) => { b.code = "[2]"; }); } }); + console.log(this.tableData); }, // 琛ㄦ牸鏍戝叏閮ㄩ�変腑閰嶇疆 // 鍏ㄩ��/鍙栨秷閫夋搷浣� -- Gitblit v1.9.3