Administrator
2021-08-13 afbf287f31db7e14f7fc890f2674f281fdbef3bd
src/views/trainApply/index.vue
@@ -31,6 +31,7 @@
                        <!-- 自定义按钮 -->
                        <template slot="menuLeft">
                            <el-button
                                style="display:none"
                                type="warning"
                                size="small"
                                plain
@@ -39,12 +40,21 @@
                                >导出
                            </el-button>
                            <el-button
                                 style="display:none"
                                type="success"
                                size="small"
                                plain
                                icon="el-icon-upload2"
                                @click="handleImport"
                                >导入
                            </el-button>
                            <el-button
                                type="warning"
                                size="small"
                                plain
                                icon="el-icon-download"
                                @click="handleExport"
                                >清册打印
                            </el-button>
                        </template>
@@ -142,7 +152,7 @@
                        prop: "userId",
                        type: 'tree',
                        dicUrl: '',
                        search: true,
                        hide:true,
                        slot: true,
                        // 表单新增时是否禁止
@@ -174,6 +184,7 @@
                        addDisabled: false,
                        // 表单新增时是否可见
                        addDisplay: false,
                        search: true,
                        // 表单新增时是否为查看模式
                        addDetail: false,
                        // 表单编辑时是否禁止
@@ -385,26 +396,27 @@
                        // 表单编辑时是否为查看模式
                        editDetail: false,
                        width: 160
                    },{
                        label: "报名状态",
                        prop: "cancel",
                        slot: true,
                        // 表单新增时是否禁止
                        addDisabled: false,
                        // 表单新增时是否可见
                        addDisplay: false,
                        // 表单新增时是否为查看模式
                        addDetail: false,
                        // 表单编辑时是否禁止
                        editDisabled: false,
                        // 表单编辑时是否可见
                        editDisplay: true,
                        // 表单编辑时是否为查看模式
                        editDetail: false,
                        dicData:DIC.cancel,
                        search:true,
                        type:"select"
                    },
                    // {
                    //     label: "报名状态",
                    //     prop: "cancel",
                    //     slot: true,
                    //     // 表单新增时是否禁止
                    //     addDisabled: false,
                    //     // 表单新增时是否可见
                    //     addDisplay: false,
                    //     // 表单新增时是否为查看模式
                    //     addDetail: false,
                    //     // 表单编辑时是否禁止
                    //     editDisabled: false,
                    //     // 表单编辑时是否可见
                    //     editDisplay: true,
                    //     // 表单编辑时是否为查看模式
                    //     editDetail: false,
                    //     dicData:DIC.cancel,
                    //     search:true,
                    //     type:"select"
                    // },
                ]
            },
            questionBankSearch: {},
@@ -620,17 +632,27 @@
                    this.$refs.questionBankCrud.toggleSelection();
                });
        },
        //导出数据
        //清册生成
        handleExport() {
            this.$confirm("是否导出清册数据?", "提示", {
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                type: "warning",
            }).then(() => {
                window.open(`/api/trainingRegistration/export-apply?examId=${this.$route.query.id}`);
            var obj ={};
            obj["name"] = "报名清册信息";
            obj["examId"] = this.$route.query.id;
            this.$router.push({
                path: `/applydetailed/papers`,
                query: obj,
            });
        },
        //导出数据
        // handleExport() {
        //     this.$confirm("是否导出清册数据?", "提示", {
        //         confirmButtonText: "确定",
        //         cancelButtonText: "取消",
        //         type: "warning",
        //     }).then(() => {
        //         window.open(`/api/trainingRegistration/export-apply?examId=${this.$route.query.id}`);
        //     });
        // },
        handleImport() {
            this.excelBox = true;
        },