<template>
  <div>
    <basicLayout ref="list" formPath="salerPublicCustomer" tableName="salerPublicCustomer" idName="sa_customersid" :apiId="{query:20221014164702,del:''}" :options="options" :autoQuery="false">
      <div slot="custom"></div>
      <template v-slot:tbList="scope">
        <div v-if="scope.data.column.columnname === 'parentid'">
          <p v-if="scope.data.column.data.parentid === 0">无</p>
        </div>
        <div v-else-if="scope.data.column.columnname === 'contacts'">
          <p v-if="scope.data.column.data.leader">无</p>
        </div>
        <div v-else-if="scope.data.column.columnname === 'leader'">
          <p v-if="scope.data.column.data.leader">无</p>
        </div>
        <div v-else>
          {{scope.data.column.data[[scope.data.column.columnname]]}}
        </div>
      </template>
      <template v-slot:tbOpreation="scope">
          <el-button size="mini" type="text" @click="$router.push({path:'/salerPublicCustomerDetail',query:{id:scope.data.data.sa_customersid,rowindex:scope.data.data.rowindex,tag:scope.data.data.leader,enterpriseid:scope.data.data.sys_enterpriseid}})">详 情</el-button>
      </template>
    </basicLayout>
  </div>
</template>

<script>
export default {
  name: "index",
  data () {
    return {
      options:[]
    }
  },
  methods:{
  },
  mounted() {
    this.$refs['list'].param.content.isExport = false
    this.$refs['list'].listData()
  },
  created() {
  }
}
</script>

<style scoped>

</style>