|
@@ -56,7 +56,9 @@
|
|
|
<span :title='data.groupName || data.itemName'
|
|
|
style="margin-left: 2px;">{{ data.groupName || data.itemName }}</span>
|
|
|
<span v-if="data.id == -1" style="position: absolute; right: 0; background: #646464;">
|
|
|
- <el-button type="text" size="mini" style="color: #FFFFFF;" title="添加数据组"
|
|
|
+ <el-button type="text" size="mini" style="color: #FFFFFF;" title="刷新"
|
|
|
+ @click="refreshGroupByParent" icon="el-icon-refresh"></el-button>
|
|
|
+ <el-button type="text" size="mini" style="color: #FFFFFF; margin-left: 5px;" title="添加数据组"
|
|
|
@click="createGroupEvent" icon="el-icon-circle-plus-outline"></el-button>
|
|
|
</span>
|
|
|
</span>
|
|
@@ -1040,6 +1042,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ refreshGroupByParent() {
|
|
|
+ let node = this.$refs.groupTree.getNode(-1)
|
|
|
+ node.loaded = false
|
|
|
+ node.expand()
|
|
|
+ },
|
|
|
/** 修改报表模板标题 */
|
|
|
updateReportName() {
|
|
|
if (!this.chooseReportData || !this.chooseReportData.id) {
|