Commit 865902a7 by wangql

弹窗高度

1 parent 7253dfcc
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<template> <template>
<div> <div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width"> <el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width">
<div :style="{height:height,overflow:'auto'}">
<el-scrollbar v-if="hasScroll"> <el-scrollbar v-if="hasScroll">
<span slot="title"> <span slot="title">
<span class="main-title">{{ title }}</span> <span class="main-title">{{ title }}</span>
...@@ -21,7 +20,6 @@ ...@@ -21,7 +20,6 @@
</span> </span>
<slot></slot> <slot></slot>
</template> </template>
</div>
<div slot="footer"> <div slot="footer">
<slot name="btn-start"></slot> <slot name="btn-start"></slot>
...@@ -96,11 +94,7 @@ export default { ...@@ -96,11 +94,7 @@ export default {
btnSize: { btnSize: {
type: String, type: String,
default: 'mini' default: 'mini'
}, }
height: {
type: String,
default: ''
},
}, },
methods: { methods: {
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :height="height" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose"> <glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :height="height" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose">
<div style="max-height:60vh">
<el-form :inline="true" :model="searchProForm"> <el-form :inline="true" :model="searchProForm">
<el-form-item label="商品名称:"> <el-form-item label="商品名称:">
<el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input> <el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input>
...@@ -15,6 +16,7 @@ ...@@ -15,6 +16,7 @@
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" /> <img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span> </span>
</GLTable> </GLTable>
</div>
</glsx-dialog> </glsx-dialog>
</template> </template>
...@@ -70,11 +72,7 @@ export default { ...@@ -70,11 +72,7 @@ export default {
selectedProList: { selectedProList: {
type: Array, type: Array,
default: () => [] default: () => []
}, }
height: {
type: String,
default: ''
},
}, },
components: { components: {
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<el-button type="primary" v-if="apear!='couponSee'" @click="handleConfirm">确定</el-button> <el-button type="primary" v-if="apear!='couponSee'" @click="handleConfirm">确定</el-button>
<el-button type="default" v-if="apear=='couponSee'" @click="handleCancel">返回</el-button> <el-button type="default" v-if="apear=='couponSee'" @click="handleCancel">返回</el-button>
</div> </div>
<select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :height="dialogHeight" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"> <select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose">
</select-muti-pro-forcoupon-dialog> </select-muti-pro-forcoupon-dialog>
</div> </div>
</template> </template>
...@@ -242,8 +242,7 @@ export default { ...@@ -242,8 +242,7 @@ export default {
name: 'useDescription', name: 'useDescription',
addHtml: 'useDescriptionHtml' addHtml: 'useDescriptionHtml'
} }
], ]
dialogHeight: '60vh'
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!