|
@@ -26,7 +26,7 @@
|
|
></classGroup>
|
|
></classGroup>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="平时成绩" name="third">
|
|
<el-tab-pane label="平时成绩" name="third">
|
|
- <daily :data="studentList" :scoreList="pscoreList" :classInfo="classInfo" :lesson="lesson"></daily>
|
|
|
|
|
|
+ <daily :data="studentList" :scoreList="pscoreList" :classInfo="classInfo" :lesson="lesson" @save="dailyUpdate"></daily>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="作业成绩" name="forth"></el-tab-pane>
|
|
<el-tab-pane label="作业成绩" name="forth"></el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
@@ -101,7 +101,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...util({ modelFetch: 'fetch' }),
|
|
...util({ modelFetch: 'fetch' }),
|
|
...classes({ getClassInfo: 'fetch' }),
|
|
...classes({ getClassInfo: 'fetch' }),
|
|
- ...pscore({ getPScoreList: 'query' }),
|
|
|
|
|
|
+ ...pscore({ getPScoreList: 'query', pscoreOpera: 'opera' }),
|
|
...group({ groupQuery: 'query', groupDelete: 'delete', groupCreate: 'create', groupUpdate: 'update', groupInsert: 'insert', groupExit: 'exit' }),
|
|
...group({ groupQuery: 'query', groupDelete: 'delete', groupCreate: 'create', groupUpdate: 'update', groupInsert: 'insert', groupExit: 'exit' }),
|
|
...student({ getStudentList: 'query', updateStudent: 'update' }),
|
|
...student({ getStudentList: 'query', updateStudent: 'update' }),
|
|
async getClass() {
|
|
async getClass() {
|
|
@@ -232,6 +232,11 @@ export default {
|
|
const res = await this.getPScoreList({ classid: this.user.classid });
|
|
const res = await this.getPScoreList({ classid: this.user.classid });
|
|
if (this.$checkRes(res)) this.$set(this, `pscoreList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `pscoreList`, res.data);
|
|
},
|
|
},
|
|
|
|
+ // third 平时分保存(添加/修改)
|
|
|
|
+ async dailyUpdate(data) {
|
|
|
|
+ const res = await this.pscoreOpera(data);
|
|
|
|
+ if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) this.toGetPScoreList();
|
|
|
|
+ },
|
|
tabchange(tab) {
|
|
tabchange(tab) {
|
|
const { name } = tab;
|
|
const { name } = tab;
|
|
if (name === 'third') this.toGetPScoreList();
|
|
if (name === 'third') this.toGetPScoreList();
|