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

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

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