coys пре 1 година
родитељ
комит
5d0a0a4062

+ 4 - 2
src/views/resumptionEvaluate/evaluate/editDialog.vue

@@ -86,7 +86,7 @@
               </el-form-item>
             </el-col>
             <el-col :span="4">
-              <el-form-item prop="buildTaskNow" label="立即生效:" v-if="!id">
+              <el-form-item prop="buildTaskNow" label="立即生效:" v-if="(!id&&!isDistribute)">
                 <el-checkbox v-model="formData.buildTaskNow" size="medium"
                   >勾选后当前周期开始生效</el-checkbox
                 >
@@ -155,6 +155,7 @@ export default {
   dicts: ["evaluate_cycle", "sys_org_type"],
   data() {
     return {
+      isDistribute:0,
       selectedValues: [],
       resumptionRoles: [],
       evaluateName: null,
@@ -261,8 +262,9 @@ export default {
     onOrgTypeChanged() {
       this.getRolesByOrg(1);
     },
-    async show(id = "", other = {}) {
+    async show(id = "", isDistribute=0) {
       this.id = id;
+      this.isDistribute=isDistribute
       this.tableData = [
         {
           contentType: "1",

+ 1 - 1
src/views/resumptionEvaluate/evaluate/index.vue

@@ -281,7 +281,7 @@ export default {
       this.$refs.Evaluate.show();
     },
     editHandler(row) {
-      this.$refs.Evaluate.show(row.id);
+      this.$refs.Evaluate.show(row.id,row.isDistribute);
     },
     //发布
     publishHandler(row) {