diff --git a/web-react/src/assets/style/dark/lib/form.less b/web-react/src/assets/style/dark/lib/form.less index 9a5fc4e..94afe69 100644 --- a/web-react/src/assets/style/dark/lib/form.less +++ b/web-react/src/assets/style/dark/lib/form.less @@ -32,7 +32,7 @@ background-color: @component-background; @box-shadow-focused: 0 0 0 2px fade(@primary-color, 50%); - @control-background: darken(@white, 95%) !important; + @control-background: darken(@white, 80%) !important; &::before, &::after { content: none; diff --git a/web-react/src/pages/business/house/code/form/part.jsx b/web-react/src/pages/business/house/code/form/part.jsx index e7ddb17..c6c1795 100644 --- a/web-react/src/pages/business/house/code/form/part.jsx +++ b/web-react/src/pages/business/house/code/form/part.jsx @@ -20,6 +20,9 @@ import getDictData from 'util/dic' import { api } from 'common/api' import { CITY } from 'util/global' import auth from 'components/authorized/handler' +import store from 'store' + +const { getState } = store const initialValues = { type: 1, @@ -47,6 +50,10 @@ export default class form extends Component { showIndustry: false, } + theme = getState('layout').theme + + nav = getState('nav').nav + // 表单实例 form = React.createRef() @@ -69,6 +76,8 @@ export default class form extends Component { this.fillData({ record: this.props.record, }) + + console.log(this.nav) } componentWillUnmount() { @@ -188,6 +197,7 @@ export default class form extends Component { mask, zoom: 12, center: result.geocodes[0].location, + mapStyle: `amap://styles/${this.theme}`, }) this.map.on('click', e => { @@ -540,7 +550,15 @@ export default class form extends Component { - + - +