Browse Source

工作台任务审核修改

yanshichao 1 year ago
parent
commit
d1ba463cce
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/dashboard/index.vue

+ 3 - 2
src/views/dashboard/index.vue

@@ -83,7 +83,7 @@
     <el-dialog :title="detailForm.taskName" :visible.sync="auditOpen" width="900px" class="i-audit-dialog"
                append-to-body
                :close-on-click-modal="false">
-      <el-carousel trigger="click" height="640px" indicator-position="outside" :autoplay="false"
+      <el-carousel trigger="click" height="630px"  :autoplay="false"
                    @change="auditTaskChange">
         <el-carousel-item v-for="item in carouselNum" :key="item">
           <task-detail :detail-form="detailForm"></task-detail>
@@ -283,11 +283,12 @@ export default {
     },
 
     auditTaskChange(currIndex, oldIndex) {
+      let refs = this.$refs.auditForm
       for (let key in refs) {
         refs[key].resetFields()
         refs[key].clearValidate()
       }
-      let auditTask = this.auditTasks[currIndex - 1];
+      let auditTask = this.auditTasks[currIndex];
       getTask(auditTask.id).then(res => {
         this.detailForm = res.data;
         this.auditForm = {