Commit 119f19c8 authored by 姬鋆屾's avatar 姬鋆屾

pref:员工关怀调整表格内容

parent 4bcf572c
......@@ -28,7 +28,21 @@
>{{ label }}</el-checkbox
>
</el-checkbox-group>
<el-radio-group
v-model="form[item.name]"
v-if="item.type === 'radio'"
@change="onSubmit"
size="medium"
:border="true"
>
<el-radio-button
v-for="(label, value) in table.dict[item.name]"
:label="value"
:key="value"
>
{{ label }}
</el-radio-button>
</el-radio-group>
<el-select
v-model="form[item.name]"
:filterable="item.filterable"
......@@ -541,8 +555,7 @@ export default {
this.form = Object.assign({}, this.form, newData);
if (
this.$route.name == "check/window/workman/perform/detail/list" ||
this.$route.name == "window/perform/summary/list" ||
this.$route.name == "staff/care/list"
this.$route.name == "window/perform/summary/list"
) {
this.form.yearmonth = timestampToTime(new Date(), 2);
this.form.year = timestampToTime(new Date(), 2).slice(0, 4);
......
......@@ -52,8 +52,19 @@
align-items: center;
margin-right: 10px;
"
>
<span v-if="$route.query.year && $route.query.month"
>{{ $route.query.year + "" + $route.query.month + ""
}}{{ $route.query.careType == 1 ? "过生日的员工" : "过入职周年的员工" }}
}}{{
$route.query.careType == 1 ? "过生日的员工" : "过入职周年的员工"
}}
</span>
<span v-else
>当月{{
$route.query.careType == 1 ? "过生日的员工" : "过入职周年的员工"
}}
</span>
<span style="color: #1a7af8; font-size: 14px">
{{
`(共${
......@@ -142,17 +153,18 @@ export default {
config: {
isshowTabPane: true,
search: [
{
name: "careType",
type: "radio",
label: "关怀类型",
},
{
name: "staffName",
type: "text",
label: "员工姓名",
fuzzy: true,
},
{
name: "careType",
type: "select",
label: "关怀类型",
},
{
name: "yearmonth",
type: "month",
......@@ -298,3 +310,15 @@ export default {
},
};
</script>
<style lang="less" scoped>
/deep/.el-radio-button__inner {
border: 1px solid #dcdfe6 !important;
}
/deep/.el-radio-button__orig-radio:checked + .el-radio-button__inner {
color: #fff !important;
background-color: #409eff !important;
border-color: #409eff !important;
-webkit-box-shadow: -1px 0 0 0 #409eff !important;
box-shadow: -1px 0 0 0 #409eff !important;
}
</style>
\ No newline at end of file
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