
<template>
      <!-- :oldFormPath="{
        add:'HManagement/accountManage/modules'
      }" -->
  <div>
    <basicLayout 
      ref="basicLayout" 
      tableName="staffTable" 
      idName="userid" 
      :apiId="{query:20230213143003}"
      :options="options"
      @listCreate="list"
      @listData="listData">
      <div slot="custom"></div>
      <template v-slot:tbList="scope">
        <div v-if="scope.data.column.columnname == 'status'">
          <span v-if="scope.data.column.data.status == 'ACTIVE'">启用</span>
          <span v-else>禁用</span>
        </div>
        <div v-else-if="scope.data.column.columnname == 'isleader'">
          {{scope.data.column.data.isleader ? '服务主管' : '服务人员'}}
        </div>
        <div v-else>
          {{scope.data.column.data[[scope.data.column.columnname]]}}
        </div>
      </template>
      <template v-slot:tbOpreation="scope">
      </template>
    </basicLayout>
  </div>
</template>

<script>
export default {
  data () {
    return {
      options:[]
      
    }
  },
  methods:{
    list (param) {
      param.content.where.isleader = ''
    },
    listData (data) {
      console.log(data);
      
    }
  }
}

</script>
<style>
</style>