剧本编制样式调整
This commit is contained in:
parent
0e7805121a
commit
6e6a56903f
@ -32,7 +32,7 @@
|
|||||||
loading:false,
|
loading:false,
|
||||||
mapList: [],
|
mapList: [],
|
||||||
taskStatusList: [],
|
taskStatusList: [],
|
||||||
disabled:null,
|
disabled:true,
|
||||||
formModel: {
|
formModel: {
|
||||||
name: '',
|
name: '',
|
||||||
mapId: '',
|
mapId: '',
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="addCommandAction('commandData')" :disabled="isPause" :loading="adding">添加动作</el-button>
|
<el-button type="primary" @click="addCommandAction('commandData')" :disabled="isPause" :loading="adding">添加指令</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -217,12 +217,12 @@
|
|||||||
this.adding=true;
|
this.adding=true;
|
||||||
addScriptAction(group,data).then(response=>{
|
addScriptAction(group,data).then(response=>{
|
||||||
this.adding=false;
|
this.adding=false;
|
||||||
this.$message.success('添加动作成功');
|
this.$message.success('添加指令成功');
|
||||||
this.$emit('create');
|
this.$emit('create',true);
|
||||||
this.initCommandActionData();
|
this.initCommandActionData();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.adding=false;
|
this.adding=false;
|
||||||
this.$messageBox(`添加动作失败: ${error.message}`);
|
this.$messageBox(`添加指令失败: ${error.message}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -243,12 +243,12 @@
|
|||||||
{
|
{
|
||||||
addScriptAction(group,data).then(response=>{
|
addScriptAction(group,data).then(response=>{
|
||||||
this.modifying=false;
|
this.modifying=false;
|
||||||
this.$message.success('添加动作成功');
|
this.$message.success('添加对话成功');
|
||||||
this.$emit('create');
|
this.$emit('create',true);
|
||||||
this.initActionData();
|
this.initActionData();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.modifying=false;
|
this.modifying=false;
|
||||||
this.$messageBox(`添加动作失败: ${error.message}`);
|
this.$messageBox(`添加对话失败: ${error.message}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -259,12 +259,12 @@
|
|||||||
this.isNotModify=true;
|
this.isNotModify=true;
|
||||||
this.$parent.$parent.$parent.setDisabled(this.isNotModify);
|
this.$parent.$parent.$parent.setDisabled(this.isNotModify);
|
||||||
this.$emit('modifyButtonName');
|
this.$emit('modifyButtonName');
|
||||||
this.$message.success('修改动作成功');
|
this.$message.success('修改对话成功');
|
||||||
this.$emit('create');
|
this.$emit('create',false);
|
||||||
this.initActionData();
|
this.initActionData();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.modifying=false;
|
this.modifying=false;
|
||||||
this.$messageBox(`修改动作失败: ${error.message}`);
|
this.$messageBox(`修改对话失败: ${error.message}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="actionPaneInner">
|
<div class="actionPaneInner">
|
||||||
<div class="actionList">
|
<div class="actionList">
|
||||||
<span class="titleStyle">剧本动作</span>
|
<span class="titleStyle">剧本编制</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane-big">
|
<div class="tab-pane-big">
|
||||||
<el-scrollbar wrapClass="scrollbar-wrapper" ref="elScrollbar" class="elScrollbar">
|
<el-scrollbar wrapClass="scrollbar-wrapper" ref="elScrollbar" class="elScrollbar">
|
||||||
@ -53,7 +53,7 @@
|
|||||||
behaviorName:"",
|
behaviorName:"",
|
||||||
memberName:"",
|
memberName:"",
|
||||||
operateType:"add",
|
operateType:"add",
|
||||||
buttonName:"添加动作",
|
buttonName:"添加对话",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -62,6 +62,14 @@
|
|||||||
mounted(){
|
mounted(){
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
actionInfoList: function(val){
|
||||||
|
this.$nextTick(function(){
|
||||||
|
var div = this.$refs['elActionScrollbar'].$refs['wrap'];
|
||||||
|
div.scrollTop=this.$refs['elActionScrollbar'].wrap.scrollHeight;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
methods:{
|
methods:{
|
||||||
loadInitData() {
|
loadInitData() {
|
||||||
let group=this.$route.query.group;
|
let group=this.$route.query.group;
|
||||||
@ -138,21 +146,16 @@
|
|||||||
reloadTable(){
|
reloadTable(){
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
create(){
|
create(data){
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$nextTick(function(){
|
|
||||||
var div = this.$refs['elActionScrollbar'].$refs['wrap'];
|
|
||||||
div.scrollTop=this.$refs['elActionScrollbar'].wrap.scrollHeight;
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
},
|
||||||
modifyAction(row){
|
modifyAction(row){
|
||||||
this.operateType="modify";
|
this.operateType="modify";
|
||||||
this.buttonName="修改动作"
|
this.buttonName="修改对话"
|
||||||
this.$refs.addBehavior.doShow(row);
|
this.$refs.addBehavior.doShow(row);
|
||||||
},
|
},
|
||||||
modifyButtonName(){
|
modifyButtonName(){
|
||||||
this.buttonName="添加动作",
|
this.buttonName="添加对话",
|
||||||
this.operateType="add"
|
this.operateType="add"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user