Forráskód Böngészése

服务管理-新增弹框修改

zhongxiaoyu 2 éve
szülő
commit
bcbf4619ba

+ 4 - 7
src/layout/components/Dialog/index.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: your name
  * @Date: 2021-10-19 14:56:17
- * @LastEditTime: 2022-03-02 17:14:12
- * @LastEditors: Please set LastEditors
+ * @LastEditTime: 2022-04-28 11:22:47
+ * @LastEditors: your name
  * @Description: 弹出框
  * @FilePath: \Foshan4A\src\layout\components\Dialog\index.vue
 -->
@@ -137,11 +137,8 @@ export default {
           color: #eb2f3b;
         }
       }
-      .dialog-content {
-        .el-input__inner,
-        .el-textarea__inner {
-          width: 94%;
-        }
+      .dialog-content .el-form {
+        padding-right: 24px;
       }
       .el-form-item__label {
         font-size: 14px;

+ 2 - 2
src/views/systemSettings/views/serviceManagement/serviceEdit.vue

@@ -1,6 +1,6 @@
 <!--
  * @Date: 2022-03-24 09:55:13
- * @LastEditTime: 2022-04-28 10:13:27
+ * @LastEditTime: 2022-04-28 10:33:02
  * @LastEditors: your name
  * @Description: 服务管理-编辑服务
  * have a nice day!
@@ -40,7 +40,7 @@
                     clearable
                   />
                 </el-form-item>
-                <el-form-item label="是否启用同步">
+                <el-form-item label="是否同步">
                   <el-radio-group v-model="serviceForm.sync">
                     <el-radio :label="1">是</el-radio>
                     <el-radio :label="0">否</el-radio>

+ 31 - 3
src/views/systemSettings/views/serviceManagement/serviceHome.vue

@@ -1,6 +1,6 @@
 <!--
  * @Date: 2022-04-12 17:49:47
- * @LastEditTime: 2022-04-28 10:12:47
+ * @LastEditTime: 2022-04-28 11:17:01
  * @LastEditors: your name
  * @Description: 服务管理-首页
  * have a nice day!
@@ -133,6 +133,18 @@
                   />
                 </el-select>
               </el-form-item>
+              <el-form-item
+                label="并发线程数"
+                prop="threads"
+                label-width="86px"
+              >
+                <el-input
+                  v-model="addForm.threads"
+                  width="180px"
+                  placeholder="请输入并发线程数"
+                  clearable
+                />
+              </el-form-item>
               <el-form-item
                 label="来源配置"
                 prop="config"
@@ -158,7 +170,7 @@
             <el-button
               size="medium"
               class="r26"
-              @click="addCancel"
+              @click="addDialogClose"
             >取消</el-button>
           </div>
         </div>
@@ -186,6 +198,7 @@ export default {
         threads: '',
         sourceConfig: ''
       },
+      sourceOptions: [],
       removeDialogVisible: false,
       rmObj: {}
     }
@@ -219,7 +232,7 @@ export default {
     },
     // 新增-关闭
     addDialogClose() {
-      this.$refs['addForm'].resetField()
+      this.$refs['addForm'].resetFields()
       this.addDialogVisible = false
     },
     // 编辑-跳转
@@ -305,6 +318,21 @@ export default {
         }
       }
     }
+    .dialog-add {
+      ::v-deep .add-form {
+        display: flex;
+        flex-wrap: wrap;
+        > .el-form-item {
+          &:not(:nth-child(4), :nth-child(5)) {
+            width: 100%;
+          }
+          &:nth-child(5) {
+            margin-left: 34px;
+            flex: 1;
+          }
+        }
+      }
+    }
   }
 }
 </style>