Commit 680a981f by yuwen

Merge remote-tracking branch 'origin/1a86cad6' into yuwen

parents 96c88be1 84859b5f
......@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>菊园小学</title>
<title>上海市洋泾菊园实验学校</title>
</head>
<body>
<div id="app"></div>
......
......@@ -10,7 +10,7 @@
"lint": "eslint --ext .js --ext .jsx --ext .vue client/",
"lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/ widgets/ runner/",
"precommit": "npm run lint-fix",
"init": "git submodule update --init --recursive && npm run update && npm install",
"init": "git submodule update --init --recursive && npm run update",
"update": "git submodule update --recursive --remote --merge --force && npm install"
},
"author": "",
......
......@@ -31,11 +31,18 @@
/>
</div>
<div class="select-item student-name">
<input
<select-list
class="input"
title="学生姓名"
:list="studentNameList"
v-model="studentName"
@keyup.enter="Search"
/>
<!-- <input
placeholder="学生姓名"
v-model="studentName"
@keyup.enter="Search"
/>
/> -->
</div>
<div
class="search"
......@@ -106,8 +113,14 @@ export default {
{name: '男'},
{name: '女'}
],
// 老师姓名
studentName: ''
// 学生姓名
studentName: {
name: ''
},
// 学科性别结果
studentNameList: [
{name: '顾雨辰'}
]
}
},
methods: {
......@@ -224,20 +237,25 @@ export default {
width: 222px;
padding: 2px 10px 5px;
background: rgba(7, 32, 65, 0.3);
border: 1px solid rgba(73, 133, 217, 0.6);
// border: 1px solid rgba(73, 133, 217, 0.6);
> input {
width: 100%;
height: 100%;
font-size: 16px;
font-family: Microsoft YaHei;
font-weight: 400;
color: #7AC6FA;
background: none;
// .input {
// width: 100%;
// height: 100%;
// font-size: 16px;
// font-family: Microsoft YaHei;
// font-weight: 400;
// color: #7AC6FA;
// background: none;
&::-webkit-input-placeholder {
color: #7AC6FA;
}
// &::-webkit-input-placeholder {
// color: #7AC6FA;
// }
// }
.input{
margin:-2px 0px 0px -10px;
width: 224px;
height: 32px;
}
}
}
......
......@@ -12,13 +12,21 @@
</div>
<!-- 老师姓名 -->
<input class="teacher-name" placeholder="教师姓名" v-model="teacherName" />
<div class="select-item">
<select-item
placeholder="教师姓名"
:list="teacherList"
v-model="teacherName"
ref="teacherRef"
/>
</div>
<!-- 学科 -->
<div class="select-item">
<select-item
placeholder="学科"
:list="currSubjectList"
v-model="currSubject"
ref="subject"
/>
</div>
......@@ -27,6 +35,7 @@
<select-item
placeholder="年级"
:list="currGradeList"
v-model="currGrade"
ref="grade"
/>
</div>
......@@ -91,8 +100,13 @@ export default {
teacherName: '',
teacherList: [{
name: '陈涛'
}],
currSubjectList: [],
currGradeList: [],
currGrade: '',
// 学科列表
selectLists: [{
......@@ -164,6 +178,7 @@ export default {
name: '九年级'
}]
}],
currSubject: '',
visible: false,
......@@ -243,6 +258,7 @@ export default {
chooseSchool (index = 0) {
this.$refs.subject.currText = ''
this.$refs.grade.currText = ''
this.$refs.teacherRef.currText = ''
this.currTypesIndex = index
const { subject = [], grade = [] } = this.selectLists[index] || {}
......@@ -252,7 +268,8 @@ export default {
},
search () {
if (this.teacherName === '陈涛') {
// 小学 / 一年级 / 语文 / 陈涛
if (this.currTypesIndex === 0 && this.teacherName === '陈涛' && this.currGrade === '一年级' && this.currSubject === '语文') {
this.visible = true
} else {
this.$message('暂无数据')
......
......@@ -198,7 +198,7 @@ export default {
* @method edit 返回
*/
edit () {
this.$router.push({path: '/growthRecord'})
this.$router.back()
},
/**
* @method Search 搜索
......@@ -348,6 +348,7 @@ export default {
position: absolute;
top: 39px;
left: 1822px;
cursor: pointer;
}
}
.bulletImg{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment