修改页面
This commit is contained in:
parent
9749aa02f4
commit
33dee5e101
@ -5,7 +5,7 @@ VUE_APP_TITLE = 幼儿园体质检测管理系统
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 若依管理系统/开发环境
|
# 若依管理系统/开发环境
|
||||||
VUE_APP_BASE_API = 'http://192.168.16.81:8081'
|
VUE_APP_BASE_API = 'http://192.168.16.81:8080'
|
||||||
#'/dev-api'
|
#'/dev-api'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
|
|||||||
@ -81,11 +81,19 @@
|
|||||||
<el-card style="margin-top: 10px">
|
<el-card style="margin-top: 10px">
|
||||||
<div
|
<div
|
||||||
class="el-table--enable-row-hover el-table--medium"
|
class="el-table--enable-row-hover el-table--medium"
|
||||||
style="margin: 20px auto;height: 110px; text-align: center;border-bottom:1px solid #f0f0f0;line-height:40px"
|
style="
|
||||||
|
margin: 20px auto;
|
||||||
|
height: 110px;
|
||||||
|
text-align: center;
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
line-height: 40px;
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<div style="text-align: center; font-size: 18px; margin-bottom: 10px">
|
<div
|
||||||
幼儿综合得分
|
style="text-align: center; font-size: 18px; margin-bottom: 10px"
|
||||||
</div>
|
>
|
||||||
|
幼儿综合得分
|
||||||
|
</div>
|
||||||
<div style="display: inline-block">
|
<div style="display: inline-block">
|
||||||
<span
|
<span
|
||||||
style="
|
style="
|
||||||
@ -142,7 +150,7 @@
|
|||||||
src="@/icons/金牌2.png"
|
src="@/icons/金牌2.png"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<div style="margin-top: 10px;font-size:14px">{{ item }}</div>
|
<div style="margin-top: 10px; font-size: 14px">{{ item }}</div>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -199,14 +207,14 @@ export default {
|
|||||||
synthesizelist: {
|
synthesizelist: {
|
||||||
studentId: "",
|
studentId: "",
|
||||||
batchCode: "",
|
batchCode: "",
|
||||||
studentId: "27",
|
// studentId: "27",
|
||||||
batchCode: "PC202208230011",
|
// batchCode: "PC202208230011",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.synthesizeinfo();
|
// this.synthesizeinfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
itemlists(studentId, batchCode) {
|
itemlists(studentId, batchCode) {
|
||||||
@ -229,8 +237,33 @@ export default {
|
|||||||
console.log(this.sythesizestudent);
|
console.log(this.sythesizestudent);
|
||||||
let seriesData = [];
|
let seriesData = [];
|
||||||
let yindicator = [];
|
let yindicator = [];
|
||||||
|
console.log(res.data);
|
||||||
|
if (res.data.physiqueCategoryList.length == 1) {
|
||||||
|
var obj = {
|
||||||
|
categoryName: "暂无",
|
||||||
|
categoryNameAbbreviate: "暂无",
|
||||||
|
categoryScore: null,
|
||||||
|
levelName: "暂无",
|
||||||
|
maxScore: null,
|
||||||
|
};
|
||||||
|
res.data.physiqueCategoryList.push(obj);
|
||||||
|
res.data.physiqueCategoryList.push(obj);
|
||||||
|
res.data.physiqueCategoryList.push(obj);
|
||||||
|
}
|
||||||
|
if (res.data.physiqueCategoryList.length == 2) {
|
||||||
|
var obj = {
|
||||||
|
categoryName: "暂无",
|
||||||
|
categoryNameAbbreviate: "暂无",
|
||||||
|
categoryScore: null,
|
||||||
|
levelName: "暂无",
|
||||||
|
maxScore: null,
|
||||||
|
};
|
||||||
|
res.data.physiqueCategoryList.push(obj);
|
||||||
|
res.data.physiqueCategoryList.push(obj);
|
||||||
|
}
|
||||||
|
|
||||||
res.data.physiqueCategoryList.forEach((el) => {
|
res.data.physiqueCategoryList.forEach((el) => {
|
||||||
// console.log(el.categoryScore);
|
console.log(el);
|
||||||
seriesData.push(el.categoryScore);
|
seriesData.push(el.categoryScore);
|
||||||
if (el.levelName == null) {
|
if (el.levelName == null) {
|
||||||
el.levelName = "暂无";
|
el.levelName = "暂无";
|
||||||
@ -240,10 +273,9 @@ export default {
|
|||||||
max: el.maxScore,
|
max: el.maxScore,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// console.log(seriesData, yindicator);
|
console.log(seriesData, yindicator);
|
||||||
|
|
||||||
var myChart = echarts.init(document.getElementById("chart"));
|
var myChart = echarts.init(document.getElementById("chart"));
|
||||||
|
|
||||||
let option = {
|
let option = {
|
||||||
//配置维度的最大值
|
//配置维度的最大值
|
||||||
color: "blue",
|
color: "blue",
|
||||||
|
|||||||
@ -150,33 +150,33 @@
|
|||||||
:data="studentInfoList"
|
:data="studentInfoList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="50" align="center" />
|
||||||
<el-table-column label="所属班级" align="center" prop="className" />
|
<el-table-column label="所属班级" align="center" prop="className" width="100"/>
|
||||||
<el-table-column label="民族" align="center" prop="nationDictId">
|
<el-table-column label="民族" align="center" prop="nationDictId" width="70">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ nactiontype(scope.row.nationDictId) }}
|
{{ nactiontype(scope.row.nationDictId) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="学生姓名" align="center" prop="studentName" />
|
<el-table-column label="学生姓名" align="center" prop="studentName" width="100"/>
|
||||||
<el-table-column label="学生性别" align="center" prop="studentSex">
|
<el-table-column label="学生性别" align="center" prop="studentSex" width="80">
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">{{
|
||||||
scope.row.studentSex == male ? "男" : "女"
|
scope.row.studentSex == male ? "男" : "女"
|
||||||
}}</template>
|
}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="学生编号" align="center" prop="studentNumber" />
|
<el-table-column label="学生编号" align="center" prop="studentNumber" width="180"/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="出生日期"
|
label="出生日期"
|
||||||
align="center"
|
align="center"
|
||||||
prop="birthDate"
|
prop="birthDate"
|
||||||
width="180"
|
width="130"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.birthDate, "{y}-{m}-{d}") }}</span>
|
<span>{{ parseTime(scope.row.birthDate, "{y}-{m}-{d}") }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="身份证号" align="center" prop="cardNumber" />
|
<el-table-column label="身份证号" align="center" prop="cardNumber" width="180" />
|
||||||
<el-table-column label="曾用名" align="center" prop="onceName" />
|
<el-table-column label="曾用名" align="center" prop="onceName" width="100" />
|
||||||
<el-table-column label="家庭住址" align="center" prop="homeAddress" />
|
<el-table-column label="家庭住址" align="center" prop="homeAddress" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
|
|||||||
@ -875,12 +875,13 @@ export default {
|
|||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.itemId2 = row.itemId;
|
this.itemId2 = row.itemId;
|
||||||
// console.log(row);
|
|
||||||
this.reset();
|
this.reset();
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getTestItemCountryScore(id).then((response) => {
|
getTestItemCountryScore(id).then((response) => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.xmname = row.itemName;
|
console.log(this.form)
|
||||||
|
|
||||||
|
this.xmname = response.data.itemName;
|
||||||
this.open2 = true;
|
this.open2 = true;
|
||||||
this.title = "修改全国平均成绩";
|
this.title = "修改全国平均成绩";
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
|
|||||||
@ -119,17 +119,6 @@
|
|||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
|
||||||
<el-button
|
|
||||||
type="warning"
|
|
||||||
plain
|
|
||||||
icon="el-icon-download"
|
|
||||||
size="mini"
|
|
||||||
@click="handleExport"
|
|
||||||
v-hasPermi="['system:testItemScore:export']"
|
|
||||||
>导出</el-button
|
|
||||||
>
|
|
||||||
</el-col> -->
|
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
@queryTable="getList"
|
@queryTable="getList"
|
||||||
@ -139,8 +128,7 @@
|
|||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="testItemScoreList"
|
:data="testItemScoreList"
|
||||||
@row-dblclick="handledbClick"
|
@selection-change="handleSelectionChange"
|
||||||
ref="table"
|
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="50" align="center" />
|
<el-table-column type="selection" width="50" align="center" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -182,7 +170,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total > 0"
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
@ -942,13 +929,8 @@ import {
|
|||||||
listKindergartenInfo,
|
listKindergartenInfo,
|
||||||
} from "@/api/system/kindergartenInfo";
|
} from "@/api/system/kindergartenInfo";
|
||||||
import Treeselect from "@riophae/vue-treeselect";
|
import Treeselect from "@riophae/vue-treeselect";
|
||||||
|
|
||||||
import student from "@/views/assembly/student.vue";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TestItemScore",
|
name: "TestItemScore",
|
||||||
components: { Treeselect, student },
|
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: "",
|
value: "",
|
||||||
@ -1050,6 +1032,9 @@ export default {
|
|||||||
batchId: "",
|
batchId: "",
|
||||||
batchCode: "",
|
batchCode: "",
|
||||||
},
|
},
|
||||||
|
studentId: "",
|
||||||
|
batchCode: "",
|
||||||
|
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
@ -1077,14 +1062,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handledbClick(row, event, column) {
|
|
||||||
// alert("我被双击了");
|
|
||||||
this.$refs.table.toggleRowSelection(row);
|
|
||||||
|
|
||||||
console.log(row, event, column);
|
|
||||||
},
|
|
||||||
testclick() {
|
testclick() {
|
||||||
this.innerVisible4 = true;
|
this.innerVisible4 = true;
|
||||||
},
|
},
|
||||||
@ -1142,7 +1120,7 @@ export default {
|
|||||||
this.form.studentId = row.id;
|
this.form.studentId = row.id;
|
||||||
this.form.className = row.className;
|
this.form.className = row.className;
|
||||||
this.addqueryParams.studentId = row.id;
|
this.addqueryParams.studentId = row.id;
|
||||||
this.form.classId = row.id;
|
this.form.classId = row.classId;
|
||||||
this.innerVisible2 = false;
|
this.innerVisible2 = false;
|
||||||
this.form.studentName = row.studentName;
|
this.form.studentName = row.studentName;
|
||||||
if (this.form.batchCode != null) {
|
if (this.form.batchCode != null) {
|
||||||
@ -1295,8 +1273,8 @@ export default {
|
|||||||
this.itemId2 = "";
|
this.itemId2 = "";
|
||||||
this.studentinfoclick();
|
this.studentinfoclick();
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
this.queryParams.className ="";
|
this.queryParams.className = "";
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
@ -1337,7 +1315,7 @@ export default {
|
|||||||
this.xmname = "请选择所属班级";
|
this.xmname = "请选择所属班级";
|
||||||
this.itemId2 = "";
|
this.itemId2 = "";
|
||||||
this.studentinfoclick();
|
this.studentinfoclick();
|
||||||
this.queryParams.className = ""
|
this.queryParams.className = "";
|
||||||
},
|
},
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
@ -1349,11 +1327,11 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
console.log(row);
|
||||||
const id = row.id || this.ids;
|
// this.reset();
|
||||||
var list = {
|
var list = {
|
||||||
studentId: row.studentId,
|
studentId: this.studentId[0],
|
||||||
batchCode: row.batchCode,
|
batchCode: this.batchCode[0],
|
||||||
};
|
};
|
||||||
this.form.itemScoreList = [];
|
this.form.itemScoreList = [];
|
||||||
getTestItemScore(list).then((response) => {
|
getTestItemScore(list).then((response) => {
|
||||||
@ -1377,7 +1355,6 @@ export default {
|
|||||||
updateTestItemScore(this.form).then((response) => {
|
updateTestItemScore(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
|
||||||
this.xmname = "请选择所属班级";
|
this.xmname = "请选择所属班级";
|
||||||
this.stname = "请选择学生姓名";
|
this.stname = "请选择学生姓名";
|
||||||
this.itemNumbername = "请选择批次编号";
|
this.itemNumbername = "请选择批次编号";
|
||||||
@ -1386,6 +1363,8 @@ export default {
|
|||||||
this.kindergartenName = "请选择幼儿园";
|
this.kindergartenName = "请选择幼儿园";
|
||||||
this.kindergartenId = "";
|
this.kindergartenId = "";
|
||||||
this.queryParams2.kindergartenId = "";
|
this.queryParams2.kindergartenId = "";
|
||||||
|
this.queryParams.kindergartenId = "";
|
||||||
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.form.itemScoreList.forEach((e) => {
|
this.form.itemScoreList.forEach((e) => {
|
||||||
@ -1394,7 +1373,6 @@ export default {
|
|||||||
addTestItemScore(this.form).then((response) => {
|
addTestItemScore(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
|
||||||
this.xmname = "请选择所属班级";
|
this.xmname = "请选择所属班级";
|
||||||
this.stname = "请选择学生姓名";
|
this.stname = "请选择学生姓名";
|
||||||
this.itemNumbername = "请选择批次编号";
|
this.itemNumbername = "请选择批次编号";
|
||||||
@ -1403,6 +1381,8 @@ export default {
|
|||||||
this.kindergartenName = "请选择幼儿园";
|
this.kindergartenName = "请选择幼儿园";
|
||||||
this.kindergartenId = "";
|
this.kindergartenId = "";
|
||||||
this.queryParams2.kindergartenId = "";
|
this.queryParams2.kindergartenId = "";
|
||||||
|
this.queryParams.kindergartenId = "";
|
||||||
|
this.getList();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1412,7 +1392,6 @@ export default {
|
|||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const studentId = row.studentId;
|
const studentId = row.studentId;
|
||||||
const batchCode = row.batchCode;
|
const batchCode = row.batchCode;
|
||||||
|
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm("是否确认删除个人成绩的数据项?")
|
.confirm("是否确认删除个人成绩的数据项?")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
@ -1424,16 +1403,27 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
// 多选框选中数据
|
||||||
handleExport() {
|
handleSelectionChange(selection) {
|
||||||
this.download(
|
this.ids = selection.map((item) => item.id);
|
||||||
"system/testItemScore/export",
|
this.single = selection.length !== 1;
|
||||||
{
|
this.multiple = !selection.length;
|
||||||
...this.queryParams,
|
this.studentId = selection.map((item) => item.studentId);
|
||||||
},
|
this.batchCode = selection.map((item) => item.batchCode);
|
||||||
`testItemScore_${new Date().getTime()}.xlsx`
|
console.log(this.studentId,this.batchCode)
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
// /** 修改按钮操作 */
|
||||||
|
// handleUpdate(row) {
|
||||||
|
// console.log(row.id);
|
||||||
|
|
||||||
|
// this.reset();
|
||||||
|
// const id = row.id || this.ids;
|
||||||
|
// getTestItemScore(id).then((response) => {
|
||||||
|
// this.form = response.data;
|
||||||
|
// this.open = true;
|
||||||
|
// this.title = "修改个人成绩录入管理";
|
||||||
|
// });
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user