Commit 2a03a17a by 张权

弹框修改

1 parent d18602f6
<!-- 弹窗 -->
<template>
<div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width">
<GLDialog :bigTitle="bigTitle" :title="title" :mode="mode" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width">
<span slot="title">
{{ title }}
<span class="dialog-sub-title">
......@@ -15,7 +15,7 @@
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button>
<slot name="btn-middle"></slot>
</div>
</el-dialog>
</GLDialog>
</div>
</template>
......@@ -53,6 +53,14 @@ export default {
btnSize: {
type: String,
default: 'small'
},
mode:{
type: String,
default: 'mid'
},
bigTitle:{
type: String,
default: ''
}
},
......
<template>
<glsx-dialog title="选择商户" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<glsx-dialog bigTitle="选择商户" mode="big" :isVisible.sync="relateStoreVisible" width="70%" btnOkLabel="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<slot></slot>
<el-row>
<el-col :span="12">
......
......@@ -10,7 +10,7 @@
</span>
</GLTable>
<!-- 生成弹窗 -->
<el-dialog title="生成无忧卡" v-if="addDialog" :visible.sync="addDialog" width="712px" :before-close="handleClose" class="detailDialog">
<GLDialog title="生成无忧卡" mode="mid" v-if="addDialog" :visible.sync="addDialog" :before-close="handleClose" @onOk="submitForm('detailForm')" @onCancel="cancelDetailDialog">
<el-form :inline="true" :model="addDialogForm" :rules="addDialogRules" ref="detailForm" label-width="120px" class="detailForm">
<div class="form">
<el-row>
......@@ -51,11 +51,11 @@
</el-row>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<!-- <span slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelDetailDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('detailForm')">确 定</el-button>
</span>
</el-dialog>
</span> -->
</GLDialog>
</div>
</div>
</template>
......@@ -310,18 +310,6 @@ export default {
font-size: 14px;
}
}
.el-dialog__footer {
height: 70px;
padding: 16px 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 1px solid #e6e6e6;
text-align: center;
.el-button {
width: 72px;
margin: 0 10px;
}
}
}
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
......
......@@ -17,7 +17,7 @@
</el-form-item>
</el-row>
</el-form> -->
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="seletTable('select')" @handleRest="seletTable('reset')"></GLCombiForm>
<GLCombiForm :rowNumber="1" ref="showSearch" :formObj="appointmentForm" :formData="searchFormData" @handleOk="submitForm('modifyForm')" @handleRest="seletTable('reset')"></GLCombiForm>
<el-button plain style="float:right;margin-bottom:10px;" size="small" @click="exportTable" class="selectBtn">导出</el-button>
<GLTable ref="appointmentTable" style="margin-top:10px" :searchForm="appointmentForm" :tableParams="tableParams" :pageConf="tablePageConf" :getListApi="getAppointmentList">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
......@@ -28,7 +28,7 @@
</span>
</GLTable>
<!-- 修改界面弹窗 -->
<el-dialog :title="dialogTitle" v-if="modifyDialog" :visible.sync="modifyDialog" width="712px" :before-close="handleClose" class="detailDialog">
<GLDialog :title="dialogTitle" mode="mid" class="detailDialog" v-if="modifyDialog" :visible.sync="modifyDialog" :before-close="handleClose" @onOk="submitForm('modifyForm')" @onCancel="cancelDialog">
<el-form :inline="true" :model="modifyDialogForm" :rules="modifyDialogRules" ref="modifyForm" label-width="120px" class="detailForm">
<div class="form">
<el-row>
......@@ -43,11 +43,11 @@
</el-row>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<!-- <span slot="footer" class="dialog-footer">
<el-button size="small" @click="cancelDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('modifyForm')">确 定</el-button>
</span>
</el-dialog>
</span> -->
</GLDialog>
</div>
</div>
</template>
......@@ -308,13 +308,6 @@ export default {
line-height: 32px;
width: 320px !important;
}
/deep/ .detailDialog .el-dialog__title {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 28px;
}
/deep/ .detailDialog .el-dialog__body {
padding: 30px 0px;
color: #606266;
......@@ -322,11 +315,6 @@ export default {
word-break: break-all;
text-align: center;
}
/deep/ .detailDialog .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
/deep/ .el-textarea__inner {
display: block;
resize: vertical;
......
......@@ -534,11 +534,6 @@ export default {
</script>
<style lang="scss" scoped>
/deep/ .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
.container {
padding-bottom: 74px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!