App.vue 8.04 KB
<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png" /> -->
    <!-- <HelloWorld msg="Welcome to Your Vue.js App" />
    <GLExternal url="//localhost:8080/html/employee/index.html" :subscribe="subscribe"></GLExternal> -->
    <GLButton @click="click" fn="1-1-1-11" mode="el-button" display="disabled">232321321</GLButton>
    <el-button type="primary">aaa</el-button>
    <el-button type="primary" size="small">aaa</el-button>
    <el-button type="primary" size="mini">aaa</el-button>
    <!-- <GLDialog :visible.sync="visible" title="aaaaaaaaa">
      <div slot="footer">
        <el-button size="small" @click="visible = false">取消</el-button>
        <el-button type="primary" size="small">aaa</el-button>
      </div>
    </GLDialog> -->
    <GLTable ref="liveRoomRef" :tableParams="tableParams" :tableData="tableData">
      <span slot="shareImgUrl" slot-scope="scope">
        <img class="img-60" :src="scope.scope.shareImgUrl" />
      </span>
      <span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
        <el-button type="text" @click="handleDetail(scope.scope)">控制台</el-button>
        <el-button type="text" @click="handleShare(scope.scope)">分享</el-button>
        <el-button v-if="scope.scope.liveStatus == '102'" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
        <el-button v-if="scope.scope.liveStatus != '101'" type="text" @click="handleDelete(scope.scope)">删除</el-button>
      </span>
    </GLTable>
    <!-- <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="date" label="序号" align="center"></el-table-column>
      <el-table-column label="订单信息" align="center">
        <el-table-column prop="name" label="支付订单编号" align="center"></el-table-column>
        <el-table-column prop="name" align="center" label="交易参考号"></el-table-column>
        <el-table-column prop="name" align="center" label="商品名称"></el-table-column>
        <el-table-column prop="name" align="center" label="商品编号"></el-table-column>
        <el-table-column prop="name" align="center" label="商品成本"></el-table-column>
      </el-table-column>
      <el-table-column label="支付信息" align="center">
        <el-table-column prop="name" align="center" label="客户手机号"></el-table-column>
        <el-table-column prop="name" align="center" label="转化员"></el-table-column>
        <el-table-column prop="name" align="center" label="转销售顾问"></el-table-column>
        <el-table-column prop="name" align="center" label="支付时间"></el-table-column>
        <el-table-column prop="name" align="center" label="支付方式"></el-table-column>
        <el-table-column prop="name" align="center" label="支付金额"></el-table-column>
      </el-table-column>
      <el-table-column label="导流方利润" align="center">
        <el-table-column prop="name" align="center" label="总分账金额"></el-table-column>
        <el-table-column prop="name" align="center" label="分润对象"></el-table-column>
        <el-table-column prop="name" align="center" label="分润规则"></el-table-column>
        <el-table-column prop="name" align="center" label="分润金额"></el-table-column>
        <el-table-column prop="name" align="center" label="分账类型"></el-table-column>
      </el-table-column>
      <el-table-column fixed="right" label="操作" align="center" width="120">添加</el-table-column>
    </el-table> -->
    <!-- 弹窗调整 -->
    <h2>文字内容弹窗调整</h2>
     <el-tooltip class="item" effect="dark" content="Top Left 提示文字提示文字提示文字提示文字提字提示文字提示文字提示文字示文字提示文字提示文字提示文字提示文字" placement="top-start">
      <el-button>上左</el-button>
    </el-tooltip>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      visible: false,
      tableParams: {
        listName: 'list',
        tableOption: false,
        tableColumns: [
          {
            label: '最近开播',
            prop: 'time',
            width: '180',
            formatter: cellValue => {
              return cellValue.startTime + '-' + cellValue.endTime
            }
          },
          {
            label: '直播间名称',
            prop: 'name',
            line: 1,
            // children:[
            //   {
            //     label: '直播间名称1',
            //     prop: 'name1',
            //     line: 1,
            //   },
            //   {
            //     label: '直播间名称2',
            //     prop: 'name2',
            //     line: 1,
            //   },
            // ]
          },
          {
            label: '房间号',
            prop: 'roomId'
          },
          {
            label: '主播',
            prop: 'anchorName',
            line: 1
          },
          {
            label: '直播间图片',
            prop: 'shareImgUrl',
            line: 1,
            addHtml: 'shareImgUrl'
          },
          {
            label: '直播状态',
            prop: 'liveStatus',
            width: '80',
            formatter: cellValue => {
              return 111
            },
            children:[
              {
                label: '直播状态1',
                prop: 'liveStatus1',
                line: 1,
                addHtml: 'shareImgUrl',
                children:[
                   {
                      label: '直播状态3',
                      prop: 'liveStatus3',
                      line: 1,
                      addHtml: 'shareImgUrl',
                    },
                      {
                      label: '直播状态4',
                      prop: 'liveStatus4',
                      line: 1,
                      addHtml: 'shareImgUrl'
                    },
                ]
              },
              {
                label: '直播状态2',
                prop: 'liveStatus2',
                line: 1,
                addHtml: 'shareImgUrl',
                // children:[
                //    {
                //       label: '直播状态3',
                //       prop: 'liveStatus3',
                //       line: 1,
                //       addHtml: 'shareImgUrl'
                //     }
                // ]
              },
            ]
          }
        ]
      },
      tableData: [
        {
          name: '王小虎王小虎王小虎王',
          liveStatus3:'132',
          liveStatus4:'789',
          name1:'123',
          name2:'123',
        },
        {
          name: '王小虎王小虎王小虎王王小虎王小虎王小虎王',
          liveStatus3:'132',
          liveStatus4:'789',
           name1:'123',
          name2:'123',
        },
        {
          name: '王小虎',
           name1:'123',
          name2:'123',
        },
        {
          name: '王小虎王小虎王小虎王',
          liveStatus3:'132',
          liveStatus4:'789',
           name1:'123',
          name2:'123',
        },
        {
          name: '王小虎王小虎王小虎王王小虎王小虎王小虎王',
          liveStatus3:'132',
          liveStatus4:'789',
           name1:'123',
          name2:'123',
        },
        {
          name: '王小虎',
          liveStatus3:'132',
          liveStatus4:'789',
           name1:'123',
          name2:'123',
        },
        {
          name: '王小虎王小虎王小虎王',
          liveStatus3:'132',
          liveStatus4:'789',
          name1:'123',
          name2:'123',
        }
      ]
    }
  },
  methods: {
    subscribe(child) {
      child.call('push', { src: this.src })
      child.on('route-to', params => {
        this.$history.push(params)
      })
    },
    click() {
      console.log(111111111111)
      this.visible = true
    }
  }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
// table滚动调样式


// table滚动调样式


</style>