[add] 文档对比迁移

This commit is contained in:
lideqin
2023-08-17 19:18:16 +08:00
parent e0cc6e726f
commit 9f86c9bbb7
13 changed files with 3233 additions and 284 deletions
+31 -31
View File
@@ -5,7 +5,7 @@
<div class="split-detail-wrap">
<div class="split-detail-left">
<div class="split-detail-left-tree">
<a-input-search style="margin-bottom: 8px" :placeholder="$t('NodeQuickLookup')" @change="onLeftChange"
<a-input-search style="margin-bottom: 8px" :placeholder="$t('nodeQuickLookup')" @change="onLeftChange"
@search="onSearch" />
<a-tree
v-if="gData.length>0"
@@ -103,25 +103,25 @@
v-if="$route.query.createBy === userData.username || administrators"
v-has="'split:sarFileSplitItems:template'">
<a-icon type="download" />
{{ $t('TemplateDownload') }}
{{ $t('templateDownload') }}
</div>
<div class="operator-text" @click="handleMergeManage"
v-if="$route.query.createBy === userData.username || administrators"
v-has="'split:sarFileSplitItems:merge'">
<a-icon type="snippets" />
{{ $t('MergerClause') }}
{{ $t('docTool.split.mergerClause') }}
</div>
<div class="operator-text" @click="handleManage"
v-if="$route.query.createBy === userData.username || administrators"
v-has="'split:sarFileSplitItems:set'">
<a-icon type="setting" />
{{ $t('BatchSetting') }}
{{ $t('docTool.split.batchSetting') }}
</div>
<div class="operator-text" @click="handleBatCancel"
v-if="$route.query.createBy === userData.username || administrators"
v-has="'split:sarFileSplitItems:delete'">
<a-icon type="delete" />
{{ $t('BatchDelete') }}
{{ $t('batchDelete') }}
</div>
</div>
<div class="split-detail-table">
@@ -143,7 +143,7 @@
</div>
<!-- 条款详情 -->
<a-modal
:title="$t('clauseContent')"
:title="$t('docTool.split.clauseContent')"
:visible="contentVisible"
:confirm-loading="confirmLoading"
:footer="false"
@@ -169,16 +169,16 @@
:label-col="labelCol"
:wrapper-col="wrapperCol"
>
<a-form-model-item :label="$t('clauseNo')" prop="name">
<a-form-model-item :label="$t('docTool.split.clauseNo')" prop="name">
<a-input class="box-input" v-model="form.name" :placeholder="$t('PleaseEnter')+$t('clauseNo')" :maxLength="200" />
</a-form-model-item>
<a-form-model-item :label="$t('clauseName')" prop="itemName">
<a-form-model-item :label="$t('docTool.split.clauseName')" prop="itemName">
<a-input class="box-input" v-model="form.itemName" :placeholder="$t('PleaseEnter')+$t('clauseName')" :maxLength="200" />
</a-form-model-item>
<a-form-model-item :label="$t('serialNumber')" prop="displaySeq">
<a-input-number v-model="form.displaySeq" :min="1" :max="99999"
class="box-input"
:placeholder="$t('PleaseEnter')+$t('serialNumber')"
:placeholder="$t('pleaseEnter')+$t('serialNumber')"
:formatter="limitNumber"
:parser="limitNumber" style="width: 100%" />
</a-form-model-item>
@@ -187,7 +187,7 @@
<!-- 批量设置弹框 -->
<a-modal
class="show-setting"
:title="$t('batSetting')"
:title="$t('docTool.split.batchSetting')"
:visible="batSetVisible"
:confirm-loading="confirmLoading"
@ok="modalOk"
@@ -256,10 +256,10 @@ export default {
// { required: true, message: this.$t('PleaseEnter') + this.$t('clauseNo'), trigger: 'blur' },
],
itemName: [
{ required: true, message: this.$t('PleaseEnter') + this.$t('clauseName'), trigger: 'blur' }
{ required: true, message: this.$t('pleaseEnter') + this.$t('docTool.split.clauseName'), trigger: 'blur' }
],
displaySeq: [
{ required: true, message: this.$t('PleaseEnter') + this.$t('serialNumber'), trigger: 'blur' }
{ required: true, message: this.$t('pleaseEnter') + this.$t('serialNumber'), trigger: 'blur' }
// { min: 1, max: 99999, message: this.$t('cantExeed') + '99999' + this.$t('characters'), trigger: 'blur' },
]
},
@@ -493,12 +493,12 @@ export default {
// 树形删除
orgDelete () {
this.$confirm({
content: this.$t('deleteNodes'),
content: this.$t('confirmDeleteNodes'),
onOk:
async () => {
getAction(`split/sarFileSplitMenu/deleteMenu`, { id: this.nodeItem.id }).then(res => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.loadMenuData()
const queryParam = {
menu_id: this.menuId,
@@ -525,7 +525,7 @@ export default {
}
postAction(`split/sarFileSplitMenu/moveUpOrDown`, query).then(res => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.loadMenuData()
const queryParam = {
menu_id: this.menuId,
@@ -550,7 +550,7 @@ export default {
}
postAction(`split/sarFileSplitMenu/moveUpOrDown`, query).then(res => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.loadMenuData()
const queryParam = {
menu_id: this.menuId,
@@ -592,7 +592,7 @@ export default {
postAction(`split/sarFileSplitMenu/addMenu`, params).then(res => {
if (res.success) {
this.menuRightVisible = false
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
// this.onExpand(expandId)
this.form = {}
this.expandedKeys.push(this.nodeItem.id)
@@ -623,7 +623,7 @@ export default {
// console.log('parms',params)
putAction(`split/sarFileSplitMenu/updateMenu`, params).then(res => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.onExpand(expandId)
this.form = {}
this.loadMenuData()
@@ -654,7 +654,7 @@ export default {
}
if (menuIds && menuIds.length > 0) {
this.$confirm({
title: this.$t('ConfirmReplication'),
title: this.$t('confirmReplication'),
content: '',
onOk:
async () => {
@@ -677,7 +677,7 @@ export default {
})
.then((res) => {
if (res.data.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.$emit('selectClear')
this.selectClear()
// this.loadData()
@@ -687,7 +687,7 @@ export default {
info_id: this.infoId
}
eventBUs.$emit('searchGetData', JSON.parse(JSON.stringify(queryParam)))
this.$refs.splitDetailTable.$emit('searchGetData', JSON.parse(JSON.stringify(queryParam)))
// eventBUs.$emit('searchReset')
} else {
this.$message.warning(this.$t('operationFailed'))
@@ -698,7 +698,7 @@ export default {
}
})
} else if (menuIds.length === 0) {
this.$message.warning(this.$t('PleaseSelectData'))
this.$message.warning(this.$t('pleaseSelectData'))
}
},
// 新增
@@ -713,7 +713,7 @@ export default {
this.$refs.splitForm.formTitle = this.$t('add')
})
} else {
this.$message.warning(this.$t('selectDirectoryTerms'))
this.$message.warning(this.$t('docTool.split.selectDirectoryTerms'))
}
},
// 关闭新增弹框
@@ -723,7 +723,7 @@ export default {
// 导入
handleImportManage () {
if (!this.menuId) {
this.$message.warning(this.$t('selectDirectoryTerms'))
this.$message.warning(this.$t('docTool.split.selectDirectoryTerms'))
}
},
// 上传成功
@@ -779,7 +779,7 @@ export default {
},
// 模板下载
handleDownManage () {
const name = this.$t('documentSplitTemplate') + '.xlsx'
const name = this.$t('docTool.split.documentSplitTemplate') + '.xlsx'
downloadFile('split/sarFileSplitItems/exportTemplate', name, {})
},
// 合并条款
@@ -789,7 +789,7 @@ export default {
} else {
const ids = this.selectedRowKeys.join(',')
this.$confirm({
title: this.$t('mergeTerms'),
title: this.$t('docTool.split.mergeTerms'),
content: '',
onOk:
async () => {
@@ -805,7 +805,7 @@ export default {
})
.then((res) => {
if (res.data.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.selectClear()
this.loadMenuData()
const queryParam = {
@@ -858,7 +858,7 @@ export default {
})
.then((res) => {
if (res.data.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.batSetVisible = false
this.selectClear()
const queryParam = {
@@ -878,7 +878,7 @@ export default {
}
if (this.selecIds && this.selecIds.length > 0) {
this.$confirm({
title: this.$t('ConfirmBatchDeletion'),
title: this.$t('confirmBatchDeletion'),
content: '',
onOk:
async () => {
@@ -901,7 +901,7 @@ export default {
})
.then((res) => {
if (res.data.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.loadMenuData()
const queryParam = {
menu_id: this.menuId,
@@ -971,7 +971,7 @@ export default {
})
.then((res) => {
if (res.data.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.$message.success(this.$t('operationSuccessful'))
this.loadMenuData()
const queryParam = {
menu_id: this.menuId,