BUG 27970

This commit is contained in:
aixianling
2022-03-02 15:56:24 +08:00
parent 8fee098a0a
commit fcc4518cb1

View File

@@ -25,7 +25,7 @@
</ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="hot" label="热门推荐" align="center">
<el-table-column slot="hot" label="热门推荐" align="center" v-if="!isFinanceUser">
<template slot-scope="{row}">
<el-switch v-model="row.isHot" active-value="1" inactive-value="0" @change="handleIsHot(row)"/>
</template>
@@ -40,7 +40,8 @@
<el-button type="text" @click="showDetail(row.id)">详情</el-button>
<template v-if="isFinanceUser">
<el-button type="text" @click="handleEdit(row.id)" v-if="row.status==2">编辑</el-button>
<el-button type="text" @click="handleDelete(row.id)" v-if="['2','1'].includes(row.status)">删除</el-button>
<el-button type="text" @click="handleDelete(row.id)" v-if="['2','1'].includes(row.status)">删除
</el-button>
</template>
</template>
</el-table-column>