diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue index c8f86e746..9243e7458 100644 --- a/src/views/scriptManage/home.vue +++ b/src/views/scriptManage/home.vue @@ -32,7 +32,7 @@ loading:false, mapList: [], taskStatusList: [], - disabled:null, + disabled:true, formModel: { name: '', mapId: '', diff --git a/src/views/scriptManage/scriptRecord/addAction.vue b/src/views/scriptManage/scriptRecord/addAction.vue index 7600a60a8..c7b0ebd30 100644 --- a/src/views/scriptManage/scriptRecord/addAction.vue +++ b/src/views/scriptManage/scriptRecord/addAction.vue @@ -50,7 +50,7 @@ - 添加动作 + 添加指令 @@ -217,12 +217,12 @@ this.adding=true; addScriptAction(group,data).then(response=>{ this.adding=false; - this.$message.success('添加动作成功'); - this.$emit('create'); + this.$message.success('添加指令成功'); + this.$emit('create',true); this.initCommandActionData(); }).catch(error => { this.adding=false; - this.$messageBox(`添加动作失败: ${error.message}`); + this.$messageBox(`添加指令失败: ${error.message}`); }); } else { @@ -243,12 +243,12 @@ { addScriptAction(group,data).then(response=>{ this.modifying=false; - this.$message.success('添加动作成功'); - this.$emit('create'); + this.$message.success('添加对话成功'); + this.$emit('create',true); this.initActionData(); }).catch(error => { this.modifying=false; - this.$messageBox(`添加动作失败: ${error.message}`); + this.$messageBox(`添加对话失败: ${error.message}`); }); } else @@ -259,12 +259,12 @@ this.isNotModify=true; this.$parent.$parent.$parent.setDisabled(this.isNotModify); this.$emit('modifyButtonName'); - this.$message.success('修改动作成功'); - this.$emit('create'); + this.$message.success('修改对话成功'); + this.$emit('create',false); this.initActionData(); }).catch(error => { this.modifying=false; - this.$messageBox(`修改动作失败: ${error.message}`); + this.$messageBox(`修改对话失败: ${error.message}`); }); } } diff --git a/src/views/scriptManage/scriptRecord/getAction.vue b/src/views/scriptManage/scriptRecord/getAction.vue index 2876cf81b..9255680e8 100644 --- a/src/views/scriptManage/scriptRecord/getAction.vue +++ b/src/views/scriptManage/scriptRecord/getAction.vue @@ -1,7 +1,7 @@