|
@@ -93,7 +93,6 @@
|
|
|
<div>
|
|
|
<p>{{scope.row.realName}}</p>
|
|
|
<p v-if="scope.row.memo">{{'('+scope.row.memo+')'}}</p>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -123,15 +122,22 @@
|
|
|
<el-table-column align="center" label="开放网管课">
|
|
|
<template slot-scope="scope">{{ scope.row.isSupportExtraPracticeLesson ? '是' : '否' }}</template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" label="运营指标">
|
|
|
- <template slot-scope="scope">{{ scope.row.operatingIndex +'%' }}</template>
|
|
|
+
|
|
|
+ <el-table-column align="center" label="运营指标">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="gotoOperating(scope.row)"
|
|
|
+ >{{ scope.row.operatingIndex +'%' }}</el-button>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="服务指标">
|
|
|
+ <el-table-column align="center" label="服务指标">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="gotoAfterSchool(scope.row)">{{ scope.row.serviceIndex +'%' }}</el-button>
|
|
|
-
|
|
|
- </template>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="gotoAfterSchool(scope.row)"
|
|
|
+ >{{ scope.row.serviceIndex +'%' }}</el-button>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" fixed="right" width="200" label="操作">
|
|
|
<template slot-scope="scope">
|
|
@@ -153,7 +159,11 @@
|
|
|
type="text"
|
|
|
>{{ scope.row.lockFlag == 1 ? '解冻' : '冻结' }}</el-button>
|
|
|
<!-- -->
|
|
|
- <el-button v-permission="'api-auth/user/updatePassword2'" @click="resetPassWrod(scope.row)" type="text">修改密码</el-button>
|
|
|
+ <el-button
|
|
|
+ v-permission="'api-auth/user/updatePassword2'"
|
|
|
+ @click="resetPassWrod(scope.row)"
|
|
|
+ type="text"
|
|
|
+ >修改密码</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -166,15 +176,35 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-dialog title="修改密码" :visible.sync="passwrodVisiable" :before-close="closePassWord" width="400px" >
|
|
|
- <el-form :model="passwrodForm" ref="passwrodForm" :inline='true' >
|
|
|
- <el-form-item label="手机号" prop="phone" label-width="80px" :rules="[{ required: true, message: '手机号不能为空',trigger: 'blur'},{pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号',trigger: 'blur' }]">
|
|
|
+ <el-dialog
|
|
|
+ title="修改密码"
|
|
|
+ :visible.sync="passwrodVisiable"
|
|
|
+ :before-close="closePassWord"
|
|
|
+ width="400px"
|
|
|
+ >
|
|
|
+ <el-form :model="passwrodForm" ref="passwrodForm" :inline="true">
|
|
|
+ <el-form-item
|
|
|
+ label="手机号"
|
|
|
+ prop="phone"
|
|
|
+ label-width="80px"
|
|
|
+ :rules="[{ required: true, message: '手机号不能为空',trigger: 'blur'},{pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号',trigger: 'blur' }]"
|
|
|
+ >
|
|
|
<el-input v-model.trim="passwrodForm.phone"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="输入密码" prop="password" label-width="80px" :rules="[{ required: true, message: '密码不能为空',trigger: 'blur'},{pattern:/^[\w]{6,20}$/,message:'密码为6-20位',trigger: 'blur'}]">
|
|
|
+ <el-form-item
|
|
|
+ label="输入密码"
|
|
|
+ prop="password"
|
|
|
+ label-width="80px"
|
|
|
+ :rules="[{ required: true, message: '密码不能为空',trigger: 'blur'},{pattern:/^[\w]{6,20}$/,message:'密码为6-20位',trigger: 'blur'}]"
|
|
|
+ >
|
|
|
<el-input v-model.trim="passwrodForm.password"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="再次输入" prop="password2" label-width="80px" :rules="[{ required: true, message: '密码不能为空',trigger: 'blur'},{pattern:/^[\w]{6,20}$/,message:'密码为6-20位',trigger: 'blur'}]">
|
|
|
+ <el-form-item
|
|
|
+ label="再次输入"
|
|
|
+ prop="password2"
|
|
|
+ label-width="80px"
|
|
|
+ :rules="[{ required: true, message: '密码不能为空',trigger: 'blur'},{pattern:/^[\w]{6,20}$/,message:'密码为6-20位',trigger: 'blur'}]"
|
|
|
+ >
|
|
|
<el-input v-model.trim="passwrodForm.password2"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -190,7 +220,7 @@ import pagination from "@/components/Pagination/index";
|
|
|
import { teacherQueryPage } from "@/api/teacherManager";
|
|
|
import { employeeOperate } from "@/api/systemManage";
|
|
|
import { subjectListTree } from "@/api/specialSetting";
|
|
|
-import { getEmployeeOrgan,resetPassword2 } from "@/api/buildTeam";
|
|
|
+import { getEmployeeOrgan, resetPassword2 } from "@/api/buildTeam";
|
|
|
import { jobNature, teacherStatus } from "@/utils/searchArray";
|
|
|
import store from "@/store";
|
|
|
export default {
|
|
@@ -386,43 +416,53 @@ export default {
|
|
|
},
|
|
|
resetPassWrod(row) {
|
|
|
this.activatedRow = row;
|
|
|
- this.passwrodForm.phone = row.phone
|
|
|
+ this.passwrodForm.phone = row.phone;
|
|
|
this.passwrodVisiable = true;
|
|
|
},
|
|
|
- closePassWord(){
|
|
|
+ closePassWord() {
|
|
|
this.activatedRow = null;
|
|
|
- this.passwrodForm = {
|
|
|
+ this.passwrodForm = {
|
|
|
phone: "",
|
|
|
password: "",
|
|
|
password2: ""
|
|
|
- }
|
|
|
- this.$refs['passwrodForm'].resetFields()
|
|
|
+ };
|
|
|
+ this.$refs["passwrodForm"].resetFields();
|
|
|
this.passwrodVisiable = false;
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
- submitResetPassWord(){
|
|
|
- if (this.passwrodForm.password !== this.passwrodForm.password2) {
|
|
|
- this.$message.error('两次密码必须相同')
|
|
|
- return
|
|
|
+ submitResetPassWord() {
|
|
|
+ if (this.passwrodForm.password !== this.passwrodForm.password2) {
|
|
|
+ this.$message.error("两次密码必须相同");
|
|
|
+ return;
|
|
|
}
|
|
|
- this.$refs['passwrodForm'].validate(res => {
|
|
|
+ this.$refs["passwrodForm"].validate(res => {
|
|
|
if (res) {
|
|
|
// 发请求
|
|
|
- resetPassword2({ mobile: this.passwrodForm.phone, newPassword: this.passwrodForm.password,userId:this.activatedRow.id}).then(res => {
|
|
|
+ resetPassword2({
|
|
|
+ mobile: this.passwrodForm.phone,
|
|
|
+ newPassword: this.passwrodForm.password,
|
|
|
+ userId: this.activatedRow.id
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
// 修改成功
|
|
|
- this.$message.success('修改成功')
|
|
|
- this.closePassWord()
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.closePassWord();
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
- gotoAfterSchool(row){
|
|
|
- console.log(row)
|
|
|
- // 需要的参数 id
|
|
|
- this.$router.push({path:'/business/afterSchoolManager',query:{teacherName:row.realName ,activeIndex:'2'}})
|
|
|
+ gotoAfterSchool(row) {
|
|
|
+ // 需要的参数 id
|
|
|
+ this.$router.push({
|
|
|
+ path: "/business/afterSchoolManager",
|
|
|
+ query: { teacherName: row.realName, activeIndex: "2" }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ gotoOperating(row) {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/operateManager/operateStudent",
|
|
|
+ query: { teacherId: row.teacherId,operatingTag:'1' }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|