Commit cd779732 authored by zhengke's avatar zhengke

优化删除颜色

parent 5f384de8
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<el-table-column label="操作" width="130"> <el-table-column label="操作" width="130">
<template #default="scope"> <template #default="scope">
<el-button type="default" link :icon="Edit" size="small" @click="editDelete(scope.row)">编辑</el-button> <el-button type="default" link :icon="Edit" size="small" @click="editDelete(scope.row)">编辑</el-button>
<el-button v-if="scope.row.Code" type="default" link :icon="Delete" size="small" @click="editDelete(scope.row,scope.$index)">删除</el-button> <el-button v-if="scope.row.Code||(!scope.row.Code&&scope.row.ChildList.length==0)" type="default" link :icon="Delete" size="small" @click="editDelete(scope.row,scope.$index)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment