diff --git a/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue b/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue index c085547b..2eca2a0f 100644 --- a/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue +++ b/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue @@ -25,7 +25,7 @@

请选择智能标注服务节点

- + @@ -99,10 +99,6 @@ export default { isOpen(newVal) { if (newVal) { this.getServiceList() - if (this.serviceList.length > 0) { - console.log("this.form.serviceId = this.serviceList[0].serviceId") - this.form.serviceId = this.serviceList[0].serviceId - } } } }, @@ -111,6 +107,9 @@ export default { listWithNoPage().then(response => { console.log("response" + response.data) this.serviceList = response.data + if (this.serviceList.length > 0) { + this.form.serviceId = this.serviceList[0].serviceId + } }) }, async handleSubmit() { @@ -143,23 +142,6 @@ export default { serviceList: '' } // 清空表单 }, - change(value) { - // Implement any logic needed when the selection changes - console.log('Selected service ID:', value) - }, - fetchServiceList() { - try { - // Assuming you have an API call to get the service list - this.getServiceList(); - if (this.serviceList.length > 0) { - console.log("this.form.serviceId = this.serviceList[0].serviceId") - this.form.serviceId = this.serviceList[0].serviceId - } - } catch (error) { - console.error('Error fetching service list:', error) - this.$message.error('获取服务列表失败') - } - }, } }