diff --git a/src/api/company.js b/src/api/company.js index 49dd518a9..7b39b5dbe 100644 --- a/src/api/company.js +++ b/src/api/company.js @@ -143,3 +143,32 @@ export function addPositionInfo(data) { }); } /** 查询部门信息 */ +export function getDeptInfo(deptId) { + return request({ + url: `/api/company/dept/${deptId}`, + method: 'get' + }); +} +/** 更新部门信息 */ +export function updateDeptInfo(deptId, data) { + return request({ + url: `/api/company/dept/${deptId}`, + method: 'put', + data + }); +} +/** 添加部门信息 */ +export function addDeptInfo(data) { + return request({ + url: `/api/company/dept`, + method: 'post', + data + }); +} +/** 删除部门信息 */ +export function deleteDeptInfo(deptId) { + return request({ + url: `/api/company/dept/${deptId}`, + method: 'delete' + }); +} diff --git a/src/jmapNew/shape/Line/index.js b/src/jmapNew/shape/Line/index.js index f6f13d4c6..762a4dcb6 100644 --- a/src/jmapNew/shape/Line/index.js +++ b/src/jmapNew/shape/Line/index.js @@ -49,7 +49,7 @@ export default class Line2 extends Group { switch (type) { case '01': break; case '02': - this.segment.setStyle('lineDash', this.style.lineDash || [4]); + this.segment && this.segment.setStyle('lineDash', this.style.lineDash || [4]); break; } } diff --git a/src/jmapNew/theme/xian_02/menus/dialog/sectionUnLock.vue b/src/jmapNew/theme/xian_02/menus/dialog/sectionUnLock.vue index 2bcfa20d1..dfd159c89 100644 --- a/src/jmapNew/theme/xian_02/menus/dialog/sectionUnLock.vue +++ b/src/jmapNew/theme/xian_02/menus/dialog/sectionUnLock.vue @@ -98,15 +98,27 @@ export default { this.$store.dispatch('training/emitTipFresh'); }, commit() { - this.$store.dispatch('menuOperation/pushRequestList', { - device: this.selected, - operation: { code: OperationEvent.Section.unlock.menu.operation, name: '区段解锁'}, - cmdType: CMD.Section.CMD_SECTION_UNBLOCK, - param: { - sectionCode: this.selected.code + const operate = { + operation: OperationEvent.Section.unlock.confirm.operation + }; + this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + this.$store.dispatch('menuOperation/pushRequestList', { + device: this.selected, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '区段解锁'}, + cmdType: CMD.Section.CMD_SECTION_UNBLOCK, + param: { + sectionCode: this.selected.code + } + }); + this.doClose(); } + }).catch(() => { + this.doClose(); + this.$refs.noticeInfo.doShow(); }); - this.doClose(); + }, cancel() { const operate = { diff --git a/src/jmapNew/theme/xian_02/menus/menuRequest.vue b/src/jmapNew/theme/xian_02/menus/menuRequest.vue index b828e5a5a..5cc9dfb3f 100644 --- a/src/jmapNew/theme/xian_02/menus/menuRequest.vue +++ b/src/jmapNew/theme/xian_02/menus/menuRequest.vue @@ -154,7 +154,7 @@ export default { } else { this.$refs.noticeInfo.doShow(); } - }).catch(() => { + }).catch((e) => { this.loading = false; this.$refs.noticeInfo.doShow(); }); diff --git a/src/jmapNew/theme/xian_02/menus/menuSection.vue b/src/jmapNew/theme/xian_02/menus/menuSection.vue index ecb3f799a..486ad7657 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSection.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSection.vue @@ -276,7 +276,7 @@ export default { if (valid) { this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, - operation: { code: OperationEvent.Section.lock.menu.operation, name: '区段封锁'}, + operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '区段封锁'}, cmdType: CMD.Section.CMD_SECTION_BLOCK, param: operate.param }); diff --git a/src/jmapNew/theme/xian_02/menus/menuSignal.vue b/src/jmapNew/theme/xian_02/menus/menuSignal.vue index ffe346bbf..1dd40e024 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSignal.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSignal.vue @@ -329,6 +329,7 @@ export default { this.$store.dispatch('menuOperation/setRouteSelectStartSignal', {startSignalCode: this.selected.code, endSignalRouteList: endSignalRouteList}); this.$store.dispatch('training/updateMapState', updateDeviceList); } + console.log(step, '===11', this.selected); this.$store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); diff --git a/src/jmapNew/theme/xian_02/operationConfig.js b/src/jmapNew/theme/xian_02/operationConfig.js index cce4eef47..e2335cfc7 100644 --- a/src/jmapNew/theme/xian_02/operationConfig.js +++ b/src/jmapNew/theme/xian_02/operationConfig.js @@ -316,7 +316,7 @@ export default { productTypes: ['01', '02'], stepVOList: [ { deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【始端/终端选择】', codeType:'START_SIGNAL' }, - { deviceType: '04', orderNum: 2, operateCode: '301', tip: '鼠标左键选择进路名称【{3}】', val: '{4}', codeType:'END_SIGNAL' }, + { deviceType: '04', orderNum: 2, operateCode: '301', tip: '鼠标左键选择进路【{3}】的终端信号机', val: '{4}', codeType:'END_BUTTON_SIGNAL' }, { deviceType: '04', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【确定】按钮' } ] }, diff --git a/src/layout/components/Logout.vue b/src/layout/components/Logout.vue index bff7a6bfa..6cddc15be 100644 --- a/src/layout/components/Logout.vue +++ b/src/layout/components/Logout.vue @@ -18,20 +18,17 @@ - + + diff --git a/src/layout/components/organization.vue b/src/views/organization/index.vue similarity index 72% rename from src/layout/components/organization.vue rename to src/views/organization/index.vue index b8d948cde..69998a694 100644 --- a/src/layout/components/organization.vue +++ b/src/views/organization/index.vue @@ -1,20 +1,15 @@ - + 部门管理 - 职位管理 - 成员管理 + + 成员管理 取 消 确 定 - + + +