diff --git a/src/api/system/appManage.js b/src/api/system/appManage.js new file mode 100644 index 0000000..67bba1d --- /dev/null +++ b/src/api/system/appManage.js @@ -0,0 +1,64 @@ +import request from '@/utils/request' + +/** + * 查询App版本列表 + * @param {Object} query - 查询参数 + * @returns {Promise} + */ +export function listAppVersion(query) { + return request({ + url: '/system/appVersion/list', + method: 'get', + params: query, + }) +} + +/** + * 查询App版本详情 + * @param {Number} id - 版本ID + * @returns {Promise} + */ +export function getAppVersion(id) { + return request({ + url: '/system/appVersion/' + id, + method: 'get', + }) +} + +/** + * 新增App版本 + * @param {Object} data - 版本数据 + * @returns {Promise} + */ +export function addAppVersion(data) { + return request({ + url: '/system/appVersion', + method: 'post', + data: data, + }) +} + +/** + * 修改App版本 + * @param {Object} data - 版本数据 + * @returns {Promise} + */ +export function updateAppVersion(data) { + return request({ + url: '/system/appVersion/edit', + method: 'post', + data: data, + }) +} + +/** + * 删除App版本 + * @param {Number} id - 版本ID + * @returns {Promise} + */ +export function delAppVersion(id) { + return request({ + url: '/system/appVersion/delete/' + id, + method: 'post', + }) +} diff --git a/src/components/TableModel/index.vue b/src/components/TableModel/index.vue index d2f37e2..124e7ba 100644 --- a/src/components/TableModel/index.vue +++ b/src/components/TableModel/index.vue @@ -70,7 +70,7 @@ /> - - + + + + + + + + + + - 是 - 否 - + + @@ -145,7 +160,7 @@ clearable maxlength="60" show-word-limit - placeholder="请输入总工程名称" + placeholder="请输入工程地址" v-model="addOrEditForm.proAddress" /> @@ -163,7 +178,7 @@ - + - + @@ -209,7 +224,12 @@ import { } from '@/utils/getCommonData' export default { name: 'AddOrEditForm', - dicts: ['project_status', 'project_type', 'voltage_level'], + dicts: [ + 'project_status', + 'project_type', + 'voltage_level', + 'project_action', + ], components: { Treeselect }, props: { // 编辑表单数据 @@ -262,9 +282,10 @@ export default { mainProId: '', // 总包工程id startTime: null, // 开工时间 proAddress: '', // 工程地址 - isShanghai: 0, // 是否上海项目 + isShanghai: '', // 是否上海项目 simpleName: '', // 标段工程简称 }, + isShanghaiOptions: [], addOrEditFormRules: { mainProId: [ { diff --git a/src/views/basic-manage/project-manage/lot-project/config.js b/src/views/basic-manage/project-manage/lot-project/config.js index a5077b9..8e48fb9 100644 --- a/src/views/basic-manage/project-manage/lot-project/config.js +++ b/src/views/basic-manage/project-manage/lot-project/config.js @@ -31,18 +31,25 @@ export const formLabel = [ isShow: false, // 是否展示label f_type: 'sel', f_model: 'isShanghai', - f_label: '是否上海外项目', + f_label: '工程所在地', f_selList: [ - { - label: '是', - value: 1, - }, - { - label: '否', - value: 0, - }, + // { + // label: '是', + // value: 1, + // }, + // { + // label: '否', + // value: 0, + // }, ], }, + { + f_label: '创建时间', + f_model: 'createTime', + f_type: 'date', + f_width: '180px', + isShow: false, // 是否展示label + }, ] export const columnsList = [ @@ -53,6 +60,7 @@ export const columnsList = [ { t_props: 'volLevel', t_label: '电压等级' }, { t_props: 'proAddress', t_label: '工程地址' }, { t_slot: 'proStatus', t_label: '状态' }, + { t_props: 'createTime', t_label: '创建时间' }, ] export const dialogConfig = { diff --git a/src/views/basic-manage/project-manage/lot-project/index.vue b/src/views/basic-manage/project-manage/lot-project/index.vue index c42cb4c..2860006 100644 --- a/src/views/basic-manage/project-manage/lot-project/index.vue +++ b/src/views/basic-manage/project-manage/lot-project/index.vue @@ -127,7 +127,7 @@ import { } from '@/utils/getCommonData' export default { name: 'Lot-project', - dicts: ['project_type', 'project_status'], + dicts: ['project_type', 'project_status', 'project_action'], components: { TableModel, DialogModel, @@ -343,6 +343,10 @@ export default { } }) } + + if (item.f_model === 'isShanghai') { + item.f_selList = this.dict.type.project_action + } }) }, } diff --git a/src/views/construction-person/entry-and-exit-manage/person-entry/config.js b/src/views/construction-person/entry-and-exit-manage/person-entry/config.js index 3f80c1a..b37cf87 100644 --- a/src/views/construction-person/entry-and-exit-manage/person-entry/config.js +++ b/src/views/construction-person/entry-and-exit-manage/person-entry/config.js @@ -69,6 +69,23 @@ export const formLabel = [ }, ], // 状态列表 }, + { + f_label: '红绿灯状态', + f_model: 'lightStatus', + f_type: 'sel', + f_width: '180px', + isShow: false, // 是否展示label + f_selList: [ + { + label: '绿灯', + value: '2', + }, + { + label: '黄灯', + value: '1', + }, + ], // 状态列表 + }, ] export const columnsList = [ diff --git a/src/views/construction-person/entry-and-exit-manage/person-entry/index.vue b/src/views/construction-person/entry-and-exit-manage/person-entry/index.vue index cd2962f..f617eff 100644 --- a/src/views/construction-person/entry-and-exit-manage/person-entry/index.vue +++ b/src/views/construction-person/entry-and-exit-manage/person-entry/index.vue @@ -63,7 +63,7 @@ icon="el-icon-setting" @click="onHandleShanghaiPersonMultiEngineSetting()" > - 上海人员多工程设置 + 人员同时入场多个工程设置 - + - 上海人员多工程设置 + 人员同时入场多个工程设置 1. 请确保该人员已经入场一个上海工程 2. @@ -53,10 +53,10 @@ 新增入场工程 - 上海人员多工程设置明细 + 人员同时入场多个工程设置明细 - 上海人员多工程设置 + 人员同时入场多个工程设置 1. 请确保该人员已经入场一个上海工程 2. diff --git a/src/views/construction-person/face-query/components/leftTree.vue b/src/views/construction-person/face-query/components/leftTree.vue new file mode 100644 index 0000000..9fb1de6 --- /dev/null +++ b/src/views/construction-person/face-query/components/leftTree.vue @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + {{ node.label }} + + + + + + + + + + + + diff --git a/src/views/construction-person/face-query/components/rightTable.vue b/src/views/construction-person/face-query/components/rightTable.vue new file mode 100644 index 0000000..df7146a --- /dev/null +++ b/src/views/construction-person/face-query/components/rightTable.vue @@ -0,0 +1,813 @@ + + + + + + + + 批量删除 + + + 下发 + + + + {{ + refreshCountdown > 0 + ? `刷新(${refreshCountdown}s)` + : '刷新' + }} + + + + + 删除 + + + + + + + + + + 在库 + + + 不在库 + + + + + + + + + + + + + {{ `${allSelect ? '取消全选' : '全选'}` }} + + + + + + {{ item.name }} + + + + + + + {{ item.name }} + + + + + + + 取消 + + + 确定 + + + + + + + + + + + + + + + + + + + + + 取消 + + + 确定 + + + + + + + + + + diff --git a/src/views/construction-person/face-query/components/taskHistoryList.vue b/src/views/construction-person/face-query/components/taskHistoryList.vue new file mode 100644 index 0000000..05a460e --- /dev/null +++ b/src/views/construction-person/face-query/components/taskHistoryList.vue @@ -0,0 +1,274 @@ + + + + + + + + 批量删除 + + + + + 待执行 + + + 执行中 + + + 已完成 + + + 任务繁忙-人员占用 + + + 失败 + + + + + + + + + + + diff --git a/src/views/construction-person/face-query/components/taskList.vue b/src/views/construction-person/face-query/components/taskList.vue new file mode 100644 index 0000000..8f46f2e --- /dev/null +++ b/src/views/construction-person/face-query/components/taskList.vue @@ -0,0 +1,271 @@ + + + + + + + + 批量删除 + + + + + 待执行 + + + 执行中 + + + 已完成 + + + 任务繁忙-人员占用 + + + 失败 + + + + + + + + + + + diff --git a/src/views/construction-person/face-query/index.vue b/src/views/construction-person/face-query/index.vue new file mode 100644 index 0000000..690afed --- /dev/null +++ b/src/views/construction-person/face-query/index.vue @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + 人员列表 + + + 任务列表 + + + 任务历史 + + + + + + + 当前节点: + {{ + selectedNodeName || '未选择' + }} + + + + + + + + + + + + + + + + diff --git a/src/views/system/AppManage/index.vue b/src/views/system/AppManage/index.vue new file mode 100644 index 0000000..356b21c --- /dev/null +++ b/src/views/system/AppManage/index.vue @@ -0,0 +1,388 @@ + + + + + App版本管理 + + + + + + 新增 + + + + + + + + {{ + (queryParams.pageNum - 1) * + queryParams.pageSize + + scope.$index + + 1 + }} + + + + + + + + {{ parseTime(scope.row.updateTime) }} + + + + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/system/AttMacManage/components/leftTree.vue b/src/views/system/AttMacManage/components/leftTree.vue index a58516b..9fb1de6 100644 --- a/src/views/system/AttMacManage/components/leftTree.vue +++ b/src/views/system/AttMacManage/components/leftTree.vue @@ -89,9 +89,25 @@ export default { } }, // 树节点过滤 - filterNode(value, data) { + filterNode(value, data, node) { if (!value) return true - return data.name.indexOf(value) !== -1 + // 如果当前节点匹配,返回 true(节点会显示) + if (data.name && data.name.indexOf(value) !== -1) { + return true + } + // 如果当前节点不匹配,检查其父节点是否匹配 + // 如果父节点匹配,当前节点也应该显示(作为匹配节点的子节点) + let parent = node.parent + while (parent && parent.data) { + if ( + parent.data.name && + parent.data.name.indexOf(value) !== -1 + ) { + return true + } + parent = parent.parent + } + return false }, // 树节点点击事件 handleNodeClick(data) { diff --git a/src/views/system/AttMacManage/components/rightTable.vue b/src/views/system/AttMacManage/components/rightTable.vue index 725fd8a..623cd60 100644 --- a/src/views/system/AttMacManage/components/rightTable.vue +++ b/src/views/system/AttMacManage/components/rightTable.vue @@ -467,7 +467,7 @@ export default { if (res.code === 200) { this.$modal.msgSuccess('删除成功') // 刷新考勤机 - this.handleRefresh() + // this.handleRefresh() this.getTableList() } }) @@ -496,7 +496,7 @@ export default { .then((res) => { if (res.code === 200) { this.$modal.msgSuccess('批量删除成功') - this.handleRefresh() + // this.handleRefresh() this.getTableList() } }) @@ -603,7 +603,7 @@ export default { if (res.code === 200) { this.$modal.msgSuccess('下发成功') this.handleCloseSendDownDialog() - this.handleRefresh() + // this.handleRefresh() this.getTableList() } })