导航配置

This commit is contained in:
yanran200730
2021-12-22 09:48:33 +08:00
parent fd260eaefb
commit f59c178d65
2 changed files with 6 additions and 10 deletions

View File

@@ -139,7 +139,7 @@
isCanAdd (item) { isCanAdd (item) {
const isHas = this.picked.map(v => v.id).indexOf(item.id) > -1 const isHas = this.picked.map(v => v.id).indexOf(item.id) > -1
return this.isEdit && item.type !== '0' && item.picked !== '1' && !isHas return this.isEdit && item.picked !== '1' && !isHas
}, },
addApp (e) { addApp (e) {

View File

@@ -38,13 +38,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column slot="options" width="180px" fixed="right" label="操作" align="center"> <el-table-column slot="options" width="180px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }"> <div class="table-options" slot-scope="{ row }">
<div class="table-options"> <el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="toDetail(row.id)">详情</el-button> <el-button type="text" @click="toAdd(row.id)">编辑</el-button>
<el-button type="text" @click="toAdd(row.id)">编辑</el-button> <el-button type="text" @click="remove(row.id)">删除</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button> </div>
</div>
</template>
</el-table-column> </el-table-column>
</ai-table> </ai-table>
</template> </template>
@@ -138,6 +136,4 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.notice {
}
</style> </style>