|
|
@@ -483,6 +483,7 @@ |
|
|
|
<span style="cursor:pointer" @click="texteditor(item,index)">纠正</span> |
|
|
|
|
|
|
|
<span style="cursor:pointer" @click="optimdel(index)">删除</span> |
|
|
|
<span style="cursor:pointer; margin-left: 10px;" @click="editRole(item,index)">修改角色</span> |
|
|
|
</div> |
|
|
|
<div class="avatar"> |
|
|
|
<div v-if="item.speaker == 1"> |
|
|
@@ -620,6 +621,30 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="角色纠正" :visible.sync="roleVisible" center width="600px" :close-on-click-modal="false"> |
|
|
|
|
|
|
|
<div style="margin-top: 10px;display: flex;"> |
|
|
|
<div style="line-height: 38px;">角色纠正:</div> |
|
|
|
<el-select |
|
|
|
v-model="roleFlag" |
|
|
|
class="rolediv" |
|
|
|
placeholder="请选择" |
|
|
|
style="height: 38px;" |
|
|
|
filterable> |
|
|
|
<el-option |
|
|
|
v-for="(item,index) in roleList" |
|
|
|
:key="index" |
|
|
|
:label="item.name" |
|
|
|
:value="index"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="roleVisible=false">取消</el-button> |
|
|
|
<el-button type="primary" @click="editSure()">确认</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@@ -631,6 +656,10 @@ import { getStore, setStore } from "@/util/store"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
roleVisible:false, |
|
|
|
roleFlag:'0', |
|
|
|
roleidx:'', |
|
|
|
roleList:[], |
|
|
|
dialogFormVisible:false, |
|
|
|
dialogFormVisible11:false, |
|
|
|
dialogFormVisible12:false, |
|
|
@@ -722,6 +751,24 @@ export default { |
|
|
|
this.aplayer.destroy() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
editSure(){ |
|
|
|
// 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=2 |
|
|
|
// console.log(this.optimizetext[this.roleidx]) |
|
|
|
this.roleVisible=false |
|
|
|
}, |
|
|
|
//修改角色 |
|
|
|
editRole(item,idx){ |
|
|
|
// console.log(item,idx) |
|
|
|
// console.log(this.roleList) |
|
|
|
this.roleFlag=item.speaker-1 |
|
|
|
// console.log(this.roleFlag) |
|
|
|
this.roleidx=idx |
|
|
|
this.roleVisible=true |
|
|
|
}, |
|
|
|
gojianyi(){ |
|
|
|
// console.log(this.$route); |
|
|
|
let tag={ |
|
|
@@ -1322,6 +1369,7 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
this.roleList=this.tablist.slice(1) |
|
|
|
if(audopbj[this.AudioIdx].speaker==null){ |
|
|
|
this.yibiaoji='未标记' |
|
|
|
this.roleindexbiaoji=0; |
|
|
|