update 文档拆分-查看

This commit is contained in:
赵霄
2023-10-19 15:12:19 +08:00
parent 6a0fcc09f7
commit 9283f77e18
5 changed files with 226 additions and 193 deletions
@@ -40,16 +40,22 @@
</div>
<div class="table-operator">
<!--拆分已入库文本-->
<a-button icon="plus" type="primary" @click="handleModule" v-has="'split:sarFileSplitInfo:splitFile'">{{ $t('docTool.split.splitText') }}
<a-button icon="plus" type="primary" @click="handleModule" v-has="'split:sarFileSplitInfo:splitFile'">{{
$t('docTool.split.splitText')
}}
</a-button>
<!--TODO 导入拆分结果-->
<a-button icon="download" type="primary" ghost @click="handleExport" v-has="'split:sarFileSplitInfo:splitResult'">
{{ $t('docTool.split.importResults') }}
</a-button>
<!--批量删除-->
<a-button type="primary" icon="delete" ghost @click="batchDel" v-has="'split:sarFileSplitInfo:deleteBatch'">{{ $t('batchDelete') }}</a-button>
<a-button type="primary" icon="delete" ghost @click="batchDel" v-has="'split:sarFileSplitInfo:deleteBatch'">
{{ $t('batchDelete') }}
</a-button>
<!--更改权限-->
<a-button type="primary" icon="sync" ghost @click="handleChangePermission">{{ $t('docTool.split.changePermissions') }}</a-button>
<a-button type="primary" icon="sync" ghost @click="handleChangePermission" v-has="'split:sarFileSplitInfo:changePermissions'">
{{ $t('docTool.split.changePermissions') }}
</a-button>
</div>
<div>
<j-table
@@ -110,7 +116,7 @@ export default {
{
text: this.$t('withdraw'),
clickEvent: 'handleWithdraw',
has: 'split:sarFileSplitInfo:release',
has: 'split:sarFileSplitInfo:withdraw',
show: (record) => {
// 创建人(更改权限更改的是这个字段)是当前登录人,且状态为已发布可以撤回
return record.createBy === this.userInfo.username && record.splitStatus === SplitStatus.RELEASED.value
@@ -277,11 +283,14 @@ export default {
},
/**
* 表格操作列的查看
* @param record
* @param id
*/
handleDetail (record) {
handleDetail ({ id }) {
this.$openPageNewSheet({
path: '/documentTool/StandardSplitSheet'
path: '/documentTool/StandardSplitSheet',
query: {
id
}
})
},
splitTextVisible (val, num) {