|
|
@@ -755,10 +755,29 @@ export default { |
|
|
|
// console.log(this.roleFlag) |
|
|
|
// this.optimizetext |
|
|
|
// console.log(this.optimizetext[this.roleidx]) |
|
|
|
this.optimizetext[this.roleidx].speaker=this.roleFlag/1+1 |
|
|
|
// this.optimizetext[this.roleidx].speaker=this.roleFlag/1+1 |
|
|
|
// this.optimizetext[this.roleidx].speaker=2 |
|
|
|
// console.log(this.optimizetext[this.roleidx]) |
|
|
|
this.roleVisible=false |
|
|
|
// this.roleVisible=false |
|
|
|
let speaker=this.roleFlag/1+1 |
|
|
|
// return |
|
|
|
let arr=[this.optimizetext[this.roleidx]] |
|
|
|
arr.push() |
|
|
|
axios({ |
|
|
|
url: `${jypath}/zk/file/updateRole`, |
|
|
|
method: 'post', |
|
|
|
data: { |
|
|
|
speaker:speaker, |
|
|
|
corpusId:this.corpusId, |
|
|
|
transferContent:JSON.stringify(arr), |
|
|
|
customerId:this.fileId, |
|
|
|
} |
|
|
|
}).then(res=>{ |
|
|
|
if(res.data.res==1){ |
|
|
|
this.optimizetext[this.roleidx].speaker=this.roleFlag/1+1 |
|
|
|
this.roleVisible=false |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
//修改角色 |
|
|
|
editRole(item,idx){ |
|
|
|