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
+1
View File
@@ -390,6 +390,7 @@ module.exports = {
check: 'check',
enName: 'English name',
selectLeastOne: 'Please select at least one piece of data',
selectFileType:'Please select a file type',
sureVerified: 'Are you sure this file is not verified?',
sureSynchronize: 'The file has not been verified. Are you sure you want to synchronize to the document library?',
UploadFile: 'Upload file',
+1
View File
@@ -394,6 +394,7 @@ module.exports = {
check:'校核',
enName:'英文名称',
selectLeastOne:'请选择至少一条数据',
selectFileType:'请选择文件类型',
sureVerified:'确定对该文件未进行校验?',
sureSynchronize:'该文件未进行校验确定要同步至文档库?',
UploadFile:'上传文件',
@@ -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'