diff --git a/jshERP-web/src/assets/less/common.less b/jshERP-web/src/assets/less/common.less index e781e273..835e2948 100644 --- a/jshERP-web/src/assets/less/common.less +++ b/jshERP-web/src/assets/less/common.less @@ -17,10 +17,12 @@ padding-top: 15px; padding-bottom: 15px; } -/*列表页面弹出modal*/ -.ant-modal-cust-warp { +.depot-mask { margin-top: 93px; margin-left: 154px; +} +/*列表页面弹出modal*/ +.ant-modal-cust-warp { height: 100% } /*弹出modal Y轴滚动条*/ @@ -44,33 +46,6 @@ height: calc(100% - 200px) !important; 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 { height: 25px; diff --git a/jshERP-web/src/components/jeecg/JModal/index.vue b/jshERP-web/src/components/jeecg/JModal/index.vue index 3a667ec7..255eb94e 100644 --- a/jshERP-web/src/components/jeecg/JModal/index.vue +++ b/jshERP-web/src/components/jeecg/JModal/index.vue @@ -5,8 +5,11 @@ :class="getClass(modalClass)" :style="getStyle(modalStyle)" :visible="visible" - :maskStyle="{'top':'93px','left':'154px'}" :getContainer="() => $refs.container" + :maskStyle="{'top':'93px','left':'154px'}" + :wrapClassName="wrapClassNameInfo()" + :mask="isDesktop()" + :maskClosable="false" v-bind="_attrs" v-on="$listeners" @ok="handleOk" @@ -49,10 +52,12 @@ import { getClass, getStyle } from '@/utils/props-util' import { triggerWindowResizeEvent, handleIntroJs } from "@/utils/util" + import {mixinDevice} from '@/utils/mixin' import Vue from 'vue' export default { name: 'JModal', + mixins: [mixinDevice], props: { title: String, // 可使用 .sync 修饰符 diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue index 882de209..b647b5a3 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue @@ -3,11 +3,11 @@ :width="modalWidth" :visible="visible" :title="title" + :wrapClassName="wrapClassNameInfo()" @ok="handleSubmit" @cancel="close" cancelText="关闭" style="top:5%;height: 90%;overflow-y: hidden" - wrapClassName="ant-modal-cust-warp" > @@ -113,11 +113,12 @@ import {filterObj, getMpListShort} from '@/utils/util' import {getMaterialBySelect, queryMaterialCategoryTreeList} from '@/api/api' import { JeecgListMixin } from '@/mixins/JeecgListMixin' + import {mixinDevice} from '@/utils/mixin' import Vue from 'vue' export default { name: 'JSelectMaterialModal', - mixins:[JeecgListMixin], + mixins:[JeecgListMixin, mixinDevice], components: { MaterialModal: () => import('@/views/material/modules/MaterialModal') }, diff --git a/jshERP-web/src/components/tools/ImportFileModal.vue b/jshERP-web/src/components/tools/ImportFileModal.vue index 15f310f4..918f8786 100644 --- a/jshERP-web/src/components/tools/ImportFileModal.vue +++ b/jshERP-web/src/components/tools/ImportFileModal.vue @@ -7,10 +7,11 @@ :confirm-loading="confirmLoading" :getContainer="() => $refs.container" :maskStyle="{'top':'93px','left':'154px'}" + :wrapClassName="wrapClassNameInfo()" + :mask="isDesktop()" :maskClosable="false" @cancel="handleCancel" - wrapClassName="ant-modal-cust-warp" - style="top:20%;height: 45%;overflow-y: hidden"> + style="top:20%;height: 45%;"> @@ -39,9 +40,10 @@