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() {