forked from github/dataease
feat: 增加默认主题
This commit is contained in:
parent
2580dab0a8
commit
66cb80c5fc
@ -41,13 +41,16 @@ public class PanelSubjectService {
|
||||
|
||||
public List<PanelSubject> query(PanelSubjectRequest request){
|
||||
PanelSubjectExample example = new PanelSubjectExample();
|
||||
return panelSubjectMapper.selectByExampleWithBLOBs(null);
|
||||
example.setOrderByClause( "create_time asc");
|
||||
return panelSubjectMapper.selectByExampleWithBLOBs(example);
|
||||
}
|
||||
|
||||
public List querySubjectWithGroup(PanelSubjectRequest request){
|
||||
List result = new ArrayList();
|
||||
int pageSize = 4;
|
||||
List<PanelSubject> allInfo = panelSubjectMapper.selectByExampleWithBLOBs(null);
|
||||
PanelSubjectExample example = new PanelSubjectExample();
|
||||
example.setOrderByClause( "create_time asc");
|
||||
List<PanelSubject> allInfo = panelSubjectMapper.selectByExampleWithBLOBs(example);
|
||||
for(int i =0;i<allInfo.size();i=i+pageSize){
|
||||
List<PanelSubject> tmp = allInfo.subList(i,i+pageSize<allInfo.size()?i+pageSize:allInfo.size());
|
||||
result.add(tmp);
|
||||
|
File diff suppressed because one or more lines are too long
@ -20,16 +20,16 @@
|
||||
<background-color-selector v-if="chart" class="attr-selector" :chart="chart" @onChangeBackgroundForm="onChangeBackgroundForm" />
|
||||
</el-row>
|
||||
</el-collapse-item>
|
||||
<el-collapse-item :title="$t('panel.table')" name="table">
|
||||
<el-row style="background-color: #f7f8fa; margin: 5px">
|
||||
<color-selector index="10002" :source-type="'panelTable'" class="attr-selector" :chart="tableChart" @onColorChange="onTableColorChange" />
|
||||
</el-row>
|
||||
</el-collapse-item>
|
||||
<el-collapse-item :title="$t('chart.shape_attr')" name="graphical">
|
||||
<el-row style="background-color: #f7f8fa; margin: 5px">
|
||||
<color-selector :source-type="'panelEchart'" class="attr-selector" :chart="chart" @onColorChange="onColorChange" />
|
||||
</el-row>
|
||||
</el-collapse-item>
|
||||
<el-collapse-item :title="$t('panel.table')" name="table">
|
||||
<el-row style="background-color: #f7f8fa; margin: 5px">
|
||||
<color-selector index="10002" :source-type="'panelTable'" class="attr-selector" :chart="tableChart" @onColorChange="onTableColorChange" />
|
||||
</el-row>
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
</div>
|
||||
</el-row>
|
||||
|
Loading…
Reference in New Issue
Block a user