Commit c6939d89 by mReturn

隐藏“新建工单”

parent fcdebea6
......@@ -64,15 +64,16 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
public void initView() {
// tabDesc = new String[]{mActivity.getString(R.string.waite_appointemnt), mActivity.getString(R.string.waite_server), mActivity.getString(R.string.order_exception), mActivity.getString(R.string.cancle_order)};
tabDesc = new String[]{mActivity.getString(R.string.to_be_receive),mActivity.getString(R.string.waite_appointemnt), mActivity.getString(R.string.waite_server), mActivity.getString(R.string.order_exception)};
if (UserManager.getInstance().getRole() == Constants.ENGINEER) {
mBind.createOrder.setVisibility(View.VISIBLE);
mBind.createOrder.setOnClickListener(v -> {
Bundle bundle = new Bundle();
bundle.putInt(Constants.STATE, 7);
ARouter.getInstance().build(RouterPath.PATH_MANAGER_CREATE_ORDER).with(bundle)
.navigation();
});
}
// 新建工单
// if (UserManager.getInstance().getRole() == Constants.ENGINEER) {
// mBind.createOrder.setVisibility(View.VISIBLE);
// mBind.createOrder.setOnClickListener(v -> {
// Bundle bundle = new Bundle();
// bundle.putInt(Constants.STATE, 7);
// ARouter.getInstance().build(RouterPath.PATH_MANAGER_CREATE_ORDER).with(bundle)
// .navigation();
// });
// }
EventBus.getDefault().register(this);
initData();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment