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