Commit 8e25462e by lichengming

修改了选中单选框

parent 07a80edb
......@@ -437,6 +437,11 @@ export default {
_radioChange({ row }) {
this.$emit('on-result-change', 'singleSelect', row)
},
_radioChangeItem(row) {
this.$refs.xTable.setRadioRow(row)
this.$refs.xTable.setCurrentRow(row)
this.$emit('on-result-change', 'singleSelect', row)
},
// 关闭loading
_hideLoading() {
this.loading = false
......
......@@ -181,9 +181,6 @@ export default {
}
}
},
mounted() {
this._page()
},
methods: {
_componentResult(data) {
switch (this.currentComponent) {
......@@ -243,6 +240,7 @@ export default {
content: '确定这' + this.selectIds.length + '条数据生成报告',
onOk: () => {
this.openTooltip()
this.$refs.pageTable._showLoading()
this._reportMakeOk()
}
})
......@@ -258,6 +256,7 @@ export default {
this._page()
this.$emit('on-result-change')
}
this.$refs.pageTable._hideLoading()
},
openTooltip() {
this.$notify.info({
......
......@@ -133,9 +133,11 @@ export default {
this.$emit('on-result-change', data)
break
case 'singleSelect':
console.log('data-----------------', data)
this.$emit('on-result-change', data)
break
case 'iconClick':
this.$refs.pageTable._radioChangeItem(data.rowData)
this._iconClick(data.name, data.rowData, data.componentName)
break
case 'changeSize':
......
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