From 95a08837ef02477ff763fb31b458b182d07fcbf5 Mon Sep 17 00:00:00 2001 From: weiweiw <14335254+weiweiw22@user.noreply.gitee.com> Date: Tue, 17 Dec 2024 13:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=A0=87=E6=B3=A8=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=92=8C=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E6=A0=87=E6=B3=A8=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dataCenter/ailabelservice.js | 46 +++ src/views/dataCenter/ailabel/index.vue | 277 ++++++++++++++++++ .../annotationTask/child/allTasks.vue | 19 +- .../annotationTask/dialog/aiLabelDialog.vue | 152 ++++++++++ vue.config.js | 4 +- 5 files changed, 493 insertions(+), 5 deletions(-) create mode 100644 src/api/dataCenter/ailabelservice.js create mode 100644 src/views/dataCenter/ailabel/index.vue create mode 100644 src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue diff --git a/src/api/dataCenter/ailabelservice.js b/src/api/dataCenter/ailabelservice.js new file mode 100644 index 00000000..76af3bb1 --- /dev/null +++ b/src/api/dataCenter/ailabelservice.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +// 查询【请填写功能名称】列表 +export function list(query) { + return request({ + url: '/ai/intelligentAnnotation/service/list', + method: 'get', + params: query + }) +} + +// 查询【请填写功能名称】详细 +export function getService(id) { + return request({ + url: '/ai/intelligentAnnotation/getInfo/' + id, + method: 'get' + }) +} + +// 新增【请填写功能名称】 +export function addService(data) { + return request({ + url: '/ai/intelligentAnnotation/add', + method: 'post', + data: data + }) +} + +// 修改【请填写功能名称】 +export function updateService(data) { + return request({ + url: '/ai/intelligentAnnotation/update', + method: 'post', + data: data + }) +} + +export function delService(id) { + return request({ + url: '/ai/intelligentAnnotation/delete/' + id, + method: 'post' + }) +} + + + diff --git a/src/views/dataCenter/ailabel/index.vue b/src/views/dataCenter/ailabel/index.vue new file mode 100644 index 00000000..40fd1349 --- /dev/null +++ b/src/views/dataCenter/ailabel/index.vue @@ -0,0 +1,277 @@ + + + diff --git a/src/views/dataCenter/annotationTask/child/allTasks.vue b/src/views/dataCenter/annotationTask/child/allTasks.vue index fc5fddb3..60096512 100644 --- a/src/views/dataCenter/annotationTask/child/allTasks.vue +++ b/src/views/dataCenter/annotationTask/child/allTasks.vue @@ -104,6 +104,8 @@ v-hasPermi="['dataCenter:sample:edit']" >发布 + + @@ -131,9 +133,10 @@ import { list, setPublic } from '@/api/dataCenter/annotationTask' import addTaskDialog from '../dialog/addTaskDialog' import releaseVersionDialog from '../dialog/releaseVersionDialog.vue' import { parseTime } from '@/utils/bonus' +import AILabelDialog from "@/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue"; export default { - components: { releaseVersionDialog, addTaskDialog }, + components: {AILabelDialog, releaseVersionDialog, addTaskDialog }, name: 'allTasks', data() { return { @@ -171,7 +174,8 @@ export default { pageNum: 1, pageSize: 10, taskName: null - } + }, + showModal: false } }, created() { @@ -228,7 +232,12 @@ export default { this.releaseOpen = true }, handleDimension(row) { - this.$modal.msgSuccess('功能开发中') + const annotationInstance = this.$root.$refs.aiLabelDialog + if (annotationInstance) { + annotationInstance.show(row) + } else { + console.error('SmartAnnotation component not found') + } }, handleAnnotation(row) { this.$tab.openPage('数据标注', '/dataCenter/annotationTask/dataAnnotations/index/' + row.taskId) @@ -254,6 +263,10 @@ export default { handleCancel() { this.addOpen = false this.releaseOpen = false + }, + handleAILabelSubmit(formData) { + console.log('Form submitted:', formData) + this.showModal = false } } } diff --git a/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue b/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue new file mode 100644 index 00000000..5468728f --- /dev/null +++ b/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue @@ -0,0 +1,152 @@ + + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index ca9812fd..a588057b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://192.168.0.56:29090`, + target: `http://127.0.0.1:18080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' @@ -63,7 +63,7 @@ module.exports = { name: name, resolve: { alias: { - '@': path.resolve(__dirname, './src') + '@': resolve('src') } }, plugins: [