class.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517
  1. <template>
  2. <div class="pb_content" style="background: unset">
  3. <div class="sm_box">
  4. <div class="sm_left">
  5. <div class="nav" @click="
  6. goTo(
  7. '/grade?userid=' +
  8. userid +
  9. '&oid=' +
  10. oid +
  11. '&org=' +
  12. org +
  13. '&role=' +
  14. role
  15. )
  16. ">
  17. <span class="icon gradeI"></span>
  18. <span class="name">年级管理</span>
  19. </div>
  20. <div class="nav active">
  21. <span class="icon classI"></span>
  22. <span class="name">班级管理</span>
  23. </div>
  24. <div class="nav" @click="
  25. goTo(
  26. '/student?userid=' +
  27. userid +
  28. '&oid=' +
  29. oid +
  30. '&org=' +
  31. org +
  32. '&role=' +
  33. role
  34. )
  35. ">
  36. <span class="icon studentI"></span>
  37. <span class="name">学生管理</span>
  38. </div>
  39. </div>
  40. <div class="sm_right">
  41. <div v-if="ctype == 1" class="pb_content_body" style="
  42. background: #fff;
  43. padding: 0px 25px;
  44. box-sizing: border-box;
  45. border-radius: 5px;
  46. ">
  47. <div class="pb_head top">
  48. <div style="display: flex; align-items: center">
  49. <span>班级管理</span>
  50. </div>
  51. <div style="border-radius: 4px">
  52. <el-button type="primary" class="bgColor student_button" @click="dialogVisible = true">添加班级</el-button>
  53. </div>
  54. </div>
  55. <div class="student_head">
  56. <div class="student_search">
  57. <span>
  58. <el-input placeholder="请输入班级名称" v-model="sClassName" clearable class="student_input">
  59. </el-input>
  60. </span>
  61. <el-button type="primary" @click="searchClass" class="student_button">查询</el-button>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="pb_content_body" v-if="ctype == 1">
  66. <div class="student_table">
  67. <el-table v-if="ctype == 1" ref="table" :key="1" :data="tableData" border :height="tableHeight" :fit="true"
  68. v-loading="isLoading" style="width: 100%; height: 60%" :header-cell-style="{ background: '#f1f1f1' }"
  69. :row-class-name="tableRowClassName">
  70. <el-table-column prop="name" label="班级名称" align="center">
  71. </el-table-column>
  72. <el-table-column label="所属年级" align="center">
  73. <template slot-scope="{ row }">
  74. {{ getGrade(row.pid) }}
  75. </template>
  76. </el-table-column>
  77. <el-table-column prop="pnum" label="人数" align="center">
  78. </el-table-column>
  79. <el-table-column label="操作" width="600px">
  80. <template slot-scope="scope">
  81. <div class="classButtonBox">
  82. <el-button type="primary" size="small" @click="getStudent(scope.row.id)">查看学生</el-button>
  83. <el-button type="primary" size="small" @click="updateG(scope.row.pid, scope.row.id)">修改年级</el-button>
  84. <el-button type="primary" size="small"
  85. @click="openUpdate(scope.row.id, scope.row.name)">修改名称</el-button>
  86. <el-button class="de_button" type="primary" size="small" @click="
  87. goTo(
  88. '/studentEva?userid=' +
  89. userid +
  90. '&oid=' +
  91. oid +
  92. '&org=' +
  93. org +
  94. '&cid=' +
  95. scope.row.id +
  96. '&role=' +
  97. role
  98. )
  99. ">查看评价</el-button>
  100. <el-button type="primary" size="small" @click="deleteClass(scope.row.id)">删除</el-button>
  101. </div>
  102. </template>
  103. </el-table-column>
  104. </el-table>
  105. </div>
  106. <div class="student_page">
  107. <el-pagination background layout="prev, pager, next" :page-size="10" :total="total" v-if="page"
  108. @current-change="handleCurrentChange">
  109. </el-pagination>
  110. </div>
  111. </div>
  112. <div v-if="ctype == 2" class="pb_content_body" style="
  113. background: #fff;
  114. padding: 0px 25px;
  115. box-sizing: border-box;
  116. border-radius: 5px;
  117. ">
  118. <div class="pb_head top">
  119. <span>查看学生</span>
  120. <div style="border-radius: 4px">
  121. <el-button type="primary" class="bgColor student_button" @click="(ctype = 1), getClass()">返回</el-button>
  122. </div>
  123. </div>
  124. <div class="student_head">
  125. <div class="head_left">
  126. <el-input v-model="sPhoneUser" class="student_input" placeholder="请输入用户名"></el-input>
  127. <el-select disabled v-model="cid" placeholder="请选择班级" class="student_input" @change="searchStudent">
  128. <el-option label="所有人" value=""></el-option>
  129. <el-option v-for="(item, index) in classJuri" :key="index" :label="item.name"
  130. :value="item.id"></el-option>
  131. </el-select>
  132. <el-button type="primary" class="student_button" @click="searchStudent">查询</el-button>
  133. </div>
  134. <div class="head_right">
  135. <el-button @click="addStudent" class="student_button">添加学生</el-button>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="pb_content_body" v-if="ctype == 2">
  140. <div class="student_table">
  141. <el-table v-if="ctype == 2" :key="2" ref="table2" :data="tableData2" border :height="tableHeight" :fit="true"
  142. v-loading="isLoading" style="width: 100%" :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
  143. :row-class-name="tableRowClassName">
  144. <el-table-column label="姓名" min-width="10" align="center">
  145. <template slot-scope="scope">
  146. <div class="userImg">
  147. <div class="tx">
  148. <img :src="scope.row.headportrait != null
  149. ? scope.row.headportrait
  150. : tx
  151. " alt />
  152. </div>
  153. <div style="
  154. width: 150px;
  155. text-align: left;
  156. white-space: nowrap;
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. ">
  160. {{ scope.row.name }}
  161. </div>
  162. </div>
  163. </template>
  164. </el-table-column>
  165. <el-table-column label="学生账号" min-width="15" align="center">
  166. <template slot-scope="scope">
  167. <div>{{ scope.row.un ? scope.row.un : "" }}</div>
  168. </template>
  169. </el-table-column>
  170. <el-table-column prop="classname2" label="班级" min-width="15" align="center">
  171. </el-table-column>
  172. <el-table-column label="操作" width="250px">
  173. <template slot-scope="scope">
  174. <div class="btnBox">
  175. <el-button class="de_button" type="primary" size="small"
  176. @click="iniPassword(scope.row.userid)">初始化密码</el-button>
  177. <el-button class="de_button" type="primary" size="small"
  178. @click="updateStudentA(scope.row)">修改</el-button>
  179. <el-button class="de_button" type="primary" size="small"
  180. @click="deleteClassStudent(scope.row.userid)">移除</el-button>
  181. <!-- <div class="delete">
  182. <img src="../../../assets/remove.png" alt @click="deleteStudent(scope.row.userid, scope.row.state)" />
  183. </div> -->
  184. </div>
  185. </template>
  186. </el-table-column>
  187. </el-table>
  188. </div>
  189. <div class="student_page">
  190. <el-pagination background layout="prev, pager, next" :page-size="10" :total="total2" v-if="page2"
  191. @current-change="handleCurrentChange2"></el-pagination>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. <el-dialog :visible.sync="dialogVisibleAddStudent" :append-to-body="true" width="700px" :before-close="handleClose"
  197. class="add_student">
  198. <div slot="title" class="header-title">
  199. <div class="logoImg">
  200. <img src="../../../assets/logo.png" alt />
  201. </div>
  202. <div class="title_add_student">添加学生</div>
  203. </div>
  204. <el-form>
  205. <el-form-item label="学生姓名" :label-width="formLabelWidth">
  206. <span>
  207. <el-input placeholder="请输入学生姓名" clearable v-model="sName" class="add_input"></el-input>
  208. </span>
  209. </el-form-item>
  210. <el-form-item label="学生学号" :label-width="formLabelWidth">
  211. <span>
  212. <el-input placeholder="请输入学生学号" clearable v-model="sId" class="add_input"></el-input>
  213. </span>
  214. </el-form-item>
  215. <el-form-item label="学生手机号" :label-width="formLabelWidth">
  216. <span>
  217. <el-input placeholder="请输入学生手机号" clearable v-model="sPhone" class="add_input"></el-input>
  218. </span>
  219. </el-form-item>
  220. <el-form-item label="学生账号" :label-width="formLabelWidth">
  221. <span>
  222. <el-input placeholder="请输入学生账号" clearable v-model="sMail" class="add_input"></el-input>
  223. </span>
  224. </el-form-item>
  225. <el-form-item label="所属学校" :label-width="formLabelWidth">
  226. <el-input disabled style="width: 300px" v-model="schoolName"></el-input>
  227. </el-form-item>
  228. <el-form-item label="班级" :label-width="formLabelWidth">
  229. <el-select v-model="cid" placeholder="请选择班级" disabled>
  230. <el-option v-for="(item, index) in classJuri" :key="index" :label="item.name" :value="item.id"></el-option>
  231. </el-select>
  232. </el-form-item>
  233. <div style="text-align: center; color: #adb3b7">
  234. 注:添加学生的账号密码为123456
  235. </div>
  236. </el-form>
  237. <span slot="footer" class="dialog-footer flex">
  238. <el-button class="right" @click="insertStudent">确认</el-button>
  239. </span>
  240. </el-dialog>
  241. <el-dialog :visible.sync="dialogVisibleUpdate" :append-to-body="true" width="700px" :before-close="handleClose"
  242. class="add_student">
  243. <div slot="title" class="header-title">
  244. <div class="logoImg">
  245. <img src="../../../assets/logo.png" alt />
  246. </div>
  247. <div class="title_add_student">修改学生</div>
  248. </div>
  249. <el-form>
  250. <el-form-item label="学生名称" :label-width="formLabelWidth">
  251. <span>
  252. <el-input placeholder="请输入学生姓名" clearable v-model="userinfo.name" class="add_input"></el-input>
  253. </span>
  254. </el-form-item>
  255. <el-form-item label="学生学号" :label-width="formLabelWidth">
  256. <span>
  257. <el-input placeholder="请输入学生学号" clearable v-model="userinfo.studentid" class="add_input"></el-input>
  258. </span>
  259. </el-form-item>
  260. <el-form-item label="学生手机号" :label-width="formLabelWidth">
  261. <span>
  262. <el-input placeholder="请输入学生手机号" clearable v-model="userinfo.phonenumber" class="add_input"></el-input>
  263. </span>
  264. </el-form-item>
  265. <el-form-item label="学生账号" :label-width="formLabelWidth">
  266. <span>
  267. <el-input placeholder="请输入学生账号" clearable v-model="userinfo.un" class="add_input"></el-input>
  268. </span>
  269. </el-form-item>
  270. <el-form-item label="所属学校" :label-width="formLabelWidth">
  271. <el-input disabled style="width: 300px" v-model="schoolName"></el-input>
  272. </el-form-item>
  273. <el-form-item label="班级" :label-width="formLabelWidth">
  274. <el-select multiple collapse-tags v-model="userinfo.classid" placeholder="请选择班级">
  275. <el-option v-for="(item, index) in classJuri" :key="index" :label="item.name" :value="item.id"></el-option>
  276. </el-select>
  277. </el-form-item>
  278. <div style="text-align: center; color: #adb3b7">
  279. 注:添加学生的账号密码为123456
  280. </div>
  281. </el-form>
  282. <span slot="footer" class="dialog-footer flex">
  283. <el-button class="right" @click="updateStudent">修改</el-button>
  284. </span>
  285. </el-dialog>
  286. <el-dialog title="添加班级" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  287. class="dialog_diy">
  288. <el-form>
  289. <el-form-item label="班级名称" :label-width="formLabelWidth">
  290. <el-input v-model="className" auto-complete="off" placeholder="请输入班级..."></el-input>
  291. </el-form-item>
  292. </el-form>
  293. <span slot="footer" class="dialog-footer">
  294. <el-button @click="dialogVisible = false">取 消</el-button>
  295. <el-button type="primary" @click="insertClass">确 定</el-button>
  296. </span>
  297. </el-dialog>
  298. <el-dialog title="修改年级" :visible.sync="dialogVisibleGrade" :append-to-body="true" width="25%"
  299. :before-close="handleClose" class="dialog_diy">
  300. <el-form>
  301. <el-form-item label="选择年级" :label-width="formLabelWidth">
  302. <el-select v-model="gid" placeholder="请选择班级" class="student_input" clearable>
  303. <el-option v-for="(item, index) in grade" :key="index" :label="item.name" :value="item.id"></el-option>
  304. </el-select>
  305. </el-form-item>
  306. </el-form>
  307. <span slot="footer" class="dialog-footer">
  308. <el-button @click="dialogVisibleGrade = false">取 消</el-button>
  309. <el-button type="primary" @click="updateGrade">确 定</el-button>
  310. </span>
  311. </el-dialog>
  312. <el-dialog title="修改班级" :visible.sync="dialogVisible1" :append-to-body="true" width="25%" :before-close="handleClose"
  313. class="dialog_diy">
  314. <el-form>
  315. <el-form-item label="班级名称" :label-width="formLabelWidth">
  316. <el-input v-model="className1" auto-complete="off" placeholder="请输入班级..."></el-input>
  317. </el-form-item>
  318. </el-form>
  319. <span slot="footer" class="dialog-footer">
  320. <el-button @click="dialogVisible1 = false">取 消</el-button>
  321. <el-button type="primary" @click="updateClass">确 定</el-button>
  322. </span>
  323. </el-dialog>
  324. <el-dialog title="添加学生" :visible.sync="dialogVisibleMember" :append-to-body="true" width="500px" height="80%"
  325. :before-close="handleClose" class="addNewPP">
  326. <div class="people">
  327. <div class="people_top">
  328. <div class="people_top_right">
  329. <div class="people_search">
  330. <el-input placeholder="搜索学生姓名" v-model="searchTN" @keyup.enter.native="getClassStudent"></el-input>
  331. <div class="search_img" @click="getClassStudent">
  332. <img src="../../../assets/icon/search.png" alt />
  333. </div>
  334. </div>
  335. </div>
  336. <div class="people_nav">选择成员</div>
  337. </div>
  338. <div class="t_j_box" style="
  339. padding: 20px 0 0 25px;
  340. width: calc(100% - 55px);
  341. margin-left: 25px;
  342. ">
  343. <span>姓名</span>
  344. <span>账号</span>
  345. </div>
  346. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length" v-loading="isLoading2">
  347. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  348. <div class="t_j_box">
  349. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  350. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  351. </el-tooltip>
  352. <el-tooltip placement="top" :content="item.username">
  353. <span>{{ item.username }}</span>
  354. </el-tooltip>
  355. </div>
  356. </el-checkbox>
  357. </el-checkbox-group>
  358. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  359. </div>
  360. <div style="margin-top: 10px">
  361. <el-pagination background layout="prev, pager, next" :page-size="pageSize3" :total="total3"
  362. v-if="page3 && teacherJuri.length" style="padding-bottom: 20px"
  363. @current-change="handleCurrentChange3"></el-pagination>
  364. </div>
  365. <span slot="footer" class="dialog-footer">
  366. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  367. <el-button type="primary" @click="addClassStudent">确定</el-button>
  368. </span>
  369. </el-dialog>
  370. </div>
  371. </template>
  372. <script>
  373. import TaskListHeader from "gantt-elastic/src/components/TaskList/TaskListHeader.vue";
  374. export default {
  375. data() {
  376. return {
  377. tableHeight: "500px",
  378. isLoading: false,
  379. formLabelWidth: "100px",
  380. sClassName: "",
  381. className: "",
  382. className1: "",
  383. classid: "",
  384. dialogVisible: false,
  385. dialogVisible1: false,
  386. dialogVisibleUpdate: false,
  387. dialogVisibleAddStudent: false,
  388. tableData: [],
  389. page: 1,
  390. total: 0,
  391. tableData2: [],
  392. page2: 1,
  393. total2: 0,
  394. userid: this.$route.query.userid,
  395. org: this.$route.query.org,
  396. oid: this.$route.query.oid,
  397. role: this.$route.query.role,
  398. cid: "",
  399. ctype: 1,
  400. sName: "",
  401. sPhone: "",
  402. sId: "",
  403. schoolName: "",
  404. sByClass: "",
  405. sMail: "",
  406. classJuri: [],
  407. userinfo: {},
  408. userinfoA: {},
  409. sPhoneUser: "",
  410. tx: require("../../../assets/avatar.png"),
  411. dialogVisibleMember: false,
  412. checkboxList3: [],
  413. teacherJuri: [],
  414. pageSize3: 10,
  415. total3: 0,
  416. page3: 1,
  417. isLoading2: false,
  418. searchTN: "",
  419. grade: [],
  420. gid: "",
  421. dialogVisibleGrade: false,
  422. };
  423. },
  424. created() {
  425. this.page = 1;
  426. this.getClass();
  427. this.getClass2();
  428. this.selectGrage();
  429. this.getSchoolName();
  430. },
  431. computed: {
  432. getGrade() {
  433. return function (gid) {
  434. let name = "";
  435. this.grade.forEach((element) => {
  436. if (element.id == gid) {
  437. name = element.name;
  438. }
  439. });
  440. return name ? name : "暂无";
  441. };
  442. },
  443. },
  444. mounted() {
  445. this.$nextTick(function () {
  446. this.tableHeight =
  447. window.innerHeight - this.$refs.table.$el.offsetTop - 200;
  448. if (this.tableHeight <= 530) {
  449. this.tableHeight = 530;
  450. }
  451. // 监听窗口大小变化
  452. let self = this;
  453. window.onresize = function () {
  454. self.tableHeight =
  455. window.innerHeight - self.$refs.table.$el.offsetTop - 200;
  456. if (self.tableHeight <= 530) {
  457. self.tableHeight = 530;
  458. }
  459. };
  460. });
  461. },
  462. methods: {
  463. goTo(path) {
  464. this.$router.push(path);
  465. },
  466. //获取班级列表
  467. selectGrage() {
  468. let params = {
  469. oid: this.oid,
  470. };
  471. this.ajax
  472. .get(this.$store.state.api + "selectGrageBySchool", params)
  473. .then((res) => {
  474. this.grade = res.data[0];
  475. })
  476. .catch((err) => {
  477. console.error(err);
  478. });
  479. },
  480. tableRowClassName({ row, rowIndex }) {
  481. if ((rowIndex + 1) % 2 === 0) {
  482. return "even_row";
  483. } else {
  484. return "";
  485. }
  486. },
  487. handleCurrentChange(val) {
  488. this.page = val;
  489. this.getClass();
  490. },
  491. handleClose(done) {
  492. done();
  493. },
  494. time() {
  495. if (!this.now) {
  496. this.now = new Date().getTime();
  497. return true;
  498. } else {
  499. let time = new Date().getTime();
  500. if (time - this.now > 3000) {
  501. this.now = time;
  502. return true;
  503. } else {
  504. return false;
  505. }
  506. }
  507. },
  508. searchClass() {
  509. this.page = 1;
  510. this.getClass();
  511. },
  512. updateG(gid, id) {
  513. this.gid = gid;
  514. this.classid = id;
  515. this.dialogVisibleGrade = true;
  516. },
  517. updateGrade() {
  518. this.$confirm("确定修改吗?", "提示", {
  519. confirmButtonText: "确定",
  520. cancelButtonText: "取消",
  521. type: "warning",
  522. })
  523. .then(() => {
  524. let params = [
  525. {
  526. cid: this.gid,
  527. student: JSON.stringify([this.classid]),
  528. },
  529. ];
  530. this.ajax
  531. .post(this.$store.state.api + "addGradeClass", params)
  532. .then((res) => {
  533. this.gid = "";
  534. this.classid = "";
  535. this.dialogVisibleGrade = false;
  536. this.getClass();
  537. })
  538. .catch((err) => {
  539. console.error(err);
  540. });
  541. })
  542. .catch(() => { });
  543. },
  544. openUpdate(id, n) {
  545. this.classid = id;
  546. this.className1 = n;
  547. this.dialogVisible1 = true;
  548. },
  549. //新增班级
  550. insertClass() {
  551. let params = {
  552. name: this.className,
  553. oid: this.oid,
  554. uid: this.userid,
  555. };
  556. this.ajax
  557. .get(this.$store.state.api + "insertClass", params)
  558. .then((res) => {
  559. if (res.data[0] && res.data[0][0].classname == 1) {
  560. this.$message({
  561. message: "不能与其他班级名称相同!",
  562. type: "error",
  563. });
  564. } else {
  565. this.$message({
  566. message: "新增成功",
  567. type: "success",
  568. });
  569. this.dialogVisible = false;
  570. this.sClassName = "";
  571. this.getClass();
  572. this.className = "";
  573. }
  574. })
  575. .catch((err) => {
  576. this.$message({
  577. message: "新增失败",
  578. type: "error",
  579. });
  580. console.error(err);
  581. });
  582. },
  583. //修改班级
  584. updateClass() {
  585. let params = {
  586. id: this.classid,
  587. n: this.className1,
  588. oid: this.oid,
  589. };
  590. this.ajax
  591. .get(this.$store.state.api + "updateClass", params)
  592. .then((res) => {
  593. if (res.data[0] && res.data[0][0].classname == 1) {
  594. this.$message({
  595. message: "不能与其他班级名称相同!",
  596. type: "error",
  597. });
  598. } else {
  599. this.$message({
  600. message: "修改成功",
  601. type: "success",
  602. });
  603. this.dialogVisible1 = false;
  604. this.getClass();
  605. this.classid = "";
  606. this.className1 = "";
  607. }
  608. })
  609. .catch((err) => {
  610. this.$message({
  611. message: "修改失败",
  612. type: "error",
  613. });
  614. console.error(err);
  615. });
  616. },
  617. //获取班级列表
  618. getClass() {
  619. this.isLoading = true;
  620. let params = {
  621. // username: this.$store.state.userInfo.userid,
  622. cu: "",
  623. oid: this.oid,
  624. cn: this.sClassName,
  625. page: this.page,
  626. };
  627. this.ajax
  628. .get(this.$store.state.api + "selectClass", params)
  629. .then((res) => {
  630. this.isLoading = false;
  631. this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
  632. this.tableData = res.data[0];
  633. })
  634. .catch((err) => {
  635. this.isLoading = false;
  636. console.error(err);
  637. });
  638. },
  639. //删除班级
  640. deleteClass(id) {
  641. let params = {
  642. id: id,
  643. };
  644. if (this.time()) {
  645. this.$confirm("确定删除此班级吗?", "提示", {
  646. confirmButtonText: "确定",
  647. cancelButtonText: "取消",
  648. type: "warning",
  649. })
  650. .then(() => {
  651. this.ajax
  652. .get(this.$store.state.api + "deleteClass", params)
  653. .then((res) => {
  654. this.$message({
  655. message: "删除成功",
  656. type: "success",
  657. });
  658. if (this.page != 1 && this.tableData.length == 1) {
  659. this.page - 1;
  660. }
  661. this.getClass();
  662. })
  663. .catch((err) => {
  664. this.$message.error("删除失败");
  665. console.error(err);
  666. });
  667. })
  668. .catch(() => { });
  669. }
  670. },
  671. addStudent() {
  672. // this.dialogVisibleAddStudent = true;
  673. // (this.sName = ""), (this.sPhone = ""), (this.sByClass = ""), this.sMail;
  674. // this.getClass2();
  675. this.dialogVisibleMember = true;
  676. this.searchTN = "";
  677. this.getClassStudent();
  678. },
  679. //新增学生
  680. insertStudent() {
  681. if (this.sName === "") {
  682. this.$message.error("学生姓名不能为空");
  683. return;
  684. } else if (
  685. this.sPhone != "" &&
  686. !/^[1][3,4,5,7,8][0-9]{9}$/.test(this.sPhone)
  687. ) {
  688. this.$message.error("手机号格式不正确");
  689. return;
  690. } else if (
  691. !/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(this.sMail)
  692. ) {
  693. this.$message.error("邮箱格式不正确");
  694. return;
  695. }
  696. if (this.time()) {
  697. let params = { un: this.sMail };
  698. this.ajax
  699. .get(this.$store.state.api + "findMail", params)
  700. .then((res) => {
  701. if (res.data[0].length > 0) {
  702. this.$message.error("此学生账号已被注册");
  703. } else {
  704. this.add_Student();
  705. }
  706. })
  707. .catch((err) => {
  708. console.error(err);
  709. });
  710. }
  711. },
  712. add_Student() {
  713. let params = [
  714. {
  715. username: this.sMail,
  716. userpassword: 123456,
  717. alias: this.sName,
  718. oid: this.oid,
  719. ph: this.sPhone,
  720. sid: this.sId,
  721. cid: this.cid,
  722. },
  723. ];
  724. this.ajax
  725. .post(this.$store.state.api + "batchRegistration", params)
  726. .then((res) => {
  727. let params = [
  728. {
  729. userid: res.data.uid,
  730. username: this.sName,
  731. sid: this.sId,
  732. type: 2,
  733. oid: res.data.oid,
  734. phone: res.data.ph,
  735. cid: res.data.cid,
  736. intro: "",
  737. sex: "0",
  738. },
  739. ];
  740. this.ajax
  741. .post(this.$store.state.api + "updateUserByEdu", params)
  742. .then((res) => {
  743. console.log(res);
  744. })
  745. .catch((err) => {
  746. console.error(err);
  747. });
  748. this.$message({
  749. message: "新增成功",
  750. type: "success",
  751. });
  752. this.dialogVisibleAddStudent = false;
  753. this.sPhone = "";
  754. this.sName = "";
  755. this.sByClass = [];
  756. this.sMail = "";
  757. this.getStudent(this.cid);
  758. })
  759. .catch((err) => {
  760. this.isLoading = false;
  761. this.$message({
  762. message: "新增失败",
  763. type: "error",
  764. });
  765. console.error(err);
  766. });
  767. },
  768. updateStudentA(res) {
  769. this.userinfo = JSON.parse(JSON.stringify(res));
  770. this.userinfoA = JSON.parse(JSON.stringify(res));
  771. this.userinfo.classid = this.userinfo.classid.split(",");
  772. this.dialogVisibleUpdate = true;
  773. },
  774. updateStudent() {
  775. if (this.userinfo.name === "") {
  776. this.$message.error("学生姓名不能为空");
  777. return;
  778. } else if (!this.userinfo.classid) {
  779. this.$message.error("请为学生选择班级");
  780. return;
  781. } else if (
  782. this.userinfo.phonenumber &&
  783. !/^[1][3,4,5,7,8][0-9]{9}$/.test(this.userinfo.phonenumber)
  784. ) {
  785. this.$message.error("手机号格式不正确");
  786. return;
  787. } else if (
  788. !/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/.test(
  789. this.userinfo.un
  790. )
  791. ) {
  792. this.$message.error("邮箱格式不正确");
  793. return;
  794. }
  795. if (this.time()) {
  796. if (this.userinfoA.un != this.userinfo.un) {
  797. let params = { un: this.userinfo.un };
  798. this.ajax
  799. .get(this.$store.state.api + "findMail", params)
  800. .then((res) => {
  801. if (res.data[0].length > 0) {
  802. this.$message.error("此学生账号已被注册");
  803. } else {
  804. this.update_Student();
  805. }
  806. })
  807. .catch((err) => {
  808. console.error(err);
  809. });
  810. } else {
  811. this.update_Student();
  812. }
  813. }
  814. },
  815. update_Student() {
  816. let params = [
  817. {
  818. userid: this.userinfo.userid,
  819. username: this.userinfo.un,
  820. alias: this.userinfo.name,
  821. ph: this.userinfo.phonenumber,
  822. sid: this.userinfo.studentid,
  823. cid: this.userinfo.classid.join(","),
  824. },
  825. ];
  826. this.ajax
  827. .post(this.$store.state.api + "updateStudentInfo", params)
  828. .then((res) => {
  829. this.$message({
  830. message: "修改成功",
  831. type: "success",
  832. });
  833. this.dialogVisibleUpdate = false;
  834. this.getStudent(this.cid);
  835. })
  836. .catch((err) => {
  837. this.isLoading = false;
  838. this.$message({
  839. message: "修改失败",
  840. type: "error",
  841. });
  842. console.error(err);
  843. });
  844. },
  845. deleteClassStudent(id) {
  846. let params = [{ uid: id, cid: this.cid }];
  847. this.$confirm("确定移除此学生在本班级吗?", "提示", {
  848. confirmButtonText: "确定",
  849. cancelButtonText: "取消",
  850. type: "warning",
  851. })
  852. .then(() => {
  853. this.ajax
  854. .post(this.$store.state.api + "deleteClassStudent", params)
  855. .then((res) => {
  856. this.$message({
  857. message: "操作成功",
  858. type: "success",
  859. });
  860. this.getStudent(this.cid);
  861. })
  862. .catch((err) => {
  863. this.$message.error("操作失败");
  864. console.error(err);
  865. });
  866. })
  867. .catch(() => { });
  868. },
  869. //获取班级列表
  870. getClass2() {
  871. let params = {
  872. oid: this.oid,
  873. };
  874. this.ajax
  875. .get(this.$store.state.api + "selectClassBySchool", params)
  876. .then((res) => {
  877. this.classJuri = res.data[0];
  878. })
  879. .catch((err) => {
  880. console.error(err);
  881. });
  882. },
  883. getSchoolName() {
  884. let params = {
  885. oid: this.oid,
  886. };
  887. this.ajax
  888. .get(this.$store.state.api + "selectSchoolName2", params)
  889. .then((res) => {
  890. this.schoolName = res.data[0][0].name;
  891. })
  892. .catch((err) => {
  893. console.error(err);
  894. });
  895. },
  896. searchStudent() {
  897. this.page2 = 1;
  898. this.getStudent(this.cid);
  899. },
  900. handleCurrentChange2(val) {
  901. this.page2 = val;
  902. this.getStudent(this.cid);
  903. },
  904. handleCurrentChange3(val) {
  905. this.page3 = val;
  906. this.getClassStudent();
  907. },
  908. getStudent(cid) {
  909. this.cid = cid;
  910. this.ctype = 2;
  911. this.isLoading = true;
  912. let params = {
  913. oid: this.oid,
  914. cid: this.cid,
  915. cu: "",
  916. cn: this.sPhoneUser,
  917. page: this.page2,
  918. };
  919. this.ajax
  920. .get(this.$store.state.api + "selectStudent2", params)
  921. .then((res) => {
  922. this.isLoading = false;
  923. this.total2 = res.data[0].length > 0 ? res.data[0][0].num : 0;
  924. this.tableData2 = res.data[0];
  925. this.getClass2();
  926. })
  927. .catch((err) => {
  928. this.isLoading = false;
  929. console.error(err);
  930. });
  931. },
  932. getClassStudent() {
  933. this.isLoading2 = true;
  934. let params = {
  935. oid: this.oid,
  936. cid: this.cid,
  937. cn: this.searchTN,
  938. page: this.page3,
  939. num: this.pageSize3,
  940. };
  941. this.ajax
  942. .get(this.$store.state.api + "getClassStudent", params)
  943. .then((res) => {
  944. this.isLoading2 = false;
  945. this.total3 = res.data[0].length > 0 ? res.data[0][0].num : 0;
  946. this.teacherJuri = res.data[0];
  947. })
  948. .catch((err) => {
  949. this.isLoading2 = false;
  950. console.error(err);
  951. });
  952. },
  953. addClassStudent() {
  954. if (!this.checkboxList3.length) {
  955. this.$message.error("请选择要添加班级的学生");
  956. return;
  957. }
  958. let params = [
  959. {
  960. cid: this.cid,
  961. student: JSON.stringify(this.checkboxList3),
  962. },
  963. ];
  964. this.ajax
  965. .post(this.$store.state.api + "addClassStudent", params)
  966. .then((res) => {
  967. this.checkboxList3 = [];
  968. this.dialogVisibleMember = false;
  969. this.getStudent(this.cid);
  970. })
  971. .catch((err) => {
  972. console.error(err);
  973. });
  974. },
  975. iniPassword(id) {
  976. this.$confirm("确定" + "初始化" + "此学生的密码吗?", "提示", {
  977. confirmButtonText: "确定",
  978. cancelButtonText: "取消",
  979. type: "warning",
  980. })
  981. .then(() => {
  982. let params = [
  983. {
  984. uid: id,
  985. pa: 123456,
  986. },
  987. ];
  988. this.ajax
  989. .post(this.$store.state.api + "iniPassword", params)
  990. .then((res) => {
  991. this.$message({
  992. message: "初始化密码成功!",
  993. type: "success",
  994. });
  995. })
  996. .catch((err) => {
  997. console.error(err);
  998. });
  999. })
  1000. .catch(() => { });
  1001. },
  1002. },
  1003. };
  1004. </script>
  1005. <style scoped>
  1006. .dialog_diy>>>.el-dialog__header {
  1007. background: #3d67bc !important;
  1008. padding: 15px 20px;
  1009. }
  1010. .dialog_diy>>>.el-dialog__title {
  1011. color: #fff;
  1012. }
  1013. .student_table>>>.el-table--border td {
  1014. border-right: 0px !important;
  1015. }
  1016. .dialog_diy>>>.el-dialog__headerbtn {
  1017. top: 19px;
  1018. }
  1019. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  1020. color: #fff;
  1021. }
  1022. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  1023. color: #fff;
  1024. }
  1025. .student_head>>>.el-button--primary {
  1026. background-color: #2268bc;
  1027. }
  1028. .xls_button {
  1029. font-size: 14px;
  1030. cursor: pointer;
  1031. text-decoration: underline;
  1032. color: rgb(34, 104, 188);
  1033. }
  1034. .pb_head {
  1035. margin: 0 !important;
  1036. width: 100% !important;
  1037. }
  1038. .student_page {
  1039. margin-top: 10px;
  1040. display: flex;
  1041. justify-content: flex-end;
  1042. }
  1043. .student_head {
  1044. margin-top: 10px;
  1045. padding-bottom: 15px;
  1046. display: flex;
  1047. justify-content: space-between;
  1048. }
  1049. .student_search {
  1050. display: flex;
  1051. width: 300px;
  1052. line-height: 40px;
  1053. align-items: center;
  1054. }
  1055. .student_search span {
  1056. /* margin: 0 10px 0 0; */
  1057. }
  1058. .student_button {
  1059. /* display: flex; */
  1060. /* height: 40px; */
  1061. }
  1062. .student_button .el-button--primary {
  1063. /* margin-right: 10px; */
  1064. }
  1065. .upload-demo {
  1066. display: flex;
  1067. flex-direction: column;
  1068. align-items: end;
  1069. /* position: relative; */
  1070. width: 100px;
  1071. overflow: hidden;
  1072. }
  1073. .student_table {
  1074. /* margin: 20px 0; */
  1075. }
  1076. .el-table>>>.even_row {
  1077. background-color: #f1f1f1;
  1078. }
  1079. .top {
  1080. display: flex;
  1081. justify-content: space-between;
  1082. }
  1083. .bgColor {
  1084. background: #2167bc;
  1085. }
  1086. .student_table>>>.el-table,
  1087. .student_table>>>.el-table__body-wrapper {
  1088. height: auto !important;
  1089. }
  1090. .student_head {
  1091. margin-top: 10px;
  1092. padding-bottom: 10px;
  1093. display: flex;
  1094. justify-content: space-between;
  1095. }
  1096. .head_left {
  1097. display: flex;
  1098. align-items: center;
  1099. line-height: 40px;
  1100. }
  1101. .head_right {
  1102. display: flex;
  1103. flex-direction: row;
  1104. flex-wrap: nowrap;
  1105. align-items: center;
  1106. line-height: 40px;
  1107. }
  1108. /* .student_input>>>.el-input__inner {
  1109. width: 190px;
  1110. font-size: 13px;
  1111. padding: 0 10px;
  1112. }
  1113. */
  1114. .student_button {
  1115. color: #fff;
  1116. background: #2268bc;
  1117. }
  1118. .head_right>button:nth-child(1) {
  1119. color: #fff;
  1120. background: #2268bc;
  1121. }
  1122. .head_right>div {
  1123. line-height: 40px;
  1124. margin-left: 10px;
  1125. color: #2a6dbe;
  1126. text-decoration: underline;
  1127. cursor: pointer;
  1128. }
  1129. .userImg {
  1130. display: flex;
  1131. flex-direction: row;
  1132. justify-content: center;
  1133. align-items: center;
  1134. }
  1135. .tx {
  1136. width: 40px;
  1137. margin-right: 10px;
  1138. }
  1139. .delete {
  1140. width: 25px;
  1141. height: 25px;
  1142. cursor: pointer;
  1143. margin-left: 10px;
  1144. }
  1145. .tx>img,
  1146. .delete>img {
  1147. width: 100%;
  1148. height: 100%;
  1149. }
  1150. .btnBox {
  1151. display: flex;
  1152. align-items: center;
  1153. }
  1154. .add_student>>>.el-dialog__header {
  1155. padding: 20px 20px 10px;
  1156. text-align: center;
  1157. background: #32455b;
  1158. }
  1159. .add_student>>>.el-dialog__title {
  1160. font-size: 14px !important;
  1161. color: #fff !important;
  1162. }
  1163. .add_student>>>.el-dialog__headerbtn {
  1164. font-size: 20px !important;
  1165. }
  1166. .add_student>>>.el-form-item__label {
  1167. margin-left: 65px;
  1168. }
  1169. .add_student>>>.el-form-item {
  1170. display: flex;
  1171. }
  1172. .add_student>>>.el-form-item__content {
  1173. margin: 0 !important;
  1174. }
  1175. .add_input {
  1176. width: 365px;
  1177. }
  1178. .add_student>>>.el-dialog__footer {
  1179. text-align: center !important;
  1180. }
  1181. .right {
  1182. width: 250px;
  1183. color: #fff;
  1184. background: #0e72e6;
  1185. margin-bottom: 20px;
  1186. }
  1187. .header-title {
  1188. display: flex;
  1189. }
  1190. .logoImg {
  1191. width: 30px;
  1192. }
  1193. .logoImg>img {
  1194. width: 100%;
  1195. height: 100%;
  1196. }
  1197. .title_add_student {
  1198. margin: 0 auto;
  1199. color: #fff;
  1200. }
  1201. .upload-demo {
  1202. line-height: 0px !important;
  1203. }
  1204. .upload-demo>>>.el-button {
  1205. color: #fff;
  1206. background: #2268bc;
  1207. width: 70px;
  1208. height: 30px;
  1209. padding: 0 !important;
  1210. font-size: 12px;
  1211. line-height: 0 !important;
  1212. }
  1213. .people {
  1214. border: 1px solid rgb(229 229 229);
  1215. height: 495px;
  1216. border-radius: 5px;
  1217. width: 100%;
  1218. overflow: auto;
  1219. }
  1220. .people_top {
  1221. display: flex;
  1222. width: 100%;
  1223. /* justify-content: space-between; */
  1224. /* align-items: center; */
  1225. flex-direction: column;
  1226. padding: 10px 25px 0;
  1227. box-sizing: border-box;
  1228. }
  1229. .people_nav,
  1230. .people_top_right {
  1231. /* padding: 20px 0 0 20px; */
  1232. }
  1233. .people_top_right {
  1234. height: 40px;
  1235. margin-bottom: 10px;
  1236. }
  1237. .people_search {
  1238. display: flex;
  1239. position: relative;
  1240. }
  1241. .people_search>>>.el-input__inner {
  1242. /* height: 25px; */
  1243. width: 95%;
  1244. }
  1245. .search_img {
  1246. width: 20px;
  1247. height: 20px;
  1248. position: absolute;
  1249. right: 30px;
  1250. top: 50%;
  1251. transform: translateY(-50%);
  1252. }
  1253. .search_img>img {
  1254. width: 100%;
  1255. height: 100%;
  1256. }
  1257. .people_name {
  1258. display: flex;
  1259. justify-content: flex-start;
  1260. padding: 10px 0 0 25px;
  1261. flex-direction: column;
  1262. flex-wrap: nowrap;
  1263. height: calc(100% - 140px);
  1264. overflow-y: auto;
  1265. overflow-x: hidden;
  1266. flex-direction: column;
  1267. }
  1268. .people_name>>>.el-checkbox {
  1269. width: 100%;
  1270. display: flex;
  1271. align-items: center;
  1272. margin-bottom: 10px;
  1273. }
  1274. .people_name>>>.el-checkbox__label {
  1275. text-overflow: ellipsis;
  1276. overflow: hidden;
  1277. width: 100%;
  1278. }
  1279. .addNewPP>>>.el-dialog__body {
  1280. padding: 5px 20px;
  1281. }
  1282. .t_j_box {
  1283. display: flex;
  1284. }
  1285. .t_j_box span:nth-child(1) {
  1286. width: 50%;
  1287. overflow: hidden;
  1288. margin-right: 10px;
  1289. text-overflow: ellipsis;
  1290. white-space: nowrap;
  1291. }
  1292. .t_j_box span:nth-child(2) {
  1293. width: 50%;
  1294. overflow: hidden;
  1295. margin-right: 10px;
  1296. text-overflow: ellipsis;
  1297. white-space: nowrap;
  1298. }
  1299. .student_input>>>.el-input__inner {
  1300. height: 30px;
  1301. width: 190px;
  1302. font-size: 13px;
  1303. padding: 0 10px;
  1304. }
  1305. .student_input.el-input {
  1306. width: auto;
  1307. }
  1308. .student_input {
  1309. margin-right: 10px;
  1310. }
  1311. .student_input>>>.el-input__icon {
  1312. line-height: unset;
  1313. }
  1314. .student_button {
  1315. color: #fff;
  1316. background: #2268bc;
  1317. width: 60px;
  1318. height: 30px;
  1319. padding: 0 !important;
  1320. font-size: 12px;
  1321. line-height: 30px;
  1322. }
  1323. .sub_head {
  1324. position: relative;
  1325. }
  1326. .sub_head::after {
  1327. content: "";
  1328. width: 100%;
  1329. background: #5a9cea;
  1330. height: 2px;
  1331. position: absolute;
  1332. left: 0;
  1333. bottom: -10px;
  1334. }
  1335. .subClick {
  1336. /* font-size: 16px; */
  1337. font-size: 26px;
  1338. cursor: pointer;
  1339. /* margin-left: 17.5px; */
  1340. /* color: #ab582f; */
  1341. /* color: #409eff; */
  1342. color: #999;
  1343. }
  1344. .subClick:hover {
  1345. color: #000;
  1346. }
  1347. .sub_head+.subClick,
  1348. .subClick+.subClick,
  1349. .subClick+.sub_head {
  1350. margin-left: 17.5px;
  1351. }
  1352. .classButtonBox {
  1353. display: flex;
  1354. flex-direction: row;
  1355. flex-wrap: wrap;
  1356. align-items: center;
  1357. }
  1358. .classButtonBox>>>.el-button:not(:last-child),
  1359. .classButtonBox>>>.el-button:not(:first-child) {
  1360. margin-left: 10px;
  1361. }
  1362. .pb_content_body {
  1363. width: 100% !important;
  1364. }
  1365. .sm_box {
  1366. display: flex;
  1367. width: calc(100% - 20px);
  1368. margin: 0 auto;
  1369. }
  1370. .sm_right {
  1371. width: calc(100% - 210px);
  1372. margin-left: 210px;
  1373. }
  1374. .sm_left {
  1375. width: 200px;
  1376. background: #fff;
  1377. height: calc(100vh - 20px);
  1378. position: fixed;
  1379. left: 10px;
  1380. top: 10px;
  1381. border-radius: 5px;
  1382. }
  1383. .nav {
  1384. height: 55px;
  1385. display: flex;
  1386. align-items: center;
  1387. justify-content: center;
  1388. cursor: pointer;
  1389. color: #777777;
  1390. transition: all .5s;
  1391. }
  1392. .nav:hover {
  1393. background: rgb(204, 204, 204);
  1394. }
  1395. .nav.active {
  1396. background: #3d67bc !important;
  1397. color: #fff;
  1398. }
  1399. .nav .icon {
  1400. width: 16px;
  1401. height: 16px;
  1402. margin-right: 5px;
  1403. background-size: 100% 100%;
  1404. }
  1405. .nav .name {}
  1406. .nav .icon.gradeI {
  1407. background-image: url(../../../assets/icon/studentManage/grade.png);
  1408. }
  1409. .nav .icon.classI {
  1410. background-image: url(../../../assets/icon/studentManage/class.png);
  1411. }
  1412. .nav .icon.studentI {
  1413. background-image: url(../../../assets/icon/studentManage/student.png);
  1414. }
  1415. .nav.active .icon.gradeI {
  1416. background-image: url(../../../assets/icon/studentManage/grade-a.png);
  1417. }
  1418. .nav.active .icon.classI {
  1419. background-image: url(../../../assets/icon/studentManage/class-a.png);
  1420. }
  1421. .nav.active .icon.studentI {
  1422. background-image: url(../../../assets/icon/studentManage/student-a.png);
  1423. }
  1424. </style>