diff --git a/src/views/qm/behavior.vue b/src/views/qm/behavior.vue index c56d5953..0c87e68d 100644 --- a/src/views/qm/behavior.vue +++ b/src/views/qm/behavior.vue @@ -141,9 +141,9 @@ import saveDialog from './behavior_form.vue'; components:{ saveDialog }, data() { return { - apiObj: this.$API.qm.ptest.list, + apiObj: null, query: { - testitem:'3442815297965547520', + testitem:'', test_date:'' }, state_:{ @@ -180,6 +180,8 @@ import saveDialog from './behavior_form.vue'; let that = this; that.$API.qm.getTestItem.get({tag:'behavior',page:0}).then(res=>{ that.behaviors = res; + that.query.testitem = res[0].id; + that.apiObj = that.$API.qm.ptest.list; }) }, handleClick(val){