提交 d9e54302 authored 作者: lgd's avatar lgd

1.部门修改图标为文字

上级 185cbefb
package com.wd.workoffice.ui.activity.bat.work;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.RelativeLayout;
import android.widget.Switch;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
......@@ -10,7 +10,6 @@ import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.DepBean;
import com.wd.workoffice.bean.event.ModifyCarEvent;
import com.wd.workoffice.bean.event.ModifyDepPersonEvent;
import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver;
......@@ -47,8 +46,8 @@ public class WorkDepDetailActivity extends WorkToolBarActivity {
TextView tvLabel;
@BindView(R.id.tv_role)
TextView tvRole;
@BindView(R.id.switch_open)
Switch switchOpen;
@BindView(R.id.tv_open_desc)
TextView tvOpenDesc;
private DepBean dataBean;
@Override
......@@ -98,11 +97,7 @@ public class WorkDepDetailActivity extends WorkToolBarActivity {
tvLabel.setText("标签:" + coverList(dataBean.getTag()));
tvRole.setText("权限:" + coverList(dataBean.getPermission()));
if (TextUtils.equals(dataBean.getStatus(), "1")) {
switchOpen.setChecked(true);
} else {
switchOpen.setChecked(false);
}
tvOpenDesc.setText(TextUtils.equals(dataBean.getStatus(), "1")?"已启用":"未启用");
}
});
}
......@@ -136,10 +131,11 @@ public class WorkDepDetailActivity extends WorkToolBarActivity {
return;
}
startActivity(WorkDepPersonActivity.class,
"depId",getIntent().getStringExtra("id"),
"depId", getIntent().getStringExtra("id"),
"simple", JSON.toJSONString(dataBean.getDeptUserList()),
"manage", JSON.toJSONString(dataBean.getDeptRulerList()));
}
@Override
public void onStart() {
super.onStart();
......@@ -156,4 +152,5 @@ public class WorkDepDetailActivity extends WorkToolBarActivity {
public void onMessageEvent(ModifyDepPersonEvent event) {
getData();
}
}
......@@ -186,17 +186,13 @@
android:text="是否启用"
android:textSize="16sp" />
<Switch
android:id="@+id/switch_open"
<TextView
android:id="@+id/tv_open_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginTop="8mm"
android:checked="false"
android:clickable="false"
android:thumb="@color/mainTextColor"
android:showText="false" />
</RelativeLayout>
</LinearLayout>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论