|
@@ -5,6 +5,7 @@ import styles from './index.module.less'
|
|
|
import { ElSkeleton, ElSkeletonItem } from 'element-plus'
|
|
|
import { defineComponent } from 'vue'
|
|
|
import MusicItem from '../../user-info/music-class/item'
|
|
|
+import { getUserType } from '@/helpers/utils'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'list',
|
|
@@ -20,6 +21,7 @@ export default defineComponent({
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ clientType: '',
|
|
|
pageInfo: {
|
|
|
// 分页规则
|
|
|
limit: 10, // 限制显示条数
|
|
@@ -33,6 +35,8 @@ export default defineComponent({
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ const clientType = getUserType()
|
|
|
+ if (clientType === 'TEACHER') this.clientType = clientType
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
@@ -46,7 +50,8 @@ export default defineComponent({
|
|
|
const { data } = await request.get(url, {
|
|
|
params: {
|
|
|
page: this.pageInfo.page,
|
|
|
- rows: this.pageInfo.limit
|
|
|
+ rows: this.pageInfo.limit,
|
|
|
+ clientType: this.clientType
|
|
|
}
|
|
|
})
|
|
|
this.list = data.rows || []
|
|
@@ -101,8 +106,8 @@ export default defineComponent({
|
|
|
{this.list.map((item: any) => (
|
|
|
<MusicItem
|
|
|
onClick={(item: any) => {
|
|
|
+ console.log(item)
|
|
|
if (this.auditStatus === 'UNPASS') {
|
|
|
- console.log(item)
|
|
|
this.$router.push({
|
|
|
path: '/userInfo/musicOperation',
|
|
|
query: {
|