EditLessonManage.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. <template>
  2. <div class="context">
  3. <div class="panel">
  4. <h5>{{ pageTitle }}</h5>
  5. </div>
  6. <div class="panel-body">
  7. <div class="panel_control">
  8. <el-row :gutter="20">
  9. <el-col :span="5">
  10. <em><span style="color: red">*</span> 课程表名称:</em>
  11. <el-input v-model="panel.name" placeholder="请输入课程表名称" :disabled="panel.inputState"></el-input>
  12. </el-col>
  13. <el-col :span="5" v-if="!panel.inputState">
  14. <em><span style="color: red">*</span> 课程表时间:</em>
  15. <el-date-picker
  16. v-model="panel.week"
  17. type="week"
  18. :picker-options="{'firstDayOfWeek': 1}"
  19. format="yyyy 第 WW 周"
  20. placeholder="选择周">
  21. </el-date-picker>
  22. </el-col>
  23. <!-- todo-->
  24. <!-- <el-button class="seeTemp">预览课程表</el-button>-->
  25. <el-button type="default" class="seeTemp" @click="$router.push('/lessonManage')">返回课程表</el-button>
  26. </el-row>
  27. </div>
  28. </div>
  29. <br>
  30. <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
  31. <el-tab-pane label="星期一" name="1"></el-tab-pane>
  32. <el-tab-pane label="星期二" name="2"></el-tab-pane>
  33. <el-tab-pane label="星期三" name="3"></el-tab-pane>
  34. <el-tab-pane label="星期四" name="4"></el-tab-pane>
  35. <el-tab-pane label="星期五" name="5"></el-tab-pane>
  36. <el-tab-pane label="星期六" name="6"></el-tab-pane>
  37. <el-tab-pane label="星期天" name="7"></el-tab-pane>
  38. </el-tabs>
  39. <!-- todo 读取后台保存状态,新保存后不跳走-->
  40. <div class="table">
  41. <el-table
  42. v-for="tab in tabs"
  43. :data="tab.tableData"
  44. v-if="tab.days == activeName"
  45. border
  46. is-horizontal-resize
  47. :default-sort="{prop: 'date', order: 'descending'}"
  48. element-loading-background="rgba(0, 0, 0, 0.8)"
  49. class=""
  50. @selection-change="handleSelectionChange"
  51. >
  52. >
  53. <el-table-column
  54. prop="timeScope"
  55. label="时间"
  56. width="260px"
  57. align="center"
  58. >
  59. <template slot-scope="scope">
  60. <el-time-picker
  61. is-range
  62. v-model="scope.row.timeLong"
  63. range-separator="至"
  64. start-placeholder="开始时间"
  65. end-placeholder="结束时间"
  66. placeholder="选择时间范围"
  67. :readonly="scope.row.Locking == 1"
  68. >
  69. </el-time-picker>
  70. </template>
  71. </el-table-column>
  72. <el-table-column
  73. prop="ClassId"
  74. label="课程"
  75. align="center"
  76. >
  77. <!-- locking是1的不可编辑课程和时间-->
  78. <template slot-scope="scope">
  79. <el-select v-model="scope.row.ClassId" @change="getRowTop(scope.row)"
  80. :disabled="scope.row.Locking == 1">
  81. <el-option
  82. v-for="item in panel.options"
  83. :key="item.value"
  84. :label="item.label"
  85. :value="item.value">
  86. </el-option>
  87. </el-select>
  88. </template>
  89. </el-table-column>
  90. <el-table-column
  91. prop="OrderToplimit"
  92. label="预约名额"
  93. align="center"
  94. >
  95. <template slot-scope="scope">
  96. <el-input-number v-model="scope.row.OrderToplimit" :min="1" :max="9999"
  97. label=""></el-input-number>
  98. </template>
  99. </el-table-column>
  100. <el-table-column
  101. prop="ConsumeHour"
  102. label="消耗课时"
  103. align="center"
  104. >
  105. <template slot-scope="scope">
  106. <el-input-number v-model="scope.row.ConsumeHour" :min="0" :max="9999"
  107. label=""></el-input-number>
  108. </template>
  109. </el-table-column>
  110. <el-table-column
  111. prop="WxVisible"
  112. label="微信可见"
  113. >
  114. <template slot-scope="scope">
  115. <el-switch
  116. v-model="scope.row.WxVisible"
  117. :active-value="1"
  118. :inactive-value="0"
  119. active-color="#409EFF"
  120. inactive-color="#D9D9D9"
  121. @change=changeWechat($event,scope.row)
  122. >
  123. </el-switch>
  124. </template>
  125. </el-table-column>
  126. <el-table-column
  127. prop="WxOrder"
  128. label="微信可预约"
  129. >
  130. <template slot-scope="scope">
  131. <el-switch
  132. v-model="scope.row.WxOrder"
  133. :active-value="1"
  134. :inactive-value="0"
  135. active-color="#409EFF"
  136. inactive-color="#D9D9D9"
  137. @change=changeWechatOrder($event,scope.row.ClassSelf)
  138. >
  139. </el-switch>
  140. </template>
  141. </el-table-column>
  142. <el-table-column
  143. prop="Status"
  144. label="操作"
  145. width="100px"
  146. align="center"
  147. >
  148. <template slot-scope="scope">
  149. <el-button type="text" class="red" @click="delRow(scope)" v-if="scope.row.Locking != 1">删除
  150. </el-button>
  151. <el-button type="text" class="gary" @click="delRow(scope)" v-if="scope.row.Locking == 1">删除
  152. </el-button>
  153. </template>
  154. </el-table-column>
  155. </el-table>
  156. <div class="rowBottom">
  157. <el-button type="default" @click="$router.push('/lessonManage')">返回课程表</el-button>
  158. <!-- ID为0是新建,不为0是修改-->
  159. <el-button type="primary" class="pull-right" @click="confirmLessonTable"
  160. v-if="this.$route.query.id == 0" :disabled="serachBtnStatus">提交
  161. </el-button>
  162. <el-button type="primary" class="pull-right" @click="confirmEditLessonTable"
  163. v-if="this.$route.query.id != 0" :disabled="serachBtnStatus">提交
  164. </el-button>
  165. <el-button type="primary" class="pull-right" @click="addRow">新增课表</el-button>
  166. </div>
  167. <div>
  168. <br>
  169. <em class="red wrning">
  170. *所有操作提交后生效
  171. </em>
  172. </div>
  173. </div>
  174. <br>
  175. <el-dialog title="增删课程会员" :visible.sync="dialogVisible">
  176. <div class="dialogTitle">
  177. <span>基础功能</span>
  178. </div>
  179. <div>
  180. <el-transfer filterable v-model="dialogValue" :data="dialogdata"></el-transfer>
  181. </div>
  182. <div class="dialogFooter">
  183. <el-button type="primary" size="small">确定</el-button>
  184. <el-button @click="dialogVisible = false" size="small">取消</el-button>
  185. </div>
  186. </el-dialog>
  187. </div>
  188. </template>
  189. <script>
  190. import Global from '../Global.js'
  191. import {
  192. SttPlanBasicAdd,
  193. SttPlanDetailListQuery,
  194. SttPlanDetailBatchSave,
  195. STTBasicAdd,
  196. SttPlanBasicEdit,
  197. STTDetailListQuery,
  198. STTDetailBatchSave,
  199. STTBasicEdit,
  200. testTable,
  201. testTableLong,
  202. testSelect,
  203. ClassListQuery,
  204. STTDetailAllowDelCheck,
  205. ClassDetailOne
  206. } from "../api/getApiRes";
  207. let qs = require('qs');
  208. export default {
  209. data() {
  210. return {
  211. pageTitle: '新增课程表',
  212. dialogVisible: false,
  213. dialogdata: [],
  214. dialogValue: [],
  215. temId: '',
  216. activeName: '1',
  217. tableData: [],
  218. // panel 配置项目
  219. panel: {
  220. inputState: false,
  221. name: '',
  222. usercode: '',
  223. username: '',
  224. compname: '',
  225. keyword: '',
  226. USERCODE: '',
  227. week: '',
  228. taskstatus: 99,
  229. draw: 1,
  230. start: 0,
  231. recordsTotal: 0,
  232. tableData: [],
  233. allTableData: [],
  234. limit: '10',
  235. multipleSort: false,
  236. loading: false,
  237. fileList: [],
  238. multipleSelection: [],
  239. detectedmac: '',
  240. options: [],
  241. time1: globalBt(),
  242. },
  243. multipleSelection: [],
  244. pageination: {
  245. pageItem: 100,
  246. pageoptions: pageOptions(),
  247. total: 100,
  248. pageIndex: 1,
  249. },
  250. testRow: {
  251. timeLong: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 23, 59)],
  252. BeginStr: '08:30',
  253. EndStr: '23:59',
  254. ClassId: '',
  255. OrderToplimit: 1,
  256. ConsumeHour: 1,
  257. WxOrder: 1,
  258. WxVisible: 0,
  259. },
  260. tabs: [
  261. {
  262. tableData: [], days: '1'
  263. },
  264. {
  265. tableData: [], days: '2'
  266. },
  267. {
  268. tableData: [], days: '3'
  269. },
  270. {
  271. tableData: [], days: '4'
  272. },
  273. {
  274. tableData: [], days: '5'
  275. },
  276. {
  277. tableData: [], days: '6'
  278. },
  279. {
  280. tableData: [], days: '7'
  281. },
  282. ],
  283. serachBtnStatus: false,
  284. }
  285. },
  286. mounted() {
  287. // 加载课程选项
  288. this.panelSelect();
  289. if (parseInt(this.$route.query.id) == 0) {
  290. // 深拷贝赋初始值
  291. this.pageTitle = '新增课程表'
  292. this.deepValue();
  293. this.panel.name = '';
  294. this.panel.week = '';
  295. this.panel.inputState = false
  296. } else {
  297. // 读取赋值
  298. this.pageTitle = '编辑课程表'
  299. this.getTableQuery();
  300. this.panel.inputState = true
  301. }
  302. },
  303. methods: {
  304. // 加载选项
  305. panelSelect() {
  306. let that = this;
  307. let param = {
  308. token: localStorage.token,
  309. vipType: '',
  310. start: 1,
  311. expDay: 0,
  312. tableMax: 9999,
  313. };
  314. let postdata = qs.stringify(param);
  315. ClassListQuery(postdata).then(res => {
  316. let json = res;
  317. if (json.Code == 0) {
  318. // that.dialogdata = json.Rs;
  319. if (json.Rs == null) return false
  320. that.panel.options = turnClassResToOption(json.Rs)
  321. console.log(that.panel.options);
  322. } else {
  323. that.$message.error(json.Memo + ' 错误码:' + json.Code);
  324. }
  325. })
  326. },
  327. // 选择课程后,获取当前课程的建议上课人数和课时消耗
  328. getRowTop(row) {
  329. let that = this;
  330. console.log(row);
  331. let param = {
  332. token: localStorage.token,
  333. classId: row.ClassId,
  334. };
  335. let postdata = qs.stringify(param);
  336. ClassDetailOne(postdata).then(res => {
  337. let json = res;
  338. if (json.Code == 0) {
  339. row.OrderToplimit = json.Rs.TopLimit;
  340. row.ConsumeHour = json.Rs.ConsumeHour;
  341. // row.WxOrder = json.Rs.WxOrder; //不支持联动
  342. row.WxVisible = json.Rs.WxVisible;
  343. } else {
  344. that.$message.error(json.Memo + ' 错误码:' + json.Code);
  345. }
  346. })
  347. },
  348. confirmEditLessonTable() {
  349. let id = this.$route.query.id
  350. // 提交课程内容,不再修改课程名称和时间的信息
  351. this.EditLessonTable(id);
  352. },
  353. // 删除
  354. delRow(scope) {
  355. if (!scope.row.StdId) {
  356. let delIndex = parseInt(scope.$index)
  357. let curIndex = parseInt(this.activeName) - 1;
  358. this.tabs[curIndex].tableData.splice(delIndex, 1)
  359. } else {
  360. this.checkCannotDel(scope)
  361. }
  362. },
  363. // 检测课表中课程可否删除
  364. checkCannotDel(scope) {
  365. let that = this;
  366. let param = {
  367. token: localStorage.token,
  368. stdId: scope.row.StdId,
  369. };
  370. let postdata = qs.stringify(param);
  371. STTDetailAllowDelCheck(postdata).then(res => {
  372. let json = res;
  373. if (json.Code == 0) {
  374. let delIndex = parseInt(scope.$index)
  375. let curIndex = parseInt(this.activeName) - 1;
  376. this.tabs[curIndex].tableData.splice(delIndex, 1)
  377. } else {
  378. that.$message.error(json.Memo + ' 错误码:' + json.Code);
  379. }
  380. })
  381. },
  382. // 提交课程
  383. confirmLessonTable() {
  384. if (!this.panel.name) {
  385. this.$message.error('名称不能为空');
  386. return false
  387. }
  388. if (this.panel.name.length < 3) {
  389. this.$message.error('名称不能小于3个字符');
  390. return false
  391. }
  392. if (this.panel.name.length > 20) {
  393. this.$message.error('名称不能大于20个字符');
  394. return false
  395. }
  396. if (!this.checkData()) {
  397. return false
  398. }
  399. let that = this;
  400. that.serachBtnStatus = true;
  401. let totalTime = 2
  402. let clock = window.setInterval(() => {
  403. totalTime--
  404. if (totalTime < 0) {
  405. totalTime = 2;
  406. that.serachBtnStatus = false;
  407. }
  408. }, 1000)
  409. let param = {
  410. token: localStorage.token,
  411. name: this.panel.name,
  412. incomingDate: nonTfmtDatetoLength(this.panel.week, 10),//对应日期 字符串 年-月-日 格式,
  413. };
  414. let postdata = qs.stringify(param);
  415. STTBasicAdd(postdata).then(res => {
  416. let json = res;
  417. if (json.Code == 0) {
  418. that.panel.tabId = json.Id;
  419. // 提交课程内容
  420. that.EditLessonTable(json.Id);
  421. } else {
  422. that.$message.error(json.Memo + ' 错误码:' + json.Code);
  423. }
  424. })
  425. },
  426. // 保存课程
  427. EditLessonTable(planId) {
  428. let that = this;
  429. // 校验提交的数据
  430. if (!this.checkData()) {
  431. return false
  432. }
  433. // 提交数据
  434. let planRs = [];
  435. let thisRow = {};
  436. for (let i = 0; i < this.tabs.length; i++) {
  437. for (let j = 0; j < this.tabs[i].tableData.length; j++) {
  438. thisRow = this.tabs[i].tableData[j];
  439. thisRow.LessonIndex = parseInt(j + 1);
  440. if (planId) {
  441. thisRow.StbId = parseInt(planId);
  442. } else {
  443. thisRow.StbId = parseInt(this.$route.query.id);
  444. }
  445. thisRow.WeekDay = parseInt(i + 1);
  446. thisRow.BeginStr = getHoursAndMin(thisRow.timeLong[0]);
  447. thisRow.EndStr = getHoursAndMin(thisRow.timeLong[1]);
  448. thisRow.StdId = thisRow.StdId ? thisRow.StdId : 0;
  449. this.$delete(thisRow, 'Base');
  450. this.$delete(thisRow, 'SpdId');
  451. planRs.push(thisRow);
  452. }
  453. }
  454. let res = JSON.stringify(planRs);
  455. // 如果传入0就用url里的,如果非0就用传入的
  456. // let uploadPlanId = planId == 0 ? this.$route.query.id : planId;
  457. let param = {
  458. token: localStorage.token,
  459. stbId: planId,
  460. stbRs: res,
  461. };
  462. let postdata = qs.stringify(param);
  463. STTDetailBatchSave(postdata).then(res => {
  464. let json = res;
  465. if (json.Code == 0) {
  466. that.$message({
  467. showClose: true,
  468. message: '课程已上传成功!',
  469. type: 'success'
  470. });
  471. this.$router.push({
  472. path: '/lessonManage'
  473. });
  474. // 提交后清掉内存里的课表
  475. this.clearTableRAM();
  476. // this.getTableQuery();
  477. } else {
  478. this.$router.push({
  479. path: '/lessonManage'
  480. });
  481. // 提交后清掉内存里的课表
  482. this.clearTableRAM();
  483. that.$message.error(json.Memo + ' 错误码:' + json.Code);
  484. }
  485. })
  486. },
  487. clearTableRAM() {
  488. this.tabs = [
  489. {
  490. tableData: [], days: '1'
  491. },
  492. {
  493. tableData: [], days: '2'
  494. },
  495. {
  496. tableData: [], days: '3'
  497. },
  498. {
  499. tableData: [], days: '4'
  500. },
  501. {
  502. tableData: [], days: '5'
  503. },
  504. {
  505. tableData: [], days: '6'
  506. },
  507. {
  508. tableData: [], days: '7'
  509. },
  510. ];
  511. },
  512. checkData() {
  513. let res = true
  514. for (let i = 0; i < this.tabs.length; i++) {
  515. for (let j = 0; j < this.tabs[i].tableData.length; j++) {
  516. if (!this.tabs[i].tableData[j].ClassId) {
  517. let days = numberToWeekdays(i + 1);
  518. let lessonIndex = j + 1;
  519. this.$message.error(days + '第' + lessonIndex + '节课有课程未选择,请选择后再提交')
  520. res = false
  521. break;
  522. }
  523. }
  524. }
  525. return res
  526. },
  527. // 检查数据
  528. checkData2() {
  529. // todo
  530. let tableDate = this.tabs;
  531. tableDate.map(function (item) {
  532. console.log(item);
  533. })
  534. },
  535. // 新增一行
  536. addRow() {
  537. // 读取当前周几
  538. let index = parseInt(this.activeName) - 1;
  539. let rows = this.testRow;
  540. let res = this.deepClone(rows);
  541. this.tabs[index].tableData.push(res);
  542. },
  543. // 深拷贝赋初始值
  544. deepValue() {
  545. let that = this;
  546. let valus = [
  547. this.testRow
  548. ];
  549. this.tabs.map(function (item) {
  550. let res = that.deepClone(valus);
  551. item.tableData = res;
  552. })
  553. },
  554. deepClone(obj) {
  555. let _obj = JSON.stringify(obj),
  556. objClone = JSON.parse(_obj);
  557. return objClone
  558. },
  559. handleClick() {
  560. },
  561. changeWechat(e, row) {
  562. // if(parseInt(e) == 0){
  563. // this.$message.success('当前课程微信已不可见');
  564. // }else{
  565. // this.$message.success('当前课程微信不可见');
  566. // }
  567. },
  568. changeWechatOrder(e, row) {
  569. // if(parseInt(e) == 0){
  570. // this.$message.success('当前课程微信已不可预约');
  571. // }else{
  572. // this.$message.success('当前课程微信可预约');
  573. // }
  574. },
  575. // 增删会员课程
  576. lessonStudenChange() {
  577. this.dialogVisible = true
  578. },
  579. handleSelectionChange(val) {
  580. this.multipleSelection = val;
  581. },
  582. // 页面数据查询
  583. getTableQuery() {
  584. let that = this;
  585. that.loading = true;
  586. let param = {
  587. token: localStorage.token,
  588. stbId: this.$route.query.id,//
  589. };
  590. // 只能读取,不能修改
  591. this.panel.name = this.$route.query.name;
  592. let postdata = qs.stringify(param);
  593. STTDetailListQuery(postdata).then(res => {
  594. let json = res;
  595. let Rs = json.Rs
  596. let bt = '';
  597. let et = '';
  598. if (json.Code == 0) {
  599. that.loading = false;
  600. // 清掉上次的记录
  601. for (let i = 0; i < that.tabs.length; i++) {
  602. that.tabs[i].tableData = []
  603. }
  604. if (Rs) {
  605. // 遍历分配
  606. Rs.map(function (item) {
  607. for (let i = 0; i < 7; i++) {
  608. if (item.WeekDay == i + 1) {
  609. bt = new Date(2016, 9, 10, item.BeginStr.substr(0, 2), item.BeginStr.substr(3, 2));
  610. et = new Date(2016, 9, 10, item.EndStr.substr(0, 2), item.EndStr.substr(3, 2));
  611. item.timeLong = [bt, et];
  612. that.tabs[i].tableData.push(item);
  613. }
  614. }
  615. })
  616. } else {
  617. that.allTableData = [];
  618. that.recordsTotal = 0;
  619. }
  620. } else {
  621. that.$message.error(json.Memo + ' 错误码:' + json.Code);
  622. }
  623. })
  624. },
  625. },
  626. watch: {
  627. $route(to) {
  628. if (to.name == 'EditLessonManage') {
  629. this.temId = this.$route.query.id;
  630. this.panelSelect();
  631. if (parseInt(this.temId) == 0) {
  632. this.pageTitle = '新增课程表'
  633. this.deepValue();
  634. this.panel.name = '';
  635. this.panel.week = '';
  636. this.panel.inputState = false
  637. } else {
  638. this.pageTitle = '编辑课程表'
  639. this.getTableQuery();
  640. this.panel.inputState = true
  641. }
  642. }
  643. },
  644. },
  645. }
  646. </script>
  647. <style scoped>
  648. @import "../assets/css/panel.css";
  649. em {
  650. font-style: normal;
  651. }
  652. .context {
  653. overflow: hidden;
  654. height: 770px;
  655. overflow-y: scroll;
  656. display: block;
  657. margin: 0 auto;
  658. background-color: #fff !important;
  659. min-height: 100%;
  660. padding: 30px;
  661. padding-bottom: 10px;
  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 span {
  691. width: 169px;
  692. height: 40px;
  693. line-height: 40px;
  694. text-align: center;
  695. color: #fff;
  696. background: #3799FF;
  697. border-radius: 250px;
  698. font-size: 18px;
  699. overflow: hidden;
  700. display: block;
  701. margin: 0 auto;
  702. margin-bottom: 30px;
  703. }
  704. .dialogTitle em {
  705. float: none;
  706. font-style: normal;
  707. color: #3799FF;
  708. margin: 0;
  709. }
  710. /deep/ .el-transfer-panel__item .el-checkbox__input {
  711. left: 40px;
  712. }
  713. .dialogFooter {
  714. width: 90%;
  715. overflow: hidden;
  716. display: block;
  717. margin: 0 auto;
  718. margin-top: 10px;
  719. }
  720. .dialogFooter button {
  721. float: right;
  722. margin-left: 10px;
  723. }
  724. /deep/ .panel_control .el-input {
  725. width: 200px;
  726. float: left;
  727. }
  728. .panel_control em {
  729. float: left;
  730. font-size: 14px;
  731. color: #545454;
  732. line-height: 45px;
  733. margin-right: 10px;
  734. }
  735. .seeTemp {
  736. /*position: relative;*/
  737. float: right;
  738. bottom: 0px;
  739. z-index: 222;
  740. }
  741. .table {
  742. position: relative;
  743. /*top: -50px;*/
  744. top: 0px;
  745. }
  746. .el-range-editor.el-input__inner {
  747. width: 220px;
  748. padding: 3px 6px;
  749. }
  750. .rowBottom {
  751. width: 100%;
  752. overflow: hidden;
  753. display: block;
  754. margin: 0 auto;
  755. margin-top: 10px;
  756. }
  757. .rowBottom button {
  758. float: left;
  759. margin-right: 10px;
  760. }
  761. .wrning {
  762. float: right;
  763. font-size: 12px;
  764. }
  765. .rowBottom button.pull-right {
  766. float: right;
  767. }
  768. .gary {
  769. color: #8c939d;
  770. }
  771. </style>