diff --git a/package.json b/package.json index f4f6111..49a6cbf 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", "nprogress": "0.2.0", + "qrcode": "^1.5.3", "quill": "1.3.7", "screenfull": "5.0.2", "sortablejs": "1.10.2", diff --git a/src/api/base/bracelet.js b/src/api/base/bracelet.js new file mode 100644 index 0000000..7ad5917 --- /dev/null +++ b/src/api/base/bracelet.js @@ -0,0 +1,149 @@ +import request from '@/utils/request' + +// 查询列表 +export function listBracelet(query) { + return request({ + url: '/bracelet/bracelet/list', + method: 'get', + params: query + }) +} + +// 查询手环箱列表 +export function listShbox(query) { + return request({ + url: '/bracelet/bracelet/listShbox', + method: 'get', + params: query + }) +} + +// 查询手环箱管理页面手环箱列表 +export function listShboxall(query) { + return request({ + url: '/bracelet/bracelet/listShboxall', + method: 'get', + params: query + }) +} + +// 查询手环绑定选择列表 +export function listShboxBind(query) { + return request({ + url: '/bracelet/bracelet/listShboxBind', + method: 'get', + params: query + }) +} + +// 查询手环箱管理页面手环列表 +export function listShBind(query) { + return request({ + url: '/bracelet/bracelet/listShBind', + method: 'get', + params: query + }) +} + +// 添加手环 +export function addSh(data) { + return request({ + url: '/bracelet/bracelet/addSh', + method: 'post', + data: data + }) +} + +// 手环箱管理页面添加手环箱 +export function addBox(data) { + return request({ + url: '/bracelet/bracelet/addBox', + method: 'post', + data: data + }) +} + +// 手环绑定选择页面绑定手环 +export function addShBind(data) { + return request({ + url: '/bracelet/bracelet/addShBind', + method: 'post', + data: data + }) +} + + + +// 修改 +export function editSh(data) { + return request({ + url: '/bracelet/bracelet/editSh', + method: 'post', + data: data + }) +} + +// 手环箱管理页面修改 +export function editBox(data) { + return request({ + url: '/bracelet/bracelet/editBox', + method: 'post', + data: data + }) +} + + +// 解除绑定 +export function delSh(data) { + return request({ + url: '/bracelet/bracelet/delSh', + method: 'post', + data: data + }) +} + + +// 删除 +export function delShById(data) { + return request({ + url: '/bracelet/bracelet/delShById', + method: 'post', + data: data + }) +} + +// 删除 +export function delShboxById(data) { + return request({ + url: '/bracelet/bracelet/delShboxById', + method: 'post', + data: data + }) +} + +// 详情 +export function getBoxInfo(shboxId) { + return request({ + url: '/bracelet/bracelet/' + shboxId, + method: 'get', + }) +} + +// 导出 +export function exportDevice(query) { + return request({ + url: '/bracelet/export/exportDevice', + method: 'get', + responseType: 'blob', + params: query + }) +} + +// 查询班组成员列表 +export function getWorkPersonList(query) { + return request({ + url: '/bracelet/team/getWorkPersonList', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/device.js b/src/api/base/device.js new file mode 100644 index 0000000..e27f8a6 --- /dev/null +++ b/src/api/base/device.js @@ -0,0 +1,75 @@ +import request from '@/utils/request' + +// 查询列表 +export function listDevcie(query) { + return request({ + url: '/bracelet/device/list', + method: 'get', + params: query + }) +} + +// 查询人员 +export function getPersonList(data) { + return request({ + url: '/bracelet/team/getPersonList', + method: 'post', + data: data + }) +} + +// 添加 +export function addDevice(data) { + return request({ + url: '/bracelet/device/addDevice', + method: 'post', + data: data + }) +} + +// 详情 +export function getDeviceInfo(deviceId) { + return request({ + url: '/bracelet/device/' + deviceId, + method: 'get', + }) +} + +// 修改 +export function editDevice(data) { + return request({ + url: '/bracelet/device/editDevice', + method: 'post', + data: data + }) +} + +// 删除 +export function delDevice(data) { + return request({ + url: '/bracelet/device/delDevice', + method: 'post', + data: data + }) +} + + + +// 导出 +export function exportDevice(query) { + return request({ + url: '/bracelet/export/exportDevice', + method: 'get', + responseType: 'blob', + params: query + }) +} + +// 查询班组成员列表 +export function getWorkPersonList(query) { + return request({ + url: '/bracelet/team/getWorkPersonList', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/construction/sideband.js b/src/api/construction/sideband.js new file mode 100644 index 0000000..7eb1210 --- /dev/null +++ b/src/api/construction/sideband.js @@ -0,0 +1,95 @@ +import request from '@/utils/request' + +// 查询列表 +export function listSideband(query) { + return request({ + url: '/bracelet/sideband/list', + method: 'get', + params: query + }) +} + +// 查询杆塔绑定列表 +export function listDevice(query) { + return request({ + url: '/bracelet/sideband/listDevice', + method: 'get', + params: query + }) +} + +//查询未绑定杆塔列表 +export function listDeviceNoBind(query) { + return request({ + url: '/bracelet/sideband/listDeviceNoBind', + method: 'get', + params: query + }) +} + +// 新增 +export function addSideband(data) { + return request({ + url: '/bracelet/sideband/addSideband', + method: 'post', + data: data + }) +} + +// 编辑 +export function editSideband(data) { + return request({ + url: '/bracelet/sideband/editSideband', + method: 'post', + data: data + }) +} + +// 详情 +export function getSidebandInfo(sidebandId) { + return request({ + url: '/bracelet/sideband/' + sidebandId, + method: 'get' + }) +} + +// 删除 +export function delSideband(data) { + return request({ + url: '/bracelet/sideband/delSideband', + method: 'post', + data: data + }) +} + +// 解除绑定 +export function delDevice(data) { + return request({ + url: '/bracelet/sideband/delDevice', + method: 'post', + data: data + }) +} + +//绑定 +export function bindDevice(data) { + return request({ + url: '/bracelet/sideband/bindDevice', + method: 'post', + data:data + }) +} + +// 导出 +export function exportPerson(query) { + return request({ + url: '/bracelet/export/exportPerson', + method: 'get', + responseType: 'blob', + params: query + }) +} + + + + diff --git a/src/api/select.js b/src/api/select.js index 5eaaa35..c474f7f 100644 --- a/src/api/select.js +++ b/src/api/select.js @@ -9,6 +9,14 @@ export function getProList(query) { }) } +export function getGtList(query) { + return request({ + url: '/bracelet/sideband/getGtList', + method: 'get', + params: query + }) +} + diff --git a/src/views/base/bracelet/index.vue b/src/views/base/bracelet/index.vue new file mode 100644 index 0000000..a21cb8d --- /dev/null +++ b/src/views/base/bracelet/index.vue @@ -0,0 +1,1294 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 新增手环 + + + 导出数据 + + + + + + + + + + + + {{ scope.row.shboxName }} + 解绑 + + + {{ scope.row.shboxName }} + 绑定 + + + + + + {{ stateList[Number(scope.row.shStatus)] }} + {{ stateList[Number(scope.row.shStatus)] }} + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} + + + + + + + + + + + + + + + + + + + + + + 查询 + + + + + + + + + + {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 新增手环箱 + + + 导出二维码 + + + + + + + + + + + + + + {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} + + + + + + + + 查看 + + + + + {{ stateList[Number(scope.row.shboxStatus)] }} + {{ stateList[Number(scope.row.shboxStatus)] }} + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + {{ stateList[Number(scope.row.shStatus)] }} + {{ stateList[Number(scope.row.shStatus)] }} + + + + + + 解除绑定 + + + + + + + + + + + + + + + + 查询 + + + + + + + + + + {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 个 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/base/device/index.vue b/src/views/base/device/index.vue new file mode 100644 index 0000000..707defc --- /dev/null +++ b/src/views/base/device/index.vue @@ -0,0 +1,572 @@ + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 新增设备 + + + 导出数据 + + + + + + + + + + + + + + 查看 + + + + + {{ stateList[Number(scope.row.deviceStatus)] }} + {{ stateList[Number(scope.row.deviceStatus)] }} + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + 查询 + + + + + + 绑定设备 + + + + + + + + + + + + + {{ stateList[Number(scope.row.deviceStatus)] }} + {{ stateList[Number(scope.row.deviceStatus)] }} + + + + + + 解除绑定 + + + + + + + + + + + + + + + + 查询 + 绑定 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/base/project/index.vue b/src/views/base/project/index.vue index 282a7a6..3b99743 100644 --- a/src/views/base/project/index.vue +++ b/src/views/base/project/index.vue @@ -78,7 +78,7 @@ - 1 + {{ scope.row.appnum }} diff --git a/src/views/construction/sideband/index.vue b/src/views/construction/sideband/index.vue new file mode 100644 index 0000000..174f059 --- /dev/null +++ b/src/views/construction/sideband/index.vue @@ -0,0 +1,689 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 新增边带 + + + + + + + + + + + + + + + + + {{ scope.row.bindNum}} + + + + + + + 编辑 + 删除 + + + + + + + + + + + + + + 查询 + + + + + + 绑定设备 + + + + + + + + + + + + + {{ stateList[Number(scope.row.deviceStatus)] }} + {{ stateList[Number(scope.row.deviceStatus)] }} + + + + + + 解除绑定 + + + + + + + + + + + + + + + + 查询 + 绑定 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 0b7e8a7..ca301b0 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -100,7 +100,7 @@ - + {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }} diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 035fdeb..4a653bc 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -68,7 +68,7 @@ - + {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}