From 594db4f5274caf8c6d89bdd91c871b5c0e0c5a8e Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Fri, 05 Jan 2024 14:02:57 +0800
Subject: [PATCH] 更新

---
 src/views/evaluate/evaluateTask.vue |   32 +++++++++++++++++++++-----------
 1 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/src/views/evaluate/evaluateTask.vue b/src/views/evaluate/evaluateTask.vue
index 36e4c07..d4f2c43 100644
--- a/src/views/evaluate/evaluateTask.vue
+++ b/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>

--
Gitblit v1.9.3