显示隐藏按钮控制

main
lijingyu007 5 months ago
parent 13a5599d5d
commit 7ce60ff8f1
  1. 16
      src/views/cloudUser/cloudList.vue

@ -43,10 +43,20 @@
<el-button size="mini" type="text" icon="el-icon-download" @click="downloadFn(scope.row)" <el-button size="mini" type="text" icon="el-icon-download" @click="downloadFn(scope.row)"
>下载简历</el-button >下载简历</el-button
> >
<el-button size="mini" type="text" icon="el-icon-turn-off" @click="hideJl(scope.row)" <el-button
v-if="scope.row.status == 2"
size="mini"
type="text"
icon="el-icon-turn-off"
@click="hideJl(scope.row)"
>隐藏简历</el-button >隐藏简历</el-button
> >
<el-button size="mini" type="text" icon="el-icon-turn-off" @click="showJl(scope.row)" <el-button
v-if="scope.row.status == 4"
size="mini"
type="text"
icon="el-icon-turn-off"
@click="showJl(scope.row)"
>显示简历</el-button >显示简历</el-button
> >
</template> </template>
@ -219,12 +229,14 @@ export default {
showJl(row) { showJl(row) {
showJLFN(row.userId).then((res) => { showJLFN(row.userId).then((res) => {
this.$message.success('显示成功') this.$message.success('显示成功')
this.getList()
}) })
}, },
// //
hideJl(row) { hideJl(row) {
hideJLFN(row.userId).then((res) => { hideJLFN(row.userId).then((res) => {
this.$message.success('隐藏成功') this.$message.success('隐藏成功')
this.getList()
}) })
}, },
}, },

Loading…
Cancel
Save