GuLiMmo
2024-01-05 594db4f5274caf8c6d89bdd91c871b5c0e0c5a8e
src/views/evaluate/evaluateTask.vue
@@ -7,14 +7,18 @@
      @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
      @refresh-change="refreshChange" @on-load="onLoad">
      <template #candidateCutoffTimeEnd="{ row }">
        {{ row.candidateCutoffTimeStart}}
        <div style="text-align: center;">-</div>
        {{ row.candidateCutoffTimeEnd}}
        <div class="time-box">
          {{ row.candidateCutoffTimeStart }}
          <div>-</div>
          {{ row.candidateCutoffTimeEnd }}
        </div>
      </template>
      <template #evaluateCutoffTimeEnd="{ row }">
        {{ row.evaluateCutoffTimeStart}}
        <div style="text-align: center;">-</div>
        {{ row.candidateCutoffTimeEnd}}
        <div class="time-box">
          {{ row.evaluateCutoffTimeStart }}
          <div>-</div>
          {{ row.evaluateCutoffTimeEnd }}
        </div>
      </template>
      <template #menu-left>
        <el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增评优任务</el-button>
@@ -24,7 +28,8 @@
      </template>
      <template #menu="{ size, row, index }">
        <el-button type="primary" text plain icon="el-icon-view" @click="viewDateilDialog(row)">详情</el-button>
        <el-button type="primary" text plain icon="el-icon-send" @click="taskPublicDialog(row)">发布</el-button>
        <el-button type="primary" v-if="!row.type" text plain icon="el-icon-position"
          @click="taskPublicDialog(row)">发布</el-button>
        <el-button type="danger" text plain icon="el-icon-delete" @click="rowDel(row)">删除</el-button>
      </template>
    </avue-crud>
@@ -108,7 +113,7 @@
        // 更改option
        !n ? (this.option = option) : (this.option = sectionOption)
        this.page.currentPage = 1;
        // this.onLoad(this.page, params);
        this.onLoad(this.page, params);
      },
      immediate: true,
    },
@@ -169,6 +174,7 @@
      }
    },
    taskPublicDialog(row) {
      console.log(row);
      this.taskPublicParams = {
        visible: true,
        data: row
@@ -301,8 +307,7 @@
      let values = {
        ...this.query,
        ...params,
        taskName_like: taskName,
        ...params
      };
      getList(page.currentPage, page.pageSize, values).then(res => {
        const data = res.data.data;
@@ -324,4 +329,9 @@
};
</script>
<style></style>
<style lang="scss" scoped>
.time-box {
  display: inline-block;
  text-align: center;
}
</style>