Browse Source

子计划不小于父计划

luojun 2 years ago
parent
commit
3bb235377a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/check/dialog.edit.vue

+ 4 - 2
src/views/check/dialog.edit.vue

@@ -185,12 +185,12 @@
             <el-col :span="6">
             <el-col :span="6">
               <el-form-item prop="count" label="检查次数:">
               <el-form-item prop="count" label="检查次数:">
                 <el-input-number
                 <el-input-number
-                  :disabled="isChildren()"
+                  
                   style="margin-left: 10px"
                   style="margin-left: 10px"
                   v-model="formData.count"
                   v-model="formData.count"
                   controls-position="right"
                   controls-position="right"
                   @change="handleChange"
                   @change="handleChange"
-                  :min="1"
+                  :min="parentCount"
                   :max="10"
                   :max="10"
                 ></el-input-number>
                 ></el-input-number>
               </el-form-item>
               </el-form-item>
@@ -340,6 +340,7 @@ export default {
   ],
   ],
   data() {
   data() {
     return {
     return {
+      parentCount:1,
       defaultSelect: [],
       defaultSelect: [],
       selectedValues: [],
       selectedValues: [],
       planRoles: [],
       planRoles: [],
@@ -481,6 +482,7 @@ export default {
     async refresh(id, other) {
     async refresh(id, other) {
       if (id != null && id != undefined) {
       if (id != null && id != undefined) {
         await api.get(id).then((res) => {
         await api.get(id).then((res) => {
+          this.parentCount=res.data.parentCount;
           this.formData = res.data;
           this.formData = res.data;
           this.formData.buildTaskNow;
           this.formData.buildTaskNow;
           this.tableData = res.data.rulePointList;
           this.tableData = res.data.rulePointList;