Commit 21f79ec4 authored by 姬鋆屾's avatar 姬鋆屾

提交

parent 1fb74fec
...@@ -19,6 +19,12 @@ export default { ...@@ -19,6 +19,12 @@ export default {
data.entity.inspect && data.entity.inspect == 0 data.entity.inspect && data.entity.inspect == 0
? (data.entity.inspect = false) ? (data.entity.inspect = false)
: (data.entity.inspect = true); : (data.entity.inspect = true);
this.$route.name == "staff/perform/summary/list"
? data.entity.remark && data.entity.remark != ""
? (data.entity.remark = data.entity.remark)
: (data.entity.remark =
"迟到:0 次,\n早退:0 次,\n缺卡:0次,\n请假:0次")
: "";
return data; return data;
}, },
// 渲染后置处理 // 渲染后置处理
...@@ -105,7 +111,10 @@ export default { ...@@ -105,7 +111,10 @@ export default {
} }
}) })
: this.afterRender(res); : this.afterRender(res);
console.log(res.entity);
}) })
.catch((error) => { .catch((error) => {
this.$message.error(error.message); this.$message.error(error.message);
throw error; throw error;
......
...@@ -417,7 +417,7 @@ export default { ...@@ -417,7 +417,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名", label: "员工姓名",
fuzzy: false, fuzzy: true,
}, },
{ {
name: "workNum", name: "workNum",
......
...@@ -7,17 +7,16 @@ ...@@ -7,17 +7,16 @@
</template> </template>
<script> <script>
/** 表单弹出框模式需引入 */ /** 表单弹出框模式需引入 */
import dialogShow from "./dialogshow"; import dialogShow from "./dialogshow";
import table from "@/assets/mixins/table"; import table from "@/assets/mixins/table";
export default { export default {
name: "AttendanceStaffStatList", name: "AttendanceStaffStatList",
components: { components: {
dialogShow dialogShow,
},
mixins: [table],
created() {
}, },
mixins: [table],
created() {},
methods: { methods: {
/** 重写新增方法 */ /** 重写新增方法 */
toAdd(row) { toAdd(row) {
...@@ -31,41 +30,53 @@ ...@@ -31,41 +30,53 @@
toView(row) { toView(row) {
this.$refs.dialogform.view(row); this.$refs.dialogform.view(row);
}, },
}, },
data() { data() {
return { return {
config: { config: {
isshowTabPane:true, isshowTabPane: true,
search: [ search: [
{ {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名", label: "员工姓名",
fuzzy: false fuzzy: true,
}, },
], ],
columns: [ columns: [
{type: "selection", width: 60}, { type: "selection", width: 60 },
{type: "index",label: "序号",width: 50}, { type: "index", label: "序号", width: 50 },
{label: "员工姓名", prop: "staffName"}, { label: "员工姓名", prop: "staffName" },
{label: "考勤汇总信息,如迟到*1,旷工*2等", prop: "attendanceSummary"}, {
label: "考勤汇总信息,如迟到*1,旷工*2等",
prop: "attendanceSummary",
},
{label: "创建用户", prop: "createUserId", formatter: this.formatter}, {
label: "创建用户",
prop: "createUserId",
formatter: this.formatter,
},
{ {
label: "操作", label: "操作",
width: 240, width: 240,
formatter: row => { formatter: (row) => {
return ( return (
<table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} /> <table-buttons
noAdd
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
); );
} },
} },
] ],
} },
};
}
}; };
},
};
</script> </script>
...@@ -232,6 +232,7 @@ export default { ...@@ -232,6 +232,7 @@ export default {
this.showContent = true; this.showContent = true;
this.showTip = true; this.showTip = true;
this.freshDate = ""; this.freshDate = "";
this.getData();
return; return;
} }
setTimeout(function() { setTimeout(function() {
......
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -198,7 +198,7 @@ export default { ...@@ -198,7 +198,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
type: "text", type: "text",
width: 200, width: 200,
label: "窗口负责人姓名搜索", label: "窗口负责人姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: columns:
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
type: "text", type: "text",
width: 200, width: 200,
label: "工作人员姓名搜索", label: "工作人员姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
type: "text", type: "text",
width: 200, width: 200,
label: "窗口负责人姓名搜索", label: "窗口负责人姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: columns:
......
...@@ -370,7 +370,7 @@ export default { ...@@ -370,7 +370,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名搜索", label: "员工姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -152,7 +152,6 @@ export default { ...@@ -152,7 +152,6 @@ export default {
//deductTime申诉时间 checkTime 核查时间 ruleName规则checkType字典 subAddType:1增加2减score //deductTime申诉时间 checkTime 核查时间 ruleName规则checkType字典 subAddType:1增加2减score
this.list = row; this.list = row;
this.dict = dict; this.dict = dict;
console.log(row, dict, "22222222222");
} }
}); });
}, },
...@@ -163,7 +162,8 @@ export default { ...@@ -163,7 +162,8 @@ export default {
this.urls.currUrl = "staff/perform/summary/edit"; this.urls.currUrl = "staff/perform/summary/edit";
this.getData(); this.getData();
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "修改员工绩效统计"; this.title = "员工绩效统计";
console.log(this.form);
}, },
/** 新增 */ /** 新增 */
add(row) { add(row) {
......
...@@ -280,6 +280,7 @@ export default { ...@@ -280,6 +280,7 @@ export default {
this.showContent = true; this.showContent = true;
this.showTip = true; this.showTip = true;
this.freshDate = ""; this.freshDate = "";
this.getData();
return; return;
} }
setTimeout(function() { setTimeout(function() {
...@@ -336,7 +337,7 @@ export default { ...@@ -336,7 +337,7 @@ export default {
name: "staffName", name: "staffName",
type: "text", type: "text",
label: "员工姓名", label: "员工姓名",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
...@@ -587,7 +588,7 @@ export default { ...@@ -587,7 +588,7 @@ export default {
}, },
{ label: "", prop: "year", formatter: this.formatter }, { label: "", prop: "year", formatter: this.formatter },
{ label: "", prop: "month", formatter: this.formatter }, { label: "", prop: "month", formatter: this.formatter },
{ label: "备注", prop: "remark", formatter: this.formatter }, { label: "备注", prop: "remark", formatter: this.formatter, width: 240, },
{ {
label: "操作", label: "操作",
width: 120, width: 120,
......
...@@ -108,8 +108,8 @@ export default { ...@@ -108,8 +108,8 @@ export default {
name: "ownerName", name: "ownerName",
type: "text", type: "text",
width: 200, width: 200,
label: "窗口首席代表姓名搜索", label: "窗口首席代表姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
...@@ -106,8 +106,8 @@ export default { ...@@ -106,8 +106,8 @@ export default {
name: "ownerName", name: "ownerName",
type: "text", type: "text",
width: 200, width: 200,
label: "窗口首席代表姓名搜索", label: "窗口首席代表姓名搜索",
fuzzy: false, fuzzy: true,
}, },
], ],
columns: [ columns: [
......
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