0
点赞
收藏
分享

微信扫一扫

01_学习笔记

王栩的文字 2022-03-30 阅读 39
vueelementui

1、el-button显示的时候,根据状态的不同进行判断

<template v-if="this.basicInfo.status === 2">
   <el-button type="danger" @click="invalid" class="btn">作废</el-button>
   <el-button type="primary" :loading="loading" @click="onConfirm" class="btn">确认</el-button>
</template>

2、实现文字,然后弹窗提示日志信息,具体的详情内容,请以下面的代码为主

<el-button type="text" @click="log(basicInfo.id)" class="btn">查看日志</el-button>
log(id, serviceType = 1) {
      this.serviceType = serviceType
      this.serviceId = id
      this.$nextTick(() => {
        this.$refs.log.open()
      })
    },

3、状态值的显示

<el-col :span="6">
          <dd>
            <span>XXX状态</sp
举报

相关推荐

ajax笔记_01_原生ajax

01_链表

01_公式篇

01_什么是微服务

【python基础】01_认识Python

01_邂逅vue3开发

0 条评论