部分问题解决
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-05-08 14:47:26 +08:00
parent 02fcc4a2c1
commit 24b9120a0a
4 changed files with 76 additions and 23 deletions

View File

@ -252,7 +252,7 @@ export default {
}
},
handleSave() {
this.$confirm('确定修改当前页面国际化内容?')
this.$confirm(this.$t("i18n:confirm:updatei18n"))
.then(() => {
batchAddOrUpdateFrontInternationalization(this.tableData).then(
async (res) => {
@ -270,7 +270,7 @@ export default {
i18n.mergeLocaleMessage('zh', zhMessages)
i18n.mergeLocaleMessage('en', enMessages)
this.drawer = false
this.$message.success('国际化修改成功')
this.$message.success(this.$t("i18n:message:updatei18nSuccessfully"))
if (this.il8nExternal) {
this.$EventBus.$emit('il8nUpdate')
}

View File

@ -132,22 +132,17 @@
<el-table-column prop="CreateTime" :label="$t('dictionary:signature:table:CreateTime')" show-overflow-tooltip
sortable="custom" min-width="180px" />
<el-table-column :label="$t('common:action:action')" min-width="220px" fixed="right">
<el-table-column :label="$t('common:action:action')" min-width="240px" fixed="right">
<template slot-scope="scope">
<el-button type="text" @click="handlePreview(scope.row)">
{{ $t('common:button:preview') }}
<el-button circle icon="el-icon-view" @click="handlePreview(scope.row)" :title="$t('common:button:preview')">
</el-button>
<el-button type="text" @click="handleEdit(scope.row)">
{{ $t('common:button:edit') }}
<el-button circle icon="el-icon-edit-outline" :title="$t('common:button:edit')" @click="handleEdit(scope.row)">
</el-button>
<el-button :disabled="scope.row.IsPublish" type="text" @click="publishSystemDocument([scope.row])">
{{ $t('dictionary:signature:button:publish') }}
<el-button :disabled="scope.row.IsPublish" circle icon="el-icon-position" :title="$t('dictionary:signature:button:publish')" @click="publishSystemDocument([scope.row])">
</el-button>
<el-button :disabled="scope.row.IsDeleted" type="text" @click="handleRepeal([scope.row])">
{{ $t('common:button:revoke') }}
<el-button :disabled="scope.row.IsDeleted" circle icon="el-icon-close" :title="$t('common:button:revoke')" @click="handleRepeal([scope.row])">
</el-button>
<el-button type="text" @click="handleDelete(scope.row)">
{{ $t('common:button:delete') }}
<el-button circle icon="el-icon-delete" :title="$t('common:button:delete')" @click="handleDelete(scope.row)">
</el-button>
</template>
</el-table-column>

View File

@ -15,15 +15,21 @@
<div class="line"></div>
<div class="contextmenu__item" @click="handleMenu('copy')">
<i class="icon icon_copy" />
<span>{{ $t('trials:trials-workbench:auditDocument:menu:copy') }}</span>
<span>{{ $t('trials:trials-workbench:auditDocument:menu:copy') }}
<span class="shortcut">{{ $t('trials:trials-workbench:auditDocument:shortcut:copy') }}</span>
</span>
</div>
<div class="contextmenu__item" @click="handleMenu('shear')">
<i class="icon icon_shear" />
<span>{{ $t('trials:trials-workbench:auditDocument:menu:shear') }}</span>
<span>{{ $t('trials:trials-workbench:auditDocument:menu:shear') }}
<span class="shortcut">{{ $t('trials:trials-workbench:auditDocument:shortcut:shear') }}</span>
</span>
</div>
<div class="contextmenu__item" @click="handleMenu('stickup')" v-if="checkList.length <= 1 && isCopy">
<i class="icon icon_stickup" />
<span>{{ $t('trials:trials-workbench:auditDocument:menu:stickup') }}</span>
<span>{{ $t('trials:trials-workbench:auditDocument:menu:stickup') }}
<span class="shortcut">{{ $t('trials:trials-workbench:auditDocument:shortcut:stickup') }}</span>
</span>
</div>
<div class="contextmenu__item" @click="handleMenu('rename')" v-show="checkList.length <= 1">
<i class="icon icon_rename" />
@ -197,6 +203,21 @@ export default {
margin-right: 8px;
}
.shortcut {
display: inline-block;
font-size: 12px;
zoom: .95;
font-weight: 200;
color: #888;
padding-left: 10px;
position: absolute;
right: 10px;
width: 65px;
min-width: 50px;
text-align: right;
overflow: hidden;
}
/*打开*/
.icon_open {
color: #1890ff;

View File

@ -83,9 +83,13 @@
@click="addRenameId(scope.row)"
:title="$t('trials:trials-workbench:auditDocument:icon:rename')" />
</span>
<i :class="{ 'el-icon-circle-check': true, 'icon_check': true, isCheck: checkList.includes(scope.row.Id) }"
<i :class="{ 'el-icon-success': true, 'icon_check': true, isCheck: checkList.includes(scope.row.Id) }"
@click.stop="addCheck(scope.row)"
v-if="(hoverId === scope.row.Id || checkList.includes(scope.row.Id)) && isManage" />
<span class="version"
v-if="(hoverId !== scope.row.Id && !checkList.includes(scope.row.Id)) && isManage && scope.row.HistoricalVersionsCount > 0">
<i class="el-icon-warning-outline"></i>{{ scope.row.HistoricalVersionsCount }}
</span>
</div>
<el-input v-model="scope.row.Name" :ref="`renameInp_${scope.row.Id}`" :autofocus="true"
class="renameInp" @blur="rename(scope.row)" v-else />
@ -1198,9 +1202,9 @@ export default {
}
.last_catalogue {
width: 24px;
height: 24px;
line-height: 24px;
width: 36px;
height: 36px;
line-height: 36px;
text-align: center;
border: 1px solid #ddd;
// cursor: pointer;
@ -1220,8 +1224,8 @@ export default {
border-left: none;
padding: 0 10px;
border-radius: 0 4px 4px 0;
height: 24px;
line-height: 24px;
height: 36px;
line-height: 36px;
}
.catalogue_name {
@ -1239,6 +1243,7 @@ export default {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
.name_box {
display: flex;
@ -1254,6 +1259,22 @@ export default {
text-overflow: ellipsis;
}
}
.version {
position: absolute;
right: 0;
top: 2px;
background: #ff980021;
color: #ff9800;
font-size: 12px;
padding: 0 3px;
border-radius: 2px;
z-index: 1;
i {
margin-right: 3px;
}
}
}
.icon_edit {
@ -1267,13 +1288,15 @@ export default {
}
.icon_check {
font-size: 18px;
font-size: 22px;
cursor: pointer;
color: rgba(0, 0, 0, 0.3);
&:hover {
color: rgba(0, 0, 0, 0.5);
}
z-index: 9;
}
.isCheck {
@ -1284,6 +1307,20 @@ export default {
background-color: #e5f3ff
}
::v-deep .el-table {
.caret-wrapper {
height: 24px;
}
.sort-caret.ascending {
top: 0;
}
.sort-caret.descending {
bottom: 3px;
}
}
.icon_image {
max-height: 20px;
max-width: 20px;