This commit is contained in:
曹辉 2022-10-12 08:38:10 +08:00
parent 7b480e3ede
commit 9856fbc64a
17 changed files with 351 additions and 189 deletions

View File

@ -5,7 +5,7 @@ VUE_APP_TITLE = 智慧幼儿体质评估与促进系统
ENV = 'development' ENV = 'development'
# 智慧幼儿体质评估与促进系统/开发环境 # 智慧幼儿体质评估与促进系统/开发环境
VUE_APP_BASE_API = 'http://192.168.16.62:8080' VUE_APP_BASE_API = 'http://192.168.16.81:8081'
#'/dev-api' #'/dev-api'
# 路由懒加载 # 路由懒加载

View File

@ -105,4 +105,12 @@ export function getStudentFraction(studentId, itemId, itemScore) {
url: `system/testItemScore/getStudentFraction?studentId=${studentId}&itemId=${itemId}&itemScore=${itemScore}`, url: `system/testItemScore/getStudentFraction?studentId=${studentId}&itemId=${itemId}&itemScore=${itemScore}`,
method: 'get' method: 'get'
}) })
}
// 获取个人成绩得分
export function WgetStudentFraction(studentId, itemId, itemScore, hwfFraction) {
return request({
url: `system/testItemScore/getStudentFraction?studentId=${studentId}&itemId=${itemId}&itemScore=${itemScore}&hwfFraction=${hwfFraction}`,
method: 'get'
})
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
src/assets/images/bj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -27,7 +27,7 @@ export default {
name: 'HeaderSearch', name: 'HeaderSearch',
data() { data() {
return { return {
search: '', search: '搜索',
options: [], options: [],
searchPool: [], searchPool: [],
show: false, show: false,

View File

@ -1,5 +1,5 @@
<template> <template>
<section class="app-main"> <section class="app-main" >
<transition name="fade-transform" mode="out-in"> <transition name="fade-transform" mode="out-in">
<keep-alive :include="cachedViews"> <keep-alive :include="cachedViews">
<router-view :key="key" /> <router-view :key="key" />
@ -10,19 +10,26 @@
<script> <script>
export default { export default {
name: 'AppMain', name: "AppMain",
data() {
return {
show: true,
};
},
computed: { computed: {
cachedViews() { cachedViews() {
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews;
}, },
key() { key() {
return this.$route.path return this.$route.path;
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-main { .app-main {
/* 50= navbar 50 */ /* 50= navbar 50 */
min-height: calc(100vh - 50px); min-height: calc(100vh - 50px);
@ -31,7 +38,7 @@ export default {
overflow: hidden; overflow: hidden;
} }
.fixed-header+.app-main { .fixed-header + .app-main {
padding-top: 50px; padding-top: 50px;
} }
@ -41,7 +48,7 @@ export default {
min-height: calc(100vh - 84px); min-height: calc(100vh - 84px);
} }
.fixed-header+.app-main { .fixed-header + .app-main {
padding-top: 84px; padding-top: 84px;
} }
} }

View File

@ -1,33 +1,44 @@
<template> <template>
<div class="navbar"> <div class="navbar">
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" /> <hamburger
id="hamburger-container"
:is-active="sidebar.opened"
class="hamburger-container"
@toggleClick="toggleSideBar"
/>
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav"/> <breadcrumb
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav"/> id="breadcrumb-container"
class="breadcrumb-container"
v-if="!topNav"
/>
<top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" />
<div class="right-menu"> <div class="right-menu">
<template v-if="device!=='mobile'"> <template v-if="device !== 'mobile'">
<search id="header-search" class="right-menu-item" /> <search id="header-search" class="right-menu-item" />
<el-tooltip content="源码地址" effect="dark" placement="bottom"> <!-- <el-tooltip content="源码地址" effect="dark" placement="bottom">
<!-- <ruo-yi-git id="xinyilu-git" class="right-menu-item hover-effect" /> --> <ruo-yi-git id="xinyilu-git" class="right-menu-item hover-effect" />
</el-tooltip> </el-tooltip>-->
<el-tooltip content="文档地址" effect="dark" placement="bottom"> <!-- <el-tooltip content="文档地址" effect="dark" placement="bottom">
<!-- <ruo-yi-doc id="xinyilu-doc" class="right-menu-item hover-effect" /> --> <ruo-yi-doc id="xinyilu-doc" class="right-menu-item hover-effect" />
</el-tooltip> </el-tooltip> -->
<screenfull id="screenfull" class="right-menu-item hover-effect" /> <screenfull id="screenfull" class="right-menu-item hover-effect" />
<el-tooltip content="布局大小" effect="dark" placement="bottom"> <el-tooltip content="布局大小" effect="dark" placement="bottom">
<size-select id="size-select" class="right-menu-item hover-effect" /> <size-select id="size-select" class="right-menu-item hover-effect" />
</el-tooltip> </el-tooltip>
</template> </template>
<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click"> <el-dropdown
class="avatar-container right-menu-item hover-effect"
trigger="click"
>
<div class="avatar-wrapper"> <div class="avatar-wrapper">
<img :src="avatar" class="user-avatar"> <img :src="avatar" class="user-avatar" />
<i class="el-icon-caret-bottom" /> <i class="el-icon-caret-bottom" />
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
@ -47,15 +58,15 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from "vuex";
import Breadcrumb from '@/components/Breadcrumb' import Breadcrumb from "@/components/Breadcrumb";
import TopNav from '@/components/TopNav' import TopNav from "@/components/TopNav";
import Hamburger from '@/components/Hamburger' import Hamburger from "@/components/Hamburger";
import Screenfull from '@/components/Screenfull' import Screenfull from "@/components/Screenfull";
import SizeSelect from '@/components/SizeSelect' import SizeSelect from "@/components/SizeSelect";
import Search from '@/components/HeaderSearch' import Search from "@/components/HeaderSearch";
import xinyiluGit from '@/components/xinyilu/Git' import xinyiluGit from "@/components/xinyilu/Git";
import xinyiluDoc from '@/components/xinyilu/Doc' import xinyiluDoc from "@/components/xinyilu/Doc";
export default { export default {
components: { components: {
@ -66,48 +77,46 @@ export default {
SizeSelect, SizeSelect,
Search, Search,
xinyiluGit, xinyiluGit,
xinyiluDoc xinyiluDoc,
}, },
computed: { computed: {
...mapGetters([ ...mapGetters(["sidebar", "avatar", "device"]),
'sidebar',
'avatar',
'device'
]),
setting: { setting: {
get() { get() {
return this.$store.state.settings.showSettings return this.$store.state.settings.showSettings;
}, },
set(val) { set(val) {
this.$store.dispatch('settings/changeSetting', { this.$store.dispatch("settings/changeSetting", {
key: 'showSettings', key: "showSettings",
value: val value: val,
}) });
} },
}, },
topNav: { topNav: {
get() { get() {
return this.$store.state.settings.topNav return this.$store.state.settings.topNav;
} },
} },
}, },
methods: { methods: {
toggleSideBar() { toggleSideBar() {
this.$store.dispatch('app/toggleSideBar') this.$store.dispatch("app/toggleSideBar");
}, },
async logout() { async logout() {
this.$confirm('确定注销并退出系统吗?', '提示', { this.$confirm("确定注销并退出系统吗?", "提示", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'warning' type: "warning",
}).then(() => { })
this.$store.dispatch('LogOut').then(() => { .then(() => {
location.href = '/index'; this.$store.dispatch("LogOut").then(() => {
location.href = "/index";
});
}) })
}).catch(() => {}); .catch(() => {});
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -116,18 +125,18 @@ export default {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #fff; background: #fff;
box-shadow: 0 1px 4px rgba(0,21,41,.08); box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
.hamburger-container { .hamburger-container {
line-height: 46px; line-height: 46px;
height: 100%; height: 100%;
float: left; float: left;
cursor: pointer; cursor: pointer;
transition: background .3s; transition: background 0.3s;
-webkit-tap-highlight-color:transparent; -webkit-tap-highlight-color: transparent;
&:hover { &:hover {
background: rgba(0, 0, 0, .025) background: rgba(0, 0, 0, 0.025);
} }
} }
@ -164,10 +173,10 @@ export default {
&.hover-effect { &.hover-effect {
cursor: pointer; cursor: pointer;
transition: background .3s; transition: background 0.3s;
&:hover { &:hover {
background: rgba(0, 0, 0, .025) background: rgba(0, 0, 0, 0.025);
} }
} }
} }

View File

@ -1,45 +1,80 @@
<template> <template>
<div class="sidebar-logo-container" :class="{'collapse':collapse}" :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }"> <div
class="sidebar-logo-container"
:class="{ collapse: collapse }"
:style="{
backgroundColor:
sideTheme === 'theme-dark'
? variables.menuBackground
: variables.menuLightBackground,
}"
>
<transition name="sidebarLogoFade"> <transition name="sidebarLogoFade">
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/"> <router-link
v-if="collapse"
key="collapse"
class="sidebar-logo-link"
to="/"
>
<img v-if="logo" :src="logo" class="sidebar-logo" /> <img v-if="logo" :src="logo" class="sidebar-logo" />
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1> <h1
v-else
class="sidebar-title"
:style="{
color:
sideTheme === 'theme-dark'
? variables.logoTitleColor
: variables.logoLightTitleColor,
}"
>
{{ title }}
</h1>
</router-link> </router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/"> <router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" /> <img v-if="logo" :src="logo" class="sidebar-logo" />
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1> <h1
class="sidebar-title"
:style="{
color:
sideTheme === 'theme-dark'
? variables.logoTitleColor
: variables.logoLightTitleColor,
}"
>
{{ title }}
</h1>
</router-link> </router-link>
</transition> </transition>
</div> </div>
</template> </template>
<script> <script>
import logoImg from '@/assets/logo/logo.png' import logoImg from "@/assets/logo/logo.png";
import variables from '@/assets/styles/variables.scss' import variables from "@/assets/styles/variables.scss";
export default { export default {
name: 'SidebarLogo', name: "SidebarLogo",
props: { props: {
collapse: { collapse: {
type: Boolean, type: Boolean,
required: true required: true,
} },
}, },
computed: { computed: {
variables() { variables() {
return variables; return variables;
}, },
sideTheme() { sideTheme() {
return this.$store.state.settings.sideTheme return this.$store.state.settings.sideTheme;
} },
}, },
data() { data() {
return { return {
title: '智慧幼儿体质评估与促进系统', title: "智慧幼儿体质评估与促进系统",
logo: logoImg logo: logoImg,
} };
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -66,23 +101,19 @@ export default {
width: 100%; width: 100%;
& .sidebar-logo { & .sidebar-logo {
width: 18px; width: 40px;
height: 32px; height: 40px;
vertical-align: middle; vertical-align: middle;
} }
& .sidebar-title { & .sidebar-title {
display: inline-block; display: inline;
margin: 0; margin: 0;
color: #fff; color: #fff;
font-weight: 600; font-weight: 600;
line-height: 50px;
font-size: 14px; font-size: 14px;
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
vertical-align: middle; vertical-align: middle;
} }
} }

View File

@ -1,111 +1,154 @@
<template> <template>
<div :class="classObj" class="app-wrapper" :style="{'--current-color': theme}"> <div
<div v-if="device==='mobile'&&sidebar.opened" class="drawer-bg" @click="handleClickOutside"/> :class="classObj"
class="app-wrapper"
:style="{ '--current-color': theme }"
>
<div
v-if="device === 'mobile' && sidebar.opened"
class="drawer-bg"
@click="handleClickOutside"
/>
<sidebar v-if="!sidebar.hide" class="sidebar-container" /> <sidebar v-if="!sidebar.hide" class="sidebar-container" />
<div :class="{hasTagsView:needTagsView,sidebarHide:sidebar.hide}" class="main-container"> <div
<div :class="{'fixed-header':fixedHeader}"> :class="{ hasTagsView: needTagsView, sidebarHide: sidebar.hide }"
<navbar /> class="main-container"
<tags-view v-if="needTagsView" /> >
<div :class="show ? 'bj' : ''">
<div :class="{ 'fixed-header': fixedHeader }">
<navbar />
<tags-view v-if="needTagsView" />
</div>
<app-main />
<right-panel>
<settings />
</right-panel>
</div> </div>
<app-main />
<right-panel>
<settings />
</right-panel>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import RightPanel from '@/components/RightPanel' import RightPanel from "@/components/RightPanel";
import { AppMain, Navbar, Settings, Sidebar, TagsView } from './components' import { AppMain, Navbar, Settings, Sidebar, TagsView } from "./components";
import ResizeMixin from './mixin/ResizeHandler' import ResizeMixin from "./mixin/ResizeHandler";
import { mapState } from 'vuex' import { mapState } from "vuex";
import variables from '@/assets/styles/variables.scss' import variables from "@/assets/styles/variables.scss";
export default { export default {
name: 'Layout', name: "Layout",
components: { components: {
AppMain, AppMain,
Navbar, Navbar,
RightPanel, RightPanel,
Settings, Settings,
Sidebar, Sidebar,
TagsView TagsView,
},
data() {
return {
show: true,
};
}, },
mixins: [ResizeMixin], mixins: [ResizeMixin],
computed: { computed: {
...mapState({ ...mapState({
theme: state => state.settings.theme, theme: (state) => state.settings.theme,
sideTheme: state => state.settings.sideTheme, sideTheme: (state) => state.settings.sideTheme,
sidebar: state => state.app.sidebar, sidebar: (state) => state.app.sidebar,
device: state => state.app.device, device: (state) => state.app.device,
needTagsView: state => state.settings.tagsView, needTagsView: (state) => state.settings.tagsView,
fixedHeader: state => state.settings.fixedHeader fixedHeader: (state) => state.settings.fixedHeader,
}), }),
classObj() { classObj() {
return { return {
hideSidebar: !this.sidebar.opened, hideSidebar: !this.sidebar.opened,
openSidebar: this.sidebar.opened, openSidebar: this.sidebar.opened,
withoutAnimation: this.sidebar.withoutAnimation, withoutAnimation: this.sidebar.withoutAnimation,
mobile: this.device === 'mobile' mobile: this.device === "mobile",
} };
}, },
variables() { variables() {
return variables; return variables;
} },
},
created(){
this.info()
},
watch: {
$route(to, from) {
console.log(to.path, from.path);
if (to.path != "/index") {
this.show = false;
} else {
this.show = true;
}
},
}, },
methods: { methods: {
info(){
console.log(this.$router.path)
if (this.$router.path != "/index") {
this.show = false;
} else {
this.show = true;
}
},
handleClickOutside() { handleClickOutside() {
this.$store.dispatch('app/closeSideBar', { withoutAnimation: false }) this.$store.dispatch("app/closeSideBar", { withoutAnimation: false });
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "~@/assets/styles/mixin.scss"; @import "~@/assets/styles/mixin.scss";
@import "~@/assets/styles/variables.scss"; @import "~@/assets/styles/variables.scss";
.bj {
background-image: url("../assets/images/bj.png");
-moz-background-size: 100% 100%;
background-size: 100% 100%;
}
.app-wrapper {
@include clearfix;
position: relative;
height: 100%;
width: 100%;
.app-wrapper { &.mobile.openSidebar {
@include clearfix;
position: relative;
height: 100%;
width: 100%;
&.mobile.openSidebar {
position: fixed;
top: 0;
}
}
.drawer-bg {
background: #000;
opacity: 0.3;
width: 100%;
top: 0;
height: 100%;
position: absolute;
z-index: 999;
}
.fixed-header {
position: fixed; position: fixed;
top: 0; top: 0;
right: 0;
z-index: 9;
width: calc(100% - #{$base-sidebar-width});
transition: width 0.28s;
} }
}
.hideSidebar .fixed-header { .drawer-bg {
width: calc(100% - 54px); background: #000;
} opacity: 0.3;
width: 100%;
top: 0;
height: 100%;
position: absolute;
z-index: 999;
}
.sidebarHide .fixed-header { .fixed-header {
width: 100%; position: fixed;
} top: 0;
right: 0;
z-index: 9;
width: calc(100% - #{$base-sidebar-width});
transition: width 0.28s;
}
.mobile .fixed-header { .hideSidebar .fixed-header {
width: 100%; width: calc(100% - 54px);
} }
.sidebarHide .fixed-header {
width: 100%;
}
.mobile .fixed-header {
width: 100%;
}
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container home"> <div class="app-container home">
<el-row :gutter="20"> <!-- <el-row :gutter="20"> -->
<el-col :sm="24" :lg="12" style="padding-left: 20px"> <!-- <el-col :sm="24" :lg="12" style="padding-left: 20px">
<h2>新医路后台管理框架</h2> <h2>新医路后台管理框架</h2>
<p> <p>
一直想做一款后台管理系统看了很多优秀的开源项目但是发现没有合适自己的于是利用空闲休息时间开始自己写一套后台系统如此有了新医路管理系统它可以用于所有的Web应用程序如网站管理后台网站会员中心CMSCRMOA等等当然您也可以对她进行深度定制以做出更强系统所有前端后台代码封装过后十分精简易上手出错概率低同时支持移动客户端访问系统会陆续更新一些实用功能 一直想做一款后台管理系统看了很多优秀的开源项目但是发现没有合适自己的于是利用空闲休息时间开始自己写一套后台系统如此有了新医路管理系统它可以用于所有的Web应用程序如网站管理后台网站会员中心CMSCRMOA等等当然您也可以对她进行深度定制以做出更强系统所有前端后台代码封装过后十分精简易上手出错概率低同时支持移动客户端访问系统会陆续更新一些实用功能
@ -54,9 +54,9 @@
</ul> </ul>
</el-col> </el-col>
</el-row> </el-row>
</el-col> </el-col> -->
</el-row> <!-- </el-row> -->
<el-divider /> <!-- <el-divider /> -->
</div> </div>
</template> </template>

View File

@ -81,7 +81,7 @@
<img <img
src="../assets/images/rw2.png" src="../assets/images/rw2.png"
alt="" alt=""
style="width: 400px; height: 364px" style="width: 400px; height: 364px; border-radius: 0 6px 6px 0"
/> />
</div> </div>

View File

@ -186,12 +186,13 @@
</el-row> </el-row>
</div> </div>
</template> </template>
<script type="text/javascript" src="../jquery.min.js"></script>
<script> <script>
import * as echarts from "echarts"; import * as echarts from "echarts";
import student from "@/views/assembly/student.vue"; import student from "@/views/assembly/student.vue";
import { getRoleInfo } from "@/api/system/quality"; import { getRoleInfo } from "@/api/system/quality";
import { synthesize } from "@/api/system/comprehensive"; import { synthesize } from "@/api/system/comprehensive";
export default { export default {
name: "comprehensive", name: "comprehensive",
components: { student }, components: { student },
@ -322,6 +323,21 @@ export default {
myChart.setOption(option); myChart.setOption(option);
this.itemshow2 = false; this.itemshow2 = false;
this.itemshow = true; this.itemshow = true;
console.log(myChart.getDataURL());
// postImage();
// function postImage() {
// // .
// console.log("1");
// $.ajax({
// type: "POST",
// dataType: "json",
// url: "http://192.168.16.62:8080",
// data: { picInfo: },
// success: function () {
// alert("post!");
// },
// });
// }
} }
// var myChart = echarts.init(document.getElementById("chart")); // var myChart = echarts.init(document.getElementById("chart"));

View File

@ -1207,6 +1207,7 @@ import {
testScoreBatch, testScoreBatch,
getAllTestItemScoreInfo, getAllTestItemScoreInfo,
getStudentFraction, getStudentFraction,
WgetStudentFraction,
} from "@/api/system/testItemScore"; } from "@/api/system/testItemScore";
import { import {
tKindergartenInfo, tKindergartenInfo,
@ -1345,57 +1346,104 @@ export default {
}, },
testitems: [], testitems: [],
selection2: {}, selection2: {},
//
Height: "",
}; };
}, },
created() { created() {
this.getList(); this.getList();
}, },
methods: { methods: {
oninputscore2(item) { oninputscore2(item) {
if (item.itemCode == "H001") {
this.Height = item.itemScore;
}
if (item.itemScore == "") { if (item.itemScore == "") {
console.log(1);
this.form.itemScoreList.forEach((e) => { this.form.itemScoreList.forEach((e) => {
if (e.testItemId == item.testItemId) { if (e.testItemId == item.testItemId) {
e.itemFraction = ""; e.itemFraction = "";
} }
}); });
} else { } else {
console.log(item); if (item.itemCode == "W001") {
getStudentFraction( if (this.Height == "") {
this.addqueryParams.studentId, this.$message.error("请先添加身高成绩!");
item.testItemId, item.itemScore = "";
item.itemScore item.itemFraction = "";
).then((res) => { } else {
this.form.itemScoreList.forEach((e) => { WgetStudentFraction(
if (e.testItemId == res.data.itemId) { this.addqueryParams.studentId,
e.itemFraction = res.data.fraction; item.testItemId,
} this.Height,
item.itemScore
).then((res) => {
console.log(res);
this.form.itemScoreList.forEach((e) => {
if (e.testItemId == res.data.itemId) {
e.itemFraction = res.data.fraction;
}
});
});
}
} else {
getStudentFraction(
this.addqueryParams.studentId,
item.testItemId,
item.itemScore
).then((res) => {
this.form.itemScoreList.forEach((e) => {
if (e.testItemId == res.data.itemId) {
e.itemFraction = res.data.fraction;
}
});
}); });
}); }
} }
}, },
oninputscore(item) { oninputscore(item) {
console.log(item); if (item.itemCode == "H001") {
this.Height = item.itemScore;
}
if (item.itemScore == "") { if (item.itemScore == "") {
console.log(1);
this.form.itemScoreList.forEach((e) => { this.form.itemScoreList.forEach((e) => {
if (e.itemId == item.itemId) { if (e.itemId == item.itemId) {
e.itemFraction = ""; e.itemFraction = "";
} }
}); });
} else { } else {
getStudentFraction( if (item.itemCode == "W001") {
this.addqueryParams.studentId, if (this.Height == "") {
item.itemId, this.$message.error("请先添加身高成绩!");
item.itemScore item.itemScore = "";
).then((res) => { item.itemFraction = "";
this.form.itemScoreList.forEach((e) => { } else {
if (e.itemId == res.data.itemId) { WgetStudentFraction(
e.itemFraction = res.data.fraction; this.addqueryParams.studentId,
} item.itemId,
this.Height,
item.itemScore
).then((res) => {
console.log(res);
this.form.itemScoreList.forEach((e) => {
if (e.itemId == res.data.itemId) {
e.itemFraction = res.data.fraction;
}
});
});
}
} else {
getStudentFraction(
this.addqueryParams.studentId,
item.itemId,
item.itemScore
).then((res) => {
this.form.itemScoreList.forEach((e) => {
if (e.itemId == res.data.itemId) {
e.itemFraction = res.data.fraction;
}
});
}); });
}); }
} }
}, },
handledbClick(row, event, column) { handledbClick(row, event, column) {