GuLiMmo
2023-12-23 6d050f89d69f129e4d31328df835fe5511c38ee7
src/views/evaluate/evaluateTask.vue
@@ -15,7 +15,7 @@
      <template #menu="{ size, row, index }">
        <el-button type="primary" text plain icon="el-icon-edit" @click="editDialog(row)">编辑</el-button>
        <el-button type="primary" text plain icon="el-icon-position" @click="publicTimeBtn(row)"
          v-if="row.status === 2">发布</el-button>
          v-if="row.candidateState === 2">发布</el-button>
        <!-- <el-button type="primary" v-if="row.type === 0" text plain icon="el-icon-plus" @click="addCandidateHandle(row)">新增候选人</el-button> -->
        <el-button type="primary" text plain icon="el-icon-download">导出</el-button>
      </template>
@@ -306,6 +306,7 @@
      };
      getList(page.currentPage, page.pageSize, values).then(res => {
        const data = res.data.data;
        console.log(data.records);
        this.page.total = data.total;
        this.data = data.records;
        this.loading = false;
@@ -335,9 +336,11 @@
      const { id } = this.rowData;
      const params = {
        id,
        // candidateState: 1,
        evaluateState: 1,
        evaluateCutoffTime: this.publicForm.publicData,
      };
      add(params).then(
      update(params).then(
        res => {
          this.$message({
            type: 'success',