courses.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <div class="context">
  3. <div class="panel">
  4. <h5>课程管理
  5. </h5>
  6. <div class="likeTab">
  7. <el-button type="primary" @click="goType('courses')">当前课程</el-button>
  8. <el-button type="" @click="goType('coursesHistory')">历史记录</el-button>
  9. </div>
  10. <div class="panel-body">
  11. <div class="panel_control">
  12. <el-row :gutter="20">
  13. <el-date-picker
  14. v-model="panel.timeScope"
  15. type="daterange"
  16. range-separator="至"
  17. start-placeholder="开始日期"
  18. end-placeholder="结束日期">
  19. </el-date-picker>
  20. <el-col :span="4">
  21. <el-button size="" type="primary" @click="query" :disabled="serachBtnStatus" plain>查询
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="table">
  29. <el-table
  30. :data="tableData"
  31. border
  32. is-horizontal-resize
  33. :default-sort="{prop: 'date', order: 'descending'}"
  34. element-loading-background="rgba(0, 0, 0, 0.8)"
  35. class=""
  36. @selection-change="handleSelectionChange"
  37. >
  38. >
  39. <el-table-column
  40. type="index"
  41. label="序号"
  42. align="center"
  43. width="50">
  44. </el-table-column>
  45. <el-table-column
  46. prop="BeginTime"
  47. label="上课时间"
  48. :formatter="filterFmtDate"
  49. width="180"
  50. >
  51. </el-table-column>
  52. <el-table-column
  53. prop="ClassName"
  54. label="课程"
  55. sortable
  56. >
  57. <template slot-scope="scope">
  58. <span class="lessonSpan"
  59. :style="{background:scope.row.ClassColor}">{{scope.row.ClassName}}</span>
  60. </template>
  61. </el-table-column>
  62. <el-table-column
  63. prop="ConsumeHour"
  64. label="消耗课时"
  65. width="110"
  66. sortable
  67. >
  68. </el-table-column>
  69. <el-table-column
  70. prop="OrderNum"
  71. label="实际预约人数"
  72. width="130"
  73. sortable
  74. >
  75. </el-table-column>
  76. <el-table-column
  77. prop="SvName"
  78. label="区域"
  79. width="110"
  80. sortable
  81. >
  82. </el-table-column>
  83. <el-table-column
  84. prop="ClassType"
  85. label="课程类型"
  86. width="110"
  87. sortable
  88. >
  89. <template slot-scope="scope">
  90. <span v-if="scope.row.ClassType == 1">团课</span>
  91. <span v-if="scope.row.ClassType == 3">私教</span>
  92. <span v-if="scope.row.ClassType == 2 && scope.row.PkNum == 2">两队PK</span>
  93. <span v-if="scope.row.ClassType == 2 && scope.row.PkNum == 3">三队PK</span>
  94. </template>
  95. </el-table-column>
  96. <el-table-column
  97. prop="FinishClass"
  98. label="当前状态"
  99. width="110"
  100. sortable
  101. >
  102. <template slot-scope="scope">
  103. <span v-if="scope.row.FinishClass == 0" style="color: red">未上课</span>
  104. <span v-if="scope.row.FinishClass == 1">已下课</span>
  105. <span v-if="scope.row.FinishClass == 2" style="color: yellowgreen">已上课</span>
  106. <span v-if="scope.row.FinishClass == 3">准备上课</span>
  107. <span v-if="scope.row.FinishClass == 4">已完成</span>
  108. </template>
  109. </el-table-column>
  110. <el-table-column
  111. prop="Status"
  112. label="操作"
  113. width="160"
  114. >
  115. <template slot-scope="scope">
  116. <!--<el-button type="primary" round size="mini" @click="checkClassOverPrepare(scope.row)">-->
  117. <!--下课-->
  118. <!--</el-button>-->
  119. <el-button type="primary" round size="mini" v-if="scope.row.FinishClass == 0"
  120. @click="showDialogMemberVisible(scope.row)">
  121. 上课
  122. </el-button>
  123. <el-button type="primary" round size="mini"
  124. v-if="scope.row.FinishClass == 3 || scope.row.FinishClass == 2"
  125. @click="seeEdit(scope.row)"
  126. >
  127. 管理
  128. </el-button>
  129. <!--修改区域 todo-->
  130. <el-button type="primary" round plain size="mini" v-if="scope.row.FinishClass == 3"
  131. @click="changeShopVenue(scope.row)"
  132. >
  133. 编辑
  134. </el-button>
  135. <!--已完成才能看详情-->
  136. <el-button type="primary" round plain size="mini"
  137. v-if="scope.row.FinishClass == 1 || scope.row.FinishClass == 4"
  138. @click="seeDetail(scope.row)"
  139. >
  140. 详情
  141. </el-button>
  142. </template>
  143. </el-table-column>
  144. </el-table>
  145. <br>
  146. <el-pagination
  147. background
  148. :total="pageination.total"
  149. :page-size="pageination.pageItem"
  150. @current-change="pageChange"
  151. ></el-pagination>
  152. </div>
  153. <el-dialog :title="dialogTitle" :visible.sync="dialogMemberVisible" width="960px">
  154. <div class="dialogContent">
  155. <h5 class="classNames">{{className}}</h5>
  156. <div class="">
  157. <el-form ref="form" :model="form" label-width="160px">
  158. <el-form-item label="区域" :required="true">
  159. <el-select v-model="form.svId" filterable placeholder="请选择" @change="changeLocationValue">
  160. <el-option
  161. v-for="item in form.svList"
  162. :key="item.SvId"
  163. :label="item.Name"
  164. :value="item.SvId">
  165. </el-option>
  166. </el-select>
  167. </el-form-item>
  168. <el-form-item label="类型" :required="true">
  169. <el-select v-model="form.classType" filterable placeholder="请选择">
  170. <el-option
  171. v-for="item in form.ClassTypeOptions"
  172. :key="item.value"
  173. :label="item.label"
  174. :value="item.value">
  175. </el-option>
  176. </el-select>
  177. </el-form-item>
  178. <el-form-item label="组队方式" v-if="form.classType == 2">
  179. <el-select v-model="form.pkNum" filterable placeholder="请选择">
  180. <el-option
  181. v-for="item in form.PKTypeOptions"
  182. :key="item.value"
  183. :label="item.label"
  184. :value="item.value">
  185. </el-option>
  186. </el-select>
  187. </el-form-item>
  188. <!--选教练,非必选-->
  189. <el-form-item label="上课教练">
  190. <el-transfer filterable v-model="dialogCoachValue" :data="form.dialogCoachdata"
  191. :titles="['教练列表', '已添加教练']"></el-transfer>
  192. </el-form-item>
  193. </el-form>
  194. </div>
  195. </div>
  196. <div class="dialogFooter">
  197. <el-button type="primary" size="small" v-if="form.btnType == 0" @click="getClassStartPrepare()">确定
  198. </el-button>
  199. <el-button type="primary" size="small" v-if="form.btnType == 1" @click="getClassStartPrepareForEdit()">
  200. 确定
  201. </el-button>
  202. <el-button size="small" @click="dialogMemberVisible = false">取消</el-button>
  203. </div>
  204. </el-dialog>
  205. </div>
  206. </template>
  207. <script>
  208. import Global from '../Global.js'
  209. import {
  210. ClassPreFinishListQuery,
  211. ClassOverPrepare,
  212. ClassDetailQuery,
  213. QueryShopVenue,
  214. ClassStartPrepare,
  215. DispPlanInfoEdit,
  216. ShopManagerListQuery,
  217. } from "../api/getApiRes";
  218. let qs = require('qs');
  219. export default {
  220. data() {
  221. return {
  222. dialogMemberVisible: false,
  223. serachBtnStatus: false,
  224. dialogVisible: false,//其他dialog
  225. dialogFinishVisible: false,//确认下课dialog
  226. dialogLesson: false,//课时调整
  227. dialogGift: false,//赠送课时调整
  228. dialogExpTime: false,//有效期调整
  229. dialogLessonTable: false,//会员课程
  230. dialogTitle: '上课准备',
  231. dialogCoachValue: [],
  232. className: '',
  233. current: getNowDate(),
  234. dialogValue: [],
  235. // panel 配置项目
  236. panel: {
  237. usercode: '',
  238. username: '',
  239. compname: '',
  240. keyword: '',
  241. USERCODE: '',
  242. endType: '',
  243. taskstatus: 99,
  244. draw: 1,
  245. start: 0,
  246. recordsTotal: 0,
  247. tableData: [],
  248. allTableData: [],
  249. limit: '10',
  250. multipleSort: false,
  251. loading: false,
  252. fileList: [],
  253. multipleSelection: [],
  254. detectedmac: '',
  255. options: [
  256. {value: 99, label: '全部'},
  257. {value: 1, label: '进行中'},
  258. {value: 2, label: '已完成'},
  259. ],
  260. endTypeOptions: [
  261. {value: 99, label: '全部'},
  262. {value: 30, label: '近一个月'},
  263. {value: 7, label: '近一周'},
  264. {value: 1, label: '当日'},
  265. ],
  266. time1: globalBt(),
  267. timeScope: globalBt2(0),
  268. },
  269. multipleSelection: [],
  270. pageination: {
  271. pageItem: 100,
  272. pageoptions: pageOptions(),
  273. total: 100,
  274. pageIndex: 1,
  275. },
  276. form: {
  277. name: '',
  278. svId: '',
  279. svName: '',
  280. classType: 1,
  281. userCode: '',
  282. coach: '',
  283. coachOptions: [],
  284. shopId: '',
  285. memberType: 1,
  286. lesson: 1,
  287. gift: 1,
  288. pktype: 1,
  289. pkNum: 2,
  290. btnType: 0,//0新建,1编辑
  291. memo: '',
  292. expTime: '',
  293. StdId: '',
  294. svList: [],//区域列表
  295. dialogdata: [],//穿梭待选
  296. dialogValue: [],//穿梭已选
  297. dialogCoachdata: [],//穿梭已选
  298. ClassTypeOptions: [
  299. {value: 1, label: '团课'},
  300. {value: 2, label: '竞技PK'},
  301. {value: 3, label: '私教'},
  302. ],
  303. PKTypeOptions: [
  304. {value: 2, label: '2队PK'},
  305. {value: 3, label: '3队PK'},
  306. ],
  307. },
  308. memberTypes: [
  309. {value: 1, label: '年会员'},
  310. {value: 2, label: '充值会员'},
  311. ],
  312. tableData: []
  313. }
  314. },
  315. mounted() {
  316. this.getTableQuery();
  317. },
  318. methods: {
  319. goType(url) {
  320. this.$router.push({path: '/' + url});
  321. },
  322. // 更改上课区域
  323. changeShopVenue(row) {
  324. this.dialogMemberVisible = true;
  325. this.form.btnType = 1;//0新建,1编辑
  326. // 读取本行信息
  327. this.dialogMemberVisible = true;
  328. this.className = row.ClassName + ' ' + row.BeginStr + ' - ' + row.EndStr;
  329. this.form.StdId = row.StdId;
  330. this.getQueryShopVenue();
  331. this.form.svId = row.SvId;
  332. this.form.classType = row.ClassType;
  333. this.form.pkNum = row.PkNum;
  334. },
  335. // 准备上课
  336. getClassStartPrepare() {
  337. let that = this;
  338. if (!that.form.svId) {
  339. that.$message.error('上课区域不能为空');
  340. return false
  341. }
  342. // 不是竞技pk的时候为0
  343. let uppkNum = that.form.classType == 2 ? that.form.pkNum : 0;
  344. let tid = that.dialogCoachValue.toString();
  345. let param = {
  346. token: localStorage.token,
  347. stdId: that.form.StdId,
  348. svId: that.form.svId,
  349. svName: that.form.svName,
  350. classType: that.form.classType,
  351. pkNum: uppkNum,
  352. tid: tid,//教练id
  353. };
  354. let postdata = qs.stringify(param);
  355. ClassStartPrepare(postdata).then(res => {
  356. let json = res;
  357. if (json.Code == 0) {
  358. this.$router.push({
  359. path: '/courseEdit',
  360. query: {
  361. StdId: that.form.StdId,
  362. ClassName: that.form.ClassName,
  363. BeginStr: that.form.BeginStr,
  364. EndStr: that.form.EndStr,
  365. FinishClass: 3,
  366. ClassType: that.form.classType,
  367. PkNum: uppkNum,
  368. }
  369. });
  370. that.dialogMemberVisible = false;
  371. this.getTableQuery();
  372. } else {
  373. that.$message.error(json.Memo + '错误码:' + json.Code);
  374. }
  375. })
  376. },
  377. // 编辑
  378. getClassStartPrepareForEdit() {
  379. let that = this;
  380. if (!that.form.svId) {
  381. that.$message.error('上课区域不能为空');
  382. return false
  383. }
  384. // 不是竞技pk的时候为0
  385. let uppkNum = that.form.classType == 2 ? that.form.pkNum : 0;
  386. let param = {
  387. token: localStorage.token,
  388. stdId: that.form.StdId,
  389. svId: that.form.svId,
  390. svName: that.form.svName,
  391. classType: that.form.classType,
  392. pkNum: uppkNum,
  393. };
  394. let postdata = qs.stringify(param);
  395. DispPlanInfoEdit(postdata).then(res => {
  396. let json = res;
  397. if (json.Code == 0) {
  398. // NewId: 0
  399. that.dialogMemberVisible = false;
  400. this.getTableQuery();
  401. } else {
  402. that.$message.error(json.Memo + '错误码:' + json.Code);
  403. }
  404. })
  405. },
  406. seeDetail(row) {
  407. this.$router.push({
  408. path: '/classInfoDetail', query: {
  409. StdId: row.StdId,
  410. ClassName: row.ClassName,
  411. BeginStr: row.BeginStr,
  412. EndStr: row.EndStr,
  413. }
  414. });
  415. },
  416. seeEdit(row) {
  417. this.$router.push({
  418. path: '/courseEdit', query: {
  419. StdId: row.StdId,
  420. ClassName: row.ClassName,
  421. BeginStr: row.BeginStr,
  422. EndStr: row.EndStr,
  423. FinishClass: row.FinishClass,
  424. ClassType: row.ClassType,
  425. PkNum: row.PkNum,
  426. }
  427. });
  428. },
  429. // 获取select的label
  430. changeLocationValue(val) {
  431. //locations是v-for里面的也是datas里面的值
  432. let obj = {};
  433. obj = this.form.svList.find((item) => {
  434. return item.SvId === val;
  435. });
  436. this.form.svName = obj.Name;
  437. },
  438. // 获取区域列表
  439. getQueryShopVenue() {
  440. let that = this;
  441. let param = {
  442. key: localStorage.ServiceKey,
  443. shopId: localStorage.ServiceId,
  444. };
  445. if (!localStorage.ServiceKey) {
  446. that.$message.error('还未与心率系统对接,请联系管理员');
  447. return false
  448. }
  449. let postdata = qs.stringify(param);
  450. QueryShopVenue(postdata).then(res => {
  451. let json = res;
  452. if (json.Code == 0) {
  453. that.form.svList = json.Rs;
  454. } else {
  455. that.$message.error(json.Memo + '错误码:' + json.Code);
  456. }
  457. })
  458. },
  459. vipSelect(stdId) {
  460. let that = this;
  461. // 筛选相同的stdid的classId
  462. that.form.stdList.map(function (item) {
  463. if (item.value == stdId) {
  464. let param = {
  465. token: localStorage.token,
  466. // classId: item.classId
  467. };
  468. let postdata = qs.stringify(param);
  469. // VipUserListQuery
  470. VipUserSimpleQuery(postdata).then(res => {
  471. let json = res;
  472. if (json.Code == 0) {
  473. that.form.userId = '';
  474. that.form.userList = turnResToOptionBySimViper(json.Rs);
  475. } else {
  476. that.$message.error(json.Memo + '错误码:' + json.Code);
  477. }
  478. })
  479. }
  480. })
  481. },
  482. showDialogMemberVisible(row) {
  483. this.dialogMemberVisible = true;
  484. this.form.btnType = 0;//0新建,1编辑编辑
  485. // clear
  486. this.form.svList = "";
  487. this.form.classType = 1;
  488. this.form.pkNum = 2;
  489. this.form.StdId = row.StdId;
  490. this.form.ClassName = row.ClassName;
  491. this.form.BeginStr = row.BeginStr;
  492. this.form.EndStr = row.EndStr;
  493. this.form.FinishClass = row.FinishClass;
  494. this.form.ClassType = row.ClassType;
  495. this.form.PkNum = row.PkNum;
  496. this.className = row.ClassName + ' ' + row.BeginStr + ' - ' + row.EndStr;
  497. this.form.StdId = row.StdId;
  498. this.getCoachOption();
  499. this.getQueryShopVenue();
  500. },
  501. // 获取教练选项
  502. getCoachOption() {
  503. let that = this;
  504. let param = {
  505. token: localStorage.token,
  506. name: this.panel.name,//
  507. phone: this.panel.phone,//
  508. shopId: localStorage.ShopId,//
  509. adminType: 4,//
  510. start: 1,//
  511. tableMax: 299,//
  512. };
  513. let postdata = qs.stringify(param);
  514. ShopManagerListQuery(postdata).then(res => {
  515. let json = res;
  516. if (json.Code == 0) {
  517. that.form.dialogCoachdata = turnResToOptionByUsers(json.Rs);
  518. } else {
  519. that.$message.error(json.Memo + '错误码:' + json.Code);
  520. }
  521. })
  522. },
  523. // 检测当前课是否处于可改变状态
  524. // 固定下当前已预约人数列表
  525. checkClassOverPrepare(row) {
  526. let that = this;
  527. let param = {
  528. token: localStorage.token,
  529. stdId: row.StdId,
  530. };
  531. let postdata = qs.stringify(param);
  532. ClassOverPrepare(postdata).then(res => {
  533. let json = res;
  534. if (json.Code == 0) {
  535. that.goFinish(row);
  536. } else {
  537. that.$message.error(json.Memo + '错误码:' + json.Code);
  538. }
  539. })
  540. },
  541. goFinish(row) {
  542. this.$router.push({
  543. path: '/finishDetail', query: {
  544. id: row.StdId,
  545. classId: row.ClassId,
  546. ClassName: row.ClassName,
  547. BeginTime: row.BeginTime,
  548. }
  549. });
  550. },
  551. handleSelectionChange(val) {
  552. this.multipleSelection = val;
  553. },
  554. // 查询按钮
  555. query() {
  556. let that = this;
  557. that.serachBtnStatus = true;
  558. let totalTime = 2;
  559. let clock = window.setInterval(() => {
  560. totalTime--;
  561. if (totalTime < 0) {
  562. totalTime = 2;
  563. that.serachBtnStatus = false;
  564. }
  565. }, 1000);
  566. this.getTableQuery();
  567. this.$message.success('查询完毕');
  568. },
  569. // 页面数据查询
  570. getTableQuery() {
  571. let that = this;
  572. that.loading = true;
  573. let param = {
  574. token: localStorage.token,
  575. tagname: that.panel.tagname,//标签名
  576. bt: nonTfmtDatetoLength(that.panel.timeScope[0], 10) + " 00:00:00",
  577. et: nonTfmtDatetoLength(that.panel.timeScope[1], 10) + " 23:59:59",
  578. fcStatus: '0,3,2',//状态字符串,空是全部 或 0,3,2 是待上课 或 1,4 已下课
  579. start: 1,//
  580. tableMax: 9999,//
  581. };
  582. let postdata = qs.stringify(param);
  583. ClassDetailQuery(postdata).then(res => {
  584. let json = res;
  585. if (json.Code == 0) {
  586. that.loading = false;
  587. if (json.Rs) {
  588. that.allTableData = json.Rs;
  589. that.recordsTotal = json.Rs.length;
  590. } else {
  591. that.allTableData = [];
  592. that.recordsTotal = 0;
  593. }
  594. // 设置分页数据
  595. that.setPaginations();
  596. } else {
  597. that.$message.error(json.Memo + '错误码:' + json.Code);
  598. }
  599. })
  600. },
  601. // 设置分页数据
  602. setPaginations() {
  603. // 分页属性
  604. let that = this;
  605. that.pageination.total = that.recordsTotal;
  606. // 默认分页
  607. that.tableData = that.allTableData.filter((item, index) => {
  608. return index < that.pageination.pageItem;
  609. });
  610. },
  611. // 每页显示数量
  612. handleSizeChange() {
  613. let that = this;
  614. that.tableData = that.allTableData.filter((item, index) => {
  615. return index < that.pageination.pageItem;
  616. });
  617. that.draw = that.pageination.pageItem;
  618. // that.getTableQuery();
  619. },
  620. // 翻页
  621. pageChange(pageIndex) {
  622. let that = this;
  623. // 获取当前页
  624. let index = that.pageination.pageItem * (pageIndex - 1);
  625. // 数据总数
  626. let nums = that.pageination.pageItem * pageIndex;
  627. // 容器
  628. let tables = [];
  629. for (var i = index; i < nums; i++) {
  630. if (that.allTableData[i]) {
  631. tables.push(that.allTableData[i])
  632. }
  633. this.tableData = tables;
  634. }
  635. that.start = index * that.draw;
  636. // that.getTableQuery();
  637. },
  638. // 过滤时间
  639. filterFmtDate(value, row, column) {
  640. let that = this;
  641. return nonTfmtDate(column, 11);
  642. },
  643. },
  644. watch: {
  645. $route(to) {
  646. if (to.name == 'courses') {
  647. this.getTableQuery();
  648. }
  649. },
  650. },
  651. }
  652. </script>
  653. <style scoped>
  654. @import "../assets/css/panel.css";
  655. .context {
  656. height: 770px;
  657. overflow-y: scroll;
  658. display: block;
  659. margin: 0 auto;
  660. background-color: #fff !important;
  661. padding: 30px;
  662. }
  663. .panel-body {
  664. padding: 20px;
  665. background: #F0F2F5;
  666. }
  667. .change {
  668. width: 100%;
  669. overflow: hidden;
  670. display: block;
  671. margin: 0 auto;
  672. padding-top: 10px;
  673. padding-bottom: 10px;
  674. }
  675. .change button {
  676. float: left;
  677. }
  678. .change button.pull-right {
  679. float: right;
  680. }
  681. .dialogTitle {
  682. width: 100%;
  683. overflow: hidden;
  684. display: block;
  685. margin: 0 auto;
  686. color: #000000;
  687. font-size: 18px;
  688. text-align: center;
  689. }
  690. .dialogTitle em {
  691. float: none;
  692. font-style: normal;
  693. color: #3799FF;
  694. margin: 0;
  695. }
  696. /deep/ .el-transfer-panel__item .el-checkbox__input {
  697. left: 40px;
  698. }
  699. .dialogFooter {
  700. width: 90%;
  701. overflow: hidden;
  702. display: block;
  703. margin: 0 auto;
  704. margin-top: 10px;
  705. }
  706. .dialogFooter button {
  707. float: right;
  708. margin-left: 10px;
  709. }
  710. .dialogContent {
  711. width: 100%;
  712. overflow: hidden;
  713. display: block;
  714. margin: 0 auto;
  715. }
  716. .dialogContent .pull-left {
  717. width: 30%;
  718. float: left;
  719. }
  720. .dialogContent .pull-right {
  721. width: 70%;
  722. float: right;
  723. }
  724. .blueTitle {
  725. width: 200px;
  726. overflow: hidden;
  727. display: block;
  728. margin: 0 auto;
  729. margin-top: 10px;
  730. margin-bottom: 40px;
  731. background: #F0F2F5;
  732. border-radius: 19px;
  733. text-align: center;
  734. color: #3799FF;
  735. font-size: 16px;
  736. padding: 5px 24px;
  737. }
  738. .current {
  739. width: 158px;
  740. height: 23px;
  741. /*float: left;*/
  742. border-radius: 250px;
  743. text-align: center;
  744. background: #F0F2F5;
  745. color: #545454;
  746. font-size: 14px;
  747. padding: 3px 10px;
  748. margin-left: 20px;
  749. }
  750. .lessonSpan {
  751. width: 78px;
  752. height: 22px;
  753. border-radius: 11px;
  754. margin-right: 5px;
  755. float: left;
  756. margin-bottom: 3px;
  757. text-align: center;
  758. color: #000;
  759. font-size: 12px;
  760. }
  761. .classNames {
  762. width: 211px;
  763. height: 25px;
  764. background: #f0f2f5;
  765. font-family: "Source Han Sans CN";
  766. font-weight: normal;
  767. font-size: 16px;
  768. color: #3799ff;
  769. border-radius: 250px;
  770. text-align: center;
  771. margin: 0 auto;
  772. margin-bottom: 10px;
  773. }
  774. /deep/ .el-date-editor .el-range-separator {
  775. line-height: 25px;
  776. }
  777. .likeTab {
  778. width: 100%;
  779. overflow: hidden;
  780. display: block;
  781. margin: 0 auto;
  782. padding-top: 10px;
  783. padding-bottom: 0;
  784. border-bottom: 1px solid #ccc;
  785. margin-bottom: 10px;
  786. }
  787. .likeTab button {
  788. float: left;
  789. border-radius: 0;
  790. }
  791. .likeTab button.pull-right {
  792. float: right;
  793. }
  794. .el-dialog__body .el-date-editor.el-input__inner {
  795. width: 156px;
  796. }
  797. .el-transfer-panel__item.el-checkbox .el-checkbox__label{
  798. width: 156px;
  799. }
  800. /deep/ .el-dialog__body .el-transfer-panel__item .el-checkbox__input {
  801. left: 10px;
  802. }
  803. /deep/ .el-dialog__body .el-form-item__content .el-select {
  804. float: left;
  805. margin-left: 50px;
  806. }
  807. /deep/ .el-dialog__body .el-transfer {
  808. float: left;
  809. margin-left: 50px;
  810. }
  811. </style>