[update 首页] 快捷操作,菜单英文

This commit is contained in:
danshihao
2024-08-01 11:39:50 +08:00
parent c1be23f70e
commit 02b30517c4
4 changed files with 15 additions and 26 deletions
@@ -17,7 +17,7 @@
:filter-option="filterOption"
:target-keys="targetKeys"
:row-key="item => item.id"
:render="item => item.name"
:render="item => $i18n.locale === 'zh-cn' ? item.name : item.menuEn"
:listStyle="listStyle"
:locale="locale"
@change="handleChange"
+12 -7
View File
@@ -7,17 +7,16 @@
</div>
<div class="content-wrapper">
<div class="content-div" v-for="item in dataSource" :key="item.id" @click="handleTo(item.url)">
<img class="icon-img" :src="item.src" :alt="item.name" :title="item.name" v-if="item.src">
<!--<i class="iconfont" :class="'icon-' + 'shengchanliuchengguanli'"></i>-->
<a-tooltip placement="top">
<template slot="title">{{item.name}}</template>
<p class="menu-name">{{ item.name }}</p>
<template slot="title">{{isCn ? item.name : item.menuEn }}</template>
<img class="icon-img" :src="item.src" :alt="isCn ? item.name : item.menuEn" v-if="item.src">
<p class="menu-name">{{ isCn ? item.name : item.menuEn }}</p>
</a-tooltip>
</div>
<div class="plus-div" @click="menuManage" v-if="dataSource.length < 14" v-has="'dashboard:quickEnter:menuManage'">
<img class="icon-img" :src="require('@assets/image/dashboard/quickEnter/plus.png')" :alt="$t('dashboard.quickEnter.newFunction')">
<a-tooltip placement="top">
<template slot="title">{{ $t('dashboard.quickEnter.newFunction') }}</template>
<img class="icon-img" :src="require('@assets/image/dashboard/quickEnter/plus.png')" :alt="$t('dashboard.quickEnter.newFunction')">
<p>{{ $t('dashboard.quickEnter.newFunction') }}</p>
</a-tooltip>
</div>
@@ -44,6 +43,12 @@ export default {
created () {
this.loadData()
},
computed: {
// 是否中文
isCn () {
return this.$i18n.locale === 'zh-cn'
}
},
methods: {
// 获取快捷入口
loadData () {
@@ -89,8 +94,8 @@ export default {
margin-top: 12px;
grid-template-columns: repeat(auto-fill, calc(100% / 14));
& > .content-div,
& > .plus-div {
& > .content-div > span,
& > .plus-div > span {
padding: 9px 16px 0;
display: flex;
flex-direction: column;
@@ -12,7 +12,7 @@
<a-row :gutter="24">
<!--来源-->
<a-col :md="8" :sm="12">
<a-form-item :label="$t('docTool.comparison.standardStructureTree')">
<a-form-item :label="$t('standardSelect.source')">
<j-dict-select-tag style="width: 100%" v-model="queryParam.source"
disabled
:placeholder="$t('pleaseSelect')+$t('standardSelect.source')"
@@ -65,7 +65,6 @@
<script>
import JTable from '../../../../components/jero/JTable.vue'
import { JeroListMixin } from '../../../../mixins/JeroListMixin.js'
import { getForeignStandardTree } from '@api/standardRegulationLibraryApi'
import { filterObj } from '@/utils/util'
import { StandardSource } from '@/enums/commonEnums'
@@ -124,8 +123,6 @@ export default {
showAction: false,
flag: 'header',
disableMixinCreated: true,
// 标准结构树
standardStructureTree: [],
filters: {
fileSuffix: '.pdf',
// 排除文本状态为其他的
@@ -137,9 +134,6 @@ export default {
}
}
},
created () {
// this.loadStandardStructureTree()
},
methods: {
getQueryParams () {
// 获取查询条件
@@ -157,16 +151,6 @@ export default {
}
return filterObj(param)
},
// 加载标准结构树
loadStandardStructureTree () {
// option 不传显示我的收藏,1不显示我的收藏
getForeignStandardTree({ option: 1 }).then(res => {
if (res.success) {
console.log(res.result)
this.standardStructureTree = res.result || []
}
})
},
open () {
this.visible = true
this.queryParam = Object.assign({}, this.defaultQueryParam)
+1 -1
View File
@@ -91,7 +91,7 @@ export default {
// 表头
columns: [
{
title: '序号',
title: this.$t('serialNumber'),
dataIndex: '',
key: 'rowIndex',
width: 60,