提交代码

This commit is contained in:
jiang 2024-12-18 13:04:23 +08:00
parent 624ee45a02
commit 877bd97af6
1 changed files with 9 additions and 8 deletions

View File

@ -49,8 +49,8 @@
</template> </template>
<script> <script>
import {list, listWithNoPage} from '../../../../api/dataCenter/ailabelservice' import { list, listWithNoPage } from '../../../../api/dataCenter/ailabelservice'
import { autoAnnotate } from '../../../../api/dataCenter/ailabelservice'; import { autoAnnotate } from '../../../../api/dataCenter/ailabelservice'
export default { export default {
props: { props: {
@ -89,7 +89,7 @@ export default {
algorithmType: 'fast', algorithmType: 'fast',
serviceId: '' // Initialize serviceId serviceId: '' // Initialize serviceId
}, },
serviceList:[], serviceList: [],
showWarning: true, showWarning: true,
currentRow: null currentRow: null
} }
@ -105,7 +105,7 @@ export default {
methods: { methods: {
getServiceList() { getServiceList() {
listWithNoPage().then(response => { listWithNoPage().then(response => {
console.log("response" + response.data) console.log('response' + response.data)
this.serviceList = response.data this.serviceList = response.data
if (this.serviceList.length > 0) { if (this.serviceList.length > 0) {
this.form.serviceId = this.serviceList[0].serviceId this.form.serviceId = this.serviceList[0].serviceId
@ -115,9 +115,9 @@ export default {
async handleSubmit() { async handleSubmit() {
try { try {
this.loading = true this.loading = true
const data = {taskId:this.taskId, intelligentAnnotationServiceId:this.form.serviceId} const data = { taskId: this.taskId, intelligentAnnotationServiceId: this.form.serviceId }
autoAnnotate(data).then(response => { autoAnnotate(data).then(response => {
console.log("response" + response.data) console.log('response' + response.data)
this.serviceList = response.data this.serviceList = response.data
this.$message.success('智能标注成功') this.$message.success('智能标注成功')
}) })
@ -139,9 +139,10 @@ export default {
this.form = { this.form = {
learningType: 'pre', learningType: 'pre',
algorithmType: 'fast', algorithmType: 'fast',
serviceList: '' serviceId: undefined
} // } //
}, this.serviceList = []
}
} }
} }
</script> </script>