From 7ecc73131e1d9f6ef570b6238969bdb2a008aa3c Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 22 Dec 2025 13:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E6=9C=AC=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/data/sample.js | 46 ++++ .../data/sample/components/SampleForm.vue | 244 ++++++++++++++++++ src/views/data/sample/config.js | 19 ++ src/views/data/sample/index.vue | 154 +++++++++++ 4 files changed, 463 insertions(+) create mode 100644 src/api/data/sample.js create mode 100644 src/views/data/sample/components/SampleForm.vue create mode 100644 src/views/data/sample/config.js create mode 100644 src/views/data/sample/index.vue diff --git a/src/api/data/sample.js b/src/api/data/sample.js new file mode 100644 index 0000000..3ef2d82 --- /dev/null +++ b/src/api/data/sample.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +// 数据管理->样本库管理->查询样本库列表 +export function sampleListAPI(params) { + return request({ + url: '/smartPlatform/data/sample/getSampleList', + method: 'GET', + params + }) +} + +// 数据管理->样本库管理->新增样本库 +export function addSampleDataAPI(data) { + return request({ + url: '/smartPlatform/data/sample/addSampleData', + method: 'post', + data + }) +} + +// 数据管理->样本库管理->修改样本库 +export function editSampleDataAPI(data) { + return request({ + url: '/smartPlatform/data/sample/editSampleData', + method: 'post', + data + }) +} + +// 数据管理->样本库管理->删除样本库 +export function delSampleDataAPI(data) { + return request({ + url: '/smartPlatform/data/sample/delSampleData', + method: 'post', + data + }) +} + +// 数据管理->样本库管理->样本库详情 +export function getSampleDetailAPI(params) { + return request({ + url: '/smartPlatform/data/sample/getSampleDetail', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/src/views/data/sample/components/SampleForm.vue b/src/views/data/sample/components/SampleForm.vue new file mode 100644 index 0000000..aa979b6 --- /dev/null +++ b/src/views/data/sample/components/SampleForm.vue @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 确认 + 取消 + + + + + \ No newline at end of file diff --git a/src/views/data/sample/config.js b/src/views/data/sample/config.js new file mode 100644 index 0000000..efe6318 --- /dev/null +++ b/src/views/data/sample/config.js @@ -0,0 +1,19 @@ +export const formLabel = [ + { + isShow: false, // 是否展示label + f_type: 'ipt', + f_label: '样本库名称', + f_model: 'proName', + f_max: 32, + f_width: '250px', + }, +] + +export const columnsList = [ + { t_props: 'sampleLibraryName', t_label: '样本库名称' }, + { t_props: 'sampleLibraryLabel', t_label: '样本标签' }, + { t_props: 'sampleLibraryType', t_label: '数据类型' }, + { t_slot: 'sampleLibraryNum', t_label: '数据量' }, + { t_props: 'sampleLibraryDesc', t_label: '描述' }, + { t_props: 'updateTime', t_label: '更新时间' }, +] \ No newline at end of file diff --git a/src/views/data/sample/index.vue b/src/views/data/sample/index.vue new file mode 100644 index 0000000..55732a2 --- /dev/null +++ b/src/views/data/sample/index.vue @@ -0,0 +1,154 @@ + + + + + + + 数据列表 + + + 新建样本库 + + + + {{ data.sampleLibraryNum }} + + + + 导入 + + + 修改 + + + 删除 + + + + + + + + + + +