mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
46 lines
724 B
Vue
46 lines
724 B
Vue
|
|
<template>
|
||
|
|
<div class="policy">
|
||
|
|
<searchBox :btn-option-list="btnOptionList" @onSearch="onSearch" @operateForm="operateForm"/>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import searchBox from '@/components/SearchBox.vue'
|
||
|
|
export default {
|
||
|
|
name: '',
|
||
|
|
components:{searchBox
|
||
|
|
},
|
||
|
|
props: {
|
||
|
|
|
||
|
|
},
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
btnOptionList:[
|
||
|
|
{label:'新增',icon:'icon-tianjia',type:'add'},
|
||
|
|
{label:'删除',icon:'icon-tianjia',type:'del'}
|
||
|
|
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
mounted() {
|
||
|
|
|
||
|
|
},
|
||
|
|
methods:{
|
||
|
|
onSearch(data){
|
||
|
|
console.log(data)
|
||
|
|
},
|
||
|
|
operateForm(type){
|
||
|
|
console.log(type )
|
||
|
|
|
||
|
|
},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.policy{
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
padding: 0 15px;
|
||
|
|
}
|
||
|
|
</style>
|