From 4378cc56cb6ffaa4e16ce80a8488d5536392eaf2 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Sun, 26 Apr 2020 18:49:20 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E8=A5=BF=E5=AE=89=E4=BA=8C=E5=8F=B7?= =?UTF-8?q?=E7=BA=BF=E7=AB=99=E5=8F=B0=E6=93=8D=E4=BD=9C=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xian_02/menus/dialog/updateStandPlan.vue | 33 ++- .../xian_02/menus/dialog/warningConfirm.vue | 210 ++++++++++++++++++ src/jmapNew/theme/xian_02/menus/index.vue | 10 +- .../theme/xian_02/menus/menuStationStand.vue | 2 +- .../theme/xian_02/menus/popStationStand.vue | 50 ++++- src/utils/baseUrl.js | 4 +- 6 files changed, 292 insertions(+), 17 deletions(-) create mode 100644 src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue diff --git a/src/jmapNew/theme/xian_02/menus/dialog/updateStandPlan.vue b/src/jmapNew/theme/xian_02/menus/dialog/updateStandPlan.vue index 8efb4bf4e..7004919a3 100644 --- a/src/jmapNew/theme/xian_02/menus/dialog/updateStandPlan.vue +++ b/src/jmapNew/theme/xian_02/menus/dialog/updateStandPlan.vue @@ -44,8 +44,8 @@ - - {{ item.plannedStop }} + + {{ item.planned }} {{ item.plannedArrival }} {{ item.scheduledArrival }} @@ -53,13 +53,17 @@ - 穿梭 + + >> + + + - {{ item.plannedSkip }} + {{ item.planned }} {{ item.plannedArrival }} {{ item.scheduledArrival }} @@ -67,7 +71,7 @@ - 复位 + 复位 @@ -75,7 +79,7 @@ - + 确认 取消 帮助 @@ -106,11 +110,12 @@ export default { standDirection: '', notes: '' }, - testData1: [{plannedStop: '测试1', plannedArrival: '05:33:22', scheduledArrival: '06:11:31'}, {plannedStop: '测试2', plannedArrival: '07:33:22', scheduledArrival: '08:11:31'}], - testData2: [{plannedSkip: '测试3', plannedArrival: '09:44:57', scheduledArrival: '10:00:00'}], + testData1: [{planned: '测试1', plannedArrival: '05:33:22', scheduledArrival: '06:11:31'}, {planned: '测试2', plannedArrival: '07:33:22', scheduledArrival: '08:11:31'}], + testData2: [{planned: '测试3', plannedArrival: '09:44:57', scheduledArrival: '10:00:00'}], loading: false, rules: {}, - dialogShow: false + dialogShow: false, + leftSelect: null }; }, computed: { @@ -139,6 +144,16 @@ export default { } }, methods: { + selectedLeftRow(index) { + this.leftSelect = index; + }, + updateData() { + this.testData2.push(this.testData1[this.leftSelect]); + this.testData1.splice(this.leftSelect, 1); + }, + rest() { + this.leftSelect = null; + }, doClose() { this.loading = false; this.dialogShow = false; diff --git a/src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue b/src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue new file mode 100644 index 000000000..c31335f1c --- /dev/null +++ b/src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue @@ -0,0 +1,210 @@ + + + + + + {{ warningMessage }} + + + + + + + + + + + + + + + + + 确认 + + + + + + + + + + + + + + + + + + + + 确认 + + + + + + + + + + + 取消 + 帮助 + + + + + + + + diff --git a/src/jmapNew/theme/xian_02/menus/index.vue b/src/jmapNew/theme/xian_02/menus/index.vue index 458460df5..327a7bd02 100644 --- a/src/jmapNew/theme/xian_02/menus/index.vue +++ b/src/jmapNew/theme/xian_02/menus/index.vue @@ -159,7 +159,6 @@ export default { background: #5F9EA0; opacity: 1; } - .xian-02__system .el-dialog .el-dialog__title { font-size: 16px; color: #fff; @@ -167,7 +166,14 @@ export default { top: 4px; left:25px; } - + .xian-02__menus .stand-stop-time .el-dialog .el-dialog__title { + font-size: 16px; + color: #000; + font-weight: bold; + position: absolute; + top: 4px; + left:550px; + } .xian-02__system .el-dialog .el-dialog__headerbtn { background: linear-gradient(#CD98A0, #C27D6E, #B63022, #C68770); border: 1px solid #fff; diff --git a/src/jmapNew/theme/xian_02/menus/menuStationStand.vue b/src/jmapNew/theme/xian_02/menus/menuStationStand.vue index 969f62030..84eea735c 100644 --- a/src/jmapNew/theme/xian_02/menus/menuStationStand.vue +++ b/src/jmapNew/theme/xian_02/menus/menuStationStand.vue @@ -26,7 +26,7 @@ - 站停时间调整站台屏蔽门信息确认更新站台计划 + 站停时间调整站台屏蔽门信息确认更新站台计划 diff --git a/src/jmapNew/theme/xian_02/menus/popStationStand.vue b/src/jmapNew/theme/xian_02/menus/popStationStand.vue index 56ad89662..04ffceace 100644 --- a/src/jmapNew/theme/xian_02/menus/popStationStand.vue +++ b/src/jmapNew/theme/xian_02/menus/popStationStand.vue @@ -3,6 +3,7 @@ + @@ -10,6 +11,7 @@ import PopMenu from '@/components/PopMenu'; import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo'; import UpdateStandPlan from './dialog/updateStandPlan'; +import WarningConfirm from './dialog/warningConfirm'; import { mapGetters } from 'vuex'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperateMode } from '@/scripts/ConstDic'; @@ -20,7 +22,8 @@ export default { components: { PopMenu, NoticeInfo, - UpdateStandPlan + UpdateStandPlan, + WarningConfirm }, props: { selected: { @@ -190,12 +193,32 @@ export default { }, { label: '站台停站', - handler: '', + handler: this.setStopTime, cmdType: '' }, { label: '帮助', - handler: '', + handler: this.setStopTime, + cmdType: '' + } + ] + }, + psdInfoConfirm: { + Local: [], + Center: [ + { + label: '站台屏蔽门报警-站台屏蔽门信息确认', + handler: this.setStopTime, + cmdType: '' + }, + { + label: '站台屏蔽门报警确认', + handler: this.confirmPsdWarning, + cmdType: '' + }, + { + label: '帮助', + handler: this.setStopTime, cmdType: '' } ] @@ -249,6 +272,9 @@ export default { case 'standDetain': this.menu = this.standDetain.Center; break; + case 'psdInfoConfirm': + this.menu = this.psdInfoConfirm.Center; + break; } // this.menu = MenuContextHandler.covert(this.menuNormal); @@ -374,6 +400,24 @@ export default { }).catch(() => { this.$refs.noticeInfo.doShow(step); }); + }, + confirmPsdWarning() { + const step = { + start: true, + code: `${this.selected.code}`, + operation: OperationEvent.StationStand.setStopTime.menu.operation, + param: { + standCode: `${this.selected.code}` + } + }; + this.$store.dispatch('training/nextNew', step).then(({ valid }) => { + if (valid) { + this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); + this.$refs.warningConfirm.doShow(step, this.selected); + } + }).catch(() => { + this.$refs.noticeInfo.doShow(step); + }); } } }; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 568f6a628..e9046878d 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,11 +2,11 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // 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.5:9000'; // 袁琪 // BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 - BASE_API = 'http://192.168.3.82:9000'; // 杜康 + // BASE_API = 'http://192.168.3.82:9000'; // 杜康 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 From 1d63ad4b362b7802790d2e50abbf24e108834cce Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Sun, 26 Apr 2020 18:49:22 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataRelation/dwellTimeOperate/dwellTime.vue | 2 +- .../newMapdraft/dataRelation/routingoperate/route.vue | 8 +++++--- .../newMapdraft/dataRelation/runLeveloperate/detail.vue | 5 ++++- .../newMapdraft/dataRelation/runLeveloperate/route.vue | 6 ++++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue index 6af6d89a4..e9ba5804c 100644 --- a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue +++ b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue @@ -4,7 +4,7 @@ - + {{ $t('map.activate') }} - + {{ $t('map.activate') }} @@ -49,7 +50,7 @@ >{{ $t('map.activate') }} - + {{ $t('map.activate') }} - + diff --git a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue index 308c89068..4c12cf2d3 100644 --- a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue @@ -89,7 +89,10 @@ export default { }, { title: '站间距离', - prop: 'distance' + prop: 'distance', + type: 'tag', + columnValue: (row) => { return row.distance + ' m'; }, + tagType: (row) => { return 'success'; } }, { title: '第一等级时间', diff --git a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue index e826094c7..7607a8827 100644 --- a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/route.vue @@ -19,7 +19,7 @@ >{{ $t('map.activate') }} - + {{ $t('map.activate') }} @@ -47,7 +48,7 @@ >{{ $t('map.activate') }} - + {{ $t('map.activate') }} From f318854de7b487cdbfe471d705089a4263a6cf43 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 27 Apr 2020 10:06:17 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=96=B0=E7=89=88=E7=BB=98=E5=9B=BE=20=20?= =?UTF-8?q?=E4=BA=A4=E8=B7=AF=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataRelation/routingoperate/route.vue | 83 ++++++++++++++----- 1 file changed, 61 insertions(+), 22 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue index 74895d6d1..d7755bc7c 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue @@ -20,8 +20,8 @@ @click="hover('startStationCode')" >{{ $t('map.activate') }} - - + + {{ $t('map.activate') }} - - + + {{ $t('map.activate') }} - - + + { return elem.sectionCode == data.sectionCode; }); @@ -369,16 +369,55 @@ export default { if (index < 0) { list.splice(list.length - 1, 0, data); } else { - this.$messageBox(this.$t('tip.routeSameID')); + this.$messageBox('该区段已经在交路区段中存在'); } break; } case 'top': { - list.splice(0, 1, data); + if (isStation) { + if (index < 0) { + list.splice(0, 1, data); + } + } else { + if (index < 0) { + list.splice(0, 1, data); + } else { + if (index == list.length - 1) { + this.$messageBox('起始区段和终到区段不能相同'); + this.addModel.startSectionCode = list[0].sectionCode; + } else { + this.$messageBox('该区段已经在交路区段中存在'); + } + } + } break; } case 'bottom': { - list.splice(list.length, 1, data); + if (isStation) { + if (index < 0) { + if (list.length >= 2) { + list.splice(list.length - 1, 1, data); + } else { + list.push(data); + } + } + } else { + if (index < 0) { + if (list.length >= 2) { + list.splice(list.length - 1, 1, data); + } else { + list.push(data); + } + } else { + if (index == 0) { + this.$messageBox('起始区段和终到区段不能相同'); + this.addModel.endSectionCode = list[list.length - 1].sectionCode; + } else { + this.$messageBox('该区段已经在交路区段中存在'); + } + } + } + break; } default: { From 0fb3536fff375b179812bb6d44695f558b495dbf Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 27 Apr 2020 10:54:42 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=BB=98=E5=88=B6=20=E4=BA=A4=E8=B7=AF=20=E5=81=9C=E7=AB=99?= =?UTF-8?q?=E6=97=B6=E9=97=B4=20=E8=AE=BE=E7=BD=AE=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataRelation/dwellTimeOperate/detail.vue | 57 ++++--------------- .../dwellTimeOperate/dwellTime.vue | 14 ++++- .../dataRelation/routingoperate/detail.vue | 23 +++++--- .../dataRelation/runLeveloperate/detail.vue | 4 +- 4 files changed, 38 insertions(+), 60 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue index 75e1092b2..644f959df 100644 --- a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue @@ -1,5 +1,5 @@ - + { - this.mapList = response.data; - }); - }, - afterQuery(data) { - if (data && data.list) { - const that = this; - const list = data.list; - if (list) { - list.map(elem => { - that.$convertSpecifiedField(elem, that.mapList, 'id', 'name', ['mapId']); - elem.code = elem.signalCode; - elem.signalCode = that.formatName(elem.signalCode); - }); - } - } - return data; - }, editObj(index, row) { getStationParkTime(row.id).then(response => { const data = response.data; diff --git a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue index e9ba5804c..fa48621c2 100644 --- a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue +++ b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue @@ -60,7 +60,7 @@ {{ $t('map.remove') }} @@ -176,7 +176,12 @@ export default { return formatName(code); }, pushSection(list, data) { - list.push(data); + const index = list.findIndex(elem => { return elem.sectionCode == data.sectionCode; }); + if (index < 0) { + list.push(data); + } else { + this.$messageBox('该区段已经在列表中存在'); + } }, setSelected(selected) { if (selected) { @@ -191,6 +196,9 @@ export default { } } }, + deleteSection(list, index) { + list.splice(index, 1); + }, buildModel(code) { const model = Object.assign({}, this.addModel); if (code) { model['code'] = code; } @@ -236,7 +244,7 @@ export default { this.addModel.stationCode = ''; this.addModel.parkingTimeVOList = []; this.sectionCode = ''; - this.parkingTime = 0; + this.parkingTime = 30; this.addModel.code = ''; this.isSave = true; } diff --git a/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue index df4bb3436..93b48808e 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue @@ -218,13 +218,19 @@ export default { }, deleteObj(index, row) { if (this.mapInfo && this.mapInfo.id && row) { - // 删除 - deleteRoutingData(row.id).then(response => { - this.$message.success(this.$t('map.successfullyDelete')); - this.reloadTable(); - }).catch(() => { - this.$messageBox(this.$t('map.failDelete')); - }); + this.$confirm('是否确认删除交路', this.$t('global.tips'), { + confirmButtonText: this.$t('global.confirm'), + cancelButtonText: this.$t('global.cancel'), + type: 'warning' + }).then(() => { + // 删除 + deleteRoutingData(row.id).then(response => { + this.$message.success(this.$t('map.successfullyDelete')); + this.reloadTable(); + }).catch(() => { + this.$messageBox(this.$t('map.failDelete')); + }); + }).catch(); } }, generateData(index, row) { @@ -243,7 +249,6 @@ export default { sectionDetail(index, row) { const sectionDict = {}; const stationDict = {}; - this.sectionList.forEach(elem => { sectionDict[elem.code] = elem.name; }); this.stationList.forEach(elem => { stationDict[elem.code] = elem.name; }); @@ -266,7 +271,7 @@ export default { ] } }; - this.$refs.previewField.doShow(fieldList, row.routingSectionList); + this.$refs.previewField.doShow(fieldList, row.parkSectionCodeList); }, reloadTable() { if (this.queryList && this.queryList.reload) { diff --git a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue index 4c12cf2d3..9a71f7c11 100644 --- a/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/runLeveloperate/detail.vue @@ -69,7 +69,7 @@ export default { }, { - title: this.$t('map.startStationCode'), + title: '起始区段', prop: 'startSectionCode' }, { @@ -77,7 +77,7 @@ export default { prop: 'endStationCode' }, { - title: this.$t('map.endStationCode'), + title: '终到区段', prop: 'endSectionCode' }, { From 2cbef523982e3a5e0f83b6ba957256c90a1e46ec Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 27 Apr 2020 11:33:17 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E6=96=B0=E7=89=88=E7=BB=98=E5=9B=BE=20?= =?UTF-8?q?=E4=BA=A4=E8=B7=AF=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dwellTimeOperate/dwellTime.vue | 1 + .../dataRelation/routingoperate/detail.vue | 10 ++++---- .../dataRelation/routingoperate/route.vue | 23 +++++++++++-------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue index fa48621c2..b750df237 100644 --- a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue +++ b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/dwellTime.vue @@ -13,6 +13,7 @@ /> {{ $t('map.activate') }} diff --git a/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue index 93b48808e..baf51699c 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routingoperate/detail.vue @@ -74,7 +74,7 @@ export default { }, { - title: this.$t('map.startStationCode'), + title: '起始区段', prop: 'startSectionCode' }, { @@ -82,7 +82,7 @@ export default { prop: 'endStationCode' }, { - title: this.$t('map.endStationCode'), + title: '终到区段', prop: 'endSectionCode' }, { @@ -240,9 +240,9 @@ export default { this.$message.success(this.$t('map.generateStationRunDataSuccess')); // 站间运行数据生成成功 this.reloadTable(); - }).catch(() => { + }).catch((error) => { // 站间运行数据生成失败 - this.$messageBox(this.$t('map.generateStationRunDataFailed')); + this.$messageBox(this.$t('map.generateStationRunDataFailed') + ': ' + error.message); }); } }, @@ -262,7 +262,7 @@ export default { items: [ { prop: 'stationCode', label: this.$t('map.stationCodeClomn'), type: 'text' }, { - prop: 'stationCode', label: this.$t('map.sectionName'), type: 'select', options: stationDict + prop: 'stationCode', label: '车站名称', type: 'select', options: stationDict }, { prop: 'sectionCode', label: this.$t('map.blockCodingClomn'), type: 'text' }, { diff --git a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue index d7755bc7c..d7ca4fd0e 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routingoperate/route.vue @@ -36,7 +36,7 @@ >{{ $t('map.activate') }} - + {{ $t('map.activate') }} - + {{ $t('map.activate') }} @@ -204,6 +205,7 @@ export default { ViewMode: ViewMode, field: '', allowSelect:false, + isStartSelected:false, stationCode: '', sectionCode: '', isSave: true, @@ -320,6 +322,7 @@ export default { }, addStartSectionData(isStation) { if (this.addModel.startStationCode != '' && this.addModel.startSectionCode != '') { + this.isStartSelected = true; this.pushSection({stationCode: this.addModel.startStationCode, sectionCode: this.addModel.startSectionCode}, 'top', isStation); } }, @@ -375,9 +378,7 @@ export default { } case 'top': { if (isStation) { - if (index < 0) { - list.splice(0, 1, data); - } + list.splice(0, 1, data); } else { if (index < 0) { list.splice(0, 1, data); @@ -394,10 +395,10 @@ export default { } case 'bottom': { if (isStation) { - if (index < 0) { - if (list.length >= 2) { - list.splice(list.length - 1, 1, data); - } else { + if (list.length >= 2) { + list.splice(list.length - 1, 1, data); + } else { + if (index < 0) { list.push(data); } } @@ -489,6 +490,8 @@ export default { this.stationCode = ''; this.sectionCode = ''; this.isSave = true; + this.allowSelect = false; + this.isStartSelected = false; } } } From edc17912af7db4465d5a59e5b09548183e714016 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 27 Apr 2020 13:56:08 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E6=96=B0=E7=89=88=E5=9C=B0=E5=9B=BE=20?= =?UTF-8?q?=E7=BB=98=E5=9B=BE=20=E4=BA=A4=E8=B7=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataRelation/dwellTimeOperate/detail.vue | 1 - .../dwellTimeOperate/dwellTime.vue | 6 ++++- .../dataRelation/dwellTimeOperate/index.vue | 2 +- .../dataRelation/routingoperate/detail.vue | 24 +++++++++++++++++++ .../dataRelation/routingoperate/index.vue | 2 +- .../dataRelation/routingoperate/route.vue | 9 +++++-- 6 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue index 644f959df..96eb52808 100644 --- a/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/dwellTimeOperate/detail.vue @@ -13,7 +13,6 @@ + + diff --git a/src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue b/src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue index c31335f1c..c27d6ee5a 100644 --- a/src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue +++ b/src/jmapNew/theme/xian_02/menus/dialog/warningConfirm.vue @@ -41,6 +41,7 @@ + @@ -48,7 +49,13 @@ - + + + + + + + 确认 @@ -61,7 +68,7 @@ - + 取消 帮助 @@ -94,8 +101,6 @@ export default { notes: '' }, warningMessage: '无报警数据', - testData1: [{planned: '测试1', plannedArrival: '05:33:22', scheduledArrival: '06:11:31'}, {planned: '测试2', plannedArrival: '07:33:22', scheduledArrival: '08:11:31'}], - testData2: [{planned: '测试3', plannedArrival: '09:44:57', scheduledArrival: '10:00:00'}], loading: false, rules: {}, dialogShow: false, diff --git a/src/jmapNew/theme/xian_02/menus/index.vue b/src/jmapNew/theme/xian_02/menus/index.vue index 1928bc5ca..73d94b327 100644 --- a/src/jmapNew/theme/xian_02/menus/index.vue +++ b/src/jmapNew/theme/xian_02/menus/index.vue @@ -14,7 +14,7 @@ - + @@ -95,6 +95,9 @@ export default { }, closeMenuStationStand() { this.$refs.menuStationStand.doClose(); + }, + standOperationCallback(val) { + this.$refs.menuStationStand.callback(val); } } }; @@ -122,7 +125,7 @@ export default { .xian-02__pop_tip_station{ padding: 0 !important; margin: 0 !important; - background: #508F86; + background: #5F9EA0; border: 1px solid #6B736A; border-radius: 0; } diff --git a/src/jmapNew/theme/xian_02/menus/menuSignal.vue b/src/jmapNew/theme/xian_02/menus/menuSignal.vue index 230612add..704aa7fdf 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSignal.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSignal.vue @@ -1,6 +1,6 @@ - + @@ -13,7 +13,7 @@