Commit 865902a7 by wangql

弹窗高度

1 parent 7253dfcc
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
<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>
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -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">
<el-form :inline="true" :model="searchProForm"> <div style="max-height:60vh">
<el-form-item label="商品名称:"> <el-form :inline="true" :model="searchProForm">
<el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input> <el-form-item label="商品名称:">
</el-form-item> <el-input :size="size" v-model="searchProForm.name" placeholder="请输入商品名称" maxlength="20" clearable></el-input>
<el-form-item> </el-form-item>
<el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button> <el-form-item>
<el-button :size="size" @click="handleConfigReset">重置</el-button> <el-button :size="size" type="primary" @click="handleConfigSearch">查询</el-button>
</el-form-item> <el-button :size="size" @click="handleConfigReset">重置</el-button>
</el-form> </el-form-item>
<GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList"> </el-form>
<span slot="goodsImage" slot-scope="scope"> <GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" /> <span slot="goodsImage" slot-scope="scope">
</span> <img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</GLTable> </span>
</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!