|
@@ -19,7 +19,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6" class="date">
|
|
|
<el-col :span="24" class="info">
|
|
|
- <el-button type="primary" @click="$router.push({ path: 'teacherscore/index', query: { teaid: lesson.teaid, lessonid: lesson._id } })"
|
|
|
+ <el-button
|
|
|
+ v-if="user.type != '1'"
|
|
|
+ type="primary"
|
|
|
+ @click="$router.push({ path: 'teacherscore/index', query: { teaid: lesson.teaid, lessonid: lesson._id } })"
|
|
|
>教师评分</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -68,6 +71,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
|
|
|
export default {
|
|
|
name: 'mainData',
|
|
|
props: {
|
|
@@ -78,7 +82,9 @@ export default {
|
|
|
components: {},
|
|
|
data: () => ({}),
|
|
|
created() {},
|
|
|
- computed: {},
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ },
|
|
|
methods: {
|
|
|
changeLesson(date) {
|
|
|
this.$emit('getLesson', date);
|