<template>
  <div>
    <basicLayout 
      ref="basicLayout" 
      formPath="projectChange/andEnterprise" 
      tableName="andEnterpriseTable" 
      idName="sa_project_partiesid" 
      :apiId="{query:20221027143702,del:20221027143802}" 
      :options="options"
      @listCreate="list">
      <div slot="custom"></div>
      <template v-slot:tbList="scope">
        <div v-if="!scope.data.column.data[scope.data.column.columnname]">
          --
        </div>
        <div v-else-if="scope.data.column.columnname == 'province'">
          {{`${scope.data.column.data['province']}、${scope.data.column.data['city']}、${scope.data.column.data['county']}`}}
        </div>
        <div v-else>
          {{scope.data.column.data[[scope.data.column.columnname]]}}
        </div>
      </template>
      <template v-slot:tbOpreation="scope">
        <Contact class="inline-16" :rowData="scope.data.data"/>
        <delete-btn v-if="tool.checkAuth($route.name,'delete')" :id="scope.data.data.sa_project_partiesid" @deleteSuccess="$refs.basicLayout.listData()" nameId="20221027143802" nameKey="sa_project_partiesids"/>
      </template>
    </basicLayout>
  </div>
</template>

<script>
import Contact from './components/Contact'
export default {
  components:{Contact},
  name: "index",
  data() {
    return {
      options:[],
    }
  },
  methods: {
    list (param) {
      param.content.sa_projectid = this.$route.query.id
    },
  }
}
</script>

<style scoped>

</style>