diff --git a/src/jmapNew/constant/deviceType.js b/src/jmapNew/constant/deviceType.js index 9904005df..4d995bb06 100644 --- a/src/jmapNew/constant/deviceType.js +++ b/src/jmapNew/constant/deviceType.js @@ -51,15 +51,15 @@ const deviceType = { DirectionRod: 'DirectionRod', Responder: 'Responder', SignalButton: 'SignalButton', - PickArrow: 'PickArrow', - DepartArrow: 'DepartArrow', - Occlusion: 'Occlusion', - Accident: 'Accident', - Recovery: 'Recovery', - PickAssist: 'PickAssist', - DepartAssist: 'DepartAssist', - TotalAssist: 'TotalAssist', - AssistStatus: 'AssistStatus', - SectionOccupied: 'SectionOccupied' + PickArrow: 'PickArrow', + DepartArrow: 'DepartArrow', + Occlusion: 'Occlusion', + Accident: 'Accident', + Recovery: 'Recovery', + PickAssist: 'PickAssist', + DepartAssist: 'DepartAssist', + TotalAssist: 'TotalAssist', + AssistStatus: 'AssistStatus', + SectionOccupied: 'SectionOccupied' }; export default deviceType; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index beaf4f9ea..5532e1d3e 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -24,17 +24,17 @@ export function handlerUrl(data) { if (process.env.NODE_ENV === 'development') { // const data = null; // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.233/rtss-server'; // BASE_API = 'http://114.116.51.125/jlcloud'; // BASE_API = 'http://192.168.8.152:9000'; // 袁琪 // BASE_API = 'http://192.168.3.94:9000'; // 旭强 - // BASE_API = 'http://192.168.3.15:9000'; // 张赛 + // BASE_API = 'http://192.168.3.201:9000'; // 张赛 // BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 - BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 + // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 // BASE_API = data && data.domainName ? 'https://' + data.domainName : BASE_API; BASE_API = data && data.domainName ? 'http://' + data.domainName : BASE_API; VOICE_API = data && data.resourcesDomainName ? 'https://' + data.resourcesDomainName : 'https://joylink.club/oss/joylink'; diff --git a/src/views/newMap/mapDraftPicture/mapoperate/device.vue b/src/views/newMap/mapDraftPicture/mapoperate/device.vue index f22c94614..dcb788abd 100644 --- a/src/views/newMap/mapDraftPicture/mapoperate/device.vue +++ b/src/views/newMap/mapDraftPicture/mapoperate/device.vue @@ -15,6 +15,7 @@ - diff --git a/src/views/newMap/trainTicket/greenLicence.vue b/src/views/newMap/trainTicket/greenLicence.vue index 9ecd0e0df..74e91c188 100644 --- a/src/views/newMap/trainTicket/greenLicence.vue +++ b/src/views/newMap/trainTicket/greenLicence.vue @@ -37,6 +37,7 @@ v-for="item in giveMemberList" :key="item.id" :label="item.labelName" + :disabled="item.userId == userId" :value="item.id" /> @@ -69,6 +70,11 @@ export default { memberId: '' }; }, + computed: { + userId() { + return this.$store.state.user ? this.$store.state.user.id : ''; + } + }, methods: { giveTicket() { if (this.memberId) { diff --git a/src/views/newMap/trainTicket/redLicence.vue b/src/views/newMap/trainTicket/redLicence.vue index dd0ae29be..b7db04b4b 100644 --- a/src/views/newMap/trainTicket/redLicence.vue +++ b/src/views/newMap/trainTicket/redLicence.vue @@ -21,8 +21,8 @@ 次列车,邻站到达通知 - - + + 收到 @@ -65,6 +65,7 @@ v-for="item in giveMemberList" :key="item.id" :label="item.labelName" + :disabled="item.userId == userId" :value="item.id" /> @@ -97,6 +98,11 @@ export default { memberId: '' }; }, + computed: { + userId() { + return this.$store.state.user ? this.$store.state.user.id : ''; + } + }, methods: { giveTicket() { if (this.memberId) { diff --git a/src/views/newMap/trainTicket/ticketInfo.vue b/src/views/newMap/trainTicket/ticketInfo.vue index 8b6ba5f7c..f595aa789 100644 --- a/src/views/newMap/trainTicket/ticketInfo.vue +++ b/src/views/newMap/trainTicket/ticketInfo.vue @@ -9,9 +9,11 @@ :close-on-click-modal="false" center > - - - +
+ + + +
@@ -32,7 +34,7 @@ export default { data() { return { trainTicketShow: false, - trainTicket: {}, + trainTicketList: [], giveMemberList: [] }; }, @@ -48,16 +50,19 @@ export default { }, methods: { doClose() { + this.trainTicketList = []; this.trainTicketShow = false; }, doShow(info) { this.trainTicketShow = true; - this.trainTicket = info; + this.trainTicketList.push(info); }, giveTicket(params) { + const index = this.trainTicketList.findIndex(item => item.id === params.ticketId); commitOperate(menuOperate.Rail.railGiveTicketTo, params, 3).then(({valid, operate}) => { this.$message.success('给予路票成功!'); - this.doClose(); + // this.doClose(); + this.trainTicketList.splice(index, 1); }).catch(()=> { this.$message.error('给予路票失败!'); }); diff --git a/src/views/newMap/trainTicket/trainTicket.vue b/src/views/newMap/trainTicket/trainTicket.vue index f5c3fe691..e1f159717 100644 --- a/src/views/newMap/trainTicket/trainTicket.vue +++ b/src/views/newMap/trainTicket/trainTicket.vue @@ -37,6 +37,7 @@ v-for="item in giveMemberList" :key="item.id" :label="item.labelName" + :disabled="item.userId == userId" :value="item.id" /> @@ -73,6 +74,11 @@ export default { memberId: '' }; }, + computed: { + userId() { + return this.$store.state.user ? this.$store.state.user.id : ''; + } + }, methods: { giveTicket() { if (this.memberId) {