diff --git a/src/api/management/author.js b/src/api/management/author.js index c7e165645..55e894fd8 100644 --- a/src/api/management/author.js +++ b/src/api/management/author.js @@ -61,6 +61,14 @@ export function setLessonPermisson(data) { }); } +/** 设置权限失效或有效*/ +export function getPermissionList(id) { + return request({ + url: `/api/permission/${id}`, + method: 'get' + }); +} + /** * 查询仿真权限列表 */ diff --git a/src/views/map/mapdraft/mapedit/mapoperate/signal.vue b/src/views/map/mapdraft/mapedit/mapoperate/signal.vue index 811caae9b..031c5d261 100644 --- a/src/views/map/mapdraft/mapedit/mapoperate/signal.vue +++ b/src/views/map/mapdraft/mapedit/mapoperate/signal.vue @@ -93,44 +93,11 @@ export default { activeName: 'first', SignalLeftOrRightList: [], SignalPotLampTypeList: [], - /* - { code: '01', name: '物理点灯' }, - { code: '02', name: '逻辑电灯' } - */ SignalLampPostTypeList: [], - /* - { code: '01', name: '矮柱' }, - { code: '02', name: '高柱' } - */ SignalLampPositionTypeList: [], - /* - { code: '01', name: '单灯' }, - { code: '02', name: '双灯' }, - { code: '03', name: '三灯' }, - { code: '04', name: '四灯' }, - { code: '05', name: '五灯' } - */ SignalDirectionTypeList: [], - /* - { code: '01', name: '向左行使' }, - { code: '02', name: '向右行驶' } - */ SignalPositionTypeList: [], - /* - { code: '01', name: '区段上边' }, - { code: '02', name: '区段下边' } - */ SignalUseTypeList: [], - /* - { code: '01', name: '进站信号机' }, - { code: '02', name: '出站信号机' }, - { code: '03', name: '通过信号机' }, - { code: '04', name: '防护信号机' }, - { code: '05', name: '调车信号机' }, - { code: '06', name: '阻挡信号机' }, - { code: '07', name: '预告信号机' }, - { code: '08', name: '复位信号机' } - */ failTypes: [ { code: '00', name: this.$t('map.normal') }, { code: '01', name: this.$t('map.signalFilamentAlarm') } @@ -145,10 +112,7 @@ export default { potLampType: '01', directionType: '', positionType: '', - namePosition: { - x: 0, - y: 0 - }, + namePosition: { x: 0, y: 0 }, useType: '', stationCode: '', linkCode: '', @@ -156,18 +120,9 @@ export default { rotate: 0, guideShow: false, buttonShow: false, - position: { - x: 0, - y: 0 - }, - buttonPosition: { - x: 0, - y: 0 - }, - guidePosition: { - x: 0, - y: 0 - } + position: { x: 0, y: 0 }, + buttonPosition: { x: 0, y: 0 }, + guidePosition: { x: 0, y: 0 } }, addModel: { sectionCode: '', @@ -207,7 +162,7 @@ export default { return list; }, form() { - const form = { + return { labelWidth: '150px', items: { code: { @@ -258,10 +213,9 @@ export default { } } }; - return form; }, rules() { - const rules = { + return { code: [ { required: true, message: this.$t('rules.selectEquipment'), trigger: 'change' } ], @@ -293,7 +247,6 @@ export default { { required: true, message: this.$t('rules.signalGuidePositionY'), trigger: 'blur' } ] }; - return rules; } }, watch: { diff --git a/src/views/orderauthor/author/draft/choosePermission.vue b/src/views/orderauthor/author/draft/choosePermission.vue index a350e4b1c..b1934e103 100644 --- a/src/views/orderauthor/author/draft/choosePermission.vue +++ b/src/views/orderauthor/author/draft/choosePermission.vue @@ -6,6 +6,7 @@ width="90%" :before-close="doClose" :close-on-click-modal="false" + :z-index="3000" > diff --git a/src/views/orderauthor/author/draft/edit.vue b/src/views/orderauthor/author/draft/edit.vue index 91065a223..a96067048 100644 --- a/src/views/orderauthor/author/draft/edit.vue +++ b/src/views/orderauthor/author/draft/edit.vue @@ -1,53 +1,103 @@ + diff --git a/src/views/orderauthor/author/draft/ruleForm.vue b/src/views/orderauthor/author/draft/ruleForm.vue index 96e599c11..072c42839 100644 --- a/src/views/orderauthor/author/draft/ruleForm.vue +++ b/src/views/orderauthor/author/draft/ruleForm.vue @@ -29,8 +29,6 @@ style="width: 100%" :height="height-450" > -