let that
export default{}
beforeCreate() {
that = this;
},
filters: {
dept: data => {
for (const i in that.deptList) {
const element = that.deptList[i];
if (data == element.deptId) {
return element.name;
}
}
},
timeFl: data => {
if (data) {
data = data.substr(0, 11);
}
return data;
},
genderFl: data => {
switch (data) {
case "0":
return "女";
case "1":
return "男";
}
}
},