|
|
@@ -74,12 +74,17 @@ Ext.define('saas.view.core.form.MseeageLog', {
|
|
|
condition:[],
|
|
|
initComponent: function() {
|
|
|
var me = this;
|
|
|
- me.defualtCondition = {
|
|
|
+ me.defualtCondition = [{
|
|
|
type: 'number',
|
|
|
field: 'ml_keyvalue',
|
|
|
operation: '=',
|
|
|
value: me.mlKeyvalue
|
|
|
- };
|
|
|
+ },{
|
|
|
+ type: 'string',
|
|
|
+ field: 'ml_caller',
|
|
|
+ operation: '=',
|
|
|
+ value: me.mlCaller
|
|
|
+ }];
|
|
|
if(me.columns){
|
|
|
var fields = me.columns.map(column => column.dataIndex);
|
|
|
me.store = Ext.create('Ext.data.Store',{
|
|
|
@@ -104,7 +109,7 @@ Ext.define('saas.view.core.form.MseeageLog', {
|
|
|
beforeload: function (store, op) {
|
|
|
var condition = me.condition;
|
|
|
if (Ext.isEmpty(condition)) {
|
|
|
- condition = [me.defualtCondition];
|
|
|
+ condition = me.defualtCondition;
|
|
|
}
|
|
|
|
|
|
Ext.apply(store.proxy.extraParams, {
|
|
|
@@ -133,8 +138,7 @@ Ext.define('saas.view.core.form.MseeageLog', {
|
|
|
*/
|
|
|
getCondition: function(items) {
|
|
|
var me = this,
|
|
|
- conditions = [];
|
|
|
- conditions.push(this.defualtCondition);
|
|
|
+ conditions = me.defualtCondition;
|
|
|
for(var i = 0; i < items.length; i++) {
|
|
|
var item = items[i];
|
|
|
var field = item.name,
|