Commit 2a03a17a by 张权

弹框修改

1 parent d18602f6
<!-- 弹窗 --> <!-- 弹窗 -->
<template> <template>
<div> <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"> <span slot="title">
{{ title }} {{ title }}
<span class="dialog-sub-title"> <span class="dialog-sub-title">
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button> <el-button v-if="!noCancel" :size="btnSize" @click="handleClose">取消</el-button>
<slot name="btn-middle"></slot> <slot name="btn-middle"></slot>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -53,6 +53,14 @@ export default { ...@@ -53,6 +53,14 @@ export default {
btnSize: { btnSize: {
type: String, type: String,
default: 'small' default: 'small'
},
mode:{
type: String,
default: 'mid'
},
bigTitle:{
type: String,
default: ''
} }
}, },
......
<template> <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> <slot></slot>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</span> </span>
</GLTable> </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"> <el-form :inline="true" :model="addDialogForm" :rules="addDialogRules" ref="detailForm" label-width="120px" class="detailForm">
<div class="form"> <div class="form">
<el-row> <el-row>
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
</el-row> </el-row>
</div> </div>
</el-form> </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" @click="cancelDetailDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('detailForm')">确 定</el-button> <el-button size="small" type="primary" @click="submitForm('detailForm')">确 定</el-button>
</span> </span> -->
</el-dialog> </GLDialog>
</div> </div>
</div> </div>
</template> </template>
...@@ -310,18 +310,6 @@ export default { ...@@ -310,18 +310,6 @@ export default {
font-size: 14px; 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 { /deep/ .contain .el-input--small .el-input__inner {
width: 215px; width: 215px;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> --> </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> <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"> <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"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</span> </span>
</GLTable> </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"> <el-form :inline="true" :model="modifyDialogForm" :rules="modifyDialogRules" ref="modifyForm" label-width="120px" class="detailForm">
<div class="form"> <div class="form">
<el-row> <el-row>
...@@ -43,11 +43,11 @@ ...@@ -43,11 +43,11 @@
</el-row> </el-row>
</div> </div>
</el-form> </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" @click="cancelDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('modifyForm')">确 定</el-button> <el-button size="small" type="primary" @click="submitForm('modifyForm')">确 定</el-button>
</span> </span> -->
</el-dialog> </GLDialog>
</div> </div>
</div> </div>
</template> </template>
...@@ -308,13 +308,6 @@ export default { ...@@ -308,13 +308,6 @@ export default {
line-height: 32px; line-height: 32px;
width: 320px !important; 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 { /deep/ .detailDialog .el-dialog__body {
padding: 30px 0px; padding: 30px 0px;
color: #606266; color: #606266;
...@@ -322,11 +315,6 @@ export default { ...@@ -322,11 +315,6 @@ export default {
word-break: break-all; word-break: break-all;
text-align: center; text-align: center;
} }
/deep/ .detailDialog .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
/deep/ .el-textarea__inner { /deep/ .el-textarea__inner {
display: block; display: block;
resize: vertical; resize: vertical;
......
...@@ -534,11 +534,6 @@ export default { ...@@ -534,11 +534,6 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/ .el-dialog__footer {
padding: 15px;
border-top: 1px solid #e6e6e6;
text-align: center;
}
.container { .container {
padding-bottom: 74px; padding-bottom: 74px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!