[issues/563]暗色主题部分失效
parent
c5ee0e8763
commit
5c277f9748
|
@ -1,7 +1,10 @@
|
||||||
//noinspection LessUnresolvedVariable
|
//noinspection LessUnresolvedVariable
|
||||||
@prefix-cls: ~'@{namespace}-depart-manage';
|
@prefix-cls: ~'@{namespace}-address-list';
|
||||||
|
|
||||||
.@{prefix-cls} {
|
.@{prefix-cls} {
|
||||||
|
// update-begin-author:liusq date:20230625 for: [issues/563]暗色主题部分失效
|
||||||
|
background-color: @component-background;
|
||||||
|
// update-end-author:liusq date:20230625 for: [issues/563]暗色主题部分失效
|
||||||
&--box {
|
&--box {
|
||||||
.ant-tabs-nav {
|
.ant-tabs-nav {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
|
@ -84,12 +84,6 @@
|
||||||
queryPositionInfo();
|
queryPositionInfo();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less">
|
||||||
@import './index.less';
|
@import './index.less';
|
||||||
|
|
||||||
/*begin 兼容暗夜模式*/
|
|
||||||
.address-book{
|
|
||||||
background-color: @component-background !important;
|
|
||||||
}
|
|
||||||
/*end 兼容暗夜模式*/
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<a-spin :spinning="loading">
|
<a-spin :spinning="loading">
|
||||||
<BasicForm @register="registerForm" />
|
<BasicForm @register="registerForm" />
|
||||||
<div class="j-box-bottom-button offset-20" style="margin-top: 30px">
|
<div class="j-box-bottom-button offset-20" style="margin-top: 30px">
|
||||||
<div class="j-box-bottom-button-float">
|
<div class="j-box-bottom-button-float" :class="[`${prefixCls}`]">
|
||||||
<a-button preIcon="ant-design:sync-outlined" @click="onReset">重置</a-button>
|
<a-button preIcon="ant-design:sync-outlined" @click="onReset">重置</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:save-filled" @click="onSubmit">保存</a-button>
|
<a-button type="primary" preIcon="ant-design:save-filled" @click="onSubmit">保存</a-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,13 +15,15 @@
|
||||||
import { BasicForm, useForm } from '/@/components/Form/index';
|
import { BasicForm, useForm } from '/@/components/Form/index';
|
||||||
import { saveOrUpdateDepart } from '../depart.api';
|
import { saveOrUpdateDepart } from '../depart.api';
|
||||||
import { useBasicFormSchema, orgCategoryOptions } from '../depart.data';
|
import { useBasicFormSchema, orgCategoryOptions } from '../depart.data';
|
||||||
|
import { useDesign } from '/@/hooks/web/useDesign';
|
||||||
|
|
||||||
|
const { prefixCls } = useDesign('j-depart-form-content');
|
||||||
|
|
||||||
const emit = defineEmits(['success']);
|
const emit = defineEmits(['success']);
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: { type: Object, default: () => ({}) },
|
data: { type: Object, default: () => ({}) },
|
||||||
rootTreeData: { type: Array, default: () => [] },
|
rootTreeData: { type: Array, default: () => [] },
|
||||||
});
|
});
|
||||||
const prefixCls = inject('prefixCls');
|
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
// 当前是否是更新模式
|
// 当前是否是更新模式
|
||||||
const isUpdate = ref<boolean>(true);
|
const isUpdate = ref<boolean>(true);
|
||||||
|
@ -112,11 +114,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less">
|
||||||
/*begin 兼容暗夜模式*/
|
// update-begin-author:liusq date:20230625 for: [issues/563]暗色主题部分失效
|
||||||
.j-box-bottom-button-float{
|
|
||||||
background-color: @component-background;
|
@prefix-cls: ~'@{namespace}-j-depart-form-content';
|
||||||
|
/*begin 兼容暗夜模式*/
|
||||||
|
.@{prefix-cls} {
|
||||||
|
background: @component-background;
|
||||||
border-top: 1px solid @border-color-base;
|
border-top: 1px solid @border-color-base;
|
||||||
}
|
}
|
||||||
/*end 兼容暗夜模式*/
|
/*end 兼容暗夜模式*/
|
||||||
|
// update-end-author:liusq date:20230625 for: [issues/563]暗色主题部分失效
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<a-empty v-else description="无可配置部门权限" />
|
<a-empty v-else description="无可配置部门权限" />
|
||||||
|
|
||||||
<div class="j-box-bottom-button offset-20" style="margin-top: 30px">
|
<div class="j-box-bottom-button offset-20" style="margin-top: 30px">
|
||||||
<div class="j-box-bottom-button-float">
|
<div class="j-box-bottom-button-float" :class="[`${prefixCls}`]">
|
||||||
<a-dropdown :trigger="['click']" placement="top">
|
<a-dropdown :trigger="['click']" placement="top">
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu>
|
<a-menu>
|
||||||
|
@ -52,14 +52,15 @@
|
||||||
import { BasicTree } from '/@/components/Tree/index';
|
import { BasicTree } from '/@/components/Tree/index';
|
||||||
import DepartDataRuleDrawer from './DepartDataRuleDrawer.vue';
|
import DepartDataRuleDrawer from './DepartDataRuleDrawer.vue';
|
||||||
import { queryRoleTreeList, queryDepartPermission, saveDepartPermission } from '../depart.api';
|
import { queryRoleTreeList, queryDepartPermission, saveDepartPermission } from '../depart.api';
|
||||||
|
import { useDesign } from '/@/hooks/web/useDesign';
|
||||||
|
|
||||||
|
const { prefixCls } = useDesign('j-depart-form-content');
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: { type: Object, default: () => ({}) },
|
data: { type: Object, default: () => ({}) },
|
||||||
});
|
});
|
||||||
// 当前选中的部门ID,可能会为空,代表未选择部门
|
// 当前选中的部门ID,可能会为空,代表未选择部门
|
||||||
const departId = computed(() => props.data?.id);
|
const departId = computed(() => props.data?.id);
|
||||||
|
|
||||||
const prefixCls = inject('prefixCls');
|
|
||||||
const basicTree = ref();
|
const basicTree = ref();
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
const treeData = ref<any[]>([]);
|
const treeData = ref<any[]>([]);
|
||||||
|
@ -166,11 +167,4 @@
|
||||||
.depart-rule-tree :deep(.scrollbar__bar) {
|
.depart-rule-tree :deep(.scrollbar__bar) {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*begin 兼容暗夜模式*/
|
|
||||||
.j-box-bottom-button-float{
|
|
||||||
background-color: @component-background;
|
|
||||||
border-top: 1px solid @border-color-base;
|
|
||||||
}
|
|
||||||
/*end 兼容暗夜模式*/
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
@prefix-cls: ~'@{namespace}-depart-manage';
|
@prefix-cls: ~'@{namespace}-depart-manage';
|
||||||
|
|
||||||
.@{prefix-cls} {
|
.@{prefix-cls} {
|
||||||
|
// update-begin-author:liusq date:20230625 for: [issues/563]暗色主题部分失效
|
||||||
|
background: @component-background;
|
||||||
|
// update-end-author:liusq date:20230625 for: [issues/563]暗色主题部分失效
|
||||||
|
|
||||||
&--box {
|
&--box {
|
||||||
.ant-tabs-nav {
|
.ant-tabs-nav {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<DepartLeftTree ref="leftTree" @select="onTreeSelect" @rootTreeData="onRootTreeData" />
|
<DepartLeftTree ref="leftTree" @select="onTreeSelect" @rootTreeData="onRootTreeData" />
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="12" :lg="24" :md="24" style="margin-bottom: 10px">
|
<a-col :xl="12" :lg="24" :md="24" style="margin-bottom: 10px">
|
||||||
<div style="height: 100%;" class="depart-manage">
|
<div style="height: 100%;" :class="[`${prefixCls}`]">
|
||||||
<a-tabs v-show="departData != null" defaultActiveKey="base-info">
|
<a-tabs v-show="departData != null" defaultActiveKey="base-info">
|
||||||
<a-tab-pane tab="基本信息" key="base-info" forceRender style="position: relative">
|
<a-tab-pane tab="基本信息" key="base-info" forceRender style="position: relative">
|
||||||
<div style="padding: 20px">
|
<div style="padding: 20px">
|
||||||
|
@ -61,10 +61,3 @@
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
@import './index.less';
|
@import './index.less';
|
||||||
</style>
|
</style>
|
||||||
<style lang="less" scoped>
|
|
||||||
/*begin 兼容暗夜模式*/
|
|
||||||
.depart-manage{
|
|
||||||
background-color: @component-background;
|
|
||||||
}
|
|
||||||
/*end 兼容暗夜模式*/
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Reference in New Issue