|
@@ -11,6 +11,7 @@
|
|
|
class="searchForm"
|
|
|
@submit="onSearch"
|
|
|
@reset="onReSet"
|
|
|
+ ref="saveForm"
|
|
|
:model.sync="searchForm"
|
|
|
>
|
|
|
<el-form-item>
|
|
@@ -20,6 +21,7 @@
|
|
|
@keydown.enter.native="
|
|
|
(e) => {
|
|
|
e.target.blur();
|
|
|
+ $refs.saveForm.save();
|
|
|
onSearch();
|
|
|
}
|
|
|
"
|
|
@@ -173,7 +175,7 @@
|
|
|
<el-button native-type="reset" type="primary">重置</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- v-permission="'export/studentHasCourse'"
|
|
|
+ v-if="$helpers.permission('export/studentHasCourse')"
|
|
|
@click="downLoadStudent"
|
|
|
>导出名单</el-button
|
|
|
>
|
|
@@ -187,7 +189,7 @@
|
|
|
>创建云教练缴费</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-permission="'studentManage/register'"
|
|
|
+ v-if="$helpers.permission('studentManage/register')"
|
|
|
@click="addStudent"
|
|
|
type="primary"
|
|
|
icon="el-icon-plus"
|
|
@@ -540,7 +542,7 @@
|
|
|
<el-table-column align="center" width="180px" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<router-link
|
|
|
- v-permission="'/studentDetail'"
|
|
|
+ v-if="$helpers.permission('/studentDetail')"
|
|
|
class="el-button--text"
|
|
|
:to="{
|
|
|
path: `/business/studentDetail`,
|
|
@@ -560,22 +562,24 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
style="padding-left: 10px"
|
|
|
- v-permission="'studentManage/studentUpdate'"
|
|
|
+ v-if="$helpers.permission('studentManage/studentUpdate')"
|
|
|
@click="resetStudent(scope.row)"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
<!-- api-auth/user/updatePassword2 -->
|
|
|
<el-button
|
|
|
- v-permission="'api-auth/user/updatePassword2'"
|
|
|
+ v-if="$helpers.permission('api-auth/user/updatePassword2')"
|
|
|
@click="resetPassWrod(scope.row)"
|
|
|
type="text"
|
|
|
>修改密码</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="scope.row.isSignedContract"
|
|
|
+ v-if="
|
|
|
+ scope.row.isSignedContract &&
|
|
|
+ $helpers.permission('sysUserContracts/getLatest')
|
|
|
+ "
|
|
|
type="text"
|
|
|
@click="lookContracts(scope.row)"
|
|
|
- v-permission="'sysUserContracts/getLatest'"
|
|
|
>下载协议</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -702,7 +706,7 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="school" label="所属学校">
|
|
|
+ <el-form-item prop="school" label="所属学校">
|
|
|
<el-select
|
|
|
v-model.trim="studentForm.school"
|
|
|
filterable
|
|
@@ -735,7 +739,6 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="学员班级" prop="currentClass">
|
|
|
-
|
|
|
<el-select
|
|
|
placeholder="班级"
|
|
|
filterable
|
|
@@ -783,7 +786,6 @@
|
|
|
<el-option label="38班" value="38班"></el-option>
|
|
|
<el-option label="39班" value="39班"></el-option>
|
|
|
<el-option label="40班" value="40班"></el-option>
|
|
|
-
|
|
|
</el-select>
|
|
|
<!-- <el-input
|
|
|
v-model.trim="maskForm.course"
|
|
@@ -791,7 +793,6 @@
|
|
|
></el-input> -->
|
|
|
</el-form-item>
|
|
|
|
|
|
-
|
|
|
<el-form-item label="指导老师" prop="teacherId">
|
|
|
<el-select
|
|
|
class="multiple"
|