-
- 剧本详情
-
-
-
-
-
-
-
+
+
+
diff --git a/src/views/scriptManage/scriptmanage/list.vue b/src/views/scriptManage/scriptmanage/list.vue
index ed8742a55..a9013736c 100644
--- a/src/views/scriptManage/scriptmanage/list.vue
+++ b/src/views/scriptManage/scriptmanage/list.vue
@@ -1,178 +1,173 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
+ currentModel: {}
+ };
+ },
+ created() {
+ this.loadInitData();
+ },
+ methods: {
+ loadInitData() {
+ this.mapList = [];
+ listPublishMap().then(response => {
+ this.mapList = response.data;
+ // this.mapList = response.data.map(elem => { return { value: elem.id, label: elem.name } });
+ response.data.forEach(elem => {
+ this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
+ });
+ });
+ },
+ // 确定创建
+ handleConfirmCreate(data) {
+ createQuest(data).then(resp => {
+ this.reloadTable();
+ this.$message.success('创建剧本成功');
+ }).catch(error => {
+ this.$messageBox(`创建剧本失败: ${error.message}`);
+ });
+ },
+ // 修改
+ handleModify(index, row) {
+ this.$refs.modifyScript.doShow(row.id);
+ },
+ // 确认修改
+ handleConfirmModify(data) {
+ updateQuest(data.id, data).then(resp => {
+ this.reloadTable();
+ this.$message.success('修改剧本成功');
+ }).catch(error => {
+ this.$messageBox(`修改剧本失败: ${error.message}`);
+ });
+ },
+ // 创建
+ handleCreate(index, row) {
+ this.$refs.createScript.doShow(null);
+ },
+ // 录制
+ handleRecord(index, row) {
+ scriptRecordNotify(row.id).then(resp => {
+ const query = { mapId: row.mapId, group: resp.data, scriptId: row.id };
+ this.$router.push({ path: `${UrlConfig.scriptDisplay}/script`, query });
+ launchFullscreen();
+ }).catch(error => {
+ this.$messageBox(`创建仿真失败: ${error.message}`);
+ });
+ },
+ // 删除
+ handleDelete(index, row) {
+ this.$confirm('此操作将删除此剧本脚本, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ deleteQuest(row.id).then(response => {
+ this.$message.success('删除成功');
+ this.reloadTable();
+ }).catch(error => {
+ this.reloadTable();
+ if (error.code == 500) {
+ this.$messageBox('删除失败');
+ } else if (error.code == 500009) {
+ this.$messageBox('该模板已被加载计划使用,无法删除');
+ }
+ });
+ }).catch(() => { });
+ },
+ reloadTable() {
+ this.queryList.reload();
+ }
+ }
+};
+
From 468e62438380836875feecef8d7adb25f645fe40 Mon Sep 17 00:00:00 2001
From: ival <610568032@qq.com>
Date: Tue, 20 Aug 2019 13:03:39 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=B8=83=E5=B1=80=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/jlmap/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/jlmap/index.vue b/src/views/jlmap/index.vue
index 26e486365..3e83e78ee 100644
--- a/src/views/jlmap/index.vue
+++ b/src/views/jlmap/index.vue
@@ -1,5 +1,5 @@
-
+
From e376b141cf53d9c5950d603ff5d56ba5bf5a610e Mon Sep 17 00:00:00 2001
From: zyy <1787816799@qq.com>
Date: Tue, 20 Aug 2019 13:14:02 +0800
Subject: [PATCH 5/5] =?UTF-8?q?desc:=20=E5=9B=BD=E9=99=85=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/langs/zh/map.js | 2 ++
.../map/mapdraft/mapedit/mapoperate/train/index.vue | 12 ++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js
index 715691739..2a712b9c2 100644
--- a/src/i18n/langs/zh/map.js
+++ b/src/i18n/langs/zh/map.js
@@ -142,6 +142,7 @@ export default {
meter: '米',
code: '编码:',
+ codeC: '编码',
imageName: '图片名称:',
imageWidth: '图片宽度:',
imageHeight: '图片高度:',
@@ -329,6 +330,7 @@ export default {
trainCode: '列车编号:',
groupNumber: '车组号:',
+ trainNumber: '车组号',
modelCode: '车类型:',
trainmodelCreate: '新建车类型',
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue b/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue
index cc21ba5eb..6ea475221 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue
@@ -1,24 +1,24 @@
-
+
-
-
+
+
-
+
- 删除
+ {{ $t('map.deleteObj') }}
- 创建
+ {{ $t('map.create') }}