|
|
@@ -15,11 +15,11 @@
|
|
|
)
|
|
|
">
|
|
|
<span class="icon gradeI"></span>
|
|
|
- <span class="name">年级管理</span>
|
|
|
+ <span class="name">{{lang.GradeManagement}}</span>
|
|
|
</div>
|
|
|
<div class="nav active">
|
|
|
<span class="icon classI"></span>
|
|
|
- <span class="name">班级管理</span>
|
|
|
+ <span class="name">{{lang.ClassManagement}}</span>
|
|
|
</div>
|
|
|
<div class="nav" @click="
|
|
|
goTo(
|
|
|
@@ -34,7 +34,7 @@
|
|
|
)
|
|
|
">
|
|
|
<span class="icon studentI"></span>
|
|
|
- <span class="name">学生管理</span>
|
|
|
+ <span class="name">{{lang.StudentManagement}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="sm_right">
|
|
|
@@ -46,19 +46,19 @@
|
|
|
">
|
|
|
<div class="pb_head top">
|
|
|
<div style="display: flex; align-items: center">
|
|
|
- <span>班级管理</span>
|
|
|
+ <span>{{lang.ClassManagement}}</span>
|
|
|
</div>
|
|
|
<div style="border-radius: 4px">
|
|
|
- <el-button type="primary" class="bgColor student_button" @click="dialogVisible = true">添加班级</el-button>
|
|
|
+ <el-button type="primary" class="bgColor student_button" @click="dialogVisible = true">{{lang.AddClass}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="student_head">
|
|
|
<div class="student_search">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入班级名称" v-model="sClassName" clearable class="student_input">
|
|
|
+ <el-input :placeholder="lang.EnterClassName" v-model="sClassName" clearable class="student_input">
|
|
|
</el-input>
|
|
|
</span>
|
|
|
- <el-button type="primary" @click="searchClass" class="student_button">查询</el-button>
|
|
|
+ <el-button type="primary" @click="searchClass" class="student_button">{{lang.Search}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -67,22 +67,22 @@
|
|
|
<el-table v-if="ctype == 1" ref="table" :key="1" :data="tableData" border :height="tableHeight" :fit="true"
|
|
|
v-loading="isLoading" style="width: 100%; height: 60%" :header-cell-style="{ background: '#f1f1f1' }"
|
|
|
:row-class-name="tableRowClassName">
|
|
|
- <el-table-column prop="name" label="班级名称" align="center">
|
|
|
+ <el-table-column prop="name" :label="lang.ClassName" align="center">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="所属年级" align="center">
|
|
|
+ <el-table-column :label="lang.Grade" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
{{ getGrade(row.pid) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="pnum" label="人数" align="center">
|
|
|
+ <el-table-column prop="pnum" :label="lang.NumberofStudents" align="center">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="600px">
|
|
|
+ <el-table-column :label="lang.Operate" width="600px">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="classButtonBox">
|
|
|
- <el-button type="primary" size="small" @click="getStudent(scope.row.id)">查看学生</el-button>
|
|
|
- <el-button type="primary" size="small" @click="updateG(scope.row.pid, scope.row.id)">修改年级</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="getStudent(scope.row.id)">{{lang.ViewStudents}}</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="updateG(scope.row.pid, scope.row.id)">{{lang.EditGrade}}</el-button>
|
|
|
<el-button type="primary" size="small"
|
|
|
- @click="openUpdate(scope.row.id, scope.row.name)">修改名称</el-button>
|
|
|
+ @click="openUpdate(scope.row.id, scope.row.name)">{{lang.EditName}}</el-button>
|
|
|
<el-button class="de_button" type="primary" size="small" v-show="false" @click="
|
|
|
goTo(
|
|
|
'/studentEva?userid=' +
|
|
|
@@ -98,8 +98,8 @@
|
|
|
'&fathType=' +
|
|
|
'0'
|
|
|
)
|
|
|
- ">查看评价</el-button>
|
|
|
- <el-button type="primary" size="small" @click="deleteClass(scope.row.id)">删除</el-button>
|
|
|
+ ">{{lang.Viewreviews}}</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="deleteClass(scope.row.id)">{{lang.Delete}}</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -118,23 +118,23 @@
|
|
|
border-radius: 5px;
|
|
|
">
|
|
|
<div class="pb_head top">
|
|
|
- <span>查看学生</span>
|
|
|
+ <span>{{lang.ViewStudents}}</span>
|
|
|
<div style="border-radius: 4px">
|
|
|
- <el-button type="primary" class="bgColor student_button" @click="(ctype = 1), getClass()">返回</el-button>
|
|
|
+ <el-button type="primary" class="bgColor student_button" @click="(ctype = 1), getClass()">{{lang.Back}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="student_head">
|
|
|
<div class="head_left">
|
|
|
- <el-input v-model="sPhoneUser" class="student_input" placeholder="请输入用户名"></el-input>
|
|
|
- <el-select disabled v-model="cid" placeholder="请选择班级" class="student_input" @change="searchStudent">
|
|
|
- <el-option label="所有人" value=""></el-option>
|
|
|
+ <el-input v-model="sPhoneUser" class="student_input" :placeholder="lang.Enterusername"></el-input>
|
|
|
+ <el-select disabled v-model="cid" :placeholder="lang.SelectClass" class="student_input" @change="searchStudent">
|
|
|
+ <el-option :label="lang.AllPeople" value=""></el-option>
|
|
|
<el-option v-for="(item, index) in classJuri" :key="index" :label="item.name"
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
- <el-button type="primary" class="student_button" @click="searchStudent">查询</el-button>
|
|
|
+ <el-button type="primary" class="student_button" @click="searchStudent">{{lang.Search}}</el-button>
|
|
|
</div>
|
|
|
<div class="head_right">
|
|
|
- <el-button @click="addStudent" class="student_button">添加学生</el-button>
|
|
|
+ <el-button @click="addStudent" class="student_button">{{lang.AddStudent}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -143,7 +143,7 @@
|
|
|
<el-table v-if="ctype == 2" :key="2" ref="table2" :data="tableData2" border :height="tableHeight" :fit="true"
|
|
|
v-loading="isLoading" style="width: 100%" :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
|
|
|
:row-class-name="tableRowClassName">
|
|
|
- <el-table-column label="姓名" min-width="10" align="center">
|
|
|
+ <el-table-column :label="lang.Name" min-width="10" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="userImg">
|
|
|
<div class="tx">
|
|
|
@@ -164,22 +164,22 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="学生账号" min-width="15" align="center">
|
|
|
+ <el-table-column :label="lang.StudentAccount" min-width="15" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div>{{ scope.row.un ? scope.row.un : "" }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="classname2" label="班级" min-width="15" align="center">
|
|
|
+ <el-table-column prop="classname2" :label="lang.Class" min-width="15" align="center">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="250px">
|
|
|
+ <el-table-column :label="lang.Operate" width="250px">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="btnBox">
|
|
|
<el-button class="de_button" type="primary" size="small"
|
|
|
- @click="iniPassword(scope.row.userid)">初始化密码</el-button>
|
|
|
+ @click="iniPassword(scope.row.userid)">{{lang.InitialPassword}}</el-button>
|
|
|
<el-button class="de_button" type="primary" size="small"
|
|
|
- @click="updateStudentA(scope.row)">修改</el-button>
|
|
|
+ @click="updateStudentA(scope.row)">{{lang.Modified}}</el-button>
|
|
|
<el-button class="de_button" type="primary" size="small"
|
|
|
- @click="deleteClassStudent(scope.row.userid)">移除</el-button>
|
|
|
+ @click="deleteClassStudent(scope.row.userid)">{{lang.Remove}}</el-button>
|
|
|
<!-- <div class="delete">
|
|
|
<img src="../../../assets/remove.png" alt @click="deleteStudent(scope.row.userid, scope.row.state)" />
|
|
|
</div> -->
|
|
|
@@ -201,43 +201,43 @@
|
|
|
<div class="logoImg">
|
|
|
<img src="../../../assets/logo.png" alt />
|
|
|
</div>
|
|
|
- <div class="title_add_student">添加学生</div>
|
|
|
+ <div class="title_add_student">{{lang.AddStudent}}</div>
|
|
|
</div>
|
|
|
<el-form>
|
|
|
- <el-form-item label="学生姓名" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.StudentName" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生姓名" clearable v-model="sName" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.enterstuname" clearable v-model="sName" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生学号" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.StudentNumber" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生学号" clearable v-model="sId" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.EnterStudentNumber" clearable v-model="sId" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生手机号" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.StudentPhoneNumber" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生手机号" clearable v-model="sPhone" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.EnterStudentPhoneNumber" clearable v-model="sPhone" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生账号" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.StudentAccount" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生账号" clearable v-model="sMail" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.enterstuacc" clearable v-model="sMail" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="所属学校" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.AffiliatedSchool" :label-width="formLabelWidth">
|
|
|
<el-input disabled style="width: 300px" v-model="schoolName"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="班级" :label-width="formLabelWidth">
|
|
|
- <el-select v-model="cid" placeholder="请选择班级" disabled>
|
|
|
+ <el-form-item :label="lang.Class" :label-width="formLabelWidth">
|
|
|
+ <el-select v-model="cid" :placeholder="lang.SelectClass" disabled>
|
|
|
<el-option v-for="(item, index) in classJuri" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<div style="text-align: center; color: #adb3b7">
|
|
|
- 注:添加学生的账号密码为Coco1234
|
|
|
+ {{lang.NoteTdpfnsai}}
|
|
|
</div>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer flex">
|
|
|
- <el-button class="right" @click="insertStudent">确认</el-button>
|
|
|
+ <el-button class="right" @click="insertStudent">{{lang.confirm}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog :visible.sync="dialogVisibleUpdate" :append-to-body="true" width="700px" :before-close="handleClose"
|
|
|
@@ -246,110 +246,110 @@
|
|
|
<div class="logoImg">
|
|
|
<img src="../../../assets/logo.png" alt />
|
|
|
</div>
|
|
|
- <div class="title_add_student">修改学生</div>
|
|
|
+ <div class="title_add_student">{{lang.EditStudent}}</div>
|
|
|
</div>
|
|
|
<el-form>
|
|
|
- <el-form-item label="学生名称" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.StudentName" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生姓名" clearable v-model="userinfo.name" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.enterstuname" clearable v-model="userinfo.name" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生学号" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.StudentNumber" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生学号" clearable v-model="userinfo.studentid" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.EnterStudentNumber" clearable v-model="userinfo.studentid" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生手机号" :label-width="formLabelWidth">
|
|
|
+ <el-form-item label="lang.StudentPhoneNumber" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生手机号" clearable v-model="userinfo.phonenumber" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.EnterStudentPhoneNumber" clearable v-model="userinfo.phonenumber" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="学生账号" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.StudentAccount" :label-width="formLabelWidth">
|
|
|
<span>
|
|
|
- <el-input placeholder="请输入学生账号" clearable v-model="userinfo.un" class="add_input"></el-input>
|
|
|
+ <el-input :placeholder="lang.enterstuacc" clearable v-model="userinfo.un" class="add_input"></el-input>
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="所属学校" :label-width="formLabelWidth">
|
|
|
+ <el-form-item :label="lang.AffiliatedSchool" :label-width="formLabelWidth">
|
|
|
<el-input disabled style="width: 300px" v-model="schoolName"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="班级" :label-width="formLabelWidth">
|
|
|
- <el-select multiple collapse-tags v-model="userinfo.classid" placeholder="请选择班级">
|
|
|
+ <el-form-item :label="lang.Class" :label-width="formLabelWidth">
|
|
|
+ <el-select multiple collapse-tags v-model="userinfo.classid" :placeholder="lang.SelectClass">
|
|
|
<el-option v-for="(item, index) in classJuri" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<div style="text-align: center; color: #adb3b7">
|
|
|
- 注:添加学生的账号密码为Coco1234
|
|
|
+ {{lang.NoteTdpfnsai}}
|
|
|
</div>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer flex">
|
|
|
- <el-button class="right" @click="updateStudent">修改</el-button>
|
|
|
+ <el-button class="right" @click="updateStudent">{{lang.Modified}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="添加班级" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
|
+ <el-dialog :title="lang.AddClass" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
|
class="dialog_diy">
|
|
|
<el-form>
|
|
|
- <el-form-item label="班级名称" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="className" auto-complete="off" placeholder="请输入班级..."></el-input>
|
|
|
+ <el-form-item :label="lang.ClassName" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="className" auto-complete="off" :placeholder="lang.Enterclass"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="insertClass">确 定</el-button>
|
|
|
+ <el-button @click="dialogVisible = false">{{lang.Cancel}}</el-button>
|
|
|
+ <el-button type="primary" @click="insertClass">{{lang.Confirm}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="修改年级" :visible.sync="dialogVisibleGrade" :append-to-body="true" width="25%"
|
|
|
+ <el-dialog :title="lang.EditGrade" :visible.sync="dialogVisibleGrade" :append-to-body="true" width="25%"
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<el-form>
|
|
|
- <el-form-item label="选择年级" :label-width="formLabelWidth">
|
|
|
- <el-select v-model="gid" placeholder="请选择班级" class="student_input" clearable>
|
|
|
+ <el-form-item :label="lang.SelectGrade" :label-width="formLabelWidth">
|
|
|
+ <el-select v-model="gid" :placeholder="lang.SelectClass" class="student_input" clearable>
|
|
|
<el-option v-for="(item, index) in grade" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleGrade = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="updateGrade">确 定</el-button>
|
|
|
+ <el-button @click="dialogVisibleGrade = false">{{lang.Cancel}}</el-button>
|
|
|
+ <el-button type="primary" @click="updateGrade">{{lang.Confirm}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="修改班级" :visible.sync="dialogVisible1" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
|
+ <el-dialog :title="lang.EditClass" :visible.sync="dialogVisible1" :append-to-body="true" width="25%" :before-close="handleClose"
|
|
|
class="dialog_diy">
|
|
|
<el-form>
|
|
|
- <el-form-item label="班级名称" :label-width="formLabelWidth">
|
|
|
- <el-input v-model="className1" auto-complete="off" placeholder="请输入班级..."></el-input>
|
|
|
+ <el-form-item :label="lang.ClassName" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="className1" auto-complete="off" :placeholder="lang.Enterclass"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible1 = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="updateClass">确 定</el-button>
|
|
|
+ <el-button @click="dialogVisible1 = false">{{lang.Cancel}}</el-button>
|
|
|
+ <el-button type="primary" @click="updateClass">{{lang.Confirm}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="添加学生" :visible.sync="dialogVisibleMember" :append-to-body="true" width="500px" height="80%"
|
|
|
+ <el-dialog :title="lang.AddStudent" :visible.sync="dialogVisibleMember" :append-to-body="true" width="500px" height="80%"
|
|
|
:before-close="handleClose" class="addNewPP">
|
|
|
<div class="people">
|
|
|
<div class="people_top">
|
|
|
<div class="people_top_right">
|
|
|
<div class="people_search">
|
|
|
- <el-input placeholder="搜索学生姓名" v-model="searchTN" @keyup.enter.native="getClassStudent"></el-input>
|
|
|
+ <el-input :placeholder="lang.Searchstudentname" v-model="searchTN" @keyup.enter.native="getClassStudent"></el-input>
|
|
|
<div class="search_img" @click="getClassStudent">
|
|
|
<img src="../../../assets/icon/search.png" alt />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="people_nav">选择成员</div>
|
|
|
+ <div class="people_nav">{{lang.SelectMembers}}</div>
|
|
|
</div>
|
|
|
<div class="t_j_box" style="
|
|
|
padding: 20px 0 0 25px;
|
|
|
width: calc(100% - 55px);
|
|
|
margin-left: 25px;
|
|
|
">
|
|
|
- <span>姓名</span>
|
|
|
- <span>账号</span>
|
|
|
+ <span>{{lang.Name}}</span>
|
|
|
+ <span>{{lang.Account}}</span>
|
|
|
</div>
|
|
|
<el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length" v-loading="isLoading2">
|
|
|
<el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
|
|
|
<div class="t_j_box">
|
|
|
- <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
|
|
|
- <span>{{ item.name ? item.name : "暂无姓名" }}</span>
|
|
|
+ <el-tooltip placement="top" :content="item.name ? item.name : lang.Noname">
|
|
|
+ <span>{{ item.name ? item.name : lang.Noname }}</span>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip placement="top" :content="item.username">
|
|
|
<span>{{ item.username }}</span>
|
|
|
@@ -357,7 +357,7 @@
|
|
|
</div>
|
|
|
</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
- <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
|
|
|
+ <div style="text-align: center; margin-top: 10px" v-else>{{lang.Nodata}}</div>
|
|
|
</div>
|
|
|
<div style="margin-top: 10px">
|
|
|
<el-pagination background layout="prev, pager, next" :page-size="pageSize3" :total="total3"
|
|
|
@@ -365,15 +365,15 @@
|
|
|
@current-change="handleCurrentChange3"></el-pagination>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleMember = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="addClassStudent">确定</el-button>
|
|
|
+ <el-button @click="dialogVisibleMember = false">{{lang.Cancel}}</el-button>
|
|
|
+ <el-button type="primary" @click="addClassStudent">{{lang.Confirm}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import TaskListHeader from "gantt-elastic/src/components/TaskList/TaskListHeader.vue";
|
|
|
+// import TaskListHeader from "gantt-elastic/src/components/TaskList/TaskListHeader.vue";
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
@@ -441,7 +441,7 @@ export default {
|
|
|
name = element.name;
|
|
|
}
|
|
|
});
|
|
|
- return name ? name : "暂无";
|
|
|
+ return name ? name : lang.None;
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
@@ -519,9 +519,9 @@ export default {
|
|
|
this.dialogVisibleGrade = true;
|
|
|
},
|
|
|
updateGrade() {
|
|
|
- this.$confirm("确定修改吗?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ this.$confirm(lang.makechanges, lang.tip, {
|
|
|
+ confirmButtonText: lang.Confirm,
|
|
|
+ cancelButtonText: lang.Cancel,
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
@@ -562,12 +562,12 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.data[0] && res.data[0][0].classname == 1) {
|
|
|
this.$message({
|
|
|
- message: "不能与其他班级名称相同!",
|
|
|
+ message: lang.Cannotsameothercla,
|
|
|
type: "error",
|
|
|
});
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- message: "新增成功",
|
|
|
+ message: lang.AddSuccessful,
|
|
|
type: "success",
|
|
|
});
|
|
|
this.dialogVisible = false;
|
|
|
@@ -578,7 +578,7 @@ export default {
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.$message({
|
|
|
- message: "新增失败",
|
|
|
+ message: lang.Additionfailed,
|
|
|
type: "error",
|
|
|
});
|
|
|
console.error(err);
|
|
|
@@ -596,12 +596,12 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.data[0] && res.data[0][0].classname == 1) {
|
|
|
this.$message({
|
|
|
- message: "不能与其他班级名称相同!",
|
|
|
+ message: lang.Cannotsameothercla,
|
|
|
type: "error",
|
|
|
});
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- message: "修改成功",
|
|
|
+ message: lang.Editsuccessful,
|
|
|
type: "success",
|
|
|
});
|
|
|
this.dialogVisible1 = false;
|
|
|
@@ -612,7 +612,7 @@ export default {
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.$message({
|
|
|
- message: "修改失败",
|
|
|
+ message: lang.Modificationfailed,
|
|
|
type: "error",
|
|
|
});
|
|
|
console.error(err);
|
|
|
@@ -646,9 +646,9 @@ export default {
|
|
|
id: id,
|
|
|
};
|
|
|
if (this.time()) {
|
|
|
- this.$confirm("确定删除此班级吗?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ this.$confirm(lang.Aystdtc, lang.tip, {
|
|
|
+ confirmButtonText: lang.Confirm,
|
|
|
+ cancelButtonText: lang.Cancel,
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
@@ -656,7 +656,7 @@ export default {
|
|
|
.get(this.$store.state.api + "deleteClass", params)
|
|
|
.then((res) => {
|
|
|
this.$message({
|
|
|
- message: "删除成功",
|
|
|
+ message: lang.Successfullydelete,
|
|
|
type: "success",
|
|
|
});
|
|
|
if (this.page != 1 && this.tableData.length == 1) {
|
|
|
@@ -665,7 +665,7 @@ export default {
|
|
|
this.getClass();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- this.$message.error("删除失败");
|
|
|
+ this.$message.error(lang.Deletefailed);
|
|
|
console.error(err);
|
|
|
});
|
|
|
})
|
|
|
@@ -683,18 +683,18 @@ export default {
|
|
|
//新增学生
|
|
|
insertStudent() {
|
|
|
if (this.sName === "") {
|
|
|
- this.$message.error("学生姓名不能为空");
|
|
|
+ this.$message.error(lang.Stucannotempty);
|
|
|
return;
|
|
|
} else if (
|
|
|
this.sPhone != "" &&
|
|
|
!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.sPhone)
|
|
|
) {
|
|
|
- this.$message.error("手机号格式不正确");
|
|
|
+ this.$message.error(lang.phonenumberincorrect);
|
|
|
return;
|
|
|
} else if (
|
|
|
!/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(this.sMail)
|
|
|
) {
|
|
|
- this.$message.error("邮箱格式不正确");
|
|
|
+ this.$message.error(lang.Emailformatincorrect);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -704,7 +704,7 @@ export default {
|
|
|
.get(this.$store.state.api + "findMail", params)
|
|
|
.then((res) => {
|
|
|
if (res.data[0].length > 0) {
|
|
|
- this.$message.error("此学生账号已被注册");
|
|
|
+ this.$message.error(lang.accalreadyregistered);
|
|
|
} else {
|
|
|
this.add_Student();
|
|
|
}
|
|
|
@@ -751,7 +751,7 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
this.$message({
|
|
|
- message: "新增成功",
|
|
|
+ message: lang.AddSuccessful,
|
|
|
type: "success",
|
|
|
});
|
|
|
this.dialogVisibleAddStudent = false;
|
|
|
@@ -764,7 +764,7 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.isLoading = false;
|
|
|
this.$message({
|
|
|
- message: "新增失败",
|
|
|
+ message: lang.Additionfailed,
|
|
|
type: "error",
|
|
|
});
|
|
|
console.error(err);
|
|
|
@@ -778,23 +778,23 @@ export default {
|
|
|
},
|
|
|
updateStudent() {
|
|
|
if (this.userinfo.name === "") {
|
|
|
- this.$message.error("学生姓名不能为空");
|
|
|
+ this.$message.error(lang.Stucannotempty);
|
|
|
return;
|
|
|
} else if (!this.userinfo.classid) {
|
|
|
- this.$message.error("请为学生选择班级");
|
|
|
+ this.$message.error(lang.chooseclastudents);
|
|
|
return;
|
|
|
} else if (
|
|
|
this.userinfo.phonenumber &&
|
|
|
!/^[1][3,4,5,7,8][0-9]{9}$/.test(this.userinfo.phonenumber)
|
|
|
) {
|
|
|
- this.$message.error("手机号格式不正确");
|
|
|
+ this.$message.error(lang.phonenumberincorrect);
|
|
|
return;
|
|
|
} else if (
|
|
|
!/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(
|
|
|
this.userinfo.un
|
|
|
)
|
|
|
) {
|
|
|
- this.$message.error("邮箱格式不正确");
|
|
|
+ this.$message.error(lang.Emailformatincorrect);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -805,7 +805,7 @@ export default {
|
|
|
.get(this.$store.state.api + "findMail", params)
|
|
|
.then((res) => {
|
|
|
if (res.data[0].length > 0) {
|
|
|
- this.$message.error("此学生账号已被注册");
|
|
|
+ this.$message.error(lang.accalreadyregistered);
|
|
|
} else {
|
|
|
this.update_Student();
|
|
|
}
|
|
|
@@ -833,7 +833,7 @@ export default {
|
|
|
.post(this.$store.state.api + "updateStudentInfo", params)
|
|
|
.then((res) => {
|
|
|
this.$message({
|
|
|
- message: "修改成功",
|
|
|
+ message: lang.Editsuccessful,
|
|
|
type: "success",
|
|
|
});
|
|
|
this.dialogVisibleUpdate = false;
|
|
|
@@ -842,7 +842,7 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.isLoading = false;
|
|
|
this.$message({
|
|
|
- message: "修改失败",
|
|
|
+ message: lang.Modificationfailed,
|
|
|
type: "error",
|
|
|
});
|
|
|
console.error(err);
|
|
|
@@ -850,9 +850,9 @@ export default {
|
|
|
},
|
|
|
deleteClassStudent(id) {
|
|
|
let params = [{ uid: id, cid: this.cid }];
|
|
|
- this.$confirm("确定移除此学生在本班级吗?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ this.$confirm(lang.removestu, lang.tip, {
|
|
|
+ confirmButtonText: lang.Confirm,
|
|
|
+ cancelButtonText: lang.Cancel,
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
@@ -860,13 +860,13 @@ export default {
|
|
|
.post(this.$store.state.api + "deleteClassStudent", params)
|
|
|
.then((res) => {
|
|
|
this.$message({
|
|
|
- message: "操作成功",
|
|
|
+ message: lang.OperateSuccessful,
|
|
|
type: "success",
|
|
|
});
|
|
|
this.getStudent(this.cid);
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
- this.$message.error("操作失败");
|
|
|
+ this.$message.error(lang.operationfailed);
|
|
|
console.error(err);
|
|
|
});
|
|
|
})
|
|
|
@@ -958,7 +958,7 @@ export default {
|
|
|
},
|
|
|
addClassStudent() {
|
|
|
if (!this.checkboxList3.length) {
|
|
|
- this.$message.error("请选择要添加班级的学生");
|
|
|
+ this.$message.error(lang.selectstuaddcla);
|
|
|
return;
|
|
|
}
|
|
|
let params = [
|
|
|
@@ -979,9 +979,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
iniPassword(id) {
|
|
|
- this.$confirm("确定" + "初始化" + "此学生的密码吗?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ this.$confirm(lang.Aystrtp, lang.tip, {
|
|
|
+ confirmButtonText: lang.Confirm,
|
|
|
+ cancelButtonText: lang.Cancel,
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
@@ -995,7 +995,7 @@ export default {
|
|
|
.post(this.$store.state.api + "iniPassword", params)
|
|
|
.then((res) => {
|
|
|
this.$message({
|
|
|
- message: "初始化密码成功!",
|
|
|
+ message: lang.Resetsuccessful,
|
|
|
type: "success",
|
|
|
});
|
|
|
})
|