mirror of https://github.com/veops/cmdb.git
pref(ui):some bugfix & some style (#369)
This commit is contained in:
parent
81a76a9632
commit
fc113425cb
|
@ -119,7 +119,8 @@ export default {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: @layout-header-font-color;
|
color: @layout-header-font-color;
|
||||||
height: @layout-header-height;
|
height: @layout-header-height;
|
||||||
line-height: @layout-header-height;
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: linear-gradient(0deg, rgba(0, 80, 201, 0.2) 0%, rgba(174, 207, 255, 0.06) 86.76%);
|
background: linear-gradient(0deg, rgba(0, 80, 201, 0.2) 0%, rgba(174, 207, 255, 0.06) 86.76%);
|
||||||
color: @layout-header-font-selected-color;
|
color: @layout-header-font-selected-color;
|
||||||
|
|
|
@ -57,17 +57,20 @@
|
||||||
</template>
|
</template>
|
||||||
</vxe-table-column>
|
</vxe-table-column>
|
||||||
</ops-table>
|
</ops-table>
|
||||||
<vxe-pager
|
<a-pagination
|
||||||
size="small"
|
size="small"
|
||||||
:layouts="['Total', 'PrevPage', 'JumpNumber', 'NextPage', 'Sizes']"
|
show-size-changer
|
||||||
:current-page.sync="tablePage.currentPage"
|
show-quick-jumper
|
||||||
:page-size.sync="tablePage.pageSize"
|
:current="tablePage.currentPage"
|
||||||
:total="tablePage.total"
|
:total="tablePage.total"
|
||||||
:page-sizes="pageSizeOptions"
|
:show-total="(total, range) => `当前展示 ${range[0]}-${range[1]} 条数据, 共 ${total} 条`"
|
||||||
@page-change="handlePageChange"
|
:page-size="tablePage.pageSize"
|
||||||
:style="{ marginTop: '10px' }"
|
:default-current="1"
|
||||||
>
|
:page-size-options="pageSizeOptions"
|
||||||
</vxe-pager>
|
@change="pageOrSizeChange"
|
||||||
|
@showSizeChange="pageOrSizeChange"
|
||||||
|
:style="{ marginTop: '10px', textAlign: 'right' }"
|
||||||
|
/>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
||||||
<resourceTypeForm ref="resourceTypeForm" :handleOk="handleOk"> </resourceTypeForm>
|
<resourceTypeForm ref="resourceTypeForm" :handleOk="handleOk"> </resourceTypeForm>
|
||||||
|
@ -89,7 +92,7 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
groups: [],
|
groups: [],
|
||||||
id2perms: {},
|
id2perms: {},
|
||||||
pageSizeOptions: [10, 25, 50, 100],
|
pageSizeOptions: ['20', '50', '100', '200'],
|
||||||
tablePage: {
|
tablePage: {
|
||||||
total: 0,
|
total: 0,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
|
@ -176,7 +179,7 @@ export default {
|
||||||
this.handleOk()
|
this.handleOk()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handlePageChange({ currentPage, pageSize }) {
|
pageOrSizeChange(currentPage, pageSize) {
|
||||||
this.tablePage.currentPage = currentPage
|
this.tablePage.currentPage = currentPage
|
||||||
this.tablePage.pageSize = pageSize
|
this.tablePage.pageSize = pageSize
|
||||||
this.searchData()
|
this.searchData()
|
||||||
|
|
|
@ -86,10 +86,12 @@
|
||||||
<vxe-table-column field="user" :title="$t('acl.creator')" :min-widh="100"> </vxe-table-column>
|
<vxe-table-column field="user" :title="$t('acl.creator')" :min-widh="100"> </vxe-table-column>
|
||||||
|
|
||||||
<!-- 4 -->
|
<!-- 4 -->
|
||||||
<vxe-table-column field="created_at" :title="$t('created_at')" :min-widh="220" align="center"> </vxe-table-column>
|
<vxe-table-column field="created_at" :title="$t('created_at')" :min-widh="220" align="center">
|
||||||
|
</vxe-table-column>
|
||||||
|
|
||||||
<!-- 5 -->
|
<!-- 5 -->
|
||||||
<vxe-table-column field="updated_at" :title="$t('updated_at')" :min-widh="220" fixed="center"> </vxe-table-column>
|
<vxe-table-column field="updated_at" :title="$t('updated_at')" :min-widh="220" fixed="center">
|
||||||
|
</vxe-table-column>
|
||||||
|
|
||||||
<!-- 6 -->
|
<!-- 6 -->
|
||||||
|
|
||||||
|
@ -99,7 +101,8 @@
|
||||||
:min-widh="200"
|
:min-widh="200"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
align="center"
|
align="center"
|
||||||
show-overflow>
|
show-overflow
|
||||||
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span v-show="isGroup">
|
<span v-show="isGroup">
|
||||||
<a @click="handleDisplayMember(row)">{{ $t('acl.member') }}</a>
|
<a @click="handleDisplayMember(row)">{{ $t('acl.member') }}</a>
|
||||||
|
@ -117,23 +120,32 @@
|
||||||
</a>
|
</a>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-popconfirm :title="$t('confirmDelete')" @confirm="handleDelete(row)" @cancel="cancel" :okText="$t('yes')" :cancelText="$t('no')">
|
<a-popconfirm
|
||||||
|
:title="$t('confirmDelete')"
|
||||||
|
@confirm="handleDelete(row)"
|
||||||
|
@cancel="cancel"
|
||||||
|
:okText="$t('yes')"
|
||||||
|
:cancelText="$t('no')"
|
||||||
|
>
|
||||||
<a style="color: red"><a-icon type="delete"/></a>
|
<a style="color: red"><a-icon type="delete"/></a>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
</vxe-table-column>
|
</vxe-table-column>
|
||||||
</ops-table>
|
</ops-table>
|
||||||
<vxe-pager
|
<a-pagination
|
||||||
size="small"
|
size="small"
|
||||||
:layouts="['Total', 'PrevPage', 'JumpNumber', 'NextPage', 'Sizes']"
|
show-size-changer
|
||||||
:current-page.sync="tablePage.currentPage"
|
show-quick-jumper
|
||||||
:page-size.sync="tablePage.pageSize"
|
:current="tablePage.currentPage"
|
||||||
:total="tablePage.total"
|
:total="tablePage.total"
|
||||||
:page-sizes="pageSizeOptions"
|
:show-total="(total, range) => `当前展示 ${range[0]}-${range[1]} 条数据, 共 ${total} 条`"
|
||||||
@page-change="handlePageChange"
|
:page-size="tablePage.pageSize"
|
||||||
:style="{ marginTop: '10px' }"
|
:default-current="1"
|
||||||
>
|
:page-size-options="pageSizeOptions"
|
||||||
</vxe-pager>
|
@change="pageOrSizeChange"
|
||||||
|
@showSizeChange="pageOrSizeChange"
|
||||||
|
:style="{ marginTop: '10px', textAlign: 'right' }"
|
||||||
|
/>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</div>
|
</div>
|
||||||
<div v-else style="text-align: center; margin-top: 20%">
|
<div v-else style="text-align: center; margin-top: 20%">
|
||||||
|
@ -191,7 +203,7 @@ export default {
|
||||||
isGroup: false,
|
isGroup: false,
|
||||||
allResourceTypes: [],
|
allResourceTypes: [],
|
||||||
currentType: { id: 0 },
|
currentType: { id: 0 },
|
||||||
pageSizeOptions: [10, 25, 50, 100],
|
pageSizeOptions: ['20', '50', '100', '200'],
|
||||||
searchName: '',
|
searchName: '',
|
||||||
selectedRows: [],
|
selectedRows: [],
|
||||||
}
|
}
|
||||||
|
@ -291,7 +303,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cancel() {},
|
cancel() {},
|
||||||
handlePageChange({ currentPage, pageSize }) {
|
pageOrSizeChange(currentPage, pageSize) {
|
||||||
this.tablePage.currentPage = currentPage
|
this.tablePage.currentPage = currentPage
|
||||||
this.tablePage.pageSize = pageSize
|
this.tablePage.pageSize = pageSize
|
||||||
this.searchData()
|
this.searchData()
|
||||||
|
@ -302,7 +314,6 @@ export default {
|
||||||
.getVxetableRef()
|
.getVxetableRef()
|
||||||
.getCheckboxRecords()
|
.getCheckboxRecords()
|
||||||
.concat(this.$refs.xTable.getVxetableRef().getCheckboxReserveRecords())
|
.concat(this.$refs.xTable.getVxetableRef().getCheckboxReserveRecords())
|
||||||
console.log(this.selectedRows)
|
|
||||||
},
|
},
|
||||||
onSelectRangeEnd({ records }) {
|
onSelectRangeEnd({ records }) {
|
||||||
this.selectedRows = records
|
this.selectedRows = records
|
||||||
|
|
|
@ -104,17 +104,20 @@
|
||||||
</template>
|
</template>
|
||||||
</vxe-table-column>
|
</vxe-table-column>
|
||||||
</ops-table>
|
</ops-table>
|
||||||
<vxe-pager
|
<a-pagination
|
||||||
size="small"
|
size="small"
|
||||||
:layouts="['Total', 'PrevPage', 'JumpNumber', 'NextPage', 'Sizes']"
|
show-size-changer
|
||||||
:current-page.sync="tablePage.currentPage"
|
show-quick-jumper
|
||||||
:page-size.sync="tablePage.pageSize"
|
:current="tablePage.currentPage"
|
||||||
:total="tablePage.total"
|
:total="tablePage.total"
|
||||||
:page-sizes="pageSizeOptions"
|
:show-total="(total, range) => `当前展示 ${range[0]}-${range[1]} 条数据, 共 ${total} 条`"
|
||||||
@page-change="handlePageChange"
|
:page-size="tablePage.pageSize"
|
||||||
:style="{ marginTop: '10px' }"
|
:default-current="1"
|
||||||
>
|
:page-size-options="pageSizeOptions"
|
||||||
</vxe-pager>
|
@change="pageOrSizeChange"
|
||||||
|
@showSizeChange="pageOrSizeChange"
|
||||||
|
:style="{ marginTop: '10px', textAlign: 'right' }"
|
||||||
|
/>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
||||||
<roleForm ref="roleForm" :allRoles="allRoles" :id2parents="id2parents" :handleOk="handleOk"></roleForm>
|
<roleForm ref="roleForm" :allRoles="allRoles" :id2parents="id2parents" :handleOk="handleOk"></roleForm>
|
||||||
|
@ -149,7 +152,7 @@ export default {
|
||||||
tableData: [],
|
tableData: [],
|
||||||
allRoles: [],
|
allRoles: [],
|
||||||
id2parents: {},
|
id2parents: {},
|
||||||
pageSizeOptions: [10, 25, 50, 100],
|
pageSizeOptions: ['20', '50', '100', '200'],
|
||||||
searchName: '',
|
searchName: '',
|
||||||
filterTableValue: { user_role: 1, user_only: 0 },
|
filterTableValue: { user_role: 1, user_only: 0 },
|
||||||
}
|
}
|
||||||
|
@ -254,7 +257,7 @@ export default {
|
||||||
cancel(e) {
|
cancel(e) {
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
handlePageChange({ currentPage, pageSize }) {
|
pageOrSizeChange(currentPage, pageSize) {
|
||||||
this.tablePage.currentPage = currentPage
|
this.tablePage.currentPage = currentPage
|
||||||
this.tablePage.pageSize = pageSize
|
this.tablePage.pageSize = pageSize
|
||||||
this.loadData()
|
this.loadData()
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
:class="{
|
:class="{
|
||||||
'cmdb-preference-avatar': true,
|
'cmdb-preference-avatar': true,
|
||||||
'cmdb-preference-avatar-noicon': !ciType.icon,
|
'cmdb-preference-avatar-noicon': !ciType.icon,
|
||||||
'cmdb-preference-avatar-noicon-is_subscribed': !ciType.icon && ciType.is_subscribed,
|
'cmdb-preference-avatar-noicon-is_subscribed': !ciType.icon,
|
||||||
}"
|
}"
|
||||||
:style="{ width: '30px', height: '30px', marginRight: '10px' }"
|
:style="{ width: '30px', height: '30px', marginRight: '10px' }"
|
||||||
>
|
>
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
background-color: rgba(47, 122, 235, 0.2);
|
background-color: @scrollbar-color;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background-color: rgba(47, 122, 235, 0.2);
|
background-color: @scrollbar-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@import '~ant-design-vue/dist/antd.less';
|
@import '~ant-design-vue/dist/antd.less';
|
||||||
|
@ -35,7 +35,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-layout {
|
.ant-layout {
|
||||||
background-color: #f0f5ff;
|
background-color: #custom_colors() [color_2];
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout.ant-layout {
|
.layout.ant-layout {
|
||||||
|
@ -99,12 +99,8 @@ body {
|
||||||
height: @layout-header-icon-height;
|
height: @layout-header-icon-height;
|
||||||
line-height: @layout-header-icon-height;
|
line-height: @layout-header-icon-height;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
&:hover {
|
|
||||||
background: linear-gradient(0deg, rgba(0, 80, 201, 0.2) 0%, rgba(174, 207, 255, 0.06) 86.76%);
|
|
||||||
color: @layout-header-font-selected-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.topmenu {
|
.topmenu {
|
||||||
|
@ -192,12 +188,6 @@ body {
|
||||||
color: @layout-header-font-color;
|
color: @layout-header-font-color;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: linear-gradient(0deg, rgba(0, 80, 201, 0.2) 0%, rgba(174, 207, 255, 0.06) 86.76%);
|
|
||||||
color: @layout-header-font-selected-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
color: @layout-header-font-color;
|
color: @layout-header-font-color;
|
||||||
|
@ -349,8 +339,6 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
&.light {
|
&.light {
|
||||||
background-color: #225686;
|
|
||||||
|
|
||||||
.header-index-wide {
|
.header-index-wide {
|
||||||
.header-index-left {
|
.header-index-left {
|
||||||
.logo {
|
.logo {
|
||||||
|
@ -425,7 +413,6 @@ body {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
|
||||||
.ant-layout-sider-children {
|
.ant-layout-sider-children {
|
||||||
background: #225686; //浅色系左边菜单栏 深色系需删除
|
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
> .ant-menu {
|
> .ant-menu {
|
||||||
height: calc(100vh - 40px);
|
height: calc(100vh - 40px);
|
||||||
|
@ -519,7 +506,7 @@ body {
|
||||||
.ops-side-bar.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
|
.ops-side-bar.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
|
||||||
// background-image: url('../assets/sidebar_selected.png') !important;
|
// background-image: url('../assets/sidebar_selected.png') !important;
|
||||||
// background-repeat: no-repeat !important;
|
// background-repeat: no-repeat !important;
|
||||||
background: #3e4a71;
|
background: @layout-sidebar-selected-color;
|
||||||
// background-size: 228px 38px;
|
// background-size: 228px 38px;
|
||||||
// background-position-x: -10px;
|
// background-position-x: -10px;
|
||||||
// background-position-y: center;
|
// background-position-y: center;
|
||||||
|
@ -546,13 +533,13 @@ body {
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
// background: @layout-background-light-color;
|
// background: @layout-background-light-color;
|
||||||
// background: url('../assets/sidebar_background.png');
|
// background: url('../assets/sidebar_background.png');
|
||||||
background: #1d264c;
|
background: @layout-sidebar-color;
|
||||||
// background-position-x: center;
|
// background-position-x: center;
|
||||||
// background-position-y: center;
|
// background-position-y: center;
|
||||||
background-repeat: no-repeat !important;
|
background-repeat: no-repeat !important;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
.ant-menu-inline.ant-menu-sub {
|
.ant-menu-inline.ant-menu-sub {
|
||||||
background-color: #000c37;
|
background-color: @layout-sidebar-sub-color;
|
||||||
}
|
}
|
||||||
.ant-menu-submenu-content .ant-menu-item,
|
.ant-menu-submenu-content .ant-menu-item,
|
||||||
.ant-menu-item {
|
.ant-menu-item {
|
||||||
|
@ -560,7 +547,7 @@ body {
|
||||||
> a {
|
> a {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: rgba(255, 255, 255, 0.8);
|
color: @layout-sidebar-font-color;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
// background: #0000000a;
|
// background: #0000000a;
|
||||||
|
@ -578,7 +565,7 @@ body {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #fff;
|
color: @layout-sidebar-font-color;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
&:hover .custom-menu-extra-ellipsis {
|
&:hover .custom-menu-extra-ellipsis {
|
||||||
|
@ -614,7 +601,7 @@ body {
|
||||||
.ant-menu-item-selected {
|
.ant-menu-item-selected {
|
||||||
a,
|
a,
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #fff;
|
color: @layout-sidebar-font-color;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -624,20 +611,20 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-menu-submenu {
|
.ant-menu-submenu {
|
||||||
color: rgba(255, 255, 255, 0.8);
|
color: @layout-sidebar-font-color;
|
||||||
}
|
}
|
||||||
.ant-menu-submenu-title:hover {
|
.ant-menu-submenu-title:hover {
|
||||||
color: #fff;
|
color: @layout-sidebar-font-color;
|
||||||
background: #0000000a;
|
background: @layout-sidebar-selected-color;
|
||||||
|
font-weight: 600;
|
||||||
.ant-menu-submenu-arrow::before,
|
.ant-menu-submenu-arrow::before,
|
||||||
.ant-menu-submenu-arrow::after {
|
.ant-menu-submenu-arrow::after {
|
||||||
background: #fff;
|
background: @layout-sidebar-arrow-color;
|
||||||
background-image: linear-gradient(to right, #2e2e2e, #2e2e2e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ant-menu-submenu-selected {
|
.ant-menu-submenu-selected {
|
||||||
> .ant-menu-submenu-title {
|
> .ant-menu-submenu-title {
|
||||||
color: #fff;
|
color: @layout-sidebar-font-color;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -650,7 +637,7 @@ body {
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
> a {
|
> a {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
color: rgba(255, 255, 255, 0.6) !important;
|
color: @layout-sidebar-disabled-font-color !important;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -659,8 +646,11 @@ body {
|
||||||
}
|
}
|
||||||
.ant-menu-submenu-arrow::after,
|
.ant-menu-submenu-arrow::after,
|
||||||
.ant-menu-submenu-arrow::before {
|
.ant-menu-submenu-arrow::before {
|
||||||
background: rgba(255, 255, 255, 0.6);
|
background: @layout-sidebar-arrow-color;
|
||||||
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) !important;
|
}
|
||||||
|
|
||||||
|
.ant-menu-item.ant-menu-item-active:hover {
|
||||||
|
background: @layout-sidebar-selected-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 侧边栏折叠时
|
// 侧边栏折叠时
|
||||||
|
@ -668,7 +658,7 @@ body {
|
||||||
.ant-menu-submenu.ant-menu-submenu-placement-rightTop {
|
.ant-menu-submenu.ant-menu-submenu-placement-rightTop {
|
||||||
> .ant-menu {
|
> .ant-menu {
|
||||||
// background: url('../assets/sidebar_background.png');
|
// background: url('../assets/sidebar_background.png');
|
||||||
background: #1d264c;
|
background: @layout-sidebar-color;
|
||||||
background-position-x: center;
|
background-position-x: center;
|
||||||
background-position-y: center;
|
background-position-y: center;
|
||||||
background-repeat: no-repeat !important;
|
background-repeat: no-repeat !important;
|
||||||
|
@ -830,14 +820,21 @@ body {
|
||||||
.el-input__inner {
|
.el-input__inner {
|
||||||
border-radius: 2px !important;
|
border-radius: 2px !important;
|
||||||
}
|
}
|
||||||
.el-input__inner:hover {
|
|
||||||
border-color: #4596de !important;
|
.el-input__inner:hover,
|
||||||
|
.el-select .el-input.is-focus .el-input__inner,
|
||||||
|
.el-select .el-input__inner:focus,
|
||||||
|
.el-button.is-plain:focus,
|
||||||
|
.el-button.is-plain:hover,
|
||||||
|
.el-input.is-active .el-input__inner,
|
||||||
|
.el-input__inner:focus {
|
||||||
|
border-color: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
.el-select .el-input.is-focus .el-input__inner {
|
.el-button--text,
|
||||||
border-color: #4596de !important;
|
.el-select-dropdown__item.selected,
|
||||||
}
|
.el-button.is-plain:focus,
|
||||||
.el-select-dropdown__item.selected {
|
.el-button.is-plain:hover {
|
||||||
color: #4596de !important;
|
color: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tabs-nav .ant-tabs-tab {
|
.ant-tabs-nav .ant-tabs-tab {
|
||||||
|
@ -897,7 +894,7 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-vue-treeselect__control(@bgColor:#f0f5ff,@border:none) {
|
.custom-vue-treeselect__control(@bgColor:#custom_colors()[color_2],@border:none) {
|
||||||
background-color: @bgColor;
|
background-color: @bgColor;
|
||||||
border: @border;
|
border: @border;
|
||||||
}
|
}
|
||||||
|
@ -938,29 +935,29 @@ body {
|
||||||
.vue-treeselect__option--highlight,
|
.vue-treeselect__option--highlight,
|
||||||
.vue-treeselect__option--selected {
|
.vue-treeselect__option--selected {
|
||||||
color: #custom_colors[color_1];
|
color: #custom_colors[color_1];
|
||||||
background-color: #f0f5ff !important;
|
background-color: #custom_colors() [color_2] !important;
|
||||||
}
|
}
|
||||||
.vue-treeselect__checkbox--checked,
|
.vue-treeselect__checkbox--checked,
|
||||||
.vue-treeselect__checkbox--indeterminate {
|
.vue-treeselect__checkbox--indeterminate {
|
||||||
border-color: #2f54eb !important;
|
border-color: #custom_colors() [color_1] !important;
|
||||||
background: #2f54eb !important;
|
background: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
.vue-treeselect__label-container:hover {
|
.vue-treeselect__label-container:hover {
|
||||||
.vue-treeselect__checkbox--checked,
|
.vue-treeselect__checkbox--checked,
|
||||||
.vue-treeselect__checkbox--indeterminate {
|
.vue-treeselect__checkbox--indeterminate {
|
||||||
border-color: #2f54eb !important;
|
border-color: #custom_colors() [color_1] !important;
|
||||||
background: #2f54eb !important;
|
background: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.vue-treeselect__multi-value-item {
|
.vue-treeselect__multi-value-item {
|
||||||
background: #f0f5ff !important;
|
background: #custom_colors() [color_2] !important;
|
||||||
color: #2f54eb !important;
|
color: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
.vue-treeselect__value-remove {
|
.vue-treeselect__value-remove {
|
||||||
color: #2f54eb !important;
|
color: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
.vue-treeselect__label-container:hover .vue-treeselect__checkbox--unchecked {
|
.vue-treeselect__label-container:hover .vue-treeselect__checkbox--unchecked {
|
||||||
border-color: #2f54eb !important;
|
border-color: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
//表格样式
|
//表格样式
|
||||||
|
@ -970,7 +967,7 @@ body {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
.vxe-table--header-wrapper {
|
.vxe-table--header-wrapper {
|
||||||
background-color: #f0f5ff !important;
|
background-color: #custom_colors() [color_2] !important;
|
||||||
}
|
}
|
||||||
.vxe-header--row .vxe-header--column:hover {
|
.vxe-header--row .vxe-header--column:hover {
|
||||||
background: #2f54eb1f !important;
|
background: #2f54eb1f !important;
|
||||||
|
@ -994,7 +991,7 @@ body {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
.vxe-table--header-wrapper {
|
.vxe-table--header-wrapper {
|
||||||
background-color: #f0f5ff !important;
|
background-color: #custom_colors() [color_2] !important;
|
||||||
}
|
}
|
||||||
// .vxe-table--header-wrapper.body--wrapper {
|
// .vxe-table--header-wrapper.body--wrapper {
|
||||||
// border-radius: 8px !important;
|
// border-radius: 8px !important;
|
||||||
|
@ -1088,8 +1085,34 @@ body {
|
||||||
.vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon,
|
.vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon,
|
||||||
.is--filter-active .vxe-cell--filter .vxe-filter--btn,
|
.is--filter-active .vxe-cell--filter .vxe-filter--btn,
|
||||||
.vxe-table .vxe-sort--asc-btn.sort--active,
|
.vxe-table .vxe-sort--asc-btn.sort--active,
|
||||||
.vxe-table .vxe-sort--desc-btn.sort--active {
|
.vxe-table .vxe-sort--desc-btn.sort--active,
|
||||||
color: #2f54eb !important;
|
.vxe-select-option.is--selected,
|
||||||
|
.vxe-loading > .vxe-loading--chunk,
|
||||||
|
.vxe-loading > .vxe-loading--warpper,
|
||||||
|
.vxe-pager .vxe-pager--jump-next:not(.is--disabled).is--active,
|
||||||
|
.vxe-pager .vxe-pager--jump-next:not(.is--disabled):focus,
|
||||||
|
.vxe-pager .vxe-pager--jump-prev:not(.is--disabled).is--active,
|
||||||
|
.vxe-pager .vxe-pager--jump-prev:not(.is--disabled):focus,
|
||||||
|
.vxe-pager .vxe-pager--next-btn:not(.is--disabled).is--active,
|
||||||
|
.vxe-pager .vxe-pager--next-btn:not(.is--disabled):focus,
|
||||||
|
.vxe-pager .vxe-pager--num-btn:not(.is--disabled).is--active,
|
||||||
|
.vxe-pager .vxe-pager--num-btn:not(.is--disabled):focus,
|
||||||
|
.vxe-pager .vxe-pager--prev-btn:not(.is--disabled).is--active,
|
||||||
|
.vxe-pager .vxe-pager--prev-btn:not(.is--disabled):focus,
|
||||||
|
.vxe-button.type--text:not(.is--disabled):hover,
|
||||||
|
.vxe-table--filter-footer > button:hover {
|
||||||
|
color: #custom_colors() [color_1] !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vxe-cell .vxe-default-input:focus,
|
||||||
|
.vxe-cell .vxe-default-select:focus,
|
||||||
|
.vxe-cell .vxe-default-textarea:focus,
|
||||||
|
.vxe-table--filter-wrapper .vxe-default-input:focus,
|
||||||
|
.vxe-table--filter-wrapper .vxe-default-select:focus,
|
||||||
|
.vxe-table--filter-wrapper .vxe-default-textarea:focus,
|
||||||
|
.vxe-select.is--active:not(.is--filter) > .vxe-input .vxe-input--inner,
|
||||||
|
.vxe-input:not(.is--disabled).is--active .vxe-input--inner {
|
||||||
|
border-color: #custom_colors() [color_1] !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
//批量操作
|
//批量操作
|
||||||
|
@ -1107,7 +1130,7 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
> span:last-child {
|
> span:last-child {
|
||||||
color: rgba(47, 84, 235, 0.55);
|
color: #custom_colors[color_1];
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1117,7 +1140,7 @@ body {
|
||||||
.ant-tabs-card-bar {
|
.ant-tabs-card-bar {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
.ant-tabs-nav-container {
|
.ant-tabs-nav-container {
|
||||||
background-color: #custom_colors[color_2];
|
background-color: #fff;
|
||||||
.ant-tabs-tab {
|
.ant-tabs-tab {
|
||||||
border: none;
|
border: none;
|
||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
|
@ -1125,9 +1148,9 @@ body {
|
||||||
background: rgba(255, 255, 255, 0.5);
|
background: rgba(255, 255, 255, 0.5);
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.ant-tabs-tab-active {
|
.ant-tabs-tab-active {
|
||||||
background: #fff !important;
|
background: #custom_colors[color_2];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1218,7 +1241,7 @@ body {
|
||||||
|
|
||||||
.el-tabs__header {
|
.el-tabs__header {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
background-color: #f0f5ff;
|
background-color: #custom_colors[color_2];
|
||||||
border-radius: 8px 8px 0px 0px;
|
border-radius: 8px 8px 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1303,6 +1326,15 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// json editor
|
||||||
|
.jsoneditor-vue {
|
||||||
|
div.jsoneditor {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
div.jsoneditor-menu {
|
||||||
|
border-bottom-color: #custom_colors[color_1];
|
||||||
|
}
|
||||||
|
}
|
||||||
// .ant-menu.ant-menu-light {
|
// .ant-menu.ant-menu-light {
|
||||||
// &.ops-menu {
|
// &.ops-menu {
|
||||||
// background-color: white;
|
// background-color: white;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@border-radius-base: 2px; // 组件/浮层圆角
|
@border-radius-base: 2px; // 组件/浮层圆角
|
||||||
@primary-color: #2f54eb; // 全局主色
|
@primary-color: #2f54eb; // 全局主色
|
||||||
|
@scrollbar-color: rgba(47, 122, 235, 0.2);
|
||||||
|
|
||||||
// @layout-header-background: #1a3652;
|
|
||||||
@layout-header-background: #fff;
|
@layout-header-background: #fff;
|
||||||
@layout-header-height: 40px;
|
@layout-header-height: 40px;
|
||||||
@layout-header-icon-height: 34px;
|
@layout-header-icon-height: 34px;
|
||||||
|
@ -15,13 +15,20 @@
|
||||||
@layout-background-light-color: #fafafa;
|
@layout-background-light-color: #fafafa;
|
||||||
@layout-background-light-color-light: #f0f0f0;
|
@layout-background-light-color-light: #f0f0f0;
|
||||||
|
|
||||||
|
@layout-sidebar-color: #1d264c; //bg
|
||||||
|
@layout-sidebar-sub-color: #000c37; //bg
|
||||||
|
@layout-sidebar-selected-color: #3e4a71; //selected bg
|
||||||
|
@layout-sidebar-arrow-color: rgba(255, 255, 255, 0.6);
|
||||||
|
@layout-sidebar-font-color: #fff;
|
||||||
|
@layout-sidebar-disabled-font-color: rgba(255, 255, 255, 0.6);
|
||||||
|
|
||||||
#custom_colors() {
|
#custom_colors() {
|
||||||
color_1: #2f54eb;
|
color_1: #2f54eb; //primary color
|
||||||
color_2: #f0f5ff;
|
color_2: #f0f5ff; //light background color
|
||||||
color_3: #D2E2FF;
|
color_3: #d2e2ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ops_display_wrapper(@backgroundColor:#f0f5ff) {
|
.ops_display_wrapper(@backgroundColor:#custom_colors()[color_2]) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px 8px;
|
padding: 5px 8px;
|
||||||
background-color: @backgroundColor;
|
background-color: @backgroundColor;
|
||||||
|
|
|
@ -60,34 +60,6 @@
|
||||||
<vxe-column field="mobile" :title="$t('cs.companyStructure.mobile')" min-width="80"></vxe-column>
|
<vxe-column field="mobile" :title="$t('cs.companyStructure.mobile')" min-width="80"></vxe-column>
|
||||||
<vxe-column field="position_name" :title="$t('cs.companyStructure.positionName')" min-width="80"></vxe-column>
|
<vxe-column field="position_name" :title="$t('cs.companyStructure.positionName')" min-width="80"></vxe-column>
|
||||||
<vxe-column field="department_name" :title="$t('cs.companyStructure.departmentName')" min-width="80"></vxe-column>
|
<vxe-column field="department_name" :title="$t('cs.companyStructure.departmentName')" min-width="80"></vxe-column>
|
||||||
<vxe-column field="current_company" v-if="useDFC" :title="$t('cs.companyStructure.currentCompany')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="dfc_entry_date" v-if="useDFC" :title="$t('cs.companyStructure.dfcEntryDate')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="entry_date" :title="$t('cs.companyStructure.entryDate')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="is_internship" :title="$t('cs.companyStructure.isInternship')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="leave_date" :title="$t('cs.companyStructure.leaveDate')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="id_card" :title="$t('cs.companyStructure.idCard')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="nation" :title="$t('cs.companyStructure.nation')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="id_place" :title="$t('cs.companyStructure.idPlace')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="party" :title="$t('cs.companyStructure.party')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="household_registration_type" :title="$t('cs.companyStructure.householdRegistrationType')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="hometown" :title="$t('cs.companyStructure.homewtown')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="marry" :title="$t('cs.companyStructure.marry')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="max_degree" :title="$t('cs.companyStructure.maxDegree')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="emergency_person" :title="$t('cs.companyStructure.emergencyPerson')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="emergency_phone" :title="$t('cs.companyStructure.emergencyPhone')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="bank_card_number" :title="$t('cs.companyStructure.bankCardNumber')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="bank_card_name" :title="$t('cs.companyStructure.bankCardName')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="opening_bank" :title="$t('cs.companyStructure.openingBank')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="account_opening_location" :title="$t('cs.companyStructure.accountOpeningLocation')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="school" :title="$t('cs.companyStructure.school')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="major" :title="$t('cs.companyStructure.major')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="education" :title="$t('cs.companyStructure.education')" min-width="80"></vxe-column>
|
|
||||||
<vxe-column field="graduation_year" :title="$t('cs.companyStructure.graduationYear')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="birth_date" :title="$t('cs.companyStructure.birthDate')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="birth_place" :title="$t('cs.companyStructure.birthPlace')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="nationality_region" :title="$t('cs.companyStructure.nationalityRegion')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="first_entry_date" :title="$t('cs.companyStructure.firstEntryDate')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column field="estimated_departure_date" :title="$t('cs.companyStructure.estimatedDepartureDate')" min-width="120"></vxe-column>
|
|
||||||
<vxe-column v-if="has_error" field="err" :title="$t('cs.companyStructure.importFailedReason')" min-width="120" fixed="right">
|
<vxe-column v-if="has_error" field="err" :title="$t('cs.companyStructure.importFailedReason')" min-width="120" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span :style="{ color: '#D81E06' }">{{ row.err }}</span>
|
<span :style="{ color: '#D81E06' }">{{ row.err }}</span>
|
||||||
|
@ -303,98 +275,6 @@ export default {
|
||||||
v: '部门',
|
v: '部门',
|
||||||
t: 's',
|
t: 's',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
v: '目前所属主体',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '初始入职日期',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '目前主体入职日期',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '正式/实习生',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '离职日期',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '身份证号码',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '民族',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '籍贯',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '组织关系',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '户籍类型',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '户口所在地',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '婚姻情况',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '最高学历',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '紧急联系人',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '紧急联系电话',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '卡号',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '银行',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '开户行',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '开户地',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '学校',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '专业',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '学历',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
v: '毕业年份',
|
|
||||||
t: 's',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
data[1] = data[1].filter((item) => item['v'] !== '目前所属主体')
|
data[1] = data[1].filter((item) => item['v'] !== '目前所属主体')
|
||||||
|
|
|
@ -372,7 +372,7 @@ export default {
|
||||||
{ label: this.$t('cs.companyStructure.mobile'), value: 'mobile' },
|
{ label: this.$t('cs.companyStructure.mobile'), value: 'mobile' },
|
||||||
{ label: this.$t('cs.companyStructure.departmentName'), value: 'department_name' },
|
{ label: this.$t('cs.companyStructure.departmentName'), value: 'department_name' },
|
||||||
{ label: this.$t('cs.companyStructure.positionName'), value: 'position_name' },
|
{ label: this.$t('cs.companyStructure.positionName'), value: 'position_name' },
|
||||||
{ label: this.$t('cs.companyStructure.departmentDirector'), value: 'direct_supervisor_id' },
|
{ label: this.$t('cs.companyStructure.supervisor'), value: 'direct_supervisor_id' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
sceneList () {
|
sceneList () {
|
||||||
|
|
Loading…
Reference in New Issue