- 剧本动作
+ 剧本编制
@@ -53,7 +53,7 @@
behaviorName:"",
memberName:"",
operateType:"add",
- buttonName:"添加动作",
+ buttonName:"添加对话",
}
},
components: {
@@ -62,6 +62,14 @@
mounted(){
this.loadInitData();
},
+ watch:{
+ actionInfoList: function(val){
+ this.$nextTick(function(){
+ var div = this.$refs['elActionScrollbar'].$refs['wrap'];
+ div.scrollTop=this.$refs['elActionScrollbar'].wrap.scrollHeight;
+ });
+ }
+ },
methods:{
loadInitData() {
let group=this.$route.query.group;
@@ -138,21 +146,16 @@
reloadTable(){
this.loadInitData();
},
- create(){
+ create(data){
this.reloadTable();
- this.$nextTick(function(){
- var div = this.$refs['elActionScrollbar'].$refs['wrap'];
- div.scrollTop=this.$refs['elActionScrollbar'].wrap.scrollHeight;
- });
-
},
modifyAction(row){
this.operateType="modify";
- this.buttonName="修改动作"
+ this.buttonName="修改对话"
this.$refs.addBehavior.doShow(row);
},
modifyButtonName(){
- this.buttonName="添加动作",
+ this.buttonName="添加对话",
this.operateType="add"
}
}