--- # 视图 views: - name: query_table component: FormWrap options: size: large inline: true columns: - key: begin_end label: 选择时间段 type: daterange labelWidth: 100 placeholder: [ 选择开始时间, 选择结束时间 ] options: clearable: true defaultValues: |- begin_end: [{{ 'days' | parseDate }}, {{ 'daye' | parseDate }}] verifyRules: begin_end: - required: true message: 请选择时间段 options: assokey: t1 assignment: data: data reset: 重置 emits: - key: exportFile name: 导出到文件 type: dropdown children: - key: xlsx name: Excel 工作簿(.xlsx) command: command:exportFile|xlsx|table_data - key: biff8 name: Excel 97-2004 工作簿(.xls) command: command:exportFile|xls|table_data - key: csv name: CVS UTF-8(.cvs) command: command:exportFile|csv|table_data - key: html name: HTML 文档(.html) command: command:exportFile|html|table_data disabled: |- cache.t1.data: $size: 0 submitName: 查 询 action: method: POST url: /api/v1/{{channel}}/system-consume - name: table_data component: Table options: name: 系统消耗 assokey: t1 columns: - key: date label: 日期 width: 120 fixed: left - key: goldcoins label: 金币 fixed: right minWidth: 240 preview: title: 金币 command: dialog:preview type: json # contrast: cache.items.data - key: diamonds label: 钻石 fixed: right minWidth: 240 preview: title: 钻石 command: dialog:preview type: json # contrast: cache.items.data # - key: $space # minWidth: 10 - key: vouchers label: 奖券 fixed: right minWidth: 240 preview: title: 奖券 command: dialog:preview type: json # contrast: cache.items.data pagination: 10 - name: 'dialog:preview' component: DialogPreview options: title: 数据预览 closeOnClickModal: false closeOnPressEscape: true width: 800 height: 450