lion 1 year ago
parent 6cd2da3c98
commit ac83957cf4

@ -73,21 +73,22 @@ export const constantRoutes = [{
// icon: 'dashboard'
// }
// }]
// },
{
path: '/course/txl',
component: Layout,
redirect: '/dashboard',
children: [{
path: '/course/txl',
name: '通讯录',
component: () => import('@/views/course/txl'),
meta: {
title: '通讯录',
icon: ''
}
}],
hidden: true
// },
{
path: '/course/txl',
component: Layout,
redirect: '/dashboard',
children: [{
path: '/course/txl',
name: '通讯录',
component: () => import('@/views/course/txl'),
meta: {
title: '通讯录',
icon: '',
activeMenu: '/course/class'
}
}],
hidden: true
},
{
path: '/course/apply_list',
@ -99,7 +100,8 @@ export const constantRoutes = [{
component: () => import('@/views/course/apply_list'),
meta: {
title: '报名管理',
icon: ''
icon: '',
activeMenu: '/course/apply'
}
}],
hidden: true
@ -110,29 +112,31 @@ export const constantRoutes = [{
redirect: '/dashboard',
children: [{
path: '/course/pay',
name: '缴费列表',
name: '缴费记录',
component: () => import('@/views/course/pay'),
meta: {
title: '缴费列表',
icon: ''
title: '缴费记录',
icon: '',
activeMenu: '/course/class'
}
}],
hidden: true
},
{
path: '/course/attendance',
component: Layout,
redirect: '/dashboard',
children: [{
path: '/course/attendance',
name: '考勤管理',
component: () => import('@/views/course/attendance'),
meta: {
title: '考勤管理',
icon: '',
activeMenu: '/course/class'
}
}],
hidden: true
},
{
path: '/course/attendance',
component: Layout,
redirect: '/dashboard',
children: [{
path: '/course/attendance',
name: '考勤管理',
component: () => import('@/views/course/attendance'),
meta: {
title: '考勤管理',
icon: ''
}
}],
hidden: true
}
]

@ -163,7 +163,8 @@
//
if (this.tableName === 'users') {
response.map(item => {
item.is_schoolmate = 1
item.is_schoolmate = 1
item.username = item.name
})
}
this.tableList = response;
@ -193,12 +194,7 @@
);
},
imports() {
if(this.tableName=='users'){
this.tableList.map(item=>{
item.username = item.name
})
}
imports() {
request({
method: "post",
url: this.import_action,

@ -59,12 +59,15 @@
</el-table-column>
</template>
<template v-slot:btns>
<el-table-column align='left' label="操作" width="280" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" v-if="scope.row.is_arrange===1"
@click="editClass('add',scope.row)">排课</el-button>
<el-table-column align='left' label="操作" width="420" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="toTxl(scope.row)"></el-button>
<el-button type="primary" size="small" @click="goAttendance(scope.row)"></el-button>
<el-button type="primary" size="small" @click="setMain(scope.row.id)"></el-button>
<el-button type="primary" size="small" @click="setMain(scope.row.id)"></el-button>
<el-button type="primary" size="small" v-if="scope.row.is_arrange===1"
@click="editClass('add',scope.row)">排课</el-button>
<el-button type="primary" size="small" v-if="scope.row.is_fee===1"
@click="toPay(scope.row)">缴费记录</el-button>
</template>
</el-table-column>
</template>
@ -224,6 +227,33 @@
this.$refs.setMainTeacher.id = id
this.$refs.setMainTeacher.setTeachers(this.teacher_options)
this.$refs.setMainTeacher.isShow = true
},
toTxl(row) {
let value = row.type_detail.name
this.$router.push({
path: '/course/txl',
query: {
title: row.name,
id: row.id,
date: row.start_date ? row.start_date + '至' + row.end_date : '',
leibie: value,
is_history:row.course_status===40?true:false
}
})
},
toPay(row) {
let value = row.type_detail.name
this.$router.push({
path: '/course/pay',
query: {
title: row.name,
id: row.id,
date: row.start_date ? row.start_date + '至' + row.end_date : '',
leibie: value,
type: 'pay'
}
})
},
}
}

@ -130,7 +130,7 @@
<template v-slot:qun_image_id v-if="active===0 && form.is_fee===0">
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold;">
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>群聊二维码400*400
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>群聊二维码400*400
</div>
<div class="xy-table-item-content">
<el-upload :action="action" class='upload-demo' :on-exceed="onExceedQun" :limit="1" list-type="picture-card"
@ -307,10 +307,10 @@
// required: true,
// message: ''
// }],
qun_image_id: [{
required: true,
message: '请上传群聊二维码'
}],
// qun_image_id: [{
// required: true,
// message: ''
// }],
// content: [{
// required: true,
// message: ''

@ -77,16 +77,15 @@
</el-table-column>
</template>
<template v-slot:btns>
<el-table-column align='left' fixed="right" label="操作" width="400" header-align="center">
<el-table-column align='left' fixed="right" label="操作" minWidth="240" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="editCourse('editor',scope.row.id)"></el-button>
<el-popconfirm v-if="!(scope.row.status==1 || scope.row.course_status==10)" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
<el-button type="danger" size="small" slot="reference">删除</el-button>
<!-- -->
<el-button type="primary" size="small" @click="showQrCode(scope.row)"></el-button>
<el-popconfirm v-if="!(scope.row.status==1 || scope.row.course_status==10)" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
<el-button type="danger" size="small" slot="reference">删除</el-button>
</el-popconfirm>
<el-button type="primary" size="small" @click="toTxl(scope.row)"></el-button>
<el-button type="primary" size="small" v-if="scope.row.is_fee===1"
@click="toPay(scope.row)">缴费记录</el-button>
<el-button type="primary" size="small" @click="showQrCode(scope.row)"></el-button>
</template>
</el-table-column>
</template>
@ -244,33 +243,6 @@
}
this.$refs.showCode.isShow = true
},
toTxl(row) {
let value = row.type_detail.name
this.$router.push({
path: '/course/txl',
query: {
title: row.name,
id: row.id,
date: row.start_date ? row.start_date + '至' + row.end_date : '',
leibie: value,
is_history:row.course_status===40?true:false
}
})
},
toPay(row) {
let value = row.type_detail.name
this.$router.push({
path: '/course/pay',
query: {
title: row.name,
id: row.id,
date: row.start_date ? row.start_date + '至' + row.end_date : '',
leibie: value,
type: 'pay'
}
})
},
deleteList(id) {
var that = this;
destroy({

Loading…
Cancel
Save