<template>
    <div class="page">
        <LayoutTable :data="tableData" :config="tableConfig">
                    </LayoutTable>


        <drawer-show ref="drawerform" @ok="getData" />
    </div>
</template>

<script>
    /** 表单弹出框模式需引入 */
    import drawerShow from "./drawershow";
    import table from "@/assets/mixins/table";
    export default {
        name: "PjEvaluateList",
        components: {
            drawerShow
},
        mixins: [table],
        created() {
        },
        methods: {
            /** 重写新增方法 */
            toAdd(row) {
                this.$refs.drawerform.add(row);
            },
            /** 重写编辑方法 */
            toEdit(row) {
                this.$refs.drawerform.edit(row);
            },
            /** 重写查看方法 */
            toView(row) {
                this.$refs.drawerform.view(row);
            },

        },
        data() {
            return {
                config: {
                    search: [
                    ],
                    columns: [
                        {type: "selection", width: 60},
                        {type: "index",label: "序号",width: 50},

                        {label: "评价人身份证号", prop: "peopleIdcard"},

                        {label: "评价人姓名", prop: "peopleName"},

                        {label: "评价人性别", prop: "peopleSex"},

                        {label: "评价人手机号", prop: "peoplePhone"},

                        {label: "评价选项", prop: "pjOption"},

                        {label: "评价标签", prop: "contentTag"},

                        {label: "评价人图片地址", prop: "picUrl"},

                        {label: "部门", prop: "sectionName"},

                        {label: "大厅", prop: "hallName"},

                        {label: "评价来源 ", prop: "pjSource"},

                        {label: "手输意见", prop: "opinion"},

                        {label: "窗口名", prop: "windowName"},

                        {label: "窗口编号", prop: "windowFromnum"},

                        {label: "排号编号", prop: "flounum"},

                        {label: "窗口评价", prop: "pjxt"},

                        {label: "工作人员姓名", prop: "workmanName"},

                        {label: "工作人员工号", prop: "workmanNumber"},

                        {label: "评价器mac", prop: "devicenum"},

                        {label: "评价状态", prop: "evaluatestatus"},

                        {label: "截图还是评价 ", prop: "evaluatetype"},

                        {label: "截图地址", prop: "photobefor"},

                        {label: "签字图片", prop: "photoautograph"},

                        {label: "抓拍评价人照片", prop: "picture"},

                        {label: "音频视频地址", prop: "process"},

                        {label: "评价标记 ", prop: "eyevaluate"},

                        {label: "评价指向 ", prop: "pjType"},

                        {label: "评价时间", prop: "pjTime", formatter: this.formatterDate},


                        {label: "站点编码", prop: "siteCode"},

                        {label: "站点名称", prop: "siteName"},

                        {label: "扩展编号", prop: "extNum"},

                        {label: "创建时间", prop: "createTime", formatter: this.formatterDate},


                        {
                            label: "操作",
                            width: 240,
                            formatter: row => {
                                return (
                                    <table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
                            );
                            }
                        }
                    ]
                }
            };
        }
    };
</script>
