update 增加起草组icon
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 562 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -172,5 +172,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// icon图片默认是选中的图片,如果没被选中,就设置灰掉
|
||||||
|
.ant-menu-item:not(.ant-menu-item-selected) {
|
||||||
|
.icon-img {
|
||||||
|
filter: grayscale(100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<!-- update_end author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 -->
|
<!-- update_end author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 -->
|
||||||
|
|||||||
@@ -146,6 +146,12 @@ export default {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
renderIcon (icon) {
|
renderIcon (icon) {
|
||||||
|
// 图片做菜单icon,cus_img_xxx.png, xxx.png放在assets/imgs/icon/
|
||||||
|
if (icon !== 'none' && icon !== undefined && icon.indexOf('cus_img_') !== -1) {
|
||||||
|
const img = require('@/assets/imgs/icon/' + icon.substr(8) + '_act.png')
|
||||||
|
return (<img style="width:16px;height:16px;user-select:none;margin-right:8px;vertical-align:sub;"
|
||||||
|
src={img} alt="" class="icon-img"/>)
|
||||||
|
}
|
||||||
if (icon !== 'none' && icon !== undefined && icon.indexOf('cus_') !== -1) {
|
if (icon !== 'none' && icon !== undefined && icon.indexOf('cus_') !== -1) {
|
||||||
let className = `anticon-jeecg anticon${icon.substr(4)}`
|
let className = `anticon-jeecg anticon${icon.substr(4)}`
|
||||||
return <i class={className} style='margin-right: 8px'></i>
|
return <i class={className} style='margin-right: 8px'></i>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<page-header-title :img-for-icon="IconWorkingGruop"></page-header-title>
|
<page-header-title :img-for-icon="IconDraftingGruop"></page-header-title>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<!-- 查询区域-start -->
|
<!-- 查询区域-start -->
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
@@ -120,7 +120,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|||||||
import JYearDate from '@comp/jero/JYearDate'
|
import JYearDate from '@comp/jero/JYearDate'
|
||||||
import SelectPrincipal from '@comp/company/SelectPrincipal'
|
import SelectPrincipal from '@comp/company/SelectPrincipal'
|
||||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||||
import IconWorkingGruop from '@/assets/imgs/icon/icon_working_group.png'
|
import IconDraftingGruop from '@/assets/imgs/icon/icon_drafting_group.png'
|
||||||
import {copyDraftingGroup, getWorkingGroupList} from '../../api/incomePaymentsApi'
|
import {copyDraftingGroup, getWorkingGroupList} from '../../api/incomePaymentsApi'
|
||||||
import { getAction } from '../../api/manage'
|
import { getAction } from '../../api/manage'
|
||||||
import DraftingGroupModule from './modules/DraftingGroupModule'
|
import DraftingGroupModule from './modules/DraftingGroupModule'
|
||||||
@@ -131,7 +131,7 @@ export default {
|
|||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
IconWorkingGruop,
|
IconDraftingGruop,
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 5 }
|
sm: { span: 5 }
|
||||||
|
|||||||
Reference in New Issue
Block a user