
<template>
  <div>
    <basicLayout 
      ref="list" 
      formPath="promotion"
      tableName="promotionTable" 
      idName="sa_promotionid" 
      :apiId="{query:20221230144803,del:20221230144903}"
      :options="options"
      :detailPath="{
        path:'/promotionDetail'
      }">
      <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:{
  }
}

</script>
<style>
</style>