项目开始之后不能修改

This commit is contained in:
Yjhon 2022-02-22 15:57:23 +08:00
parent 3cec50b99e
commit 47c0781065
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a-popconfirm
v-if="record.status === 0"
v-if="record.status === 1"
:title="`确定要添加${record.name}课程吗?`"
ok-text="添加"
cancel-text="取消"

View File

@ -42,7 +42,7 @@
<a-divider type="vertical" v-if="hasPerm(power.edit) && hasPerm('project:list')" />
<a v-if="hasPerm('project:list')" href="javascript:;" @click="getDetail(record)">详情</a>
<a-divider type="vertical" v-if="hasPerm(power.edit) && hasPerm('project:list')" />
<a v-if="hasPerm(power.edit)" href="javascript:;" @click="handledCreate(record)">修改</a>
<a v-if="hasPerm(power.edit) && ['1','2'].includes(record.status)" href="javascript:;" @click="handledCreate(record)">修改</a>
<a-divider type="vertical" v-if="hasPerm(power.del) && hasPerm('project:list')" />
<a-popconfirm title="是否删除?" @confirm="() => handleDelete(record)">
<a v-if="hasPerm(power.del)" href="javascript:;">删除</a>