| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <div>
- <InfoWindow :info-window-no="infoWindowNo" :multiple="true" :is-search-widget="true" :is-new-similar-assets="true" @get-select-model-data="getSelectModelData" />
- </div>
- </template>
- <script>
- import InfoWindow from '@/info/index.js';
- export default {
- components: {
- InfoWindow,
- },
- props: {
-
- },
- data: function () {
- return {
- 'infoWindowNo': null,
- };
- },
- watch: {
- '$route': function (to, from) {
- this.getInfoWindowNo();
- },
- },
- mounted: function () {
- this.getInfoWindowNo();
- },
- methods: {
- /**
- * 获取查询窗口的编号
- */
- getInfoWindowNo: function () {
- if (this.$route.params != undefined) {
- var routeInfoWindowNo = this.$route.params.infoWindowNo;
- if(this.infoWindowNo != routeInfoWindowNo){
- this.infoWindowNo = routeInfoWindowNo;
- console.log('open info window: ' + routeInfoWindowNo);
- }
- }
- },
- getSelectModelData: function (selected) {
- console.log(selected,'同类资产数据---');
- },
- },
- };
- </script>
|