界面优化
This commit is contained in:
parent
46ec5d5f75
commit
415ed586cc
|
@ -33,8 +33,8 @@
|
|||
<el-row justify="center">
|
||||
<el-table :data="completeTable" style="width: 100%">
|
||||
<el-table-column prop="name" :label="radio == 1 ? '年级' : '班级'" />
|
||||
<el-table-column prop="join" label="参与人员" />
|
||||
<el-table-column prop="finish" label="完成人数" />
|
||||
<el-table-column prop="join" label="测评总数" />
|
||||
<el-table-column prop="finish" label="完成测评数" />
|
||||
<el-table-column prop="finishRate" label="完成率" />
|
||||
</el-table>
|
||||
</el-row>
|
||||
|
@ -246,7 +246,6 @@ async function getwarnData() {
|
|||
|
||||
// 预警因子
|
||||
const factorDataList = ref([])
|
||||
const factorNameList = ref([])
|
||||
async function getFactoryData() {
|
||||
const query = { batchNo, scaleId: scaleId.value }
|
||||
let res = {}
|
||||
|
@ -262,8 +261,6 @@ async function getFactoryData() {
|
|||
const factoryList = res.data
|
||||
|
||||
factoryList.forEach(item => {
|
||||
factorNameList.value.push(item.factorName)
|
||||
|
||||
const pieData = []
|
||||
item.numList.forEach(numItem => {
|
||||
pieData.push({
|
||||
|
@ -291,8 +288,24 @@ onMounted(() => {
|
|||
getScalePublishList()
|
||||
})
|
||||
|
||||
function initPieOption(name = '', data) {
|
||||
function initPieOption(name = '', data = []) {
|
||||
return {
|
||||
title: {
|
||||
text: name,
|
||||
subtext: '',
|
||||
x: 'center',
|
||||
y: '10',
|
||||
textStyle: {
|
||||
color: '#95989D',
|
||||
fontSize: 20,
|
||||
lineHeight: 10,
|
||||
},
|
||||
subtextStyle: {
|
||||
color: '#95989D',
|
||||
fontSize: 16,
|
||||
lineHeight: 10,
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'item'
|
||||
},
|
||||
|
@ -308,7 +321,7 @@ function initPieOption(name = '', data) {
|
|||
data: data,
|
||||
label: {
|
||||
normal: {
|
||||
formatter: ['{c|{c}人}', '{b|{b}}'].join('\n'),
|
||||
formatter: ['{c|{c}}', '{b|{b}}'].join('\n'),
|
||||
rich: {
|
||||
c: {
|
||||
lineHeight: 5
|
||||
|
|
|
@ -330,7 +330,7 @@ function handleExport(row: any) {
|
|||
recordId: row.recordId,
|
||||
userId: current.value.userId,
|
||||
nickName: current.value.nickName
|
||||
}, `${current.value.nickName}.docx`)
|
||||
}, `${current.value.nickName}.pdf`)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
|
|
@ -332,7 +332,7 @@ function handleExport(row: any) {
|
|||
recordId: row.recordId,
|
||||
userId: current.value.userId,
|
||||
nickName: current.value.nickName
|
||||
}, `${current.value.nickName}.docx`)
|
||||
}, `${current.value.nickName}.pdf`)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
|
|
@ -895,7 +895,7 @@ const rightPie2Option = ref({
|
|||
roseType: 'radius',
|
||||
label: {
|
||||
normal: {
|
||||
formatter: ['{c|{c}人}', '{b|{b}}'].join('\n'),
|
||||
formatter: ['{c|{c}}', '{b|{b}}'].join('\n'),
|
||||
rich: {
|
||||
c: {
|
||||
color: 'rgb(241,246,104)',
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column label="截止日期" align="center" prop="expireTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.expireTime, '{y}-{m}-{d}') }}</span>
|
||||
|
@ -65,7 +65,7 @@
|
|||
|
||||
<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']">
|
||||
v-hasPermi="['scale:publish:export']">
|
||||
<span>团体报告导出</span>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
|
@ -201,7 +201,7 @@ const handlePublishExport = (row: any) => {
|
|||
|
||||
proxy?.download('scale/publish/export', {
|
||||
batchNo, sessionName
|
||||
}, `团队报告-${sessionName}.docx`)
|
||||
}, `团队报告-${sessionName}.pdf`)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ const leftPieOption = ref({
|
|||
roseType: 'radius',
|
||||
label: {
|
||||
normal: {
|
||||
formatter: ['{c|{c}人}', '{b|{b}}'].join('\n'),
|
||||
formatter: ['{c|{c}}', '{b|{b}}'].join('\n'),
|
||||
rich: {
|
||||
c: {
|
||||
color: '#95989D',
|
||||
|
|
Loading…
Reference in New Issue