修复 剧本修改时候重置剧本的bug
This commit is contained in:
parent
30e590afc7
commit
eaec6c4446
@ -61,7 +61,7 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
||||
backDisabled:false,
|
||||
size:{
|
||||
width:350,
|
||||
height:window.innerHeight-130-212,
|
||||
height:window.innerHeight-342,
|
||||
}
|
||||
// isSaveStage: true,
|
||||
}
|
||||
@ -82,7 +82,7 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
||||
},
|
||||
methods: {
|
||||
resizeHandler() {
|
||||
this.size = { width:350, height:window.innerHeight-130-212};
|
||||
this.size = { width:350, height:window.innerHeight-342};
|
||||
},
|
||||
setIsParse(isPause){
|
||||
this.isPause=isPause;
|
||||
@ -184,9 +184,10 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
||||
},
|
||||
create(){
|
||||
this.$refs['getAction'].loadInitData();
|
||||
// this.$refs['addRole'].resetData(data);
|
||||
},
|
||||
setAction(row){
|
||||
debugger;
|
||||
// debugger;
|
||||
this.$refs['addAction'].doShow(row);
|
||||
}
|
||||
}
|
||||
|
@ -174,6 +174,8 @@
|
||||
},
|
||||
methods:{
|
||||
initData(){
|
||||
this.buttonName="添加对话";
|
||||
this.operateType="add";
|
||||
getScriptPlayMember(this.group).then(resp => {
|
||||
let roleTypeList=ConstConfig.ConstSelect.roleType;
|
||||
this.orginMemberList=resp.data;
|
||||
@ -224,6 +226,7 @@
|
||||
this.adding=false;
|
||||
this.$message.success('添加指令成功');
|
||||
this.$emit('create');
|
||||
// this.$emit('create',[this.commandData.action.memberId]);
|
||||
// this.$parent.$parent.$refs['addRole'].resetData([this.commandData.action.memberId]);
|
||||
// this.initCommandActionData();
|
||||
}).catch(error => {
|
||||
@ -251,6 +254,7 @@
|
||||
this.modifying=false;
|
||||
this.$message.success('添加对话成功');
|
||||
this.$emit('create');
|
||||
// [this.modalData.actionVO.memberId]
|
||||
// this.initActionData();
|
||||
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.actionVO.memberId,this.modalData.actionVO.targetId]);
|
||||
}).catch(error => {
|
||||
|
@ -49,6 +49,9 @@
|
||||
this.allRoleData=this.coverData(lastData);
|
||||
getScriptPlayMember(group).then(response=>{
|
||||
let last=response.data;
|
||||
// let userdata=JSON.stringify(response.data)
|
||||
// let reg=new RegExp('\"id\":\"(.*?)\\\"','g');
|
||||
// let datalist=userdata.match(reg);
|
||||
let data=[];
|
||||
last.forEach(function(element){data.push(element.id)});
|
||||
this.selectRoleData=data;
|
||||
@ -95,18 +98,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
resetData(data){
|
||||
// let allRoleData=this.allRoleData;
|
||||
// resetData(data){
|
||||
// debugger;
|
||||
// let allRoleData=this.allRoleData;
|
||||
// // debugger;
|
||||
// data.forEach(function(element){
|
||||
// allRoleData.forEach(function(select){
|
||||
// if(select.key==element)
|
||||
// {
|
||||
// select.disabled=true;
|
||||
// debugger;
|
||||
// select.disabled="disabled";
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
},
|
||||
// },
|
||||
changeSex(event,id)
|
||||
{
|
||||
let group=this.$props.group;
|
||||
|
@ -81,6 +81,7 @@
|
||||
this.$store.dispatch('scriptRecord/updateBgSet', response.data.bgSet);
|
||||
this.actionInfoList=[];
|
||||
let roleTypeList=ConstConfig.ConstSelect.roleType;
|
||||
|
||||
let memberVOList=JSON.stringify(response.data.memberVOList);
|
||||
roleTypeList.forEach(function(element){
|
||||
let rolename=element.value;
|
||||
@ -88,15 +89,20 @@
|
||||
});
|
||||
memberVOList=JSON.parse(memberVOList);
|
||||
let actionList=response.data.actionVOList;
|
||||
|
||||
|
||||
|
||||
actionList.forEach(element => {
|
||||
|
||||
let member=memberVOList.find(elem=>{return elem.id==element.memberId});
|
||||
let memberName=member.name==undefined?"":" - "+member.name;
|
||||
|
||||
let memberName=member.name?" - "+member.name:"";
|
||||
switch(element.type)
|
||||
{
|
||||
case "Conversation":
|
||||
{
|
||||
let target=memberVOList.find(elem=>{return elem.id==element.targetId});
|
||||
let targetName=target.name==undefined?"":" - "+target.name;
|
||||
let targetName=target.name?" - "+target.name:"";
|
||||
this.actionInfoList.push({id:element.id,isCoversition:true,memberName:member.role+memberName,targetName:target.role+targetName,reply:element.reply,row:element,visible:true});
|
||||
break;
|
||||
}
|
||||
@ -143,9 +149,6 @@
|
||||
reloadTable(){
|
||||
this.loadInitData();
|
||||
},
|
||||
// create(data){
|
||||
// this.reloadTable();
|
||||
// },
|
||||
modifyAction(row){
|
||||
this.$emit("setAction",row);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user