Commit 84ab667d authored by 姬鋆屾's avatar 姬鋆屾

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

parent 119f19c8
......@@ -567,11 +567,16 @@ export default {
}
if (this.$route.name == "staff/care/list") {
this.form.careType = "1";
delete this.$route.query.yearmonth;
delete this.$route.query.year;
delete this.$route.query.month;
}
this.onSubmit();
},
onSubmit() {
let { path, query } = this.$route;
if (this.form.yearmonth) {
let arr = this.form.yearmonth.split("-");
this.form.year = arr[0];
......@@ -580,7 +585,11 @@ export default {
this.form.month = undefined;
}
if (this.form.year) {
this.form.year = this.form.year;
if (this.$route.name == "staff/care/list" && !this.form.month) {
this.form.year = undefined;
} else {
this.form.year = this.form.year;
}
} else {
this.form.year = undefined;
}
......@@ -718,13 +727,10 @@ export default {
}
}
console.log(
{
...query,
...data,
},
123123123123
);
console.log({
...query,
...data,
});
this.$router.push({
path: path,
query: {
......
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