wxb 5 years ago
parent
commit
1a4e3a2015
2 changed files with 12 additions and 12 deletions
  1. 2 2
      src/views/sysjob/index.vue
  2. 10 10
      src/views/sysjob/log.vue

+ 2 - 2
src/views/sysjob/index.vue

@@ -4,7 +4,7 @@
     <BasicLayout>
     <BasicLayout>
       <template #wrapper>
       <template #wrapper>
         <el-card class="box-card">
         <el-card class="box-card">
-          <el-form ref="queryForm" :model="queryParams" :inline="true" label-width="68px">
+          <el-form ref="queryForm" :model="queryParams" :inline="true" label-position="left" label-width="68px">
             <el-form-item label="名称" prop="jobName">
             <el-form-item label="名称" prop="jobName">
               <el-input
               <el-input
                 v-model="queryParams.jobName"
                 v-model="queryParams.jobName"
@@ -188,7 +188,7 @@
           />
           />
 
 
           <!-- 添加或修改对话框 -->
           <!-- 添加或修改对话框 -->
-          <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
+          <el-dialog v-dialogDrag :title="title" :visible.sync="open" width="700px" append-to-body>
             <el-form ref="form" :model="form" :rules="rules" label-width="120px">
             <el-form ref="form" :model="form" :rules="rules" label-width="120px">
               <el-row>
               <el-row>
                 <el-col :span="12">
                 <el-col :span="12">

+ 10 - 10
src/views/sysjob/log.vue

@@ -8,21 +8,21 @@
       </el-form-item>
       </el-form-item>
     </el-form>
     </el-form>
     <el-row ref="log" :gutter="10" class="mb8">
     <el-row ref="log" :gutter="10" class="mb8">
-      <ul
-        style="
+      <el-scrollbar style="height:500px">
+        <ul
+          style="
     background-color: black;
     background-color: black;
     color: cornflowerblue;
     color: cornflowerblue;
     line-height: 25px;
     line-height: 25px;
     padding-top: 15px;
     padding-top: 15px;
-    margin: 0;
-    min-height: 500px;
-"
-      >
-        <li v-for="arr in arrs">
+    margin: 0;"
+        >
+          <li v-for="(item,index) in arrs" :key="index">
 
 
-          {{ arr }}
-        </li>
-      </ul>
+            {{ item }}
+          </li>
+        </ul>
+      </el-scrollbar>
     </el-row>
     </el-row>
   </div>
   </div>