update 导入拆分结果,国内海外标准细节调整

This commit is contained in:
赵霄
2023-09-25 15:06:17 +08:00
parent 515ee6d68d
commit 6776041df9
11 changed files with 231 additions and 42 deletions
@@ -143,12 +143,10 @@ export default {
// 抽屉关闭
onClose () {
this.visible = false
this.$emit('visible', false)
},
// 取消
cancelSplit () {
this.visible = false
this.$emit('visible', false)
},
// 拆分
submitSplit () {
@@ -166,14 +164,15 @@ export default {
const nameSuffix = name[name.length - 1]
if (nameSuffix.toLowerCase() === 'doc' || nameSuffix.toLowerCase() === 'docx') {
const params = {
id: file.id
fileId: file.id,
id: '2'
}
this.loading = true
addDocSplit(params).then(res => {
if (res.success) {
this.$message.success(this.$t('operationSuccessful'))
this.visible = false
this.$emit('visible', false, 1)
this.$emit('ok')
} else {
this.$message.warning(res.message)
}