Explorar o código

页面显示修改

yanshichao hai 1 ano
pai
achega
f02dd16af8
Modificáronse 2 ficheiros con 8 adicións e 5 borrados
  1. 5 2
      src/views/dashboard/index.vue
  2. 3 3
      src/views/task/components/taskDetail.vue

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

@@ -92,7 +92,8 @@
     <el-dialog :title="detailForm.id+'、'+detailForm.taskName" :visible.sync="auditOpen" width="900px"
                class="i-audit-dialog" append-to-body @close="auditCancel">
       <div class="indicator">{{ currentTaskIndex + '/' + carouselNum }}</div>
-      <el-carousel ref="auditCarousel" trigger="click" height="calc(100vh - 110px)" :autoplay="false" indicator-position="none"
+      <el-carousel ref="auditCarousel" trigger="click" height="calc(100vh - 110px)" :autoplay="false"
+                   indicator-position="none"
                    @change="auditTaskChange">
         <el-carousel-item v-for="item in carouselNum" :key="item">
           <task-detail :detail-form="detailForm"></task-detail>
@@ -309,8 +310,10 @@ export default {
         if (this.auditOpen) {
           let refs = this.$refs.auditForm
           for (let key in refs) {
+            this.$nextTick(() => {
+              refs[key].clearValidate()
+            })
             refs[key].resetFields()
-            refs[key].clearValidate()
           }
         }
         this.auditOpen = true;

+ 3 - 3
src/views/task/components/taskDetail.vue

@@ -97,7 +97,7 @@
         <span slot="label"><i class="el-icon-document"></i>
           <span style="margin-left: 5px">反馈信息({{ form.feedbacks.length }})</span>
         </span>
-        <el-table :data="form.feedbacks" size="mini" height="320" border>
+        <el-table :data="form.feedbacks" size="mini" height="calc(100vh - 375px)" border>
           <el-table-column width="75" label="反馈状态">
             <template slot-scope="scope">
               <div>{{ getFeedbackTypeName(scope.row.feedbackType) }}</div>
@@ -140,7 +140,7 @@
             <span style="margin-left: 5px">子任务({{ form.children.length }})</span>
           </span>
         <el-table :data="form.children"
-                  max-height="320"
+                  height="calc(100vh - 375px)"
                   size="mini"
                   @cell-mouse-enter="cellMouseEnter"
                   @cell-mouse-leave="cellMouseLeave"
@@ -187,7 +187,7 @@
         <span slot="label"><i class="el-icon-edit"></i>
           <span style="margin-left: 5px">修改日志({{ form.updateLogs.length }})</span>
         </span>
-        <el-table :data="form.updateLogs" height="320" size="mini">
+        <el-table :data="form.updateLogs" height="calc(100vh - 375px)" size="mini">
           <el-table-column label="修改项" prop="fieldName" width="90">
             <template slot-scope="scope">
               <span>{{ getFieldName(scope.row.field) }}</span>