| @@ -603,6 +603,7 @@ | |||||
| fdFlag1:null, | fdFlag1:null, | ||||
| fdFlag2:null, | fdFlag2:null, | ||||
| tap: true, | tap: true, | ||||
| isSw:false, | |||||
| }; | }; | ||||
| }, | }, | ||||
| computed: { | computed: { | ||||
| @@ -1114,14 +1115,31 @@ | |||||
| this.fenjiaoseunfo() | this.fenjiaoseunfo() | ||||
| this.$forceUpdate() | this.$forceUpdate() | ||||
| }, | }, | ||||
| //分角色标记刷新 | |||||
| //------------------------------------分角色标记刷新 | |||||
| fenjiaoseunfo() { | fenjiaoseunfo() { | ||||
| var bgcd = this.sliderValue * 1000; | var bgcd = this.sliderValue * 1000; | ||||
| this.newluyinList = []; | this.newluyinList = []; | ||||
| this.dialogList = []; | this.dialogList = []; | ||||
| let voFlagValue; | |||||
| if(this.roleindex==0){ | |||||
| voFlagValue = 0 | |||||
| }else{ | |||||
| voFlagValue = 1 | |||||
| } | |||||
| let tempRoleIndex; | |||||
| if(this.isSw){ | |||||
| if(this.roleindex==this.tablist.length-1){ | |||||
| tempRoleIndex = 0 | |||||
| }else{ | |||||
| tempRoleIndex = this.roleindex | |||||
| } | |||||
| }else{ | |||||
| tempRoleIndex = this.roleindex | |||||
| } | |||||
| console.log() | |||||
| uni.request({ | uni.request({ | ||||
| url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id + | url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id + | ||||
| "&bg=" + bgcd + "&speaker=" + this.roleindex, //仅为示例,并非真实接口地址。 | |||||
| "&bg=" + bgcd + "&speaker=" + tempRoleIndex + "&voFlag=" + voFlagValue, //仅为示例,并非真实接口地址。 | |||||
| method: "GET", | method: "GET", | ||||
| header: { | header: { | ||||
| 'content-type': 'application/json', | 'content-type': 'application/json', | ||||
| @@ -1151,6 +1169,12 @@ | |||||
| this.roleindexbiaoji = data.data.data.speaker - 1; | this.roleindexbiaoji = data.data.data.speaker - 1; | ||||
| this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1; | this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1; | ||||
| } | } | ||||
| if(data.data.data.viewNameFlag == 1){ | |||||
| let p = [{name:'顾问'}] | |||||
| this.tablist = [...this.tablist,...p] | |||||
| } | |||||
| if (this.roleindex > this.tablist.length - 1) { | if (this.roleindex > this.tablist.length - 1) { | ||||
| this.roleindex = this.tablist.length - 1 | this.roleindex = this.tablist.length - 1 | ||||
| this.fenjiaoseunfo() | this.fenjiaoseunfo() | ||||
| @@ -1733,13 +1757,13 @@ | |||||
| } | } | ||||
| }, | }, | ||||
| // 获取转义后的对话结果 | |||||
| //--------------------------------- 获取转义后的对话结果 | |||||
| getCorpusAnalysis(info) { | getCorpusAnalysis(info) { | ||||
| this.dialogList = []; | this.dialogList = []; | ||||
| this.newluyinList = [] | this.newluyinList = [] | ||||
| uni.request({ | uni.request({ | ||||
| url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id + | url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id + | ||||
| "&bg=" + info.bg + "&speaker=" + this.roleindex, //仅为示例,并非真实接口地址。 | |||||
| "&bg=" + info.bg + "&speaker=" + this.roleindex+'&voFlag=0', //仅为示例,并非真实接口地址。 | |||||
| method: "GET", | method: "GET", | ||||
| header: { | header: { | ||||
| 'content-type': 'application/json', | 'content-type': 'application/json', | ||||
| @@ -1770,7 +1794,15 @@ | |||||
| this.roleindexbiaoji = data.data.data.speaker - 1; | this.roleindexbiaoji = data.data.data.speaker - 1; | ||||
| this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1; | this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1; | ||||
| } | } | ||||
| if(data.data.data.viewNameFlag == 1){ | |||||
| let p = [{name:'顾问'}] | |||||
| this.tablist = [...this.tablist,...p] | |||||
| this.isSw = true | |||||
| }else{ | |||||
| this.isSw = false | |||||
| } | |||||
| this.speaker = data.data.data.speaker; | this.speaker = data.data.data.speaker; | ||||
| //上拉标记点 | //上拉标记点 | ||||
| this.textindex = data.data.data.index; | this.textindex = data.data.data.index; | ||||