介绍

设置列表高级查询默认值

详细步骤

1.注册列表数据加载前(before-load)事件

2.编写代码

3. 最终效果

相关代码

const {
    $func,  // 功能对象
    $grid,  // 功能列表对象
    store,  // 功能列表store
    options,// 请求参数
} = EventOptions;

//设置文本框高级查询默认值
const $topQuery = $func.getTopQueryPanel();
$topQuery.setValue('TEST_GYSMC','供应商');

//设置时间区间高级查询默认值
const queryItem1 = {
  defaultType:'between',
  sort:'',
  type:'between',
  value: '2024-05-01', // 值
  betweenValue: '2024-05-23', // 区间值
}
$topQuery.setQueryItem('FUNC_KSSJ',queryItem1)
最后编辑: 呼丽华  文档更新时间: 2024-08-29 09:50   作者:呼丽华