|
@@ -6,9 +6,9 @@
|
|
|
<data-table :fields="fields" :data="list" :opera="opera" @view="data => toView(data, 'term')"></data-table>
|
|
|
</self-cards>
|
|
|
<self-cards :title="termTitle" v-if="views === `term`" :returns="toReturns">
|
|
|
- <data-table :fields="termFields" :data="termList" :opera="opera" @view="data => toView(data, 'pool')"></data-table>
|
|
|
+ <data-table :fields="termFields" :data="termList" :opera="opera" @view="data => toView(data, 'quest')"></data-table>
|
|
|
</self-cards>
|
|
|
- <self-cards title="问卷列表" v-if="views === `pool`" :returns="toReturns">
|
|
|
+ <self-cards title="问卷列表" v-if="views === `quest`" :returns="toReturns">
|
|
|
<data-table :fields="quesFields" :data="quesList" :opera="opera" @view="data => toView(data, 'batch')"></data-table>
|
|
|
</self-cards>
|
|
|
<self-cards :title="batchTitle" v-if="views === `batch`" :returns="toReturns">
|
|
@@ -31,7 +31,7 @@
|
|
|
<script>
|
|
|
import listFrame from '@frame/layout/admin/list-frame';
|
|
|
import dataTable from '@frame/components/data-table';
|
|
|
-import selfCards from './parts/cards';
|
|
|
+import selfCards from '@frame/parts/cards';
|
|
|
import _ from 'lodash';
|
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: trainPlan } = createNamespacedHelpers('trainplan');
|
|
@@ -137,7 +137,7 @@ export default {
|
|
|
this.$set(this, `termTitle`, data.title);
|
|
|
this.$set(this, `termList`, data.termnum);
|
|
|
}
|
|
|
- if (type === 'pool') {
|
|
|
+ if (type === 'quest') {
|
|
|
let termid = data._id;
|
|
|
let res = await this.getTermQuestList({ termid: termid });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -167,7 +167,7 @@ export default {
|
|
|
});
|
|
|
this.$set(this, `batch`, { list: completion, answertotal, alltotal, completiontotal });
|
|
|
}
|
|
|
- this.$set(this, `batchTitle`, `第${data.term}期 问卷${data.name}进度`);
|
|
|
+ this.$set(this, `batchTitle`, `第${data.term}期 问卷 ${data.name} 进度`);
|
|
|
}
|
|
|
if (type === 'class') {
|
|
|
let { id: batch, questname, term, questionnaireid } = data;
|
|
@@ -182,7 +182,7 @@ export default {
|
|
|
});
|
|
|
this.$set(this, `classes`, { list: completion, answertotal, alltotal, completiontotal });
|
|
|
}
|
|
|
- this.$set(this, `classTitle`, `${data.name} 问卷${questname}进度`);
|
|
|
+ this.$set(this, `classTitle`, `${data.name} 问卷 ${questname} 进度`);
|
|
|
}
|
|
|
if (type === 'student') {
|
|
|
let { id, questname, questionnaireid } = data;
|
|
@@ -195,13 +195,13 @@ export default {
|
|
|
});
|
|
|
this.$set(this, `student`, { list: completion, answertotal, alltotal, completiontotal });
|
|
|
}
|
|
|
- this.$set(this, `studentTitle`, `${data.name} 问卷${questname}进度`);
|
|
|
+ this.$set(this, `studentTitle`, `${data.name} 问卷 ${questname} 进度`);
|
|
|
}
|
|
|
},
|
|
|
toReturns() {
|
|
|
if (this.views === 'term') this.views = 'plan';
|
|
|
- else if (this.views === 'pool') this.views = 'term';
|
|
|
- else if (this.views === 'batch') this.views = 'pool';
|
|
|
+ else if (this.views === 'quest') this.views = 'term';
|
|
|
+ else if (this.views === 'batch') this.views = 'quest';
|
|
|
else if (this.views === 'class') this.views = 'batch';
|
|
|
else if (this.views === 'student') this.views = 'class';
|
|
|
},
|