<template>
  <ListViewWithHead
    :table-config="tableConfig"
    :head-config="headFormConfigs"
    :dialog-configs="dialogConfigs"
    :car-payload-dialog-configs="carPayloadDialogConfigs"
    :car-payload-add-configs="carPayloadAddConfigs"
    :listQueryExtra="[{ pos: [2] }]"
    :trigger-update="triggerUpdateKey"
    key="kilnWatingRoom"
  />
  <!-- attach-list-query-data="code" -->
</template>

<script>
import initConfig from "./config";
import ListViewWithHead from "./components/ListViewWithHead.vue";

export default {
  name: "kilnWaitingRoomView",
  components: { ListViewWithHead },
  provide() {
    return {
      urls: this.allUrls,
    };
  },
  data() {
    const { tableConfig, headFormConfigs,carPayloadAddConfigs, carPayloadDialogConfigs, urls, dialogConfigs } = initConfig.call(this);
    return {
      carPayloadAddConfigs,
      carPayloadDialogConfigs,
      tableConfig,
      headFormConfigs,
      allUrls: urls,
      dialogConfigs,
      triggerUpdateKey: "",
    };
  },
  activated() {
    this.triggerUpdateKey = Math.random().toString();
  },
};
</script>

<style scoped></style>
