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

调整样式,兼容手机浏览器页面

parent 05426bf2
...@@ -17,10 +17,12 @@ ...@@ -17,10 +17,12 @@
padding-top: 15px; padding-top: 15px;
padding-bottom: 15px; padding-bottom: 15px;
} }
/*列表页面弹出modal*/ .depot-mask {
.ant-modal-cust-warp {
margin-top: 93px; margin-top: 93px;
margin-left: 154px; margin-left: 154px;
}
/*列表页面弹出modal*/
.ant-modal-cust-warp {
height: 100% height: 100%
} }
/*弹出modal Y轴滚动条*/ /*弹出modal Y轴滚动条*/
...@@ -44,33 +46,6 @@ ...@@ -44,33 +46,6 @@
height: calc(100% - 200px) !important; height: calc(100% - 200px) !important;
overflow-y: auto overflow-y: auto
} }
/*商品-列表页面弹出modal*/
.ant-modal-material-warp {
margin-top: 93px;
margin-left: 154px;
height: 100%
}
/*商品-弹出modal Y轴滚动条*/
.ant-modal-material-warp .ant-modal-body {
padding: 12px 24px 12px 24px;
height: calc(100% - 110px) !important;
overflow-y: auto
}
/*商品-弹出modal 先有content后有body 故滚动条控制在body上*/
.ant-modal-material-warp .ant-modal-content {
height: 90%;
overflow-y: hidden
}
/*商品-文本框样式*/
.ant-modal-material-warp .ant-form-item {
margin-bottom: 12px;
}
/*全屏模式*/
.ant-modal-material-warp .fullscreen .ant-modal-body {
padding: 24px 24px 12px 24px;
height: calc(100% - 200px) !important;
overflow-y: auto
}
/*列表中有图片的加这个样式 参考用户管理*/ /*列表中有图片的加这个样式 参考用户管理*/
.anty-img-wrap { .anty-img-wrap {
height: 25px; height: 25px;
......
...@@ -5,8 +5,11 @@ ...@@ -5,8 +5,11 @@
:class="getClass(modalClass)" :class="getClass(modalClass)"
:style="getStyle(modalStyle)" :style="getStyle(modalStyle)"
:visible="visible" :visible="visible"
:maskStyle="{'top':'93px','left':'154px'}"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false"
v-bind="_attrs" v-bind="_attrs"
v-on="$listeners" v-on="$listeners"
@ok="handleOk" @ok="handleOk"
...@@ -49,10 +52,12 @@ ...@@ -49,10 +52,12 @@
import { getClass, getStyle } from '@/utils/props-util' import { getClass, getStyle } from '@/utils/props-util'
import { triggerWindowResizeEvent, handleIntroJs } from "@/utils/util" import { triggerWindowResizeEvent, handleIntroJs } from "@/utils/util"
import {mixinDevice} from '@/utils/mixin'
import Vue from 'vue' import Vue from 'vue'
export default { export default {
name: 'JModal', name: 'JModal',
mixins: [mixinDevice],
props: { props: {
title: String, title: String,
// 可使用 .sync 修饰符 // 可使用 .sync 修饰符
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
:width="modalWidth" :width="modalWidth"
:visible="visible" :visible="visible"
:title="title" :title="title"
:wrapClassName="wrapClassNameInfo()"
@ok="handleSubmit" @ok="handleSubmit"
@cancel="close" @cancel="close"
cancelText="关闭" cancelText="关闭"
style="top:5%;height: 90%;overflow-y: hidden" style="top:5%;height: 90%;overflow-y: hidden"
wrapClassName="ant-modal-cust-warp"
> >
<a-row :gutter="10" style="padding: 10px; margin: -10px"> <a-row :gutter="10" style="padding: 10px; margin: -10px">
<a-col :md="24" :sm="24"> <a-col :md="24" :sm="24">
...@@ -113,11 +113,12 @@ ...@@ -113,11 +113,12 @@
import {filterObj, getMpListShort} from '@/utils/util' import {filterObj, getMpListShort} from '@/utils/util'
import {getMaterialBySelect, queryMaterialCategoryTreeList} from '@/api/api' import {getMaterialBySelect, queryMaterialCategoryTreeList} from '@/api/api'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import {mixinDevice} from '@/utils/mixin'
import Vue from 'vue' import Vue from 'vue'
export default { export default {
name: 'JSelectMaterialModal', name: 'JSelectMaterialModal',
mixins:[JeecgListMixin], mixins:[JeecgListMixin, mixinDevice],
components: { components: {
MaterialModal: () => import('@/views/material/modules/MaterialModal') MaterialModal: () => import('@/views/material/modules/MaterialModal')
}, },
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
:confirm-loading="confirmLoading" :confirm-loading="confirmLoading"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}" :maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false" :maskClosable="false"
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" style="top:20%;height: 45%;">
style="top:20%;height: 45%;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>
...@@ -39,9 +40,10 @@ ...@@ -39,9 +40,10 @@
<script> <script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import {mixinDevice} from '@/utils/mixin'
export default { export default {
name: 'ImportFileModal', name: 'ImportFileModal',
mixins:[JeecgListMixin], mixins:[JeecgListMixin, mixinDevice],
data () { data () {
return { return {
title:"", title:"",
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<span class="action"> <span class="action">
<a class="logout_title" href="javascript:;" @click="handleLogout"> <a class="logout_title" href="javascript:;" @click="handleLogout">
<a-icon type="logout"/> <a-icon type="logout"/>
<span v-if="isDesktop()">&nbsp;退出登录</span> <span>&nbsp;退出登录</span>
</a> </a>
</span> </span>
<user-password ref="userPassword"></user-password> <user-password ref="userPassword"></user-password>
...@@ -186,7 +186,9 @@ ...@@ -186,7 +186,9 @@
} }
}, },
filterOption(input, option) { filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 if(option && option.componentOptions && option.componentOptions.children && option.componentOptions.children[0]) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
}, },
// update_begin author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题 // update_begin author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
searchMethods(value) { searchMethods(value) {
......
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}" :maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false" :maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" style="top:20%;height: 50%;">
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">
...@@ -32,9 +33,11 @@ ...@@ -32,9 +33,11 @@
<script> <script>
import { putAction } from '@/api/manage' import { putAction } from '@/api/manage'
import {mixinDevice} from '@/utils/mixin'
import md5 from 'md5' import md5 from 'md5'
export default { export default {
name: "UserPassword", name: "UserPassword",
mixins: [mixinDevice],
data () { data () {
return { return {
title:"修改密码", title:"修改密码",
......
...@@ -33,6 +33,13 @@ const mixinDevice = { ...@@ -33,6 +33,13 @@ const mixinDevice = {
}, },
isDesktop () { isDesktop () {
return this.device === 'desktop' return this.device === 'desktop'
},
wrapClassNameInfo () {
if(this.device === 'desktop') {
return 'ant-modal-cust-warp depot-mask'
} else {
return 'ant-modal-cust-warp'
}
} }
} }
} }
......
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}" :maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false" :maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" style="top:30%;height: 35%;">
style="top:30%;height: 35%;overflow-y: hidden">
<template slot="footer"> <template slot="footer">
<a-button key="back" v-if="isReadOnly" @click="handleCancel"> <a-button key="back" v-if="isReadOnly" @click="handleCancel">
关闭 关闭
...@@ -35,8 +36,10 @@ ...@@ -35,8 +36,10 @@
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
import { getAction } from '@/api/manage' import { getAction } from '@/api/manage'
import {mixinDevice} from '@/utils/mixin'
export default { export default {
name: "BatchSetDepot", name: "BatchSetDepot",
mixins: [mixinDevice],
data () { data () {
return { return {
title:"操作", title:"操作",
......
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
:visible="visible" :visible="visible"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}" :maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false" :maskClosable="false"
:style="modalStyle" :style="modalStyle"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭">
wrapClassName="ant-modal-cust-warp">
<template slot="footer"> <template slot="footer">
<a-button key="back" @click="handleCancel">取消</a-button> <a-button key="back" @click="handleCancel">取消</a-button>
</template> </template>
...@@ -34,8 +35,10 @@ ...@@ -34,8 +35,10 @@
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
import {mixinDevice} from '@/utils/mixin'
export default { export default {
name: 'BillPrintIframe', name: 'BillPrintIframe',
mixins: [mixinDevice],
data () { data () {
return { return {
title: "三联打印预览", title: "三联打印预览",
......
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
:visible="visible" :visible="visible"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}" :maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false" :maskClosable="false"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" style="top:50px;height: 90%;">
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>
...@@ -92,11 +93,12 @@ ...@@ -92,11 +93,12 @@
<script> <script>
import BillDetail from './BillDetail' import BillDetail from './BillDetail'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import {mixinDevice} from '@/utils/mixin'
import { findBySelectSup, findBySelectCus, findBillDetailByNumber} from '@/api/api' import { findBySelectSup, findBySelectCus, findBillDetailByNumber} from '@/api/api'
import Vue from 'vue' import Vue from 'vue'
export default { export default {
name: 'HistoryBillList', name: 'HistoryBillList',
mixins:[JeecgListMixin], mixins:[JeecgListMixin, mixinDevice],
components: { components: {
BillDetail, BillDetail,
}, },
......
...@@ -6,12 +6,13 @@ ...@@ -6,12 +6,13 @@
:visible="visible" :visible="visible"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}" :maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false" :maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" style="top:20px;height: 95%;">
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'">
<!-- 搜索区域 --> <!-- 搜索区域 -->
...@@ -103,12 +104,13 @@ ...@@ -103,12 +104,13 @@
<script> <script>
import BillDetail from './BillDetail' import BillDetail from './BillDetail'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import {mixinDevice} from '@/utils/mixin'
import { findBillDetailByNumber } from '@/api/api' import { findBillDetailByNumber } from '@/api/api'
import { getAction } from '@/api/manage' import { getAction } from '@/api/manage'
import Vue from 'vue' import Vue from 'vue'
export default { export default {
name: 'LinkBillList', name: 'LinkBillList',
mixins:[JeecgListMixin], mixins:[JeecgListMixin, mixinDevice],
components: { components: {
BillDetail BillDetail
}, },
......
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:getContainer="() => $refs.container" :getContainer="() => $refs.container"
:maskStyle="{'top':'93px','left':'154px'}" :maskStyle="{'top':'93px','left':'154px'}"
:wrapClassName="wrapClassNameInfo()"
:mask="isDesktop()"
:maskClosable="false" :maskClosable="false"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
cancelText="关闭" cancelText="关闭"
wrapClassName="ant-modal-cust-warp" style="top:20%;height: 60%;">
style="top:20%;height: 60%;overflow-y: hidden">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form :form="form"> <a-form :form="form">
<a-row class="form-row" :gutter="24"> <a-row class="form-row" :gutter="24">
...@@ -71,8 +72,10 @@ ...@@ -71,8 +72,10 @@
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
import {getAccount} from '@/api/api' import {getAccount} from '@/api/api'
import {mixinDevice} from '@/utils/mixin'
export default { export default {
name: 'ManyAccountModal', name: 'ManyAccountModal',
mixins: [mixinDevice],
data () { data () {
return { return {
title:"操作", title:"操作",
......
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" style="top:20px;height: 95%;">
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>
......
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" style="top:20px;height: 95%;">
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>
......
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" style="top:20px;height: 95%;">
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>
......
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" style="top:20px;height: 95%;">
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>
......
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" style="top:20px;height: 95%;">
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>
......
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp" style="top:20px;height: 95%;">
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>
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
v-bind:prefixNo="prefixNo" v-bind:prefixNo="prefixNo"
switchHelp switchHelp
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp"
:id="prefixNo" :id="prefixNo"
style="top:20px;height: 95%;overflow-y: hidden"> style="top:20px;height: 95%;">
<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>
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
:width="width" :width="width"
:visible="visible" :visible="visible"
:confirmLoading="confirmLoading" :confirmLoading="confirmLoading"
:maskClosable="false"
:keyboard="false" :keyboard="false"
:forceRender="true" :forceRender="true"
v-bind:prefixNo="prefixNo" v-bind:prefixNo="prefixNo"
switchHelp switchHelp
switchFullscreen switchFullscreen
@cancel="handleCancel" @cancel="handleCancel"
wrapClassName="ant-modal-cust-warp"
:id="prefixNo" :id="prefixNo"
style="top:20px;height: 95%;overflow-y: hidden"> style="top:20px;height: 95%;">
<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