系统配置签名文档国际化
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2025-01-16 14:41:10 +08:00
parent 1348d5f864
commit 28ea52797e
1 changed files with 24 additions and 17 deletions

View File

@ -2,7 +2,7 @@
<BaseContainer> <BaseContainer>
<template slot="search-container"> <template slot="search-container">
<el-form :inline="true" size="small"> <el-form :inline="true" size="small">
<el-form-item label="文件类型:"> <el-form-item :label="$t('dictionary:signature:search:FileTypeId')">
<el-select v-model="searchData.FileTypeId" style="width: 150px"> <el-select v-model="searchData.FileTypeId" style="width: 150px">
<el-option <el-option
v-for="item of dict.type.Sys_Document" v-for="item of dict.type.Sys_Document"
@ -12,7 +12,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="文件名称"> <el-form-item :label="$t('dictionary:signature:search:Name')">
<el-input v-model="searchData.Name" style="width: 130px" clearable /> <el-input v-model="searchData.Name" style="width: 130px" clearable />
</el-form-item> </el-form-item>
@ -53,26 +53,26 @@
<el-table-column type="index" width="40" /> <el-table-column type="index" width="40" />
<el-table-column <el-table-column
prop="FileType" prop="FileType"
label="文件类型" :label="$t('dictionary:signature:table:FileType')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="Name" prop="Name"
label="文件名称" :label="$t('dictionary:signature:table:Name')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="SignViewMinimumMinutes" prop="SignViewMinimumMinutes"
label="查看最短时间(分钟)" :label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column <el-table-column
prop="NeedConfirmedUserTypes" prop="NeedConfirmedUserTypes"
label="需要签署的用户类型" :label="$t('dictionary:signature:table:NeedConfirmedUserTypes')"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -85,17 +85,22 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="IsDeleted" prop="IsDeleted"
label="是否废除" :label="$t('dictionary:signature:table:IsDeleted')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.IsDeleted ? 'Yes' : 'No' }} <el-tag v-if="scope.row.IsDeleted" type="danger">{{
$fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag>
<el-tag v-else type="primary">{{
$fd('TrainingStatus', scope.row.IsDeleted)
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="DocUserSignType" prop="DocUserSignType"
label="是否仅内部签署" :label="$t('dictionary:signature:table:DocUserSignType')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
> >
@ -105,28 +110,28 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="创建时间" :label="$t('dictionary:signature:table:CreateTime')"
show-overflow-tooltip show-overflow-tooltip
sortable="custom" sortable="custom"
/> />
<el-table-column label="Action"> <el-table-column :label="$t('common:action:action')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handlePreview(scope.row)"> <el-button type="text" @click="handlePreview(scope.row)">
预览 {{ $t('common:button:preview') }}
</el-button> </el-button>
<el-button type="text" @click="handleEdit(scope.row)"> <el-button type="text" @click="handleEdit(scope.row)">
编辑 {{ $t('common:button:edit') }}
</el-button> </el-button>
<el-button <el-button
:disabled="scope.row.IsDeleted" :disabled="scope.row.IsDeleted"
type="text" type="text"
@click="handleRepeal(scope.row)" @click="handleRepeal(scope.row)"
> >
废除 {{ $t('common:button:revoke') }}
</el-button> </el-button>
<el-button type="text" @click="handleDelete(scope.row)"> <el-button type="text" @click="handleDelete(scope.row)">
删除 {{ $t('common:button:delete') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -261,7 +266,7 @@ export default {
}, },
// //
handleRepeal(row) { handleRepeal(row) {
this.$confirm('是否确认废除此文件?', { this.$confirm(this.$t('dictionary:signature:confirm:delFile'), {
type: 'warning', type: 'warning',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
}) })
@ -298,7 +303,9 @@ export default {
this.list.findIndex((item) => item.Id === row.Id), this.list.findIndex((item) => item.Id === row.Id),
1 1
) )
this.$message.success('删除成功!') this.$message.success(
this.$t('common:message:deletedSuccessfully')
)
} }
}) })
.catch(() => { .catch(() => {