
<template>
      <!-- :detailPath="{
        path:'/promotionDetail'
      }"> -->
  <div>
    <basicLayout 
      ref="list" 
      tableName="promotionTable" 
      idName="sa_promotionid" 
      :apiId="{query:20220103140003,del:''}"
      :options="options"
      @listData="list">
      <div slot="custom"></div>
      <template v-slot:tbList="scope">
        <div v-if="scope.data.column.data[[scope.data.column.columnname]]">
          <span v-if="scope.data.column.columnname == 'STATUS'">
            <span style="color:#333333" v-if="scope.data.column.data[[scope.data.column.columnname]] == '新建'">{{scope.data.column.data[[scope.data.column.columnname]]}}</span>
            <span style="color:#3874f6" v-else-if="scope.data.column.data[[scope.data.column.columnname]] == '审核'">{{scope.data.column.data[[scope.data.column.columnname]]}}</span>
            <span style="color:#52C41A" v-else-if="scope.data.column.data[[scope.data.column.columnname]] == '发布'">{{scope.data.column.data[[scope.data.column.columnname]]}}</span>
          </span>
          <span v-else>
            {{scope.data.column.data[[scope.data.column.columnname]]}}
          </span>
        </div>
        <div v-if="scope.data.column.columnname != 'operation' && !scope.data.column.data[[scope.data.column.columnname]] && scope.data.column.data[[scope.data.column.columnname]] !== 0">--</div>
      </template>
      <template v-slot:tbOpreation="scope">
      </template>
    </basicLayout>
  </div>
</template>

<script>
export default {
  data () {
    return {
      options:[]
      
    }
  },
  methods:{
    list(data) {
      console.log(data);
      
    }
  }
}

</script>
<style>
</style>