|
|
@@ -31,8 +31,8 @@
|
|
|
<!-- 列表相关区域 -->
|
|
|
<div class="main-container">
|
|
|
<div class="operation-bar">
|
|
|
- <div class="default-btn primary-btn" @click="addOrUpdateHandle()"
|
|
|
- >{{$t("crud.addTitle")}}</div>
|
|
|
+ <div class="default-btn primary-btn" @click="addOrUpdateHandle()">{{$t("crud.addTitle")}}</div>
|
|
|
+ <div class="default-btn primary-btn" @click="ttsBatchHandle()">批量生成语音</div>
|
|
|
</div>
|
|
|
<div class="table-con spec-table">
|
|
|
<el-table
|
|
|
@@ -40,7 +40,14 @@
|
|
|
:data="dataList"
|
|
|
header-cell-class-name="table-header"
|
|
|
row-class-name="table-row"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
style="width: 100%">
|
|
|
+ <el-table-column
|
|
|
+ type="selection"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ width="50"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
prop="qrCodeUrl"
|
|
|
@@ -148,7 +155,7 @@ export default {
|
|
|
}, // 搜索
|
|
|
dataListLoading: false,
|
|
|
addOrUpdateVisible: false,
|
|
|
- seriesList: [],
|
|
|
+ qrCardNoteList: [],
|
|
|
resourcesUrl: process.env.VUE_APP_RESOURCES_URL,
|
|
|
previewPicUrl: null,
|
|
|
previewPicDialogVisible: false,
|
|
|
@@ -163,6 +170,26 @@ export default {
|
|
|
mounted () {
|
|
|
},
|
|
|
methods: {
|
|
|
+ ttsBatchHandle(){
|
|
|
+ if(this.qrCardNoteList.length <= 0){
|
|
|
+ this.$message.error("至少选择一条记录")
|
|
|
+ }
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl('/qrNoteMapping/createAIAudioBatch'),
|
|
|
+ method: 'POST',
|
|
|
+ data: this.qrCardNoteList
|
|
|
+ }).then(({ data }) =>{
|
|
|
+ if(data){
|
|
|
+ this.$message.success("下发成功,请稍后回来查看语音")
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 多选变化
|
|
|
+ handleSelectionChange (val) {
|
|
|
+ this.qrCardNoteList = val
|
|
|
+ },
|
|
|
previewPic(url){
|
|
|
this.previewPicUrl = this.resourcesUrl + url
|
|
|
this.previewPicDialogVisible = true;
|