<template>
  <div>
    <p>{{value}}</p>
    <p v-width="300">
      <Category :option="param" type="key" v-model="value"></Category>
    </p>
  </div>
</template>
<script>

export default {
  data(){
    let list = [{"id":101911,"name":"游族网络股份有限公司","externalName":"","type":1,"logoUrl":null,"siteUrl":"","financingStatus":0,"empScale":0,"natureCode":0,"locationId":0,"locationDetail":"上海徐汇区宜山路711号华鑫商务中心2号楼游族大厦","description":"","managerId":1088,"createdAt":"2017-07-13T15:32:59+08:00","updatedAt":"2017-07-26T13:38:05+08:00","createdBy":204635,"updatedBy":1088,"industryCodes":[],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bil5cipbpuaef1ickgm3u827.png","chineseName":"侯亮平","companyId":1,"createdAt":"2017-05-02T18:06:22+08:00","createdBy":1088,"email":"zhangheng@haolie.cn","englishName":"1","positions":[],"gender":1,"id":1088,"industryCodes":[],"locationIds":[],"mobile":"18601048506","teamId":203439,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":1088,"workingEmail":"zhaiyz@inmindglobal.com","workingPhone":"18601048501","roles":[],"imid":"149371958359216","displayName":"侯亮平","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":1,"menuIdList":[],"phoneType":"HIGGS","phoneSeatNo":"97011","phoneSeatGroup":"1","phoneExt":"12342","phonePwd":"1234","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":1,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":0,"locationDetails":["上海徐汇区宜山路711号华鑫商务中心2号楼游族大厦"],"aliases":[],"emailSuffix":"","customerType":1,"ceoId":0,"phone":"","qccUnique":""},{"id":101894,"name":"网易（杭州）网络有限公司","externalName":"","type":1,"logoUrl":null,"siteUrl":"","financingStatus":0,"empScale":0,"natureCode":0,"locationId":0,"locationDetail":"","description":"","managerId":1088,"createdAt":"2017-07-13T15:32:59+08:00","updatedAt":"2017-07-31T15:47:31+08:00","createdBy":204635,"updatedBy":1088,"industryCodes":[],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bil5cipbpuaef1ickgm3u827.png","chineseName":"侯亮平","companyId":1,"createdAt":"2017-05-02T18:06:22+08:00","createdBy":1088,"email":"zhangheng@haolie.cn","englishName":"1","positions":[],"gender":1,"id":1088,"industryCodes":[],"locationIds":[],"mobile":"18601048506","teamId":203439,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":1088,"workingEmail":"zhaiyz@inmindglobal.com","workingPhone":"18601048501","roles":[],"imid":"149371958359216","displayName":"侯亮平","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":1,"menuIdList":[],"phoneType":"HIGGS","phoneSeatNo":"97011","phoneSeatGroup":"1","phoneExt":"12342","phonePwd":"1234","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":4,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":0,"locationDetails":[],"aliases":[],"emailSuffix":"","customerType":1,"ceoId":0,"phone":"","qccUnique":""},{"id":101731,"name":"杭州实业","externalName":"某著名公司","type":1,"logoUrl":"https://i.jihui.io/o_1blrsejrcmms1hru142qoj41nn57.jpg","siteUrl":"www.baidu.com","financingStatus":0,"empScale":0,"natureCode":3,"locationId":330100,"locationDetail":"详细地址","description":"","managerId":204642,"createdAt":"2017-07-12T15:05:22+08:00","updatedAt":"2017-08-11T15:26:36+08:00","createdBy":204670,"updatedBy":204670,"industryCodes":[74],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1blcl56658mi3mi1v9dqdq16gjh.png","chineseName":"天麻 CW","companyId":1,"createdAt":"2017-07-10T16:57:04+08:00","createdBy":204642,"email":"47536161@qq.com","englishName":"hello world","positions":[],"gender":1,"id":204642,"industryCodes":[],"locationIds":[],"mobile":"13858016628","teamId":1,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":204642,"workingEmail":"","roles":[],"imid":"149967702590116","displayName":"天麻 CW","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":1,"menuIdList":[],"phoneType":"","annualSalary":[],"isFreeze":0},"orderProgress":0,"projectProgress":4,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":30,"locationDetails":["详细地址"],"aliases":["杭州实业"],"emailSuffix":"","customerType":0,"ceoId":0,"phone":"","qccUnique":""},{"id":101708,"name":"STEELE猫咪有限公司","externalName":"","type":1,"logoUrl":null,"siteUrl":"www.google.com","financingStatus":0,"empScale":0,"natureCode":2,"locationId":310000,"locationDetail":"","description":"","managerId":190563,"createdAt":"2017-07-07T11:45:12+08:00","updatedAt":"2017-07-31T15:47:31+08:00","createdBy":204628,"updatedBy":204637,"industryCodes":[140],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bgq7p42q5oq1k7l163asngsvo7.png","chineseName":"明宇","companyId":1,"createdAt":"2017-05-19T10:52:51+08:00","createdBy":1088,"email":"75320275@qq.com","englishName":"Ming","positions":[],"gender":1,"id":190563,"industryCodes":[],"locationIds":[],"mobile":"13162256266","resetPasswordAt":"2017-07-06T14:28:04+08:00","teamId":1,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":1088,"workingEmail":"","workingPhone":"","roles":[],"imid":"149516237291810","displayName":"明宇","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":1,"menuIdList":[],"phoneType":"","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":2,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":20,"locationDetails":[],"aliases":["别名"],"emailSuffix":"maomi.com","customerType":0,"ceoId":0,"phone":"","qccUnique":""},{"id":70642,"name":"大众点评","externalName":"","type":1,"logoUrl":null,"siteUrl":"www.dianping.com","financingStatus":7,"empScale":6,"natureCode":2,"locationId":310000,"locationDetail":"逸园","description":"中国最大的O2O公司","managerId":21194,"createdAt":"2017-05-18T10:29:45+08:00","updatedAt":"2017-07-31T15:47:31+08:00","createdBy":1088,"updatedBy":1088,"industryCodes":[18],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bgphlcm1m2bcunk8e1j89kpeh.jpg","chineseName":"婷婷专用，他人勿用","companyId":1,"createdAt":"2017-05-10T15:10:42+08:00","createdBy":21194,"email":"15612345678@qq.com","englishName":"xiaoguai","positions":[],"gender":2,"id":21194,"industryCodes":[],"locationIds":[],"mobile":"15612345678","teamId":1,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":21194,"workingEmail":"huangxt@inmindglobal.com","workingPhone":"15612345678","roles":[],"imid":"149440024353096","displayName":"婷婷专用，他人勿用","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":1,"menuIdList":[],"phoneType":"HIGGS","phoneSeatNo":"97001","phoneSeatGroup":"1","phoneExt":"021-80211508-7001","phonePwd":"1234","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":0,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":0,"locationDetails":["逸园"],"aliases":[],"emailSuffix":"","customerType":0,"ceoId":0,"phone":"","qccUnique":""},{"id":20262,"name":"产品测试验收公司（切勿修改）","externalName":"","type":1,"logoUrl":"https://i.jihui.io/o_1bftj0ad914lp1n12p2b12k21ap6h.jpeg","siteUrl":"www.baidu.com","financingStatus":2,"empScale":4,"natureCode":2,"locationId":310000,"locationDetail":"杨高南路799号1501你ET 厄齐尔","description":"这是一家非常牛逼的公司，牛逼到不存在的。","managerId":1088,"createdAt":"2017-05-12T13:49:55+08:00","updatedAt":"2017-07-31T15:47:31+08:00","createdBy":1100,"updatedBy":1088,"industryCodes":[1,18],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bil5cipbpuaef1ickgm3u827.png","chineseName":"侯亮平","companyId":1,"createdAt":"2017-05-02T18:06:22+08:00","createdBy":1088,"email":"zhangheng@haolie.cn","englishName":"1","positions":[],"gender":1,"id":1088,"industryCodes":[],"locationIds":[],"mobile":"18601048506","teamId":203439,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":1088,"workingEmail":"zhaiyz@inmindglobal.com","workingPhone":"18601048501","roles":[],"imid":"149371958359216","displayName":"侯亮平","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":1,"menuIdList":[],"phoneType":"HIGGS","phoneSeatNo":"97011","phoneSeatGroup":"1","phoneExt":"12342","phonePwd":"1234","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":26,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":0,"locationDetails":["杨高南路799号1501你ET 厄齐尔"],"aliases":[],"emailSuffix":"","customerType":0,"ceoId":0,"phone":"","qccUnique":""},{"id":50,"name":"上海希格斯网络科技有限公司上海希格斯网络科技有限公司","externalName":"","type":1,"logoUrl":"https://i.jihui.io/o_1bft86qpd33fvfvnhr1a0m19i97.jpeg","siteUrl":"","financingStatus":0,"empScale":2,"natureCode":2,"locationId":110000,"locationDetail":"","description":"","managerId":1052,"createdAt":"2017-05-02T18:09:19+08:00","updatedAt":"2017-07-31T15:47:31+08:00","createdBy":1033,"updatedBy":21194,"industryCodes":[88],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bgq7p42q5oq1k7l163asngsvo7.png","chineseName":"员工_001","companyId":1,"createdAt":"2017-04-20T17:38:42+08:00","createdBy":1033,"email":"17711112222@inmind.com","positions":[],"gender":1,"id":1052,"industryCodes":[],"locationIds":[],"mobile":"17711112222","teamId":203141,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":1033,"workingEmail":"17711112222@inmind.com","workingPhone":"17711112222","roles":[],"imid":"17711112222","displayName":"员工_001","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":0,"menuIdList":[],"phoneType":"","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":1,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":0,"locationDetails":[],"aliases":[],"emailSuffix":"","customerType":0,"ceoId":0,"phone":"","qccUnique":""},{"id":9,"name":"阿里巴巴14","externalName":"阿里巴巴14-对外显示名","type":1,"logoUrl":null,"siteUrl":"www.alibaba.com","financingStatus":8,"empScale":7,"natureCode":2,"locationId":330100,"locationDetail":"西湖路200号","description":"成立于2001年的阿里巴巴是最大的电子商务公司\n1.  主要经营\n2.  上市时间","managerId":21196,"createdAt":"2017-04-17T20:23:55+08:00","updatedAt":"2017-07-31T15:47:31+08:00","createdBy":1036,"updatedBy":41845,"industryCodes":[21],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bgq7p42q5oq1k7l163asngsvo7.png","chineseName":"haha21","companyId":1,"createdAt":"2017-05-10T17:18:59+08:00","createdBy":2,"email":"haha2@qq.com","englishName":"haha2","positions":[],"gender":1,"id":21196,"industryCodes":[],"locationIds":[],"mobile":"13344445555","teamId":1,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":2,"workingEmail":"","roles":[],"imid":"149440794100506","displayName":"haha21","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":0,"menuIdList":[],"phoneType":"","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":1,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":0,"locationDetails":["西湖路200号"],"aliases":[],"emailSuffix":"","customerType":0,"ceoId":0,"phone":"","qccUnique":""},{"id":7,"name":"阿里巴巴12","externalName":"阿里巴巴12-对外显示名","type":1,"logoUrl":null,"siteUrl":"www.alibaba.com","financingStatus":8,"empScale":7,"natureCode":2,"locationId":330100,"locationDetail":"西湖路200号","description":"成立于2001年的阿里巴巴是最大的电子商务公司\n1.  主要经营\n2.  上市时间","managerId":1088,"createdAt":"2017-04-17T20:21:13+08:00","updatedAt":"2017-07-31T15:47:31+08:00","createdBy":1036,"updatedBy":1088,"industryCodes":[21],"signStatus":2,"majorClientManager":{"avatar":"https://i.jihui.io/o_1bil5cipbpuaef1ickgm3u827.png","chineseName":"侯亮平","companyId":1,"createdAt":"2017-05-02T18:06:22+08:00","createdBy":1088,"email":"zhangheng@haolie.cn","englishName":"1","positions":[],"gender":1,"id":1088,"industryCodes":[],"locationIds":[],"mobile":"18601048506","teamId":203439,"updatedAt":"2017-08-03T13:31:32+08:00","updatedBy":1088,"workingEmail":"zhaiyz@inmindglobal.com","workingPhone":"18601048501","roles":[],"imid":"149371958359216","displayName":"侯亮平","score":0,"orderProgress":0,"projectProgress":0,"passwordReset":1,"menuIdList":[],"phoneType":"HIGGS","phoneSeatNo":"97011","phoneSeatGroup":"1","phoneExt":"12342","phonePwd":"1234","annualSalary":[100000,300000],"isFreeze":0},"orderProgress":0,"projectProgress":9,"hunterOrderProgress":0,"hunterProjectProgress":0,"bdPriority":0,"locationDetails":["西湖路200号"],"aliases":[],"emailSuffix":"","customerType":0,"ceoId":0,"phone":"","qccUnique":""}];
    return {
      value: null,
      param: {
        title: '测试',
        keyName: 'id',
        parentName: 'parent',
        titleName: 'name',
        dataMode: 'tree',
        datas: list
      }
    }
  }
}
</script>
