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

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

parent 7f8a72bc
......@@ -19,10 +19,11 @@
</el-input>
</div>
<hs-dialog
@open='openDialog'
ref='hsDialog'
:visible='dialogTableVisible'
:config='dialogConfig'
@close='handleClose'
@close='beforeClose'
>
<div slot="body">
<div class="contentBox">
......@@ -378,7 +379,9 @@ export default {
}
},
methods: {
handleClose() {},
handleClose() {
this.dialogTableVisible = false
},
/**
* 数据导入 item 当前点击的按钮
* @param {*} item
......@@ -770,7 +773,7 @@ export default {
.boxInputButton {
display: flex;
}
.cacelSubmit{
.cacelSubmit {
display: flex;
justify-content: center;
}
......
......@@ -164,6 +164,7 @@ export default {
// 设置选中第一项
if (this.options_.length) {
const item0 = this.options_[0]
this.writebackfieldFun(item0.value) // 设置回写
this.$emit('input', item0.value)
return item0.label
} else {
......@@ -221,6 +222,7 @@ export default {
// 把这个任务推到宏任务,在options_初始化完之后再执行下面代码!!!!
if (this.options_.length) {
const item0 = this.options_[0]
this.writebackfieldFun(item0.value) // 设置回写
this.$emit('input', item0.value)
return item0.label
} 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