word拆分功能处理

This commit is contained in:
wangchengjun
2022-04-08 01:55:41 +08:00
parent 4b69da9871
commit d460a5d5da
7 changed files with 475 additions and 266 deletions
@@ -24,6 +24,29 @@
@onSelectChange="onSelectChange"
/>
</div>
<div style="width: 100px">
文件类型:
<a-select v-model="fileGroup" style="width: 100px">
<a-select-option value="GSO" key="GSO">
GSO
</a-select-option>
<a-select-option value="Korean" key="Korean">
韩国
</a-select-option>
<a-select-option value="US" key="US">
美国
</a-select-option>
<a-select-option value="EU" key="EU">
欧洲
</a-select-option>
<a-select-option value="Japan" key="Japan">
日本
</a-select-option>
<a-select-option value="CN" key="CN">
中国
</a-select-option>
</a-select>
</div>
<div class="split-footer">
<div class="split-footer-wrap">
<a-button class="split-btn split-chai" type="primary" @click="submitSplit">{{$t('split')}}</a-button>
@@ -49,6 +72,7 @@
data(){
return{
visible:false,
fileGroup:'',
tableSource:[], //列表数据
selectedRowKeys:[],
queryParams:{
@@ -161,7 +185,9 @@
},
//拆分
submitSplit(){
if(this.rows&&this.rows.length>1){
if(this.fileGroup.length == 0){
this.$message.warning(this.$t('selectFileType'))
}else if(this.rows&&this.rows.length>1){
this.$message.warning(this.$t('OnlyOneSelected'))
}else if(this.rows==undefined||this.rows.length===0){
this.$message.warning(this.$t('selectLeastOne'))
@@ -176,7 +202,8 @@
title: file.title,
fileName:file.file_name,
serialNumber: file.serial_number,
connectId: file.connect_id
connectId: file.connect_id,
fileGroup: this.fileGroup,
}
if (file.text_info == '发布稿(必读)') {
params.fileType = '1'