From ab9a02e232e985737b5b04cb78fbbcb10c849039 Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Mon, 16 Sep 2019 15:59:53 +0800
Subject: [PATCH] =?UTF-8?q?desc:=20=E8=B0=83=E6=95=B4=E7=90=8F=E8=AE=A1?=
=?UTF-8?q?=E5=88=92=E8=BF=90=E8=A1=8C=E5=9B=BE=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/langs/zh/orderAuthor.js | 1 +
src/router/index.js | 9 +-
src/views/orderauthor/commodity/draft.vue | 1 -
src/views/orderauthor/order/detail.vue | 2 +-
.../orderauthor/permission/create/goods.vue | 172 +++++++
.../orderauthor/permission/create/index.vue | 158 +++++++
.../orderauthor/permission/create/order.vue | 330 +++++++++++++
.../permission/create/permission.vue | 186 ++++++++
src/views/orderauthor/permission/index.vue | 51 +-
.../editTool/menus/addPlanningTrain.vue | 26 +-
.../planMonitor/editTool/menus/addTask.vue | 268 ++++++-----
.../planMonitor/editTool/menus/deleteTask.vue | 19 +-
.../editTool/menus/duplicateTrain.vue | 26 +-
.../menus/modifyingStationIntervalTime.vue | 2 +-
.../editTool/menus/modifyingTask.vue | 436 +++++++++---------
.../planMonitor/editTool/menus/offLine.vue | 21 +-
.../planMonitor/editTool/menus/systermOut.vue | 19 +-
src/views/planMonitor/editTool/schedule.vue | 60 +--
18 files changed, 1320 insertions(+), 467 deletions(-)
create mode 100644 src/views/orderauthor/permission/create/goods.vue
create mode 100644 src/views/orderauthor/permission/create/index.vue
create mode 100644 src/views/orderauthor/permission/create/order.vue
create mode 100644 src/views/orderauthor/permission/create/permission.vue
diff --git a/src/i18n/langs/zh/orderAuthor.js b/src/i18n/langs/zh/orderAuthor.js
index e031b9cd1..b3b8c4467 100644
--- a/src/i18n/langs/zh/orderAuthor.js
+++ b/src/i18n/langs/zh/orderAuthor.js
@@ -101,4 +101,5 @@ export default {
orderSelectionItem: '订单选择商品',
orderDetails: '订单详情',
statusType: '状态类型',
+ createPackage: '创建权限'
};
diff --git a/src/router/index.js b/src/router/index.js
index 396a978d6..7a59299de 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -97,6 +97,7 @@ import AuthorDraft from '@/views/orderauthor/author/draft/ruleForm';
import Permission from '@/views/orderauthor/permission/index';
import PermissionDetail from '@/views/orderauthor/permission/detail';
import PermissionDraft from '@/views/orderauthor/permission/draft/ruleForm';
+import PermissionCreate from '@/views/orderauthor/permission/create/index';
import UserRules from '@/views/orderauthor/rules/index';
import UserRulesDetail from '@/views/orderauthor/rules/detail';
@@ -220,7 +221,8 @@ export const UrlConfig = {
authorDetail: '/orderauthor/author/detail',
authorDraft: '/orderauthor/author/draft',
transferDetail: '/orderauthor/transfer/detail',
- trainferPackage: '/orderauthor/transfer/package'
+ trainferPackage: '/orderauthor/transfer/package',
+ createPackage: '/orderauthor/transfer/create'
},
script: {
prefix: '/script',
@@ -934,6 +936,11 @@ export const asyncRouter = [
path: 'transfer/package',
component: PermissionDraft,
hidden: true
+ },
+ {
+ path: 'transfer/create',
+ component: PermissionCreate,
+ hidden: true
}
]
},
diff --git a/src/views/orderauthor/commodity/draft.vue b/src/views/orderauthor/commodity/draft.vue
index de73b58b8..f2e94aa7b 100644
--- a/src/views/orderauthor/commodity/draft.vue
+++ b/src/views/orderauthor/commodity/draft.vue
@@ -1,6 +1,5 @@
-
diff --git a/src/views/orderauthor/order/detail.vue b/src/views/orderauthor/order/detail.vue
index 23bd8b24c..3f71f72b0 100644
--- a/src/views/orderauthor/order/detail.vue
+++ b/src/views/orderauthor/order/detail.vue
@@ -6,7 +6,7 @@
diff --git a/src/views/orderauthor/permission/create/goods.vue b/src/views/orderauthor/permission/create/goods.vue
new file mode 100644
index 000000000..5b4a5dfbb
--- /dev/null
+++ b/src/views/orderauthor/permission/create/goods.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
diff --git a/src/views/orderauthor/permission/create/index.vue b/src/views/orderauthor/permission/create/index.vue
new file mode 100644
index 000000000..e0fac8748
--- /dev/null
+++ b/src/views/orderauthor/permission/create/index.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 下一步
+ {{ $t('global.back') }}
+
+
+
+
+
+
+
+
+
+ 下一步
+ 上一步
+
+
+
+
+
+
+
+
+
+ 创建
+ 上一步
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/orderauthor/permission/create/order.vue b/src/views/orderauthor/permission/create/order.vue
new file mode 100644
index 000000000..058833f85
--- /dev/null
+++ b/src/views/orderauthor/permission/create/order.vue
@@ -0,0 +1,330 @@
+
+
+
+
+
+
+
diff --git a/src/views/orderauthor/permission/create/permission.vue b/src/views/orderauthor/permission/create/permission.vue
new file mode 100644
index 000000000..71f2d95fb
--- /dev/null
+++ b/src/views/orderauthor/permission/create/permission.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('orderAuthor.addPermissions') }}
+
+
+
+
+ {{ computedName(PermissionTypeList, scope.row.type) }}
+
+
+
+
+ {{ $t('global.delete') }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/orderauthor/permission/index.vue b/src/views/orderauthor/permission/index.vue
index 4b43efcd1..6f4ed0e36 100644
--- a/src/views/orderauthor/permission/index.vue
+++ b/src/views/orderauthor/permission/index.vue
@@ -8,7 +8,7 @@
diff --git a/src/views/planMonitor/editTool/menus/modifyingStationIntervalTime.vue b/src/views/planMonitor/editTool/menus/modifyingStationIntervalTime.vue
index 4397c38d1..74072be62 100644
--- a/src/views/planMonitor/editTool/menus/modifyingStationIntervalTime.vue
+++ b/src/views/planMonitor/editTool/menus/modifyingStationIntervalTime.vue
@@ -90,7 +90,7 @@
- 保存
+ 保存
取消&退出
diff --git a/src/views/planMonitor/editTool/menus/modifyingTask.vue b/src/views/planMonitor/editTool/menus/modifyingTask.vue
index 47be0c2c0..bedae8e38 100644
--- a/src/views/planMonitor/editTool/menus/modifyingTask.vue
+++ b/src/views/planMonitor/editTool/menus/modifyingTask.vue
@@ -10,212 +10,213 @@
:modal="false"
:close-on-click-modal="false"
>
-
-
-
-
-
- 车次号:
-
-
-
-
-
-
-
-
-
-
-
- 手工
-
-
-
-
-
-
- 缺省停站时间:
-
-
-
-
-
-
-
-
-
-
-
- 表号:
-
-
-
-
-
-
-
-
-
-
-
- 清客
-
-
- 延续计划
-
-
- 首班车
-
-
-
-
-
-
-
-
-
-
- 序列号:
-
-
-
-
-
-
-
-
-
-
-
- 手工
-
-
-
-
-
-
- 缺省运行等级:
-
-
-
-
-
-
-
-
-
-
-
- 开始时间:
-
-
-
+
+
+
+ 车次号:
+
+
+
+
-
-
-
-
-
-
-
-
- 入库
-
-
- 出库
-
-
- 末班车
-
-
-
-
-
-
-
- 交路:
-
-
-
-
-
- {{ formatName(scope.row.startStationCode) }}
-
-
-
-
-
- {{ formatName(scope.row.endStationCode) }}
-
-
-
-
-
-
-
-
- 详情:
-
-
-
-
-
- {{ formatName(scope.row.stationCode) }}
-
-
-
-
- {{ formatName(scope.row.sectionCode) }}
-
-
-
-
-
-
-
-
-
-
- 显示默认停站时间和运行等级
-
-
-
-
- 确 定
- 取 消
+
+
+
+
+
+
+
+ 手工
+
+
+
+
+
+
+ 缺省停站时间:
+
+
+
+
+
+
+
+
+
+
+
+ 表号:
+
+
+
+
+
+
+
+
+
+
+
+ 清客
+
+
+ 延续计划
+
+
+ 首班车
+
+
+
+
+
+
+
+
+
+ 序列号:
+
+
+
+
+
+
+
+
+
+
+
+ 手工
+
+
+
+
+
+
+ 缺省运行等级:
+
+
+
+
+
+
+
+
+
+
+
+ 开始时间:
+
+
+
+
+
+
+
+
+
+
+
+ 入库
+
+
+ 出库
+
+
+ 末班车
+
+
+
+
+
+
+
+ 交路:
+
+
+
+
+
+ {{ formatName(scope.row.startStationCode) }}
+
+
+
+
+
+ {{ formatName(scope.row.endStationCode) }}
+
+
+
+
+
+
+
+
+ 详情:
+
+
+
+
+
+ {{ formatName(scope.row.stationCode) }}
+
+
+
+
+ {{ formatName(scope.row.sectionCode) }}
+
+
+
+
+
+
+
+
+
+
+ 显示默认停站时间和运行等级
+
+
+
@@ -417,28 +418,27 @@ export default {
diff --git a/src/views/planMonitor/editTool/menus/offLine.vue b/src/views/planMonitor/editTool/menus/offLine.vue
index a67347c3e..bada16608 100644
--- a/src/views/planMonitor/editTool/menus/offLine.vue
+++ b/src/views/planMonitor/editTool/menus/offLine.vue
@@ -17,10 +17,10 @@
{{ params.message }}
-
- 确 定
- 取 消
-
+
@@ -39,7 +39,7 @@ export default {
},
computed: {
title() {
- return 'offline';
+ return '删除计划车';
},
width() {
if (this.params.width) {
@@ -75,4 +75,15 @@ export default {
width: 40px;
}
}
+ .add-planning-train{
+ /deep/ {
+ .el-dialog__body{
+ padding: 10px 20px;
+ }
+ .dialog-footer{
+ display: flex;
+ justify-content: center;
+ }
+ }
+ }
diff --git a/src/views/planMonitor/editTool/menus/systermOut.vue b/src/views/planMonitor/editTool/menus/systermOut.vue
index 580d55b5b..ed03c96fb 100644
--- a/src/views/planMonitor/editTool/menus/systermOut.vue
+++ b/src/views/planMonitor/editTool/menus/systermOut.vue
@@ -11,10 +11,10 @@
:close-on-click-modal="false"
>
-
- 确 定
- 取 消
-
+
@@ -68,4 +68,15 @@ export default {
diff --git a/src/views/planMonitor/editTool/schedule.vue b/src/views/planMonitor/editTool/schedule.vue
index 315d2af48..ca4ccadb4 100644
--- a/src/views/planMonitor/editTool/schedule.vue
+++ b/src/views/planMonitor/editTool/schedule.vue
@@ -120,7 +120,8 @@ export default {
tooltip: {
axisPointer: {
trigger: 'item',
- type: 'cross'
+ type: 'cross',
+ snap: true
},
formatter: this.axisTooltip,
borderWidth: 1
@@ -282,17 +283,19 @@ export default {
}
});
}
- });
- this.myChart && this.myChart.setOption({ series:
- {
- name: 'trainLabel',
- lineStyle: {
- color: 'green'
- },
- type: 'line',
- data: data
+ if (item.name == 'trainLabel') {
+ item.data = [];
}
});
+ op.series.push({
+ name: 'trainLabel',
+ lineStyle: {
+ color: 'green'
+ },
+ type: 'line',
+ data: data
+ });
+ this.myChart && this.myChart.setOption(op);
}
this.$store.dispatch('runPlan/setSelected', { serviceNumber: serviceNumber, tripNumber: tripNumber });
@@ -461,7 +464,7 @@ export default {
that.myChart = ec.init(document.getElementById(that.runPlanId));
that.myChart.setOption(that.option);
that.reSize({ width: that.$store.state.runPlan.width, height: that.$store.state.runPlan.height });
- that.myChart.on('click', that.mouseClick);
+ // that.myChart.on('click', that.mouseClick);
resolve(true);
}
);
@@ -526,25 +529,24 @@ export default {
`到站时间: ${timeFormat(param.data[0] + this.planConvert.TranslationTime)} (${param.data[0]})
`
].join('');
},
- mouseClick(params) {
- const model = {
- serviceNumber: params.seriesName
- };
+ // mouseClick(params) {
+ // const model = {
+ // serviceNumber: params.seriesName
+ // };
- const op = this.myChart.getOption();
- op.series.forEach(item => {
- item.lineStyle.color = '#000';
- if (item.name == params.seriesName) {
- item.lineStyle.color = 'red';
- }
- if (item.name == 'trainLabel') {
- item.data = [];
- }
- });
- this.myChart.setOption(op);
- this.$store.dispatch('runPlan/setSelected', model);
-
- },
+ // const op = this.myChart.getOption();
+ // op.series.forEach(item => {
+ // item.lineStyle.color = '#000';
+ // if (item.name == params.seriesName) {
+ // item.lineStyle.color = 'red';
+ // }
+ // if (item.name == 'trainLabel') {
+ // item.data = [];
+ // }
+ // });
+ // this.myChart.setOption(op);
+ // this.$store.dispatch('runPlan/setSelected', model);
+ // },
reSize(opt) {
if (this.myChart) {
this.myChart.resize({