|
@@ -84,8 +84,8 @@ class SalesRevenueTotalFragment : BaseFragment<FragmentSalesRevenueTotalBinding>
|
|
|
bundle: Bundle?
|
|
|
) = FragmentSalesRevenueTotalBinding.inflate(layoutInflater, container, false)
|
|
|
|
|
|
- override fun onStart() {
|
|
|
- super.onStart()
|
|
|
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
|
|
+ super.onViewCreated(view, savedInstanceState)
|
|
|
|
|
|
if (isInit) {
|
|
|
|
|
@@ -193,26 +193,24 @@ class SalesRevenueTotalFragment : BaseFragment<FragmentSalesRevenueTotalBinding>
|
|
|
|
|
|
override fun initViews() {
|
|
|
//二次验证
|
|
|
-// var haveAuthorization = false
|
|
|
-//
|
|
|
-// for (item in OASystem.marketSalesRevenueUserList) {
|
|
|
-// if (OASystem.userInfo.userId == item.id) {
|
|
|
-// haveAuthorization = true
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// if (haveAuthorization) {
|
|
|
-// getYearSalesStatistics()
|
|
|
-// } else {
|
|
|
-// showMessage(resources.getString(R.string.permission_denied))
|
|
|
-// }
|
|
|
+ var haveAuthorization = false
|
|
|
+
|
|
|
+ for (item in OASystem.marketSalesRevenueUserList) {
|
|
|
+ if (OASystem.userInfo.userId == item.id) {
|
|
|
+ haveAuthorization = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (haveAuthorization) {
|
|
|
+ getYearSalesStatistics()
|
|
|
+ } else {
|
|
|
+ showMessage(resources.getString(R.string.permission_denied))
|
|
|
+ }
|
|
|
|
|
|
if (OASystem.userInfo.userId == 258 || OASystem.userInfo.userId == 21) {
|
|
|
binding.siftMenu.visibility = View.VISIBLE
|
|
|
}
|
|
|
|
|
|
- getYearSalesStatistics()
|
|
|
-
|
|
|
}
|
|
|
|
|
|
override fun initEvents() {
|
|
@@ -723,9 +721,9 @@ class SalesRevenueTotalFragment : BaseFragment<FragmentSalesRevenueTotalBinding>
|
|
|
//在Y轴的动画 参数是动画执行时间 毫秒为单位
|
|
|
animateY(1000)
|
|
|
//X轴动画
|
|
|
- //line.animateX(2000);
|
|
|
+ //line.animateX(2000)
|
|
|
//XY两轴混合动画
|
|
|
- //line.animateXY(2000,2000);
|
|
|
+ //line.animateXY(2000,2000)
|
|
|
|
|
|
//设置不可手动旋转
|
|
|
isRotationEnabled = false
|