123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <div>
- <div class="iotmenu-content-header">
- <a-icon type="file-text" />
- <span>联锁总表</span>
- </div>
- <div class="iotmenu-content">
- <u-equipment-tree-drag treeTitle="装置系统" @select="selectEquipment">
- <interlock-summary-list ref="summaryList"></interlock-summary-list>
- </u-equipment-tree-drag>
- </div>
- </div>
- </template>
- <script>
- import InterlockSummaryList from './InterlockSummaryList.vue';
- import store from '@/store'
- export default({
- components: {
- InterlockSummaryList,
- },
- data () {
- return {
- }
- },
- beforeRouteEnter(to, from, next) {
- console.log(to, from, next)
- if(from.path !== '/interLock/summary/set' && from.path !== '/interLock/detail' && from.path !== '/'){
- store.commit('SET_CLICKSYSTEMNODE', {});
- store.commit('SET_TREESELECTKEYS', []);
- store.commit('SET_TREEEXPANDEKEYS', []);
- }
- next()
- },
- created() {
- },
- mounted() {
- },
- methods: {
- selectEquipment(){
- this.$refs.summaryList.loadData();
- },
- },
- })
- </script>
|