can the following code be optimized?
...
var data = {}
if (role === 1) {
data.dis = res.dis
}
if (role === 1 || role === 2) {
data.area = res.area
}
if (role === 2 || role === 3) {
data.org = res.org
}
if (role === 4) {
data.name = res.name
}