Commit 0aac261e authored by 姬鋆屾's avatar 姬鋆屾

parent a2c8ceff
...@@ -102,180 +102,83 @@ export default { ...@@ -102,180 +102,83 @@ export default {
fuzzy: false, fuzzy: false,
}, },
], ],
columns: columns: [
JSON.parse(sessionStorage.getItem("userData")).id == 1 { type: "selection", width: 60 },
? [ { type: "index", label: "序号", width: 50 },
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "工作人员名称", prop: "staffName" }, { label: "工作人员名称", prop: "staffName" },
{ {
label: "考评年月", label: "考评年月",
formatter: (row) => { formatter: (row) => {
return `${row.year ? row.year : "--"}-${ return `${row.year ? row.year : "--"}-${
row.month row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month) ? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month ? "0" + row.month
: row.month : row.month
: "--" : "--"
}`; }`;
}, },
}, },
{ {
label: "所属部门名称", label: "所属部门名称",
prop: "deptName", prop: "deptName",
formatter: this.formatter, formatter: this.formatter,
}, },
{
label: "所属大厅",
prop: "salaName",
formatter: this.formatter,
},
{
label: "工作纪律",
prop: "discipline",
formatter: this.formatter,
},
{
label: "服务规范",
prop: "specification",
formatter: this.formatter,
},
{
label: "综合管理",
prop: "management",
formatter: this.formatter,
},
{
label: "群众评议",
prop: "evaluation",
formatter: this.formatter,
},
{
label: "工作效能",
prop: "efficiency",
formatter: this.formatter,
},
{
label: "加分",
prop: "bonusScore",
formatter: this.formatter,
},
{
label: "合计得分",
prop: "sumScore",
formatter: this.formatter,
},
{
label: "考核等级",
prop: "examineLevel",
formatter: this.formatter,
},
{
label: "操作",
fixed: "right",
formatter: (row) => {
return (
<table-buttons
noAdd
noEdit
noView
text={"差评核查"}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
]
: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "工作人员名称", prop: "staffName" },
{
label: "考评年月",
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
: row.month
: "--"
}`;
},
},
{
label: "所属部门名称",
prop: "deptName",
formatter: this.formatter,
},
{ {
label: "所属大厅", label: "所属大厅",
prop: "salaName", prop: "salaName",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "工作纪律", label: "工作纪律",
prop: "discipline", prop: "discipline",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "服务规范", label: "服务规范",
prop: "specification", prop: "specification",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "综合管理", label: "综合管理",
prop: "management", prop: "management",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "群众评议", label: "群众评议",
prop: "evaluation", prop: "evaluation",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "工作效能", label: "工作效能",
prop: "efficiency", prop: "efficiency",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "加分", label: "加分",
prop: "bonusScore", prop: "bonusScore",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "合计得分", label: "合计得分",
prop: "sumScore", prop: "sumScore",
formatter: this.formatter, formatter: this.formatter,
}, },
{ {
label: "考核等级", label: "考核等级",
prop: "examineLevel", prop: "examineLevel",
formatter: this.formatter, formatter: this.formatter,
}, },
], ],
}, },
}; };
}, },
......
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 to comment