更新统计bug
This commit is contained in:
parent
0853907b8d
commit
4c58e720d2
@ -268,6 +268,7 @@ const state = reactive({
|
|||||||
showAdvanceQueryUI: false,
|
showAdvanceQueryUI: false,
|
||||||
queryParams: {
|
queryParams: {
|
||||||
searchKey: undefined,
|
searchKey: undefined,
|
||||||
|
GroupBy: [] as any,
|
||||||
@if(Model.QueryWhetherList.Count > 0) {
|
@if(Model.QueryWhetherList.Count > 0) {
|
||||||
@foreach (var column in Model.QueryWhetherList) {
|
@foreach (var column in Model.QueryWhetherList) {
|
||||||
@:@(@column.LowerPropertyName): undefined,
|
@:@(@column.LowerPropertyName): undefined,
|
||||||
@ -398,6 +399,12 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
|
|||||||
// 查询操作
|
// 查询操作
|
||||||
const handleQuery = async (reset = false) => {
|
const handleQuery = async (reset = false) => {
|
||||||
options.loading = true;
|
options.loading = true;
|
||||||
|
state.queryParams.GroupBy = [];
|
||||||
|
@foreach (var column in Model.TableField){
|
||||||
|
if (@column.IsGroupBy == "Y"){
|
||||||
|
@:state.queryParams.GroupBy.push('@(@column.PropertyName)');
|
||||||
|
}
|
||||||
|
}
|
||||||
@if(@Model.TableField.Any(x=>x.Statistical == "Y")){
|
@if(@Model.TableField.Any(x=>x.Statistical == "Y")){
|
||||||
@if (@Model.IsApiService) {
|
@if (@Model.IsApiService) {
|
||||||
@:state.totalSum =getAPI(@(@Model.ClassName)Api).api@(@Model.ClassName)GetTotalSumPost(params).data.result;
|
@:state.totalSum =getAPI(@(@Model.ClassName)Api).api@(@Model.ClassName)GetTotalSumPost(params).data.result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user