Commit f1631507 authored by 季圣华's avatar 季圣华
Browse files

调整页面布局(初稿)

parent e26e7991
...@@ -5626,7 +5626,7 @@ form .ant-upload { ...@@ -5626,7 +5626,7 @@ form .ant-upload {
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
} }
.ant-modal-mask { .ant-modal-mask {
background-color: rgba(0, 0, 0, 0.65); background-color: rgba(0, 0, 0, 0.1) !important;
} }
.ant-confirm-body .ant-confirm-title { .ant-confirm-body .ant-confirm-title {
color: rgba(0, 0, 0, 0.85); color: rgba(0, 0, 0, 0.85);
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
} }
/*列表页面弹出modal*/ /*列表页面弹出modal*/
.ant-modal-cust-warp { .ant-modal-cust-warp {
margin-top: 101px;
margin-left: 151px;
height: 100% height: 100%
} }
/*弹出modal Y轴滚动条*/ /*弹出modal Y轴滚动条*/
...@@ -38,6 +40,8 @@ ...@@ -38,6 +40,8 @@
} }
/*商品-列表页面弹出modal*/ /*商品-列表页面弹出modal*/
.ant-modal-material-warp { .ant-modal-material-warp {
margin-top: 101px;
margin-left: 151px;
height: 100% height: 100%
} }
/*商品-弹出modal Y轴滚动条*/ /*商品-弹出modal Y轴滚动条*/
...@@ -72,3 +76,7 @@ ...@@ -72,3 +76,7 @@
.j-inner-table-wrapper /deep/ .ant-table-expanded-row .ant-table-wrapper .ant-table-tbody .ant-table-row { .j-inner-table-wrapper /deep/ .ant-table-expanded-row .ant-table-wrapper .ant-table-tbody .ant-table-row {
background-color: #FFFFFF; background-color: #FFFFFF;
} }
.ant-modal-mask {
background-color: rgba(0, 0, 0, 0.1) !important;
}
\ No newline at end of file
<template> <template>
<div ref="container">
<a-modal <a-modal
ref="modal" ref="modal"
:class="getClass(modalClass)" :class="getClass(modalClass)"
:style="getStyle(modalStyle)" :style="getStyle(modalStyle)"
:visible="visible" :visible="visible"
:maskStyle="{'top':'101px','left':'151px'}"
:getContainer="() => $refs.container"
v-bind="_attrs" v-bind="_attrs"
v-on="$listeners" v-on="$listeners"
@ok="handleOk" @ok="handleOk"
...@@ -39,6 +42,7 @@ ...@@ -39,6 +42,7 @@
</template> </template>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@ok="handleSubmit" @ok="handleSubmit"
@cancel="close" @cancel="close"
cancelText="关闭" cancelText="关闭"
style="top:5%;height: 100%;overflow-y: hidden" style="top:5%;height: 90%;overflow-y: hidden"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
> >
<a-row :gutter="10" style="padding: 10px; margin: -10px"> <a-row :gutter="10" style="padding: 10px; margin: -10px">
......
<template> <template>
<a-layout-sider <a-layout-sider
:class="['sider', isDesktop() ? null : 'shadow', theme, fixSiderbar ? 'ant-fixed-sidemenu' : null ]" :class="['sider', isDesktop() ? null : 'shadow', theme, fixSiderbar ? 'ant-fixed-sidemenu' : null ]"
width="200px" width="150px"
:collapsible="collapsible" :collapsible="collapsible"
v-model="collapsed" v-model="collapsed"
:trigger="null"> :trigger="null">
......
...@@ -172,7 +172,8 @@ export default { ...@@ -172,7 +172,8 @@ export default {
const props = { const props = {
mode: mode, mode: mode,
theme: theme, theme: theme,
openKeys: this.openKeys openKeys: this.openKeys,
inlineIndent: 12,
} }
const on = { const on = {
select: obj => { select: obj => {
......
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
<style lang="less" scoped> <style lang="less" scoped>
/* update_begin author:scott date:20190220 for: 缩小首页布局顶部的高度*/ /* update_begin author:scott date:20190220 for: 缩小首页布局顶部的高度*/
@height: 59px; @height: 49px;
.layout { .layout {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
@close="() => this.collapsed = false" @close="() => this.collapsed = false"
:closable="false" :closable="false"
:visible="collapsed" :visible="collapsed"
width="200px" width="150px"
> >
<side-menu <side-menu
mode="inline" mode="inline"
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
@close="() => this.collapsed = false" @close="() => this.collapsed = false"
:closable="false" :closable="false"
:visible="collapsed" :visible="collapsed"
width="200px" width="150px"
> >
<side-menu <side-menu
mode="inline" mode="inline"
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<a-layout <a-layout
:class="[layoutMode, `content-width-${contentWidth}`]" :class="[layoutMode, `content-width-${contentWidth}`]"
:style="{ paddingLeft: fixSiderbar && isDesktop() ? `${sidebarOpened ? 200 : 80}px` : '0' }"> :style="{ paddingLeft: fixSiderbar && isDesktop() ? `${sidebarOpened ? 150 : 80}px` : '0' }">
<!-- layout header --> <!-- layout header -->
<global-header <global-header
:mode="layoutMode" :mode="layoutMode"
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
/> />
<!-- layout content --> <!-- layout content -->
<a-layout-content :style="{ height: '100%', paddingTop: fixedHeader ? '59px' : '0' }"> <a-layout-content :style="{ height: '100%', paddingTop: fixedHeader ? '49px' : '0' }">
<slot></slot> <slot></slot>
</a-layout-content> </a-layout-content>
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
transition: width .2s; transition: width .2s;
&.ant-header-side-opened { &.ant-header-side-opened {
width: calc(100% - 200px) width: calc(100% - 150px)
} }
&.ant-header-side-closed { &.ant-header-side-closed {
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
transition: all .3s; transition: all .3s;
height: 70%; height: 70%;
line-height: 46px; line-height: 36px;
&.action-full { &.action-full {
height: 100%; height: 100%;
...@@ -435,7 +435,7 @@ ...@@ -435,7 +435,7 @@
margin: auto; margin: auto;
padding: 0 20px 0 0; padding: 0 20px 0 0;
display: flex; display: flex;
height: 59px; height: 49px;
.ant-menu.ant-menu-horizontal { .ant-menu.ant-menu-horizontal {
border: none; border: none;
...@@ -474,7 +474,7 @@ ...@@ -474,7 +474,7 @@
.header-index-right { .header-index-right {
float: right; float: right;
height: 59px; height: 49px;
overflow: hidden; overflow: hidden;
.action:hover { .action:hover {
background-color: rgba(0, 0, 0, 0.05); background-color: rgba(0, 0, 0, 0.05);
......
<template> <template>
<div ref="container">
<a-modal <a-modal
:title="title" :title="title"
:width="500" :width="500"
:visible="visible" :visible="visible"
:confirm-loading="confirmLoading" :confirm-loading="confirmLoading"
:getContainer="() => $refs.container"
:maskStyle="{'top':'101px','left':'151px'}"
:maskClosable="false" :maskClosable="false"
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
...@@ -31,6 +34,7 @@ ...@@ -31,6 +34,7 @@
</a-row> </a-row>
</a-spin> </a-spin>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/*缩小首页布 局顶部的高度*/ /*缩小首页布 局顶部的高度*/
@height: 59px; @height: 49px;
.sider { .sider {
box-shadow: none !important; box-shadow: none !important;
......
<template> <template>
<div ref="container">
<a-modal <a-modal
:title="title" :title="title"
:width="modalWidth" :width="modalWidth"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:getContainer="() => $refs.container"
:maskStyle="{'top':'101px','left':'151px'}"
:maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:25%;height: 50%;overflow-y: hidden"> style="top:20%;height: 50%;overflow-y: hidden">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form :form="form"> <a-form :form="form">
<a-form-item label="旧密码" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="旧密码" :labelCol="labelCol" :wrapperCol="wrapperCol">
...@@ -23,6 +27,7 @@ ...@@ -23,6 +27,7 @@
</a-form> </a-form>
</a-spin> </a-spin>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
......
<template> <template>
<div ref="container">
<a-modal <a-modal
:title="title" :title="title"
:width="500" :width="500"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:getContainer="() => $refs.container"
:maskStyle="{'top':'101px','left':'151px'}"
:maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
...@@ -26,6 +30,7 @@ ...@@ -26,6 +30,7 @@
</a-form> </a-form>
</a-spin> </a-spin>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
:forceRender="true" :forceRender="true"
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:5%;height: 100%;overflow-y: hidden"> style="top:20px;height: 95%;overflow-y: hidden">
<template slot="footer"> <template slot="footer">
<a-button v-if="billPrintFlag" @click="handlePrint">三联打印预览</a-button> <a-button v-if="billPrintFlag" @click="handlePrint">三联打印预览</a-button>
<!--此处为解决缓存问题--> <!--此处为解决缓存问题-->
......
<template> <template>
<div ref="container">
<a-modal <a-modal
:title="title" :title="title"
:width="width" :width="width"
:visible="visible" :visible="visible"
:getContainer="() => $refs.container"
:maskStyle="{'top':'101px','left':'151px'}"
:maskClosable="false"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:5%;height: 100%;overflow-y: hidden"> style="top:20px;height: 95%;overflow-y: hidden">
<template slot="footer"> <template slot="footer">
<a-button key="back" @click="handleCancel">取消</a-button> <a-button key="back" @click="handleCancel">取消</a-button>
</template> </template>
...@@ -25,6 +29,7 @@ ...@@ -25,6 +29,7 @@
</template> </template>
</a-form> </a-form>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
......
<template> <template>
<div ref="container">
<a-modal <a-modal
:title="title" :title="title"
:width="1250" :width="1250"
:visible="visible" :visible="visible"
:getContainer="() => $refs.container"
:maskStyle="{'top':'101px','left':'151px'}"
:maskClosable="false"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:5%;height: 100%;overflow-y: hidden"> style="top:50px;height: 90%;overflow-y: hidden">
<template slot="footer"> <template slot="footer">
<a-button @click="handleCancel">关闭</a-button> <a-button @click="handleCancel">关闭</a-button>
</template> </template>
...@@ -82,6 +86,7 @@ ...@@ -82,6 +86,7 @@
<!-- 表单区域 --> <!-- 表单区域 -->
<bill-detail ref="billDetail"></bill-detail> <bill-detail ref="billDetail"></bill-detail>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
......
<template> <template>
<div ref="container">
<a-modal <a-modal
:title="title" :title="title"
:width="1250" :width="1250"
:visible="visible" :visible="visible"
:getContainer="() => $refs.container"
:maskStyle="{'top':'101px','left':'151px'}"
:maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:5%;height: 100%;overflow-y: hidden"> style="top:20px;height: 95%;overflow-y: hidden">
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper" v-if="selectType === 'list'"> <div class="table-page-search-wrapper" v-if="selectType === 'list'">
<!-- 搜索区域 --> <!-- 搜索区域 -->
...@@ -93,6 +97,7 @@ ...@@ -93,6 +97,7 @@
<!-- 表单区域 --> <!-- 表单区域 -->
<bill-detail ref="billDetail"></bill-detail> <bill-detail ref="billDetail"></bill-detail>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
......
<template> <template>
<div ref="container">
<a-modal <a-modal
:title="title" :title="title"
:width="650" :width="650"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:getContainer="() => $refs.container"
:maskStyle="{'top':'101px','left':'151px'}"
:maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
...@@ -62,6 +66,7 @@ ...@@ -62,6 +66,7 @@
</a-form> </a-form>
</a-spin> </a-spin>
</a-modal> </a-modal>
</div>
</template> </template>
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:5%;height: 100%;overflow-y: hidden"> style="top:20px;height: 95%;overflow-y: hidden">
<template slot="footer"> <template slot="footer">
<a-button @click="handleCancel">取消</a-button> <a-button @click="handleCancel">取消</a-button>
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button> <a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:5%;height: 100%;overflow-y: hidden"> style="top:20px;height: 95%;overflow-y: hidden">
<template slot="footer"> <template slot="footer">
<a-button @click="handleCancel">取消</a-button> <a-button @click="handleCancel">取消</a-button>
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button> <a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" wrapClassName="ant-modal-cust-warp"
style="top:5%;height: 100%;overflow-y: hidden"> style="top:20px;height: 95%;overflow-y: hidden">
<template slot="footer"> <template slot="footer">
<a-button @click="handleCancel">取消</a-button> <a-button @click="handleCancel">取消</a-button>
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button> <a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment