01_学习笔记

阅读 39

2022-03-30

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

精彩评论(0)

0 0 举报