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 @@ + + + +