优化界面增加团体报告导出
This commit is contained in:
parent
d7ad4f6d90
commit
a60332c90b
|
@ -31,7 +31,7 @@
|
|||
<el-table-column label="场次名称" align="center" prop="sessionName" />
|
||||
<el-table-column label="量表名称 以逗号隔开" align="center" prop="scaleNames" />
|
||||
|
||||
<el-table-column label="部门名称" align="center" prop="deptNames" />
|
||||
<el-table-column label="班级名称/用户名称" align="center" prop="deptNames" />
|
||||
<el-table-column label="截止日期" align="center" prop="expireTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.expireTime, '{y}-{m}-{d}') }}</span>
|
||||
|
@ -44,7 +44,7 @@
|
|||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="260">
|
||||
<template #default="scope">
|
||||
<el-tooltip content="查看测评结果" placement="top">
|
||||
<el-button link type="primary" icon="View" @click="handleUpdate(scope.row)"
|
||||
|
@ -55,6 +55,13 @@
|
|||
</router-link>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
|
||||
<el-tooltip v-if="scope.row.publishType === 1" content="团体报告导出" placement="top">
|
||||
<el-button link type="primary" icon="Download" @click="handlePublishExport(scope.row)"
|
||||
v-hasPermi="['sscale:publish:export']">
|
||||
<span>团体报告导出</span>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -182,6 +189,15 @@ const handleUpdate = async (row?: any) => {
|
|||
dialog.title = "修改量发布";
|
||||
}
|
||||
|
||||
const handlePublishExport = (row: any) => {
|
||||
const { batchNo, sessionName } = row;
|
||||
|
||||
proxy?.download('scale/publish/export', {
|
||||
batchNo, sessionName
|
||||
}, `团队报告-${sessionName}.docx`)
|
||||
}
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
});
|
||||
|
|
|
@ -182,7 +182,7 @@
|
|||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="选择题目" v-model="questionVisible" width="600px" append-to-body>
|
||||
<el-dialog title="选择题目" v-model="questionVisible" width="750px" append-to-body>
|
||||
<el-checkbox-group v-model="form.questionIds">
|
||||
<el-checkbox v-for="item in scaleQuestionList" :key="item.questionId" :label="item.questionOrder"
|
||||
:value="item.questionId" />
|
||||
|
|
|
@ -309,7 +309,7 @@ const getTreeSelect = async () => {
|
|||
|
||||
const scaleOptions = ref<any[]>([]);
|
||||
const getScaleOptions = async () => {
|
||||
const res = await findAll({status: 1});
|
||||
const res = await findAll({ status: 1});
|
||||
scaleOptions.value = res.data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue