<template>
    <el-container style="height: 100%;width: 100%">
        <el-form :model="tableViewSet" label-width="100px" style="width: 100%" size="small">
            <el-form-item label="页面地址">
                <el-input v-model="tableViewSet.pageUrl" placeholder="外部链接请加上https://或http://">
                </el-input>
            </el-form-item>
        </el-form>
    </el-container>
</template>

<script>
    export default {
        name: "new-page-config",
        props:{
            eventSetData:{required:true}
        },
        data(){
            return {
                tableViewSet:{},
                paramTypeArr:[{
                    label:"行数据",
                    value:"row"
                },{
                    label:"用户信息",
                    value:"user"
                },{
                    label:"自定义",
                    value:"diy"
                }],
                userInfoArr:[
                    {
                        "value":"id",
                        "label":"用户id",
                    },{
                        "value":"userName",
                        "label":"用户名称",
                    },{
                        "value":"orgId",
                        "label":"用户单位Id",
                    },{
                        "value":"orgName",
                        "label":"用户单位",
                    },{
                        "value":"xzqh",
                        "label":"用户行政区划",
                    },{
                        "value":"posId",
                        "label":"用户岗位id",
                    },{
                        "value":"posName",
                        "label":"用户岗位",
                    }
                ], //用户信息
            }
        },
        created() {
            this.initData();
        },
        methods:{
            /**
             * 初始化数据
             */
            initData(){
                this.tableViewSet = JSON.parse(JSON.stringify(this.eventSetData || {}));
            },
            
            /**
             * 返回事件配置数据
             * @returns {{}}
             */
            getEventDatas(){
                return this.tableViewSet;
            },
        }
    }
</script>

<style scoped>

</style>