From 208c0aee5cc91b97ac1b6082b9c02c4ac17cf033 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 27 Nov 2024 14:28:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:coding#560=E4=BA=8C=E3=80=811=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E6=A3=80=E9=AA=8C=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/behavior.vue | 360 ++++++++++++++++----------------- src/views/qm/behavior_form.vue | 14 +- 2 files changed, 183 insertions(+), 191 deletions(-) diff --git a/src/views/qm/behavior.vue b/src/views/qm/behavior.vue index 866669eb..2a0280bf 100644 --- a/src/views/qm/behavior.vue +++ b/src/views/qm/behavior.vue @@ -11,16 +11,31 @@ >
+ + + +
- - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -287,7 +269,6 @@ export default { }, ], }, - activeId: "3442815297965547520", activeName: "折射率", visible: false, isSaveing: false, @@ -311,11 +292,14 @@ export default { that.apiObj = that.$API.qm.ptest.list; }); }, - handleClick(val) { - this.activeId = val.props.name; - this.activeName = val.props.label; - this.query.testitem = val.props.name; - this.$refs.table.refresh(); + testitemChange(){ + let that = this; + that.behaviors.forEach((item) => { + if(item.id==that.query.testitem){ + that.activeName = item.name; + } + that.$refs.table.refresh(); + }) }, add() { this.visible = true; diff --git a/src/views/qm/behavior_form.vue b/src/views/qm/behavior_form.vue index 6b95f43b..aba5e66f 100644 --- a/src/views/qm/behavior_form.vue +++ b/src/views/qm/behavior_form.vue @@ -7,7 +7,7 @@ @closed="$emit('closed')" > - + { + if(item.id==that.form.testitem){ + that.activeName = item.name; + } + }) + }, handleClick() {}, //提交 submit() {