<gsb-pagecard>
    <div slot="content">
        <gsb-grid2
            bizCode="moneyjourney"
            spaceHeight="100"
            modelName="moneyjourney"
            listMethod="findAndCountAll"
            deleteMethod="delete"
            initMethod="initNewInstance"
            isDataAuto="true"
          :headStyle="headStyle"
          :colFormatter="onColFormater"
          :isSingleSelect="isSingleSelect"
          :sumfields="sfs"
          :calcfields="calcs"
          @calcfield="oncalcfield"
          @linkquery="onlinkquery"
          @rowclick="onRowClick">
          <span slot="calcfield" style="padding:30px" slot-scope="scope">
                <el-badge v-if="scope.calc.length>0" :value="scope.calc[0].value">
                    <el-button size="mini">{{scope.calc[0].label}}</el-button>
                </el-badge>
          </span>
        </gsb-grid2>
    </div>
</gsb-pagecard>
