diff --git a/src/api/perception-devices/attribute-config.js b/src/api/perception-devices/attribute-config.js new file mode 100644 index 00000000..672dcd16 --- /dev/null +++ b/src/api/perception-devices/attribute-config.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +/* 感知设备 ---- 属性配置接口 */ + +// 列表接口 +export const getAttributeConfigListAPI = (data) => { + return request.post('/xxx', data) +} +// 新增接口 +export const addAttributeConfigDataAPI = (data) => { + return request.post('/xxx', data) +} +// 修改接口 +export const editAttributeConfigDataAPI = (data) => { + return request.post('/xxx', data) +} +// 删除接口 +export const deleteAttributeConfigDataAPI = (data) => { + return request.post('/xxx', data) +} diff --git a/src/views/perception-devices/attribute-config/components/add-edit-form.vue b/src/views/perception-devices/attribute-config/components/add-edit-form.vue new file mode 100644 index 00000000..6ede6fab --- /dev/null +++ b/src/views/perception-devices/attribute-config/components/add-edit-form.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/src/views/perception-devices/attribute-config/config.js b/src/views/perception-devices/attribute-config/config.js new file mode 100644 index 00000000..0bcec210 --- /dev/null +++ b/src/views/perception-devices/attribute-config/config.js @@ -0,0 +1,18 @@ +export const formLabel = [{ f_label: '搜索关键词', f_model: 'proName', f_type: 'ipt', isShow: false }] +export const columnsList = [ + { t_props: 'projectName', t_label: 'ID' }, + { t_props: 'address', t_label: '设备ID' }, + { t_props: 'planStartTime', t_label: '属性ID' }, + { t_props: 'planEndTime', t_label: '属性名称' }, + { t_props: 'ownerUnit', t_label: '描述' }, + { t_props: 'auditStatus', t_label: '数据类型' }, + { t_props: 'auditStatus', t_label: '单位' }, + { t_props: 'auditStatus', t_label: '属性值' }, + { t_props: 'auditStatus', t_label: '创建时间' }, +] + +export const dialogConfig = { + outerWidth: '50%', + outerTitle: '新增', + outerVisible: false, +} diff --git a/src/views/perception-devices/attribute-config/index.vue b/src/views/perception-devices/attribute-config/index.vue index 885d85d0..d5eeb52f 100644 --- a/src/views/perception-devices/attribute-config/index.vue +++ b/src/views/perception-devices/attribute-config/index.vue @@ -1,9 +1,89 @@