diff --git a/src/api/design/dic/index.ts b/src/api/design/dic/index.ts index 1f76315..9dbaa3b 100644 --- a/src/api/design/dic/index.ts +++ b/src/api/design/dic/index.ts @@ -29,3 +29,8 @@ export const getUserSelectDeptList = (type) => { export const getUserSelectRoleList = () => { return request.get({ url: `/lideeyunji/adapter/role/list` }) } + +//获取设备类型选择器列表 +export const getSblxSelectList = () => { + return request.get({ url: `/system/sblx/simple-list` }) +} diff --git a/src/api/system/sblx/index.ts b/src/api/system/sblx/index.ts new file mode 100644 index 0000000..ec94e23 --- /dev/null +++ b/src/api/system/sblx/index.ts @@ -0,0 +1,40 @@ +import request from '@/config/axios' + +export interface SblxVO { + id?: number + industryName: string + industryCode: string + parentId: number + sort: number + createTime: Date +} + +// 查询设备类型(精简)列表 +export const getSimpleSblxList = async (): Promise => { + return await request.get({ url: '/system/sblx/simple-list' }) +} + +// 查询设备类型列表 +export const getSblxPage = async (params: PageParam) => { + return await request.get({ url: '/system/sblx/list', params }) +} + +// 查询设备类型详情 +export const getSblx = async (id: number) => { + return await request.get({ url: '/system/sblx/get?id=' + id }) +} + +// 新增设备类型 +export const createSblx = async (data: SblxVO) => { + return await request.post({ url: '/system/sblx/create', data: data }) +} + +// 修改设备类型 +export const updateSblx = async (params: SblxVO) => { + return await request.put({ url: '/system/sblx/update', data: params }) +} + +// 删除设备类型 +export const deleteSblx = async (id: number) => { + return await request.delete({ url: '/system/sblx/delete?id=' + id }) +} \ No newline at end of file diff --git a/src/components/LowDesign/src/LowForm/components/ComboBox.vue b/src/components/LowDesign/src/LowForm/components/ComboBox.vue index 214a8b5..088c2d2 100644 --- a/src/components/LowDesign/src/LowForm/components/ComboBox.vue +++ b/src/components/LowDesign/src/LowForm/components/ComboBox.vue @@ -295,8 +295,10 @@ defineExpose({ validate }) &.control-tree, &.control-cascader, &.control-regionSelect, + &.control-sblxSelect, &.control-userSelect, &.control-deptSelect, + &.control-sblxSelect, &.control-dicTableSelect, &.control-map, &.control-color, diff --git a/src/components/LowDesign/src/LowTable/components/InlineSearch.vue b/src/components/LowDesign/src/LowTable/components/InlineSearch.vue index c6cde79..93fb9e1 100644 --- a/src/components/LowDesign/src/LowTable/components/InlineSearch.vue +++ b/src/components/LowDesign/src/LowTable/components/InlineSearch.vue @@ -116,7 +116,7 @@ const dateType = [ ] const treeType = ['tree', 'cascader'] const selectType = ['select', 'radio', 'checkbox', 'switch'] -const avueSlotType = ['userSelect', 'deptSelect', 'dicTableSelect'] +const avueSlotType = ['userSelect', 'deptSelect', 'sblxSelect', 'dicTableSelect'] const changeType = [...timeType, ...dateType, ...treeType, ...selectType, ...avueSlotType] const vBind = computed(() => { diff --git a/src/components/LowDesign/src/shareControl/AvueSlot.vue b/src/components/LowDesign/src/shareControl/AvueSlot.vue index 6f033de..cf34b97 100644 --- a/src/components/LowDesign/src/shareControl/AvueSlot.vue +++ b/src/components/LowDesign/src/shareControl/AvueSlot.vue @@ -27,6 +27,20 @@ @set-form-data="setFormData" > +