<template>
  <Drawer
    :mask-closable="false"
    @on-visible-change="visibleChange"
    title="机构设置"
    v-model="my_show"
    width="900"
  >
    <div class="page-edit-wrap uinn-lr20">
      <Row class="umar-b20" v-if="isUpdate">
        <Button @click="add" icon="md-add" class="f-r" type="primary">添加</Button>
      </Row>

      <Table :columns="columns" :data="dataAgent"></Table>
    </div>

    <div class="ta-c">
      <Button @click="clear" class="w-80 umar-r5" ghost type="primary">取消</Button>
      <Button v-if="isUpdate" :loading="loading" @click="ok" class="w-80" type="primary">确认</Button>
    </div>
  </Drawer>
</template>

<script src="./js/agent.js"></script>
