diff --git a/src/api/pdf.js b/src/api/pdf.js index f1bb463b3..dbedb2109 100644 --- a/src/api/pdf.js +++ b/src/api/pdf.js @@ -1,13 +1,22 @@ import request from '@/utils/request'; -/** 创建分组 */ +/** 创建 */ export function postUploadFile(data) { return request({ - url: `/api/file`, + url: `/api/file/basic`, method: 'post', data }); } + +// /** 复制一条文件基础信息 */ +// export function copyUploadFile(id) { +// return request({ +// url: `/api/file/basic/copy/${id}`, +// method: 'post' +// }); +// } + // 查询 export function getUploadFile(params) { return request({ @@ -19,15 +28,27 @@ export function getUploadFile(params) { // 修改 export function putUploadFile(data) { return request({ - url: `/api/file`, + url: `/api/file/basic`, method: 'put', data }); } // 删除 -export function deleteUploadFile(data) { +export function deleteUploadFile(id) { return request({ - url: `/api/file`, + url: `/api/file/${id}`, method: 'delete' }); } + +// 查询文件绑定信息 +export function getFileBindInfo(fileId, mapId) { + return request({ + url: `/api/file/binding/${fileId}/${mapId}`, + method: 'get' + }); +} + +/** */ +// @GetMapping("") + diff --git a/src/assets/icon/favicon_zzww.png b/src/assets/icon/favicon_zzww.png new file mode 100644 index 000000000..6ab5df6e2 Binary files /dev/null and b/src/assets/icon/favicon_zzww.png differ diff --git a/src/jmapNew/theme/datie_01/menus/dialog/drawSelect.vue b/src/jmapNew/theme/datie_01/menus/dialog/drawSelect.vue new file mode 100644 index 000000000..b7daa3883 --- /dev/null +++ b/src/jmapNew/theme/datie_01/menus/dialog/drawSelect.vue @@ -0,0 +1,148 @@ + + + + diff --git a/src/jmapNew/theme/datie_01/menus/menuSection.vue b/src/jmapNew/theme/datie_01/menus/menuSection.vue index 4668fa699..3b3ea698a 100644 --- a/src/jmapNew/theme/datie_01/menus/menuSection.vue +++ b/src/jmapNew/theme/datie_01/menus/menuSection.vue @@ -7,6 +7,7 @@ + @@ -21,9 +22,9 @@ import { mapGetters } from 'vuex'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; -import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate'; import LoadSpareTrain from '@/jmapNew/theme/components/menus/dialog/loadSpareTrain'; +import DrawSelect from './dialog/drawSelect'; export default { name: 'SectionMenu', @@ -34,7 +35,8 @@ export default { NoticeInfo, TrainAddPlan, SetFault, - LoadSpareTrain + LoadSpareTrain, + DrawSelect }, props: { selected: { @@ -49,6 +51,10 @@ export default { menu: [], menuNormal: { Local: [ + { + label: '图纸调用', + handler: this.drawingCall + } ], Center: [ // { @@ -119,7 +125,8 @@ export default { initMenu() { // 编辑模式菜单列表 if (this.selected.type != '04') { - this.menu = MenuContextHandler.covert(this.menuNormal); + // this.menu = MenuContextHandler.covert(this.menuNormal); + this.menu = this.menuNormal.Local; } else { this.menu = []; } @@ -128,6 +135,9 @@ export default { this.menu = this.menuForce; } }, + drawingCall() { + this.$refs.drawSelect.doShow(this.selected); + }, doShow(point) { this.initMenu(); if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) { diff --git a/src/jmapNew/theme/datie_01/menus/menuSignal.vue b/src/jmapNew/theme/datie_01/menus/menuSignal.vue index 1a979a97c..3aca00977 100644 --- a/src/jmapNew/theme/datie_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/datie_01/menus/menuSignal.vue @@ -8,6 +8,7 @@ + @@ -28,6 +29,7 @@ import CMD from '@/scripts/cmdPlugin/CommandEnum'; import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; import PasswordBox from '@/jmapNew/theme/components/menus/childDialog/passwordInputBox'; import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate'; +import DrawSelect from './dialog/drawSelect'; export default { name: 'SignalMenu', @@ -40,7 +42,8 @@ export default { RouteGuide, NoticeInfo, PasswordBox, - SetFault + SetFault, + DrawSelect }, props: { selected: { @@ -55,6 +58,10 @@ export default { menu: [], menuNormal: { Local: [ + { + label: '图纸调用', + handler: this.drawingCall + } // { // label: '办理进路', // handler: this.arrangementRoute, @@ -190,13 +197,16 @@ export default { methods: { initMenu() { // 编辑模式菜单列表 - this.menu = MenuContextHandler.covert(this.menuNormal); - + // this.menu = MenuContextHandler.covert(this.menuNormal); + this.menu = this.menuNormal.Local; // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { this.menu = this.menuForce; } }, + drawingCall() { + this.$refs.drawSelect.doShow(this.selected); + }, doShow(point) { this.initMenu(); if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) { diff --git a/src/jmapNew/theme/datie_01/menus/menuStation.vue b/src/jmapNew/theme/datie_01/menus/menuStation.vue index 1224a3895..b84a424e4 100644 --- a/src/jmapNew/theme/datie_01/menus/menuStation.vue +++ b/src/jmapNew/theme/datie_01/menus/menuStation.vue @@ -1,6 +1,7 @@