diff --git a/src/api/cs-device-boot/user.ts b/src/api/cs-device-boot/user.ts index bcd3b39..f30544b 100644 --- a/src/api/cs-device-boot/user.ts +++ b/src/api/cs-device-boot/user.ts @@ -53,3 +53,25 @@ export const removeMarketData = (data: any) => { params: data }) } + +/** + * 获取用户未绑定的在运的便携式设备 + */ +export const queryRunPortableDevByUseId = (data: any) => { + return createAxios({ + url: '/cs-device-boot/EquipmentDelivery/getRunPortableDev', + method: 'post', + params: data + }) +} + +/** + * 获取用户未绑定的工程信息 + */ +export const queryUnlinkEngineeringByUseId = (data: any) => { + return createAxios({ + url: '/cs-device-boot/engineering/getUnlinkedEngineering', + method: 'post', + params: data + }) +} \ No newline at end of file diff --git a/src/api/cs-system-boot/official.ts b/src/api/cs-system-boot/official.ts new file mode 100644 index 0000000..d5a1710 --- /dev/null +++ b/src/api/cs-system-boot/official.ts @@ -0,0 +1,29 @@ +import createAxios from '@/utils/request' + +// * 根据用户id查询工程和便携式设备 +export const queryDevByUseId = (data: any) => { + return createAxios({ + url: '/cs-system-boot/wlUser/selectDevByUserId', + method: 'POST', + params: data + }) +} + +// * 用户绑定工程和便携式设备 +export const add = (data: any) => { + return createAxios({ + url: '/cs-system-boot/wlUser/addUserDev', + method: 'POST', + data: data + }) +} +/** + * 用户取消绑定工程和便携式设备 + */ +export const removeUserDev = (data: any) => { + return createAxios({ + url: '/cs-system-boot/wlUser/deleteUserDev', + method: 'post', + data: data + }) +} diff --git a/src/api/user-boot/official.ts b/src/api/user-boot/official.ts new file mode 100644 index 0000000..7519302 --- /dev/null +++ b/src/api/user-boot/official.ts @@ -0,0 +1,11 @@ +import request from '@/utils/request' +/** + * 获取移动端、便携式正式用户列表 + * @returns {AxiosPromise} + */ +export const getFormalUserList = () => { + return request({ + url: '/user-boot/user/getFormalUserList', + method: 'post' + }) +} \ No newline at end of file diff --git a/src/components/tree/cloudDevice.vue b/src/components/tree/cloudDevice.vue index e43c5f1..8205d75 100644 --- a/src/components/tree/cloudDevice.vue +++ b/src/components/tree/cloudDevice.vue @@ -14,7 +14,7 @@ :class="menuCollapse ? 'unfold' : ''" size='18' class='fold ml10 menu-collapse' style='cursor: pointer' v-if='props.canExpand' /> --> - + diff --git a/src/views/govern/device/disposition/index.vue b/src/views/govern/device/disposition/index.vue index c17af6f..d799c8b 100644 --- a/src/views/govern/device/disposition/index.vue +++ b/src/views/govern/device/disposition/index.vue @@ -68,7 +68,7 @@ import { ElMessage, ElMessageBox } from 'element-plus' const pageHeight = mainHeight(20) const loading = ref(true) -const tableHeight = mainHeight(140) +const tableHeight = mainHeight(135) const user: any = ref({}) const tableData = ref([]) const tableData2 = ref([]) diff --git a/src/views/govern/device/officialUser/index.vue b/src/views/govern/device/officialUser/index.vue new file mode 100644 index 0000000..62c1b3a --- /dev/null +++ b/src/views/govern/device/officialUser/index.vue @@ -0,0 +1,331 @@ + + + + + \ No newline at end of file