Crunchy
2025-04-29 e5454b769d44a34af423bf87ac8a740bf8c20341
src/views/performance/class/index.vue
@@ -22,8 +22,8 @@
        </div>
      </div>
      <div class="search_thing" style="padding-left: 30px">
        <el-button size="small" @click="refresh()">重 置</el-button>
        <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button>
        <el-button size="mini" type="primary" @click="refreshTable()"> 询</el-button>
        <el-button size="mini" @click="refresh()">重置</el-button>
      </div>
      <div class="search_thing btns" style="padding-left: 30px">
        <el-button size="small" type="primary" v-if="checkPermi(['performance:class:time'])"
@@ -444,7 +444,6 @@
      this.monthList.push(i);
    }
    this.monthList.reverse();
    // this.getPower();
  },
  methods: {
    refresh() {
@@ -565,7 +564,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) {
@@ -625,7 +623,6 @@
      })
        .then((res) => {
          this.loading = false;
          if (res.code == 201) return;
          this.$message.success("操作成功");
          this.schedulingVisible = false;
          this.schedulingQuery = {
@@ -650,7 +647,6 @@
      this.configTimeVisibleLoading = true;
      list()
        .then((res) => {
          if (res.code == 201) return;
          if (res.data.length > 0) {
            res.data.forEach((item) => {
              item.isEdit = false;
@@ -702,14 +698,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();
        });
@@ -720,7 +714,6 @@
        shiftRemove({
          id: item.id,
        }).then((res) => {
          if (res.code == 201) return;
          this.$message.success("操作成功");
          this.getTimeList();
        });
@@ -802,7 +795,6 @@
          id: m.id,
          shift: e,
        }).then((res) => {
          if (res.code == 201) return;
          this.$message.success("操作成功");
          m.shift = e;
        });
@@ -810,9 +802,6 @@
    },
    getUsers() {
      selectUserCondition({ type: 1 }).then((res) => {
        if (res.code === 201) {
          return;
        }
        let arr = res.data;
        this.personList = arr;
      });