| | |
| | | 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) { |
| | |
| | | }) |
| | | .then((res) => { |
| | | this.loading = false; |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.schedulingVisible = false; |
| | | this.schedulingQuery = { |
| | |
| | | this.configTimeVisibleLoading = true; |
| | | list() |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | if (res.data.length > 0) { |
| | | res.data.forEach((item) => { |
| | | item.isEdit = false; |
| | |
| | | // 编辑 |
| | | 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(); |
| | | }); |
| | |
| | | shiftRemove({ |
| | | id: item.id, |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.getTimeList(); |
| | | }); |
| | |
| | | id: m.id, |
| | | shift: e, |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | m.shift = e; |
| | | }); |
| | |
| | | }, |
| | | getUsers() { |
| | | selectUserCondition({ type: 1 }).then((res) => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | let arr = res.data; |
| | | this.personList = arr; |
| | | }); |