From f112e2c62b6fca7b115dd37e34dc19dbcbc91d15 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 07 三月 2025 14:52:41 +0800 Subject: [PATCH] 样式优化 --- src/views/performance/class/index.vue | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/views/performance/class/index.vue b/src/views/performance/class/index.vue index 31ac64c..209139c 100644 --- a/src/views/performance/class/index.vue +++ b/src/views/performance/class/index.vue @@ -530,7 +530,6 @@ laboratory: this.query.laboratory, }).then((res) => { this.pageLoading = false; - if (res.code == 201) return; this.total = res.data.page.total; this.list = res.data.page.records.map((item) => { for (let key in item.monthlyAttendance) { @@ -551,7 +550,9 @@ }; this.weeks.push(obj); }); - }); + }).catch(() => { + this.pageLoading = false; + }) }, initYear() { this.pageLoading = true; @@ -564,7 +565,6 @@ laboratory: this.query.laboratory, }).then((res) => { this.pageLoading = false; - if (res.code == 201) return; this.total = res.data.total; this.yearList = res.data.records.map((item) => { for (let key in item.year) { @@ -624,7 +624,6 @@ }) .then((res) => { this.loading = false; - if (res.code == 201) return; this.$message.success("鎿嶄綔鎴愬姛"); this.schedulingVisible = false; this.schedulingQuery = { @@ -649,7 +648,6 @@ this.configTimeVisibleLoading = true; list() .then((res) => { - if (res.code == 201) return; if (res.data.length > 0) { res.data.forEach((item) => { item.isEdit = false; @@ -701,14 +699,12 @@ // 缂栬緫 newObj.id = item.id; shiftUpdate(newObj).then((res) => { - if (res.code == 201) return; this.$message.success("鎿嶄綔鎴愬姛"); this.getTimeList(); }); } else { // 鏂板 shiftAdd(newObj).then((res) => { - if (res.code == 201) return; this.$message.success("鎿嶄綔鎴愬姛"); this.getTimeList(); }); @@ -719,7 +715,6 @@ shiftRemove({ id: item.id, }).then((res) => { - if (res.code == 201) return; this.$message.success("鎿嶄綔鎴愬姛"); this.getTimeList(); }); @@ -801,7 +796,6 @@ id: m.id, shift: e, }).then((res) => { - if (res.code == 201) return; this.$message.success("鎿嶄綔鎴愬姛"); m.shift = e; }); @@ -809,9 +803,6 @@ }, getUsers() { selectUserCondition({ type: 1 }).then((res) => { - if (res.code === 201) { - return; - } let arr = res.data; this.personList = arr; }); -- Gitblit v1.9.3