Commit 2e6b58b3 by cwq0219
2 parents f1faaaed 6f7d980e
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<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">
<el-scrollbar v-if="hasScroll"> <div style="height:60vh;overflow:auto">
<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">
...@@ -20,6 +21,8 @@ ...@@ -20,6 +21,8 @@
</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>
...@@ -90,7 +93,7 @@ export default { ...@@ -90,7 +93,7 @@ export default {
btnSize: { btnSize: {
type: String, type: String,
default: 'mini' default: 'mini'
} },
}, },
methods: { methods: {
...@@ -113,4 +116,8 @@ export default { ...@@ -113,4 +116,8 @@ export default {
// border-bottom: 1px solid #e6e6e6; // border-bottom: 1px solid #e6e6e6;
// padding: 20px 25px; // padding: 20px 25px;
// } // }
.el-dialog-div {
height: 60vh;
overflow: auto;
}
</style> </style>
...@@ -139,6 +139,13 @@ export default { ...@@ -139,6 +139,13 @@ export default {
handleMutiSelectConfirm() { handleMutiSelectConfirm() {
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName] var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
console.log(selectedData) console.log(selectedData)
if(!selectedData){
this.$message({
message: '未选择商品',
type: 'error'
})
return
}
this.$emit('handleMutiSelectConfirm', selectedData) this.$emit('handleMutiSelectConfirm', selectedData)
}, },
handleMutiSelectClose() { handleMutiSelectClose() {
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
:picker-options="pickerOptions" :picker-options="pickerOptions"
:default-time="['00:00:00', '23:59:59']"
:disabled="isDisabled" clearable> :disabled="isDisabled" clearable>
</el-date-picker> </el-date-picker>
<!-- </el-form-item> --> <!-- </el-form-item> -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!