Commit 52aba0724170c36e977cdf15b9d9612cf9dbdce2

Authored by wdn127929
1 parent d7abef32

ui和统计权限

... ... @@ -11,14 +11,14 @@ if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = "290"
def flutterVersionCode = "291"
if (flutterVersionCode == null) {
flutterVersionCode = '290'
flutterVersionCode = '291'
}
def flutterVersionName = "2.9.0"
def flutterVersionName = "2.9.1"
if (flutterVersionName == null) {
flutterVersionName = '2.9.0'
flutterVersionName = '2.9.1'
}
apply plugin: 'com.android.application'
... ...
... ... @@ -92,16 +92,30 @@ class _StatisticsPageState extends State<StatisticsPage> {
return;
}
UserModel userModel = Provider.of<UserModel>(context, listen: false);
int startDay = DateTime.parse((_provider.datetimeS.year.toString() +
"-" +
Utils.addZeroNumber(_provider.datetimeS.month) +
"-" +
Utils.addZeroNumber(_provider.datetimeS.day) +
" 00:00:00"))
.millisecondsSinceEpoch;
int endDay = DateTime.parse((_provider.datetimeE.year.toString() +
"-" +
Utils.addZeroNumber(_provider.datetimeE.month) +
"-" +
Utils.addZeroNumber(_provider.datetimeE.day) +
" 00:00:00"))
.millisecondsSinceEpoch;
Map<String, String> params = {
"sid": userModel.user.sellerid,
"uid": userModel.user.openid,
"stime":
'${_provider.datetimeS.millisecondsSinceEpoch.toString().substring(0, 10)}',
"etime":
'${_provider.datetimeE.millisecondsSinceEpoch.toString().substring(0, 10)}',
"stime": '${startDay.toString().substring(0, 10)}',
"etime": '${endDay.toString().substring(0, 10)}',
"size": _provider.controller.text,
"od": '${_provider.currentIndex + 1}',
};
if (userModel.user.role_name != '管理员' && userModel.user.role_name != '店长') {
params['uid'] = userModel.user.openid;
}
await _provider.getStatisticsList(context, params);
if (_provider.dataStatics.length > 0) {
switch (_provider.currentIndex) {
... ... @@ -199,11 +213,12 @@ class _StatisticsPageState extends State<StatisticsPage> {
border: Border.all(
color: MyColours.color_cccccc,
width: ScreenUtil().setWidth(2))),
width: ScreenUtil().setWidth(132 * 2),
constraints: BoxConstraints(
maxHeight: ScreenUtil().setWidth(104 * 2),
),
width: ScreenUtil().setWidth(136 * 2),
// constraints: BoxConstraints(
// maxHeight: ScreenUtil().setWidth(130 * 2),
// ),
child: ListView.builder(
shrinkWrap: true,
padding:
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(20)),
itemCount: data.length,
... ... @@ -517,6 +532,7 @@ class _StatisticsPageState extends State<StatisticsPage> {
}),
VEmptyView(10),
Container(
// color: Colors.red,
// margin: EdgeInsets.only(
// bottom: ScreenUtil().setWidth(58 + 10)),
child: Material(
... ...