diff --git a/src/api/perception-devices/attribute-config.js b/src/api/perception-devices/attribute-config.js deleted file mode 100644 index 672dcd16..00000000 --- a/src/api/perception-devices/attribute-config.js +++ /dev/null @@ -1,20 +0,0 @@ -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/api/perception-devices/construction-site.js b/src/api/perception-devices/construction-site.js new file mode 100644 index 00000000..afcf36fe --- /dev/null +++ b/src/api/perception-devices/construction-site.js @@ -0,0 +1,23 @@ +import request from '@/utils/request' +import requestNew from '@/utils/request-new' + +/* 感知设备 ---- 施工现场接口 */ + +// 列表接口 +export const getConstructionSiteListAPI = (data) => { + return request.get('/smart-site/constInfo/getPageList', { + params: data, + }) +} +// 新增接口 +export const addConstructionSiteDataAPI = (data) => { + return requestNew.post('/smart-site/constInfo/insertData', data) +} +// 修改接口 +export const editConstructionSiteDataAPI = (data) => { + return requestNew.post('/smart-site/constInfo/updateData', data) +} +// 删除接口 +export const deleteConstructionSiteDataAPI = (data) => { + return request.post('/smart-site/constInfo/delData', 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 deleted file mode 100644 index 6ede6fab..00000000 --- a/src/views/perception-devices/attribute-config/components/add-edit-form.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - - diff --git a/src/views/perception-devices/attribute-config/config.js b/src/views/perception-devices/attribute-config/config.js deleted file mode 100644 index 0bcec210..00000000 --- a/src/views/perception-devices/attribute-config/config.js +++ /dev/null @@ -1,18 +0,0 @@ -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 deleted file mode 100644 index d5eeb52f..00000000 --- a/src/views/perception-devices/attribute-config/index.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - - - diff --git a/src/views/perception-devices/construction-site/components/add-edit-form.vue b/src/views/perception-devices/construction-site/components/add-edit-form.vue new file mode 100644 index 00000000..89e23e95 --- /dev/null +++ b/src/views/perception-devices/construction-site/components/add-edit-form.vue @@ -0,0 +1,341 @@ + + + + + diff --git a/src/views/perception-devices/construction-site/config.js b/src/views/perception-devices/construction-site/config.js new file mode 100644 index 00000000..645566d0 --- /dev/null +++ b/src/views/perception-devices/construction-site/config.js @@ -0,0 +1,17 @@ +export const formLabel = [ + { f_label: '搜索关键词', f_model: 'keyWord', f_type: 'ipt', isShow: false }, + { f_label: '设备类型', f_model: 'deviceType', f_type: 'sel', isShow: false }, +] +export const columnsList = [ + { t_props: 'name', t_label: '施工信息' }, + { t_props: 'typeName', t_label: '设备名称' }, + { t_props: 'code', t_label: '设备编码' }, + { t_props: 'isActive', t_label: '是否启用', t_slot: 'isActive' }, + { t_props: 'remark', t_label: '备注' }, +] + +export const dialogConfig = { + outerWidth: '50%', + outerTitle: '设备新增', + outerVisible: false, +} diff --git a/src/views/perception-devices/construction-site/index.vue b/src/views/perception-devices/construction-site/index.vue new file mode 100644 index 00000000..cbc19829 --- /dev/null +++ b/src/views/perception-devices/construction-site/index.vue @@ -0,0 +1,142 @@ + + + + + diff --git a/src/views/perception-devices/equipment-manage/config.js b/src/views/perception-devices/equipment-manage/config.js index c107ad80..2a0c62e4 100644 --- a/src/views/perception-devices/equipment-manage/config.js +++ b/src/views/perception-devices/equipment-manage/config.js @@ -1,7 +1,25 @@ export const formLabel = [ { f_label: '搜索关键词', f_model: 'proName', f_type: 'ipt', isShow: false }, - { f_label: '设备状态', f_model: 'relUser', f_type: 'sel', isShow: false }, - { f_label: '设备启用', f_model: 'relUser', f_type: 'sel', isShow: false }, + { + f_label: '设备状态', + f_model: 'isOnline', + f_type: 'sel', + isShow: false, + f_selList: [ + { label: '在线', value: '1' }, + { label: '离线', value: '0' }, + ], + }, + { + f_label: '是否启用', + f_model: 'isActive', + f_type: 'sel', + isShow: false, + f_selList: [ + { label: '启用', value: '1' }, + { label: '禁用', value: '0' }, + ], + }, ] export const columnsList = [ // { t_props: 'projectName', t_label: '所属工程' },