Browse Source

编辑按钮禁用

duy 2 years ago
parent
commit
c7c3236128
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/program/project/form.vue

+ 2 - 2
src/views/program/project/form.vue

@@ -51,7 +51,7 @@
             </template> -->
             <template #action="{row,index}">
                 <el-button size="small" type="success" v-if="row.isEdit" @click="getWorkDays(row)">保存</el-button>
-                <el-button size="small" type="primary" v-else @click="row.isEdit = true">编辑</el-button>
+                <el-button size="small" type="primary" v-else @click="row.isEdit = true" :disabled="row?.isShowEdit===0">编辑</el-button>
                 <el-button size="small" type="warning" @click="relatedModalShow(row)">关联回款</el-button>
                 <el-button size="small" type="danger" @click="subplanModalShow(row)" :disabled="row?.isShowChildren==0">分解子计划</el-button>
             </template>
@@ -103,7 +103,7 @@
                 </template>
                 <template #action="{row,index}">
                 <el-button size="small" type="success" v-if="row.isEdit" @click="getWorkDays(row)">保存</el-button>
-                <el-button size="small" type="primary" v-else @click="row.isEdit = true">编辑</el-button>
+                <el-button size="small" type="primary" v-else @click="row.isEdit = true" :disabled="row?.isShowEdit===0">编辑</el-button>
                 <el-button size="small" type="primary" @click="delSubplan(row,index)">删除</el-button>
             </template>
             </HcTable>