界面功能优化

This commit is contained in:
jiangzhe 2024-05-23 09:58:30 +08:00
parent 415ed586cc
commit b756033336
6 changed files with 9 additions and 29 deletions

View File

@ -88,7 +88,7 @@ export interface SysScaleQuestionQuery extends PageQuery {
/** /**
* id * id
*/ */
scaleId?: string | number; scaleId?: string | any;
/** /**
* *

View File

@ -72,7 +72,7 @@
<el-table-column prop="deptName" label="班级" /> <el-table-column prop="deptName" label="班级" />
<el-table-column prop="status" label="状态"> <el-table-column prop="status" label="状态">
<template #default="scope"> <template #default="scope">
<el-tag :type="scope.row.status == 1 ? 'success' : 'danger'">{{ scope.row.status == 0 ? '未测' : <el-tag :type="scope.row.status == 0 ? 'danger' : 'success'">{{ scope.row.status == 0 ? '未测' :
'已测' }}</el-tag> '已测' }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -65,7 +65,7 @@
</div> </div>
<div class="item-center-2 boxall"> <div class="item-center-2 boxall">
<div class="alltitle">近12月测评数统计</div> <div class="alltitle">测评数统计</div>
<div class="boxnav"> <div class="boxnav">
<v-chart :option="centerLine2Option" autoresize /> <v-chart :option="centerLine2Option" autoresize />
</div> </div>
@ -600,12 +600,10 @@ const centerLine2Option = ref({
// itemHeight: 10, // itemHeight: 10,
// // itemGap: 35 // // itemGap: 35
// }, // },
xAxis: [{ xAxis: [{
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
axisLabel: { axisLabel: {
rotate: -90,
textStyle: { textStyle: {
color: 'rgba(255,255,255,.7)', color: 'rgba(255,255,255,.7)',
fontSize: '0.2rem', fontSize: '0.2rem',

View File

@ -180,12 +180,11 @@ const leftPieOption = ref({
x: 'center', x: 'center',
y: '40%', y: '40%',
textStyle: { textStyle: {
color: '#95989D',
fontSize: 20, fontSize: 20,
fontWeight: 'normal',
lineHeight: 10, lineHeight: 10,
}, },
subtextStyle: { subtextStyle: {
color: '#95989D',
fontSize: 16, fontSize: 16,
lineHeight: 10, lineHeight: 10,
}, },
@ -216,13 +215,10 @@ const leftPieOption = ref({
formatter: ['{c|{c}}', '{b|{b}}'].join('\n'), formatter: ['{c|{c}}', '{b|{b}}'].join('\n'),
rich: { rich: {
c: { c: {
color: '#95989D',
fontSize: 20, fontSize: 20,
fontWeight: 'bold',
lineHeight: 5 lineHeight: 5
}, },
b: { b: {
color: '#95989D',
fontSize: 14, fontSize: 14,
height: 44 height: 44
}, },
@ -263,8 +259,8 @@ const centerBarOption = ref({
x: 'right', x: 'right',
y: '1%', y: '1%',
textStyle: { textStyle: {
color: '#95989D',
fontSize: 20, fontSize: 20,
fontWeight: 'normal',
lineHeight: 10, lineHeight: 10,
} }
}, },
@ -278,9 +274,6 @@ const centerBarOption = ref({
data: ['发布数', '测评数'], data: ['发布数', '测评数'],
right: 'center', right: 'center',
top: 0, top: 0,
textStyle: {
color: "#95989D"
},
itemWidth: 12, itemWidth: 12,
itemHeight: 10, itemHeight: 10,
// itemGap: 35 // itemGap: 35
@ -295,20 +288,10 @@ const centerBarOption = ref({
xAxis: { xAxis: {
type: 'category', type: 'category',
data: [], data: [],
axisLine: {
lineStyle: {
color: '#95989D'
}
},
axisLabel: { axisLabel: {
//rotate:-90,
formatter: function (value: any) { return value.split("").join("\n"); }, formatter: function (value: any) { return value.split("").join("\n"); },
textStyle: { textStyle: {
color: '#95989D',
fontSize: 14, fontSize: 14,
},
lineStyle: {
color: '#95989D',
} }
} }
}, },
@ -359,8 +342,8 @@ const rightBarOption = ref({
x: 'right', x: 'right',
y: '1%', y: '1%',
textStyle: { textStyle: {
color: '#95989D',
fontSize: 20, fontSize: 20,
fontWeight: 'normal',
lineHeight: 10, lineHeight: 10,
} }
}, },
@ -386,9 +369,6 @@ const rightBarOption = ref({
data: [], data: [],
splitLine: { splitLine: {
show: false, show: false,
lineStyle: {
color: '#95989D'
}
}, },
}, },
series: [ series: [

View File

@ -338,6 +338,7 @@ const handleSelectionChange = (selection: SysScaleFactorVO[]) => {
/** 新增按钮操作 */ /** 新增按钮操作 */
const handleAdd = () => { const handleAdd = () => {
reset(); reset();
form.value.factorRangeList = []
dialog.visible = true; dialog.visible = true;
dialog.title = "添加测评因子"; dialog.title = "添加测评因子";
} }

View File

@ -279,6 +279,7 @@ const handleSelectionChange = (selection: SysScaleQuestionVO[]) => {
/** 新增按钮操作 */ /** 新增按钮操作 */
const handleAdd = () => { const handleAdd = () => {
reset(); reset();
form.value.scaleAnswerList = []
dialog.visible = true; dialog.visible = true;
dialog.title = "添加量问题内容"; dialog.title = "添加量问题内容";
} }