Commit e4d2d4da authored by 何虹's avatar 何虹 💬

优化item:0,select-list中弹出框

parent 7f8a72bc
...@@ -18,11 +18,12 @@ ...@@ -18,11 +18,12 @@
></el-button> ></el-button>
</el-input> </el-input>
</div> </div>
<hs-dialog <hs-dialog
@open='openDialog'
ref='hsDialog' ref='hsDialog'
:visible='dialogTableVisible' :visible='dialogTableVisible'
:config='dialogConfig' :config='dialogConfig'
@close='handleClose' @close='beforeClose'
> >
<div slot="body"> <div slot="body">
<div class="contentBox"> <div class="contentBox">
...@@ -378,7 +379,9 @@ export default { ...@@ -378,7 +379,9 @@ export default {
} }
}, },
methods: { methods: {
handleClose() {}, handleClose() {
this.dialogTableVisible = false
},
/** /**
* 数据导入 item 当前点击的按钮 * 数据导入 item 当前点击的按钮
* @param {*} item * @param {*} item
...@@ -770,8 +773,8 @@ export default { ...@@ -770,8 +773,8 @@ export default {
.boxInputButton { .boxInputButton {
display: flex; display: flex;
} }
.cacelSubmit{ .cacelSubmit {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
</style> </style>
...@@ -164,6 +164,7 @@ export default { ...@@ -164,6 +164,7 @@ export default {
// 设置选中第一项 // 设置选中第一项
if (this.options_.length) { if (this.options_.length) {
const item0 = this.options_[0] const item0 = this.options_[0]
this.writebackfieldFun(item0.value) // 设置回写
this.$emit('input', item0.value) this.$emit('input', item0.value)
return item0.label return item0.label
} else { } else {
...@@ -221,6 +222,7 @@ export default { ...@@ -221,6 +222,7 @@ export default {
// 把这个任务推到宏任务,在options_初始化完之后再执行下面代码!!!! // 把这个任务推到宏任务,在options_初始化完之后再执行下面代码!!!!
if (this.options_.length) { if (this.options_.length) {
const item0 = this.options_[0] const item0 = this.options_[0]
this.writebackfieldFun(item0.value) // 设置回写
this.$emit('input', item0.value) this.$emit('input', item0.value)
return item0.label return item0.label
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment