From 6472e9adcbb184faf4cb5b023e8acc4f6b7fdd17 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 5 Jan 2024 17:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E6=A3=80=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/behavior.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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){