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