[update] 修改bug87648
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
v-bind="$attrs"
|
||||
show-search
|
||||
:filter-option="filterOption"
|
||||
@dropdownVisibleChange="dropdownVisibleChange"
|
||||
@change="handleInput"
|
||||
>
|
||||
<a-select-option :value="undefined">{{ $t('pleaseSelect') }}</a-select-option>
|
||||
@@ -143,6 +144,9 @@ export default {
|
||||
},
|
||||
getCurrentDictOptions () {
|
||||
return this.dictOptions
|
||||
},
|
||||
dropdownVisibleChange (open) {
|
||||
this.$emit('dropdownVisibleChange', open)
|
||||
}
|
||||
},
|
||||
model: {
|
||||
|
||||
+14
@@ -31,6 +31,7 @@
|
||||
dict-code="evaluation_result"
|
||||
:disabled="disabled"
|
||||
@change="resultChange(record)"
|
||||
@dropdownVisibleChange="resultDropdownVisibleChange"
|
||||
v-model="record.result">
|
||||
</j-dict-select-tag>
|
||||
</template>
|
||||
@@ -298,6 +299,19 @@ export default {
|
||||
}
|
||||
return data
|
||||
},
|
||||
// 点击评估结果,滚动条滚动到最后
|
||||
resultDropdownVisibleChange (open) {
|
||||
if (!open) {
|
||||
return
|
||||
}
|
||||
const table = this.$refs.expandTable
|
||||
if (table) {
|
||||
const scrollBox = table.$el.querySelector('.ant-table-body')
|
||||
if (scrollBox) {
|
||||
scrollBox.scrollLeft = scrollBox.scrollWidth
|
||||
}
|
||||
}
|
||||
},
|
||||
// 评估结果改变,清空备注和佐证材料,不满足要求的现状,整改方案,整改周期,整改费用,与其他项目共用性,共用后本项目所需费用
|
||||
resultChange (record) {
|
||||
const index = this.dataSource.findIndex(item => item.id === record.id)
|
||||
|
||||
+14
@@ -104,6 +104,7 @@
|
||||
dict-code="evaluation_result"
|
||||
:disabled="disabled"
|
||||
@change="resultChange(record)"
|
||||
@dropdownVisibleChange="resultDropdownVisibleChange"
|
||||
v-model="record.result">
|
||||
</j-dict-select-tag>
|
||||
</template>
|
||||
@@ -860,6 +861,19 @@ export default {
|
||||
// 显示条款内容弹框
|
||||
showContent (val) {
|
||||
this.$refs.splitClauseDetail.open(val)
|
||||
},
|
||||
// 点击评估结果,滚动条滚动到最后
|
||||
resultDropdownVisibleChange (open) {
|
||||
if (!open) {
|
||||
return
|
||||
}
|
||||
const table = this.$refs.expandTable
|
||||
if (table) {
|
||||
const scrollBox = table.$el.querySelector('.ant-table-body')
|
||||
if (scrollBox) {
|
||||
scrollBox.scrollLeft = scrollBox.scrollWidth
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user