1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  | <template> 
 |    <zt-dialog ref="dialog" title="接口选择" appendToBody @confirm="formSubmit"> 
 |      <zt-tree-selector url="/sys/interface/tree" v-model="selectInterfaceIdList"></zt-tree-selector> 
 |    </zt-dialog> 
 |  </template> 
 |    
 |  <script> 
 |    export default { 
 |      props: { 
 |        value: { 
 |          type: Array, 
 |          default() { 
 |            return [] 
 |          } 
 |        } 
 |      }, 
 |      data() { 
 |        return { 
 |          selectInterfaceIdList: [] 
 |        } 
 |      }, 
 |      methods: { 
 |        init() { 
 |          this.selectInterfaceIdList = this.value 
 |        }, 
 |        formSubmit() { 
 |          this.$emit('input', this.selectInterfaceIdList) 
 |          this.$refs.dialog.close() 
 |        } 
 |      } 
 |    } 
 |  </script> 
 |  
  |