跳到主要内容

全局脚本示例

应用数据过滤功能

  • 获取应用数据过滤条件
this.$searchConditionManage.getSearchConditionByApp('testApp')
  • 设置应用数据过滤的监听
    mounted() {
this.unwatch = this.$searchConditionManage.watchSearchConditionByApp(
'testApp',
condition => {
console.log('watchSearchConditionByApp', condition);
}
);
},
unmounted() {
if (this.unwatch) {
this.unwatch();
}
},
  • 设置应用数据过滤的值
 this.$searchConditionManage.setSearchConditionByApp(
[
{
Name: 'f_chengs',
Value: '长沙',
Operation: 'Equal',
QueryType: 1,
ValueType: 0,
},
],
'testyy'
);