resetClass.vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388
  1. <template>
  2. <!-- m-container -->
  3. <div class="">
  4. <!-- <h2>
  5. <div class='squrt'></div>
  6. 班级调整
  7. </h2> -->
  8. <div class="m-core">
  9. <el-form :inline="true"
  10. :model="topForm">
  11. <el-form-item>
  12. <el-select v-model="topForm.classType"
  13. clearable placeholder="请选择班级类型"
  14. filterable
  15. @change="changeMixClass">
  16. <el-option v-for='(item,index) in classTypeList'
  17. :key="index"
  18. :label="item.label"
  19. :value="item.value"></el-option>
  20. </el-select>
  21. </el-form-item>
  22. </el-form>
  23. <div class="tableWrap"
  24. style="">
  25. <el-table :data='activeSingleList'
  26. style=""
  27. :header-cell-style="{background:'#EDEEF0',color:'#444'}">
  28. <el-table-column align='center'
  29. prop="name"
  30. label="班级名称">
  31. </el-table-column>
  32. <el-table-column align='center'
  33. prop="type"
  34. label="班级类型">
  35. <template slot-scope="scope">
  36. <div>
  37. {{ scope.row.type | classType }}
  38. </div>
  39. </template>
  40. </el-table-column>
  41. <el-table-column align='center'
  42. prop="studentNum"
  43. label="班级人数">
  44. </el-table-column>
  45. <el-table-column align='center'
  46. prop=""
  47. label="主教老师">
  48. <template slot-scope="scope">
  49. <div v-if="scope.row.classGroupTeacherMapperList">
  50. <p v-for="(item,index) in scope.row.classGroupTeacherMapperList"
  51. v-if="item.teacherRole == 'BISHOP'"
  52. :key='index'>{{item.userName}}</p>
  53. </div>
  54. </template>
  55. </el-table-column>
  56. <el-table-column align='center'
  57. label="助教老师">
  58. <template slot-scope="scope">
  59. <div v-if="scope.row.classGroupTeacherMapperList">
  60. <p v-for="(item,index) in scope.row.classGroupTeacherMapperList"
  61. v-if="item.teacherRole == 'TEACHING'"
  62. :key='index'>{{item.userName}}</p>
  63. </div>
  64. </template>
  65. </el-table-column>
  66. <el-table-column align='center'
  67. label="已上课时">
  68. <template slot-scope="scope">
  69. <div>
  70. {{scope.row.currentClassTimes}}
  71. </div>
  72. </template>
  73. </el-table-column>
  74. <el-table-column align='center'
  75. label="总课数">
  76. <template slot-scope="scope">
  77. <div>
  78. {{scope.row.totalClassTimes}}
  79. </div>
  80. </template>
  81. </el-table-column>
  82. <el-table-column align='center'
  83. width="400px"
  84. label="操作">
  85. <template slot-scope="scope">
  86. <div>
  87. <!-- v-if="scope.row.type !='MIX'" -->
  88. <el-button type="text"
  89. @click="resetClass(scope.row)">学员调整</el-button>
  90. <el-button type="text"
  91. @click="classAdjustment(scope.row)">班级调整</el-button>
  92. <!--<el-button type="text"
  93. @click="recourse(scope.row)">重新排课</el-button> -->
  94. <el-popover placement="top"
  95. width="160"
  96. :ref="scope.$index">
  97. <p>确定删除?</p>
  98. <div style="text-align: right; margin: 0">
  99. <el-button size="mini"
  100. type="text"
  101. @click="scope._self.$refs[scope.$index].doClose()">取消</el-button>
  102. <el-button type="primary"
  103. size="mini"
  104. @click="removeClass(scope)">确定</el-button>
  105. </div>
  106. <!-- v-if="scope.row.type !='MIX'" -->
  107. <el-button type="text"
  108. slot="reference">删除班级</el-button>
  109. </el-popover>
  110. <el-popover placement="top"
  111. width="160"
  112. :ref="scope.$index">
  113. <p>是否清空课表?</p>
  114. <div style="text-align: right; margin: 0">
  115. <el-button size="mini"
  116. type="text"
  117. @click="scope._self.$refs[scope.$index].doClose()">取消</el-button>
  118. <el-button type="primary"
  119. size="mini"
  120. @click="clearCourse(scope)">确定</el-button>
  121. </div>
  122. <!-- v-if="scope.row.type !='MIX'" -->
  123. <el-button type="text"
  124. slot="reference">清空课表</el-button>
  125. </el-popover>
  126. </div>
  127. </template>
  128. </el-table-column>
  129. </el-table>
  130. <div class="floor">
  131. <div class="add"
  132. @click="temporary">新建临时班</div>
  133. <div class='add'
  134. @click="addNewClass('NORMAL')">新建单技班</div>
  135. <div class='add'
  136. @click="addNewClass('MIX')">新建合奏班</div>
  137. <div class='add'
  138. @click="addNewClass('HIGH')">基础技能班</div>
  139. </div>
  140. </div>
  141. </div>
  142. <!-- 学员选择 -->
  143. <el-dialog title="学员选择"
  144. width="700px"
  145. :visible.sync="studentVisible"
  146. :modal-append-to-body="false">
  147. <div class="studentMask">
  148. <div class="left">
  149. <div class="wrap">
  150. <el-input placeholder="请输入班级名称"
  151. :disabled="!isNewClass"
  152. v-model="className"></el-input>
  153. </div>
  154. <div class="chioseStudentList">
  155. <h4 style="padding-left:10px;">当前已选学员</h4>
  156. <div class="studentItem"
  157. v-for="(item,index) in activeListStudent"
  158. :key="index">
  159. {{ item.name }}
  160. <el-popover v-if="!isNewClass"
  161. placement="top"
  162. v-model="item.isVisible"
  163. width="160">
  164. <p>确定删除?</p>
  165. <div style="text-align: right; margin: 0">
  166. <el-button size="mini"
  167. type="text"
  168. @click="item.isVisible = false">取消</el-button>
  169. <el-button type="primary"
  170. size="mini"
  171. @click="removeStudent(item)">确定</el-button>
  172. </div>
  173. <el-button type="text"
  174. slot="reference">删除</el-button>
  175. </el-popover>
  176. <el-button v-if="isNewClass"
  177. type='text'
  178. @click="temporaryRemoveStudent(item)">删除</el-button>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="right">
  183. <!-- multiple
  184. collapse-tags -->
  185. <el-select v-if="isSearch"
  186. v-model="activeChioseSound"
  187. style="width:180px"
  188. @change="searchStudent"
  189. clearable
  190. filterable
  191. placeholder="声部选择">
  192. <el-option v-for='(item,index) in soundList'
  193. :key='index'
  194. :label="item.name"
  195. :value="item.id"></el-option>
  196. </el-select>
  197. <!-- <el-button v-if="isSearch"
  198. type="danger"
  199. style="margin-left:20px;"
  200. @click="searchStudent">搜索</el-button> -->
  201. <!-- 列表开始 -->
  202. <div class="tableList">
  203. <el-table tooltip-effect="dark"
  204. v-if="!isNewClass"
  205. style="width: 100%; margin-top:10px;"
  206. :data='studentList'
  207. ref='studentList'
  208. @selection-change="SelectionStudent">
  209. <el-table-column type="selection"
  210. align='center'
  211. width="55">
  212. </el-table-column>
  213. <el-table-column prop="name"
  214. align='center'
  215. width="120"
  216. label="姓名">
  217. </el-table-column>
  218. <el-table-column prop="gender"
  219. align='center'
  220. width="100"
  221. label="性别">
  222. <template slot-scope="scope">
  223. <div>
  224. {{ scope.row.gender | sex }}
  225. </div>
  226. </template>
  227. </el-table-column>
  228. <el-table-column prop="subjectName"
  229. width="100"
  230. align='center'
  231. label="学员声部">
  232. </el-table-column>
  233. </el-table>
  234. <!-- 临时调整table -->
  235. <el-table tooltip-effect="dark"
  236. v-if="isNewClass"
  237. style="width: 100%; margin-top:10px;"
  238. :data='studentList'
  239. ref='temporaryStudentList'
  240. @selection-change="NewselectionStudent">
  241. <el-table-column type="selection"
  242. align='center'
  243. width="55">
  244. </el-table-column>
  245. <el-table-column prop="name"
  246. align='center'
  247. width="120"
  248. label="姓名">
  249. </el-table-column>
  250. <el-table-column prop="gender"
  251. align='center'
  252. width="100"
  253. label="性别">
  254. <template slot-scope="scope">
  255. <div>
  256. {{ scope.row.gender | sex }}
  257. </div>
  258. </template>
  259. </el-table-column>
  260. <el-table-column prop="subjectName"
  261. width="100"
  262. align='center'
  263. label="学员声部">
  264. </el-table-column>
  265. </el-table>
  266. </div>
  267. </div>
  268. </div>
  269. <div slot="footer"
  270. class="dialog-footer">
  271. <el-button @click="studentVisible = false">取 消</el-button>
  272. <!-- 班级学员修改 -->
  273. <el-button type="primary"
  274. v-if="!isNewClass"
  275. @click="addSomeStudent">确 定</el-button>
  276. <!-- 临时调整或者新建班级 -->
  277. <el-button type="primary"
  278. v-if="isNewClass"
  279. @click="setInfoMsg">确 定</el-button>
  280. </div>
  281. </el-dialog>
  282. <!-- 老师以及课程设置 -->
  283. <el-dialog title="班级设置"
  284. width="700px"
  285. :visible.sync="infoVisible"
  286. :modal-append-to-body="false">
  287. <el-form :inline="true"
  288. :model='teacherForm'
  289. ref='teacherForm'
  290. :rules="teacherRules"
  291. label-position='right'
  292. label-width="100px;">
  293. <!-- <el-form-item label="合奏班"
  294. v-if='!isTemporary&&activeType=="NORMAL"'
  295. prop="mixClassGroupId">
  296. <el-select v-model="teacherForm.mixClassGroupId">
  297. <el-option v-for="(item,index) in maxClassList"
  298. :label="item.name"
  299. :key="index"
  300. :value="item.id"></el-option>
  301. </el-select>
  302. </el-form-item> -->
  303. <el-form-item label="调整方式"
  304. v-if="!isNewClass"
  305. prop="isAdd">
  306. <el-radio v-model="teacherForm.isAdd"
  307. label="new">班级加课</el-radio>
  308. <el-radio v-model="teacherForm.isAdd"
  309. label="renew">重新排课</el-radio>
  310. </el-form-item>
  311. <br>
  312. <el-form-item label="主教老师"
  313. prop='coreTeacher'>
  314. <el-select v-model="teacherForm.coreTeacher"
  315. clearable
  316. filterable>
  317. <el-option v-for="(item,index) in teacherList"
  318. :key="index"
  319. :label="item.realName"
  320. :value="item.id"></el-option>
  321. </el-select>
  322. </el-form-item>
  323. <el-form-item label="助教老师"
  324. prop="assistant">
  325. <el-select v-model="teacherForm.assistant"
  326. filterable
  327. clearable
  328. @change="setAssistant"
  329. multiple>
  330. <el-option v-for="(item,index) in cooperationList"
  331. :key="index"
  332. :label="item.realName"
  333. :value="item.id"></el-option>
  334. </el-select>
  335. </el-form-item>
  336. <el-form-item label="课程类型"
  337. prop="courseType">
  338. <el-select v-model="teacherForm.courseType"
  339. clearable
  340. filterable>
  341. <el-option v-for="(item,index) in courseTypeList"
  342. :key="index"
  343. :value="item.value"
  344. :label="item.label"></el-option>
  345. </el-select>
  346. </el-form-item>
  347. <br>
  348. <el-form-item label="排课次数"
  349. prop="courseNum">
  350. <el-input type='number'
  351. @mousewheel.native.prevent
  352. v-model="teacherForm.courseNum"></el-input>
  353. </el-form-item>
  354. <el-form-item label="排课起始时间"
  355. prop="courseTime">
  356. <el-date-picker v-model="teacherForm.courseTime"
  357. :picker-options="pickerOptions"
  358. style="width:200px!important;"
  359. type="date"
  360. value-format="yyyy-MM-dd"
  361. placeholder="选择日期">
  362. </el-date-picker>
  363. <el-checkbox style='margin-left:10px;'
  364. v-model="teacherForm.checked">是否跳过节假日</el-checkbox>
  365. </el-form-item>
  366. </el-form>
  367. <div class="WeekWrap">
  368. <h3 style="margin-bottom:20px;">循环次数 <el-button type="text"
  369. style='margin-left:10px;'
  370. @click="addWeek">添加</el-button>
  371. </h3>
  372. <div class="countWrap"
  373. style="margin-bottom:10px;">
  374. <div class="countItem"
  375. style="margin-bottom:20px;"
  376. v-for="(item,index) in weekList"
  377. :key="index">
  378. <span>循环周期: </span>
  379. <el-select v-model="item.dayOfWeek"
  380. clearable
  381. filterable>
  382. <el-option v-for="(item,index) in weekDateList"
  383. :key='index'
  384. :label="item.label"
  385. :value="item.value"></el-option>
  386. </el-select>
  387. <span>开始时间</span>
  388. <el-time-select placeholder=""
  389. v-model="item.startClassTime"
  390. :picker-options="{
  391. start: '04:30',
  392. step: '00:05',
  393. end: '23:55'
  394. }">
  395. </el-time-select>
  396. <span>结束时间</span>
  397. <el-time-select placeholder=""
  398. v-model="item.endClassTime"
  399. :picker-options="{
  400. start: '04:30',
  401. step: '00:05',
  402. end: '23:55',
  403. minTime:item.startClassTime
  404. }">
  405. </el-time-select>
  406. <el-button type="danger"
  407. @click="removeWeek(item)"
  408. icon="el-icon-delete"
  409. circle></el-button>
  410. </div>
  411. </div>
  412. </div>
  413. <div slot="footer"
  414. class="dialog-footer">
  415. <!-- 1为临时班级 -->
  416. <el-button type="primary"
  417. v-if="isTemporary&&isNewClass"
  418. @click="submitTemporary(1)">确 定</el-button>
  419. <!-- 2为新增班级 -->
  420. <el-button type="primary"
  421. v-if="!isTemporary&&isNewClass"
  422. @click="submitTemporary(2)">确 定</el-button>
  423. <!-- 修改班级信息 -->
  424. <el-button type="primary"
  425. v-if="!isNewClass"
  426. @click="submitTemporary(3)">确 定</el-button>
  427. </div>
  428. </el-dialog>
  429. <!-- 新增合奏班 -->
  430. <el-dialog title="新增合奏班"
  431. width="700px"
  432. :visible.sync="MixVisible"
  433. :modal-append-to-body="false">
  434. <div class="studentMask">
  435. <div class="left">
  436. <div class="wrap">
  437. <!-- :disabled="!isNewClass" -->
  438. <el-input placeholder="请输入合奏班名称"
  439. v-model="className"></el-input>
  440. </div>
  441. <div class="chioseStudentList">
  442. <h4 style="padding-left:10px;">当前已选学生</h4>
  443. <div class="studentItem"
  444. v-for="(item,index) in activeListStudent"
  445. :key="index">
  446. {{ item.name }}
  447. <el-button type='text'
  448. @click="removeSiginforMix(item)">删除班级</el-button>
  449. </div>
  450. </div>
  451. </div>
  452. <div class="right">
  453. <!-- 列表开始 -->
  454. <div class="tableList">
  455. <el-table tooltip-effect="dark"
  456. style="width: 100%; margin-top:10px;"
  457. :data='singleList'
  458. ref='mixList'
  459. @selection-change="SelectionMix">
  460. <el-table-column type="selection"
  461. align='center'
  462. width="55">
  463. </el-table-column>
  464. <el-table-column prop="name"
  465. align='center'
  466. width="120"
  467. label="姓名">
  468. </el-table-column>
  469. <el-table-column prop="gender"
  470. align='center'
  471. width="100"
  472. label="性别">
  473. <template slot-scope="scope">
  474. <div>
  475. {{ scope.row.gender | sex }}
  476. </div>
  477. </template>
  478. </el-table-column>
  479. <el-table-column prop="subjectName"
  480. width="120"
  481. align='center'
  482. label="学员声部">
  483. </el-table-column>
  484. </el-table>
  485. </div>
  486. </div>
  487. </div>
  488. <div slot="footer"
  489. class="dialog-footer">
  490. <el-button @click="studentVisible = false">取 消</el-button>
  491. <!-- 班级学员修改 -->
  492. <el-button type="primary"
  493. v-if="!isNewClass"
  494. @click="addSomeStudent">确 定</el-button>
  495. <!-- 临时调整或者新建班级 -->
  496. <el-button type="primary"
  497. v-if="isNewClass"
  498. @click="setInfoMsg">确 定</el-button>
  499. </div>
  500. </el-dialog>
  501. <!-- 班级调整 -->
  502. <!-- <el-dialog title="班级调整"
  503. width="500px"
  504. :visible.sync="resetClassVisible"
  505. :modal-append-to-body="false">
  506. <el-form :model="resetClassForm"
  507. class="resetClassForm">
  508. <el-form-item label="主教老师">
  509. <el-select v-model="resetClassForm.coreTeacher">
  510. <el-option v-for="(item,index) in teacherList"
  511. :key="index"
  512. :label="item.realName"
  513. :value="item.id"></el-option>
  514. </el-select>
  515. </el-form-item>
  516. <el-form-item label="助教老师">
  517. <el-select v-model="resetClassForm.assistant"
  518. filterable
  519. @change="setAssistant"
  520. multiple>
  521. <el-option v-for="(item,index) in cooperationList"
  522. :key="index"
  523. :label="item.realName"
  524. :value="item.id"></el-option>
  525. </el-select>
  526. </el-form-item>
  527. <el-form-item label="开始时间">
  528. <el-time-select placeholder="开始时间"
  529. v-model="resetClassForm.startTime"
  530. :picker-options="{
  531. start: '06:30',
  532. step: '00:05',
  533. end: '23:30'
  534. }">
  535. </el-time-select>
  536. </el-form-item>
  537. <el-form-item label="结束时间">
  538. <el-time-select placeholder="结束时间"
  539. v-model="resetClassForm.endTime"
  540. :picker-options="{
  541. start: '06:30',
  542. step: '00:05',
  543. end: '23:30',
  544. minTime:resetClassForm.startTime
  545. }">
  546. </el-time-select>
  547. </el-form-item>
  548. </el-form>
  549. <div slot="footer"
  550. class="dialog-footer">
  551. <el-button @click="resetClassVisible = false">取 消</el-button>
  552. <el-button type="primary"
  553. @click="">确 定</el-button>
  554. </div>
  555. </el-dialog> -->
  556. <!-- 重新排课 -->
  557. <!-- <el-dialog title="重新排课"
  558. width="700px"
  559. :visible.sync="resetCourseVisible"
  560. :modal-append-to-body="false">
  561. <el-form :model="recourseForm"
  562. label-width="120px"
  563. label-position="right">
  564. <p style="border-bottom:1px solid #ccc; padding-bottom:10px; font-size:16px; margin-bottom:30px;">上课时间设置</p>
  565. <el-form-item label="课程类型">
  566. <el-select v-model="recourseForm.courseType">
  567. <el-option v-for="(item,index) in courseTypeList"
  568. :key="index"
  569. :value="item.value"
  570. :label="item.label"></el-option>
  571. </el-select>
  572. </el-form-item>
  573. <el-form-item label="排课起始时间">
  574. <el-date-picker v-model="recourseForm.courseTime"
  575. style="width:200px;"
  576. type="date"
  577. value-format="yyyy-MM-dd"
  578. placeholder="选择日期">
  579. </el-date-picker>
  580. <el-checkbox style='margin-left:10px;'
  581. v-model="recourseForm.checked">是否跳过节假日</el-checkbox>
  582. </el-form-item>
  583. </el-form>
  584. <div class="WeekWrap">
  585. <p style="border-bottom:1px solid #ccc; padding-bottom:10px; font-size:16px; margin-bottom:30px;">
  586. 循环次数 <el-button type="text"
  587. style='margin-left:10px;'
  588. @click="addWeek">添加</el-button>
  589. </p>
  590. <div class="countWrap"
  591. style="margin-bottom:10px;">
  592. <div class="countItem"
  593. style="margin-bottom:20px;"
  594. v-for="(item,index) in weekList"
  595. :key="index">
  596. <span>循环周期: </span>
  597. <el-select v-model="item.dayOfWeek">
  598. <el-option v-for="(item,index) in weekDateList"
  599. :key='index'
  600. :label="item.label"
  601. :value="item.value"></el-option>
  602. </el-select>
  603. <span>开始时间</span>
  604. <el-time-select placeholder=""
  605. v-model="item.startClassTime"
  606. :picker-options="{
  607. start: '08:30',
  608. step: '00:05',
  609. end: '23:55'
  610. }">
  611. </el-time-select>
  612. <span>结束时间</span>
  613. <el-time-select placeholder=""
  614. v-model="item.endClassTime"
  615. :picker-options="{
  616. start: '08:30',
  617. step: '00:05',
  618. end: '23:55',
  619. minTime:item.startClassTime
  620. }">
  621. </el-time-select>
  622. <el-button type="danger"
  623. @click="removeWeek(item)"
  624. icon="el-icon-delete"
  625. circle></el-button>
  626. </div>
  627. </div>
  628. </div>
  629. <div slot="footer"
  630. class="dialog-footer">
  631. <el-button @click="resetCourseVisible = false">取 消</el-button>
  632. <el-button type="primary"
  633. @click="">确 定</el-button>
  634. </div>
  635. </el-dialog> -->
  636. </div>
  637. </template>
  638. <script>
  639. import { getAllClass, getAllSignClassandTeacher, getAllSignClass, removeSingleClass, getNoClassStudentAll, findSound, teamSoundStudent, findMusicGroupClassTeacher, revisionClassGroup, revisionAddClassGroup, getEmployeeOrgan, getTeacher, findNoClassSingle, getMusicGroupStuNoClassType, classGroupUpdate, getTeamBaseInfo, clearClassCourse } from '@/api/buildTeam'
  640. import { getClassAllStudent, removeStudents, addStudents } from '@/api/studentManager'
  641. import { queryEmployByOrganId } from '@/api/systemManage'
  642. import axios from 'axios'
  643. import qs from 'qs'
  644. export default {
  645. name: 'tresetClass',
  646. data () {
  647. return {
  648. pickerOptions: {
  649. disabledDate (time) {
  650. return time.getTime() + 86400000 <= new Date().getTime()
  651. }
  652. },
  653. teamid: '',
  654. topForm: {
  655. classType: ''
  656. },
  657. tableList: [],
  658. maxClassList: [],
  659. activeSingleList: [],
  660. resetCourseVisible: false, // 重新排课弹窗
  661. resetClassVisible: false, // 班级调整弹窗
  662. studentVisible: false,
  663. MixVisible: false,// 新增合奏班弹窗
  664. activeListStudent: [], // 当前选中的学生列表
  665. activeChioseSound: '', //选择的声部
  666. chioseSoundList: [], //当前的所有声部
  667. studentList: [], //列表里的学生集合
  668. activeMixClass: '', // 选中的合奏班
  669. chioseStudent: [],// 勾选的学生信息
  670. isNewClass: false, // 是否为新建班级
  671. isSearch: false, // 是否需要搜索
  672. isTemporary: false, // 是否为临时班级
  673. className: '', // 班级名称
  674. activeClass: '', // 当前操作的班级
  675. soundList: [],
  676. infoVisible: false, // 判断是否需要显示老师设置
  677. teacherForm: {
  678. isAdd: null,
  679. coreTeacher: '',
  680. assistant: [],
  681. courseType: '',
  682. courseTime: '',
  683. checked: false,
  684. courseNum: '',
  685. mixClassGroupId: ''
  686. },
  687. teacherRules: {
  688. isAdd: [{ required: true, message: '请选择调整类型' }],
  689. coreTeacher: [{ required: true, message: '请选择主教老师' }],
  690. courseType: [{ required: true, message: '请选择上课类型' }],
  691. courseTime: [{ required: true, message: '请选择开始时间' }],
  692. courseNum: [{ required: true, message: '请输入排课次数' }],
  693. mixClassGroupId: [{ required: true, message: '请选择合奏班' }]
  694. },
  695. weekList: [{
  696. week: '',
  697. startTime: '',
  698. endTime: '',
  699. id: new Date()
  700. }],
  701. teacherList: [], // 存储的老师列表
  702. courseTypeList: [
  703. ],
  704. weekDateList: [
  705. { value: '1', label: '星期一' },
  706. { value: '2', label: '星期二' },
  707. { value: '3', label: '星期三' },
  708. { value: '4', label: '星期四' },
  709. { value: '5', label: '星期五' },
  710. { value: '6', label: '星期六' },
  711. { value: '7', label: '星期日' },
  712. ],
  713. // 班级类型
  714. classTypeList: [
  715. { value: 'NORMAL', label: '单技班' },
  716. { value: 'MIX', label: '合奏班' },
  717. { value: 'HIGH', label: '基础技能班' },
  718. { value: 'SNAP', label: '临时班' },
  719. ],
  720. cooperationList: [],
  721. singleList: [],
  722. activeSingleLists: [],
  723. activeType: '',
  724. resetClassForm: { // 班级调整form对象
  725. startTime: '',
  726. endTime: '',
  727. assistant: [],
  728. coreTeacher: ''
  729. },
  730. recourseForm: {
  731. courseType: '',
  732. checked: false,
  733. courseTime: '',
  734. courseNum: ''
  735. },
  736. organId: ''
  737. }
  738. },
  739. created () {
  740. this.init()
  741. },
  742. activated () {
  743. this.init()
  744. },
  745. mounted () {
  746. },
  747. methods: {
  748. init () {
  749. this.teamid = this.$route.query.id;
  750. // 根据乐团id获取乐团所属分部
  751. getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
  752. if (res.code == 200) {
  753. this.organId = res.data.musicGroup.organId
  754. getTeacher({ organId: this.organId }).then(res => {
  755. if (res.code == 200) {
  756. this.cooperationList = res.data;
  757. this.teacherList = res.data;
  758. }
  759. })
  760. // queryEmployByOrganId({ organId: this.organId, rows: 10000 }).then(res => {
  761. // if (res.code == 200) {
  762. // }
  763. // })
  764. }
  765. })
  766. sessionStorage.setItem('resetCode', 3)
  767. // // 获取乐团下未分班的单技班
  768. // findNoClassSingle({ musicGroupId: this.teamid }).then(res => {
  769. // if (res.code == 200) {
  770. // this.singleList = res.data;
  771. // }
  772. // })
  773. // getMusicGroupStuNoClassType
  774. // 获取合奏班下
  775. // 1.获取乐团下所有的合奏班
  776. // 2.根据合奏班获取所有的单技班
  777. // 3.根据乐团id 查询 此乐团所有的合奏班
  778. // 4.获取当年的所有节假日
  779. getAllClass({ musicGroupId: this.teamid }).then(res => {
  780. if (res.code == 200) {
  781. this.maxClassList = res.data;
  782. }
  783. })
  784. // let year = new Date().getFullYear();
  785. // axios.post('/jiari/', qs.stringify({ d: year })).then(res => {
  786. // this.holidayList = Object.keys(res.data[year])
  787. // })
  788. // getNoClassStudentAll({ musicGroupId: this.teamid }).then(res => {
  789. // })
  790. // 获取默认乐团内的所有班
  791. this.changeMixClass()
  792. // 根据乐团id获取乐团的所有声部
  793. findSound({ musicGroupId: this.teamid }).then(res => {
  794. if (res.code == 200) {
  795. this.soundList = res.data
  796. }
  797. })
  798. // 获取分部所有老师
  799. // findMusicGroupClassTeacher({
  800. // musicGroupId: this.teamid
  801. // }).then(res => {
  802. // if (res.code == 200) {
  803. // this.teacherList = res.data
  804. // }
  805. // })
  806. // 获取分部所有老师
  807. // 助教是从员工表里选
  808. },
  809. recourse (row) {
  810. this.weekList = [{
  811. week: '',
  812. startTime: '',
  813. endTime: '',
  814. id: new Date()
  815. }],
  816. this.resetCourseVisible = true;
  817. },
  818. addMix () {
  819. this.MixVisible = true;
  820. },
  821. setAssistant (val) {
  822. for (let i in val) {
  823. if (val[i] == this.teacherForm.coreTeacher) {
  824. val.splice(i, 1);
  825. }
  826. }
  827. },
  828. changeMixClass (val) {
  829. // 根据合奏班id获取合奏班下的所有单技班
  830. this.getList(val);
  831. this.activeMixClass = val;
  832. },
  833. getList (val) {
  834. getAllSignClassandTeacher({ musicGroupId: this.teamid, type: val }).then(res => {
  835. if (res.code == 200) {
  836. this.activeSingleList = res.data;
  837. // this.topForm.count = this.activeSingleList.length
  838. }
  839. })
  840. },
  841. // 临时调整
  842. temporary () {
  843. this.activeClass = '';
  844. this.activeListStudent = [];
  845. this.studentList = [];
  846. this.isNewClass = true;
  847. this.studentVisible = true;
  848. this.isSearch = true;
  849. this.className = '';
  850. this.isTemporary = true;
  851. this.setType('SNAP');
  852. this.getNoClassStudent('SNAP')
  853. },
  854. setType (type) {
  855. switch (type) {
  856. case 'NORMAL': {
  857. this.courseTypeList = [
  858. { value: 'SINGLE', label: '单技课' },
  859. { value: 'TRAINING_SINGLE', label: '集训单技课' },
  860. { value: 'COMPREHENSIVE', label: '综合课' },
  861. { value: 'CLASSROOM', label: '课堂课' },
  862. ]
  863. break;
  864. }
  865. case 'MIX': {
  866. this.courseTypeList = [
  867. { value: 'MIX', label: '合奏课' },
  868. { value: 'TRAINING_MIX', label: '集训合奏课' },
  869. { value: 'COMPREHENSIVE', label: '综合课' },
  870. { value: 'CLASSROOM', label: '课堂课' },
  871. ]
  872. break;
  873. }
  874. case 'HIGH': {
  875. this.courseTypeList = [
  876. { value: 'SINGLE', label: '单技课' },
  877. { value: 'TRAINING_SINGLE', label: '集训单技课' },
  878. { value: 'HIGH', label: '基础技能课' },
  879. { value: 'COMPREHENSIVE', label: '综合课' },
  880. { value: 'CLASSROOM', label: '课堂课' },
  881. ]
  882. break;
  883. }
  884. case 'SNAP': {
  885. this.courseTypeList = [
  886. { value: 'SINGLE', label: '单技课' },
  887. { value: 'MIX', label: '合奏课' },
  888. { value: 'TRAINING_SINGLE', label: '集训单技课' },
  889. { value: 'TRAINING_MIX', label: '集训合奏课' },
  890. { value: 'HIGH', label: '基础技能课' },
  891. { value: 'COMPREHENSIVE', label: '综合课' },
  892. { value: 'CLASSROOM', label: '课堂课' },
  893. ]
  894. }
  895. }
  896. },
  897. // 新增班级
  898. addNewClass (type) {
  899. /**
  900. * { value: 'NORMAL', label: '单技班' },
  901. { value: 'MIX', label: '合奏班' },
  902. { value: 'HIGH', label: '基础技能班' },
  903. { value: 'SNAP', label: '临时班' },
  904. */
  905. this.setType(type);
  906. this.activeType = type;
  907. this.activeClass = '';
  908. this.activeListStudent = [];
  909. this.studentList = [];
  910. this.isNewClass = true;
  911. this.studentVisible = true;
  912. this.isSearch = false;
  913. this.className = '';
  914. this.isTemporary = false;
  915. this.getNoClassStudent(type)
  916. },
  917. searchStudent () {
  918. // 搜索学生
  919. // 根据声部id 乐团id搜索学生
  920. teamSoundStudent({ musicGroupId: this.teamid, actualSubjectId: this.activeChioseSound }).then(res => {
  921. if (res.code == 200) {
  922. this.studentList = res.data;
  923. }
  924. })
  925. },
  926. // 选择学生的方法修改
  927. SelectionStudent (val) {
  928. this.chioseStudent = val;
  929. },
  930. // 新增选中的学生
  931. NewselectionStudent (val) {
  932. this.chioseStudent = val;
  933. // 这里新增的添加到选中的学生列表 根据学生id去重
  934. if (this.chioseStudent.length > 0) {
  935. this.chioseStudent = this.chioseStudent.concat(val);
  936. } else {
  937. this.chioseStudent = val;
  938. }
  939. // 联动版
  940. // this.activeListStudent = this.objArrayRemoval(this.chioseStudent, 'userId')
  941. // 非联动多选版
  942. this.activeListStudent = this.activeListStudent.concat(this.chioseStudent);
  943. // // 去重
  944. this.activeListStudent = this.objArrayRemoval(this.activeListStudent, 'userId');
  945. // 将其填入选中的学生
  946. },
  947. clearCourse (scope) {
  948. clearClassCourse({ classGroupId: scope.row.id }).then(res => {
  949. if (res.code == 200) {
  950. this.$message.success('清除成功')
  951. scope._self.$refs[scope.$index].doClose();
  952. // 重新请求列表
  953. this.getList(this.activeMixClass);
  954. } else {
  955. this.$message.error(res.msg)
  956. scope._self.$refs[scope.$index].doClose();
  957. }
  958. }).catch(res => {
  959. scope._self.$refs[scope.$index].doClose();
  960. })
  961. // 清空课表
  962. },
  963. // 删除班级
  964. removeClass (scope) {
  965. removeSingleClass({ classGroupId: scope.row.id }).then(res => {
  966. if (res.code == 200) {
  967. this.$message.success('删除成功')
  968. scope._self.$refs[scope.$index].doClose();
  969. // 重新请求列表
  970. this.getList(this.activeMixClass);
  971. } else {
  972. this.$message.error(res.msg)
  973. scope._self.$refs[scope.$index].doClose();
  974. }
  975. }).catch(res => {
  976. scope._self.$refs[scope.$index].doClose();
  977. })
  978. },
  979. // 修改班级
  980. resetClass (row) {
  981. this.isNewClass = false;
  982. this.className = row.name;
  983. this.studentVisible = true;
  984. this.activeClass = row.id
  985. this.isSearch = false;
  986. this.activeType = row.type;
  987. // 根据单机班id 查询单技班内的所有学生
  988. getClassAllStudent({ classGroupId: row.id }).then(res => {
  989. if (res.code == 200) {
  990. this.activeListStudent = res.data.map(item => {
  991. item.isVisible = false;
  992. return item;
  993. });
  994. }
  995. })
  996. this.getNoClassStudent(row.type)
  997. },
  998. // 班级调整
  999. classAdjustment (row) {
  1000. this.activeType = row.type;
  1001. this.activeClass = row.id;
  1002. // this.activeListStudent = row.subjectIdList.split(',')
  1003. this.setType(row.type)
  1004. // activeListStudent
  1005. this.isNewClass = false;
  1006. this.teacherForm.assistant = [];
  1007. for (let i in row.classGroupTeacherMapperList) {
  1008. if (row.classGroupTeacherMapperList[i].teacherRole == 'BISHOP') {
  1009. this.teacherForm.coreTeacher = row.classGroupTeacherMapperList[i].userId;
  1010. }
  1011. if (row.classGroupTeacherMapperList[i].teacherRole == 'TEACHING') {
  1012. this.teacherForm.assistant.push(row.classGroupTeacherMapperList[i].userId)
  1013. }
  1014. }
  1015. this.infoVisible = true;
  1016. },
  1017. getNoClassStudent (type) {
  1018. // 获取乐团内所有未分班的学生
  1019. // if (type && type == 'SNAP') {
  1020. // teamSoundStudent({ musicGroupId: this.teamid }).then(res => {
  1021. // if (res.code == 200) {
  1022. // this.studentList = res.data
  1023. // }
  1024. // })
  1025. // } else {
  1026. // getMusicGroupStuNoClassType({ musicGroupId: this.teamid, type }).then(res => {
  1027. // if (res.code == 200) {
  1028. // this.studentList = res.data
  1029. // }
  1030. // })
  1031. // }
  1032. // res.data - activeListStudent
  1033. getMusicGroupStuNoClassType({ musicGroupId: this.teamid, type }).then(res => {
  1034. if (res.code == 200) {
  1035. // this.studentList = res.data.concat(this.activeListStudent).filter(item=>{
  1036. // return res.data
  1037. // });
  1038. if (this.activeType == 'SNAP') {
  1039. let idarr1 = [];
  1040. let idarr2 = [];
  1041. let arr3 = res.data.concat(this.activeListStudent);
  1042. for (let i in res.data) {
  1043. idarr1.push(res.data[i].userId);
  1044. }
  1045. for (let j in this.activeListStudent) {
  1046. idarr2.push(this.activeListStudent[j].userId);
  1047. }
  1048. this.studentList = arr3.filter(item => {
  1049. return idarr1.indexOf(item.userId) === -1 || (idarr2.indexOf(item.userId) === -1)
  1050. })
  1051. } else {
  1052. this.studentList = res.data;
  1053. }
  1054. }
  1055. })
  1056. },
  1057. // 删除学生 调整
  1058. removeStudent (item) {
  1059. // removeStudents({ classGroupId:}).then(res => {
  1060. removeStudents({ classGroupId: this.activeClass, userId: item.userId }).then(res => {
  1061. if (res.code == 200) {
  1062. this.$message.success('删除成功');
  1063. item.isVisible = false;
  1064. // 这里刷新 this.studentList this.activeListStudent
  1065. this.getList(this.activeMixClass);
  1066. getClassAllStudent({ classGroupId: this.activeClass }).then(res => {
  1067. if (res.code == 200) {
  1068. this.activeListStudent = res.data;
  1069. }
  1070. })
  1071. this.getNoClassStudent(this.activeType);
  1072. // getNoClassStudentAll({ musicGroupId: this.teamid }).then(res => {
  1073. // if (res.code == 200) {
  1074. // this.$message.success('删除成功');
  1075. // this.studentList = res.data.map(item => {
  1076. // item.isVisible = false;
  1077. // return item;
  1078. // });
  1079. // }
  1080. // })
  1081. }
  1082. })
  1083. },
  1084. // 批量添加学生
  1085. addSomeStudent () {
  1086. // 获取勾选的学生
  1087. let arr = this.chioseStudent.map(item => {
  1088. return item.userId;
  1089. });
  1090. if (arr.length <= 0) {
  1091. this.$message.error('至少添加一名学员')
  1092. return;
  1093. }
  1094. addStudents({ classGroupId: this.activeClass, userIdsStr: arr.join(',') }).then(res => {
  1095. if (res.code == 200) {
  1096. this.studentVisible = false;
  1097. this.$message.success('添加成功')
  1098. this.getList()
  1099. }
  1100. })
  1101. },
  1102. SelectionMix (val) {
  1103. this.activeSingleLists = val;
  1104. },
  1105. removeSiginforMix (item) {
  1106. for (let k in this.activeSingleLists) {
  1107. if (this.activeSingleLists[k].id == item.id) {
  1108. this.$refs['mixList'].toggleRowSelection(item, false)
  1109. }
  1110. }
  1111. },
  1112. temporaryRemoveStudent (item) {
  1113. // 列表中删除
  1114. for (let i in this.activeListStudent) {
  1115. if (this.activeListStudent[i].userId == item.userId) {
  1116. this.activeListStudent.splice(i, 1);
  1117. }
  1118. }
  1119. // 查询列表中的项 取消勾选 temporaryStudentList toggleRowSelection
  1120. // 循环列表 找到相应的行取消勾选
  1121. for (let k in this.studentList) {
  1122. if (this.studentList[k].userId == item.userId) {
  1123. this.$refs['temporaryStudentList'].toggleRowSelection(item, false)
  1124. }
  1125. }
  1126. // this.$refs['temporaryStudentList'].toggleRowSelection(row, selected);
  1127. },
  1128. // 对象数组去重
  1129. objArrayRemoval (arr, attr) {
  1130. let obj = {};
  1131. let result = [];
  1132. for (let x in arr) {
  1133. if (!obj[arr[x][attr]]) {
  1134. result.push(arr[x]);
  1135. obj[arr[x][attr]] = true;
  1136. }
  1137. }
  1138. return result;
  1139. },
  1140. setInfoMsg () {
  1141. // 判断班级名称是否输入
  1142. if (!this.className) {
  1143. this.$message.error('请输入班级名称')
  1144. return
  1145. }
  1146. // 判断有没有勾选学生
  1147. if (this.activeListStudent.length <= 0) {
  1148. // 没有勾学生
  1149. this.$message.error('班级里至少要有一名学生')
  1150. return
  1151. }
  1152. this.infoVisible = true;
  1153. },
  1154. addWeek () {
  1155. // 添加循环周期
  1156. this.weekList.push({
  1157. dayOfWeek: '',
  1158. startClassTime: '',
  1159. endClassTime: '',
  1160. id: new Date()
  1161. })
  1162. },
  1163. // 删除循环周
  1164. removeWeek (item) {
  1165. for (let i in this.weekList) {
  1166. if (this.weekList[i].id == item.id) {
  1167. this.weekList.splice(i, 1)
  1168. }
  1169. }
  1170. },
  1171. // 提交临时班的信息
  1172. submitTemporary (type) {
  1173. // 参数是一样 type为1 新增临时班
  1174. // type为2 新增单技班
  1175. // type为3 修改班级信息
  1176. if (type == 1) {
  1177. this.isTemporary = true;
  1178. } else {
  1179. this.isTemporary = false;
  1180. }
  1181. this.$refs['teacherForm'].validate(item => {
  1182. if (item) {
  1183. let week = this.weekList;
  1184. if (!week[0] || !week[0].startClassTime || !week[0].endClassTime || !week[0].dayOfWeek) {
  1185. this.$message.error('至少排一节课');
  1186. return
  1187. }
  1188. // 这里代表排课成功 发请求 新增临时班
  1189. let classGroupName = this.className;
  1190. let classGroupTeacherMapperList = [{ userId: this.teacherForm.coreTeacher, teacherRole: 'BISHOP' }]
  1191. for (let i in this.teacherForm.assistant) {
  1192. classGroupTeacherMapperList.push({ userId: this.teacherForm.assistant[i], teacherRole: 'TEACHING' })
  1193. }
  1194. // let mixClassGroupId = this.teacherForm.mixClassGroupId;
  1195. let musicGroupId = this.teamid;
  1196. let startDate = this.teacherForm.courseTime;
  1197. let courseType = this.teacherForm.courseType;
  1198. let courseTimes = this.teacherForm.courseNum
  1199. if (courseTimes <= 0) {
  1200. this.$message.error('请至少排一节课')
  1201. return
  1202. }
  1203. let students = this.activeListStudent.map(item => {
  1204. return item.userId;
  1205. })
  1206. let holiday = this.teacherForm.checked;
  1207. let courseList = [];
  1208. for (let i in this.weekList) {
  1209. courseList.push(this.weekList[i])
  1210. }
  1211. if (courseList.length <= 0) {
  1212. this.$message.error('新增班级至少排一节课')
  1213. return
  1214. }
  1215. // mixClassGroupId,
  1216. let mineType = this.activeType;
  1217. let obj = {
  1218. classGroupName,
  1219. classGroupTeacherMapperList,
  1220. musicGroupId,
  1221. startDate,
  1222. courseType,
  1223. students,
  1224. holiday,
  1225. courseTimes,
  1226. courseTimeDtoList: courseList,
  1227. type: mineType,
  1228. courseAddType: this.teacherForm.isAdd
  1229. }
  1230. if (type == 1) {
  1231. // 新增临时班级
  1232. revisionClassGroup(obj).then(res => {
  1233. if (res.code == 200) {
  1234. // 提示修改成功
  1235. this.$message.success('修改成功')
  1236. this.infoVisible = false;
  1237. this.studentVisible = false;
  1238. this.getList();
  1239. }
  1240. })
  1241. } else if (type == 2) {
  1242. // 新增单技班
  1243. revisionAddClassGroup(obj).then(res => {
  1244. if (res.code == 200) {
  1245. // 修改成功
  1246. this.$message.success('修改成功');
  1247. this.infoVisible = false;
  1248. this.studentVisible = false;
  1249. this.getList();
  1250. }
  1251. })
  1252. } else if (type == 3) {
  1253. // activeClass
  1254. obj.classGroupId = this.activeClass;
  1255. classGroupUpdate(obj).then(res => {
  1256. if (res.code == 200) {
  1257. this.$message.success('修改成功');
  1258. this.infoVisible = false;
  1259. this.getList();
  1260. }
  1261. })
  1262. }
  1263. } else {
  1264. this.$message.error('请填写必要信息')
  1265. return;
  1266. }
  1267. })
  1268. },
  1269. },
  1270. watch: {
  1271. infoVisible (val) {
  1272. if (!val) {
  1273. this.$refs['teacherForm'].resetFields();
  1274. this.weekList = [];
  1275. }
  1276. }
  1277. }
  1278. }
  1279. </script>
  1280. <style lang="scss" scoped>
  1281. .floor {
  1282. padding-right: 20px;
  1283. display: flex;
  1284. flex-direction: row;
  1285. justify-content: flex-end;
  1286. width: 100%;
  1287. height: 48px;
  1288. line-height: 48px;
  1289. background: rgba(237, 238, 240, 1);
  1290. font-size: 14px;
  1291. color: #444;
  1292. align-items: center;
  1293. position: relative;
  1294. z-index: 1;
  1295. .remove {
  1296. width: 98px;
  1297. height: 32px;
  1298. background: rgba(248, 80, 67, 1);
  1299. border-radius: 3px;
  1300. color: #fff;
  1301. line-height: 32px;
  1302. text-align: center;
  1303. margin-left: 164px;
  1304. cursor: pointer;
  1305. }
  1306. .add {
  1307. width: 98px;
  1308. height: 32px;
  1309. background: rgba(20, 146, 138, 1);
  1310. border-radius: 3px;
  1311. color: #fff;
  1312. line-height: 32px;
  1313. text-align: center;
  1314. margin-left: 20px;
  1315. cursor: pointer;
  1316. }
  1317. }
  1318. .studentMask {
  1319. display: flex;
  1320. flex-direction: row;
  1321. justify-content: flex-start;
  1322. .left {
  1323. width: 200px;
  1324. margin-right: 20px;
  1325. .wrap {
  1326. margin-bottom: 20px;
  1327. }
  1328. h4 {
  1329. font-size: 16px;
  1330. color: #444;
  1331. line-height: 38px;
  1332. }
  1333. .chioseStudentList {
  1334. height: 500px;
  1335. overflow-y: auto;
  1336. border: 1px solid #ccc;
  1337. .studentItem {
  1338. padding-left: 10px;
  1339. line-height: 25px;
  1340. }
  1341. }
  1342. }
  1343. .right {
  1344. width: calc(100% - 200px);
  1345. .tableList {
  1346. max-height: 500px;
  1347. overflow-y: auto;
  1348. }
  1349. }
  1350. }
  1351. .resetClassForm {
  1352. /deep/.el-date-editor.el-input,
  1353. /deep/.el-date-editor.el-input__inner {
  1354. width: 180px !important;
  1355. }
  1356. }
  1357. /deep/.el-date-editor.el-input,
  1358. /deep/.el-date-editor.el-input__inner {
  1359. width: 100px !important;
  1360. }
  1361. </style>