|
@@ -18,22 +18,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
pk: 'id',
|
|
pk: 'id',
|
|
|
sortName: 'id',
|
|
sortName: 'id',
|
|
|
fixedColumns: false,
|
|
fixedColumns: false,
|
|
|
-
|
|
|
|
|
columns: [
|
|
columns: [
|
|
|
[
|
|
[
|
|
|
{checkbox: true},
|
|
{checkbox: true},
|
|
|
{field: 'user_id', title: __('用户Id'), operate: 'LIKE'},
|
|
{field: 'user_id', title: __('用户Id'), operate: 'LIKE'},
|
|
|
{field: 'users.address', title: __('用户地址'), operate: 'LIKE'},
|
|
{field: 'users.address', title: __('用户地址'), operate: 'LIKE'},
|
|
|
{field: 'total_num', title: __('持有数量'), operate: false},
|
|
{field: 'total_num', title: __('持有数量'), operate: false},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
]
|
|
]
|
|
|
]
|
|
]
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 为表格绑定事件
|
|
// 为表格绑定事件
|
|
|
Table.api.bindevent(table);
|
|
Table.api.bindevent(table);
|
|
|
|
|
+ //total_num
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
api: {
|
|
api: {
|
|
@@ -42,5 +39,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
+ setTimeout(getTotalNum, 500);
|
|
|
return Controller;
|
|
return Controller;
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+function getTotalNum(){
|
|
|
|
|
+
|
|
|
|
|
+ $.post("product/orders/getTotalNum",{'product_id':Config.ids},
|
|
|
|
|
+ function (data) {
|
|
|
|
|
+ $("#total_num").text(data.totalNum);
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+}
|