<template>
  <div>
    <QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
    <div class="draft">
      <el-button-group>
        <el-button type="primary" @click="turnback">{{ $t('global.back') }}</el-button>
      </el-button-group>
    </div>
  </div>
</template>

<script>
import { getPublishMapDetailList } from '@/api/jmap/map';

export default {
    name: 'PublishMap',
    data() {
        return {
            cityList: [],
            pagerConfig: {
                pageSize: 'pageSize',
                pageIndex: 'pageNum'
            },
            queryForm: {
                labelWidth: '80px',
                reset: false,
                show: false,
                queryObject: {}

            },
            queryList: {
                query: this.queryFunction,
                selectCheckShow: false,
                indexShow: true,
                columns: [
                    {
                        title: this.$t('publish.publisherId'),
                        prop: 'userId'
                        // width:'300px'
                    },
                    {
                        title: this.$t('publish.publishTime'),
                        prop: 'publishTime'
                        // width:'200px'
                    },
                    {
                        title: this.$t('publish.publishVersion'),
                        prop: 'version'
                        // width:'200px'
                    },
                    {
                        title: this.$t('publish.publishDescription'),
                        prop: 'note'
                    }
                ]
            },
            currentModel: {}
        };
    },
    computed: {
        isShow() {
            return this.$store.getters['roles'].indexOf('05');
        }
    },
    created() {
        this.loadInitData();
    },
    methods: {
        loadInitData() {

        },
        queryFunction(params) {
            return getPublishMapDetailList(params, this.$route.query.mapId);
        },
        turnback() {
            this.$router.go(-1);
        }
    }
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
    .draft {
        width: 400px;
        text-align: center;
        margin: 20px auto;
    }
</style>
