seatTemplateEdit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. <!--
  2. * @Description: 新增/编辑弹框
  3. * @Author: Sugar.
  4. * @Date: 2023-11-24 13:55:00
  5. * @LastEditors: Sugar.
  6. * @LastEditTime: 22023-11-24 13:55:00
  7. * @FilePath: \cattle_webui\src\views\venue\performanceHallMr\dialog\seatTemplateEdit.vue
  8. * @Copyright: Copyright (c) 2016~2023 by Sugar., All Rights Reserved.
  9. -->
  10. <template>
  11. <el-dialog
  12. :title="title"
  13. :visible.sync="open"
  14. width="1200px"
  15. append-to-body
  16. :close-on-click-modal="false"
  17. @close="cancel"
  18. >
  19. <div class="dialog">
  20. <el-row>
  21. <el-col :span="18" style="padding-right: 15px">
  22. <div class="title-class">
  23. <el-row>
  24. <el-col :span="8" style="padding-right: 15px">
  25. <el-input placeholder="请输入" v-model.number="seatMapRow">
  26. <template slot="append">行</template>
  27. </el-input>
  28. </el-col>
  29. <el-col :span="8" style="padding-left: 15px">
  30. <el-input placeholder="请输入" v-model.number="seatMapCol">
  31. <template slot="append">列</template>
  32. </el-input>
  33. </el-col>
  34. <el-col :span="8" style="padding-left: 15px">
  35. <el-button @click="setRowCol(seatMapRow, seatMapCol)" style="width: 100%;" type="primary">生成模板</el-button>
  36. </el-col>
  37. </el-row>
  38. </div>
  39. <div class="box-top-class" style="position:relative;">
  40. <div class="stage-class">舞台</div>
  41. <el-button :type="!dragStatus ? 'danger' : 'primary'" size="mini" @click="dragEven" style="position: absolute; bottom: 0; right: 0" icon="el-icon-rank">{{dragStatus ? '开始设置' : '关闭设置'}}</el-button>
  42. </div>
  43. <div class="box-class scroll-container-class"
  44. v-if="seatType"
  45. @contextmenu.prevent.stop="contextmenuEven"
  46. @wheel.prevent="wheelHandle"
  47. ref="scrollContainer"
  48. style="position: relative; overflow: hidden; padding: 0;"
  49. >
  50. <!-- 画框确定 -->
  51. <div class="draw-dialog-class" id="draw-dialog-type" v-show="drawDialogType">
  52. <div class="box-class" style="border: none; height: 280px" @wheel.stop="wheelDrawHandle">
  53. <el-form :model="drawForm" ref="drawForm" :rules="drawRules" label-width="100px" label-position="top">
  54. <el-form-item label="" prop="status">
  55. <el-radio v-model="drawForm.status" label="1">可售</el-radio>
  56. <el-radio v-model="drawForm.status" label="2">不可售</el-radio>
  57. </el-form-item>
  58. <el-form-item label="" prop="seatTypeId" v-if="drawForm.status == 1">
  59. <el-select
  60. v-model="drawForm.seatTypeId"
  61. placeholder="座位类型"
  62. clearable
  63. style="width: 100%"
  64. @change="seatTypeDrawChange"
  65. >
  66. <el-option
  67. v-for="dict in seatList"
  68. :key="dict.id"
  69. :label="dict.name"
  70. :value="dict.id"
  71. />
  72. </el-select>
  73. </el-form-item>
  74. <el-form-item label="" v-if="drawForm.status == 1">
  75. <el-input
  76. v-model.number="drawForm.priority"
  77. placeholder="座位自动分配优先级"
  78. clearable
  79. style="width: 100%;"
  80. />
  81. </el-form-item>
  82. <el-form-item >
  83. <el-button @click="drawDialogClen">取 消</el-button>
  84. <el-button @click="drawDialogOk" style="float: right" type="primary">确 定</el-button>
  85. </el-form-item>
  86. </el-form>
  87. </div>
  88. </div>
  89. <div style="position: relative;">
  90. <div class="box-bottom-class scroll-container" style="position: absolute; width: 100%; height: 100%" id="drawBox" v-drag :style="{ width: boxWidth ? boxWidth + 'px' : '100%', height: boxWidth ? boxWidth + 'px' : '100%'}" ref="seatBox" v-if="seatType">
  91. <div v-for="row in seatMap.row" :key="row" style="display: inline-block">
  92. <div class="seat-tag"
  93. :id="(((row - 1) * seatMap.col) + index + '_')"
  94. @click.stop="setSeatTemplateMap((((row - 1) * seatMap.col) + index + '_'))"
  95. v-for="(col, index) in seatMap.col"
  96. :key="col"
  97. :style="{
  98. width: seatWidth + 'px',
  99. height: seatWidth + 'px',
  100. backgroundColor: colSeatMap[((row - 1) * seatMap.col) + index + '_'] && colSeatMap[((row - 1) * seatMap.col) + index + '_'].color ? colSeatMap[((row - 1) * seatMap.col) + index + '_'].color : ''}"
  101. >
  102. <div v-if="seatWidth > 160" :style="{paddingTop: (seatWidth / 4) + 'px', width: seatWidth + 'px', height: seatWidth + 'px'}" class="seat-p-class">
  103. <p style="font-size: 16px !important;"><span>{{colSeatMap[((row - 1) * seatMap.col) + index + '_'].name ? colSeatMap[((row - 1) * seatMap.col) + index + '_'].name : (colSeatMap[((row - 1) * seatMap.col) + index + '_'].rowNo + '排' + (colSeatMap[((row - 1) * seatMap.col) + index + '_'].columnNo) + '座')}}</span><span style="font-size: 14px !important;" v-if="colSeatMap[((row - 1) * seatMap.col) + index + '_'].seatLabel">({{colSeatMap[((row - 1) * seatMap.col) + index + '_'].seatLabel}})</span></p>
  104. <p style="font-size: 14px !important;" v-if="colSeatMap[((row - 1) * seatMap.col) + index + '_'].priority">自动分配优先级 <span>({{colSeatMap[((row - 1) * seatMap.col) + index + '_'].priority}})</span></p>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <div style="margin-top: 5px">
  112. 总座位数:{{ seatMap.row * seatMap.col || 0}}; 可售数量:<span style="color: #67c23a">{{ canNum.length }}</span>; 不可售数量:<span style="color: #f56c6c">{{ unCanNum.length }}</span>
  113. </div>
  114. </el-col>
  115. <el-col :span="6" style="padding-left: 15px">
  116. <div class="title-class">座位设置</div>
  117. <div class="box-class" style="height: 540px">
  118. <el-form :model="form" ref="form" label-width="100px" label-position="top">
  119. <el-form-item label="是否可售">
  120. <el-radio v-model="form.status" label="1">可售</el-radio>
  121. <el-radio v-model="form.status" label="2">不可售</el-radio>
  122. </el-form-item>
  123. <el-form-item label="座位类型">
  124. <el-select
  125. v-model="form.seatTypeId"
  126. placeholder="座位类型"
  127. clearable
  128. style="width: 100%"
  129. @change="seatTypeChange"
  130. >
  131. <el-option
  132. v-for="dict in seatList"
  133. :key="dict.id"
  134. :label="dict.name"
  135. :value="dict.id"
  136. />
  137. </el-select>
  138. </el-form-item>
  139. <el-form-item label="座位自动分配优先级">
  140. <el-input
  141. v-model.number="form.priority"
  142. placeholder="优先级"
  143. clearable
  144. style="width: 100%;"
  145. />
  146. </el-form-item>
  147. <el-form-item label="自定义座位名">
  148. <el-input
  149. v-model="form.name"
  150. placeholder="自定义座位名"
  151. clearable
  152. style="width: 100%;"
  153. />
  154. </el-form-item>
  155. <el-form-item >
  156. <el-button @click="setSeatMap" style="width: 100%; margin-top: 20px" type="primary">确 定</el-button>
  157. </el-form-item>
  158. </el-form>
  159. </div>
  160. </el-col>
  161. </el-row>
  162. </div>
  163. <span slot="footer" class="dialog-footer">
  164. <el-button @click="cancel">取消</el-button>
  165. <el-button
  166. type="primary"
  167. @click="submitForm"
  168. v-loading.fullscreen.lock="loading"
  169. element-loading-text="提交中..."
  170. element-loading-spinner="el-icon-loading"
  171. element-loading-background="rgba(0, 0, 0, 0.8)"
  172. >
  173. <span v-if="loading">提交中...</span>
  174. <span v-else>保存</span>
  175. </el-button>
  176. </span>
  177. </el-dialog>
  178. </template>
  179. <script>
  180. import { pageList } from '@/api/seatTypeMr/seatTypeMr'
  181. import { seatSaveAndEdit, saveAndEdit, getSelectById } from "@/api/performanceHallMr/performanceHallMr";
  182. import { getToken } from "@/utils/auth";
  183. export default {
  184. name: "seatTemplateEdit",
  185. that: this,
  186. data() {
  187. return {
  188. title: "编辑",
  189. model: "EDIT",
  190. activeName: '01',
  191. open: false,
  192. seatType: false,
  193. loading: false,
  194. seatWidth: null,
  195. seatMap: {
  196. row: 0,
  197. col: 0,
  198. },
  199. seatMapRow: '',
  200. seatMapCol: '',
  201. seatSetMap: {},
  202. seatTemplateMap: [],
  203. colSeatMap: {},
  204. form: {
  205. id: undefined,
  206. status: "1",
  207. content: "",
  208. },
  209. seatList: [],
  210. auditoriumId: '',
  211. zoom: 10,
  212. boxWidth: '',
  213. initWidth: '',
  214. moveStatus: false,
  215. mouseMap: {},
  216. mousemoveMap: {},
  217. scrollTop: 0,
  218. scrollLeft: 0,
  219. scrollEvenTop: 0,
  220. scrollEvenLeft: 0,
  221. dragStatus: true,
  222. canNum: [],
  223. unCanNum: [],
  224. drawForm: {
  225. status: '1'
  226. },
  227. drawDialogType: false,
  228. drawRules: {
  229. status: [{ required: true, message: "请选择状态", trigger: ["change","blur"] }],
  230. seatTypeId: [{ required: true, message: "请选择座位类型", trigger: ["change","blur"] }]
  231. },
  232. };
  233. },
  234. methods: {
  235. drawDialogClen() {
  236. let drawDialog = document.getElementById("draw-dialog-type");
  237. drawDialog.style.display = "none";
  238. let drawDiv = document.getElementById("drawDiv");
  239. drawDiv.remove();
  240. this.$forceUpdate();
  241. },
  242. // 画框座位设置
  243. drawDialogOk() {
  244. this.$refs["drawForm"].validate(async (valid) => {
  245. if (valid) {
  246. let drawDialog = document.getElementById("drawDiv");
  247. // 获取div元素的坐标点
  248. let rect = drawDialog.getBoundingClientRect();
  249. let P_div = document.getElementById("drawBox");
  250. let P_div_list = P_div.children; // 获取行子集
  251. let select_div = [];
  252. // 循环判断是否在选择框里
  253. for (let i = 0; i < P_div_list.length; i++) {
  254. if(P_div_list[i] && P_div_list[i].childNodes) {
  255. let child_div = P_div_list[i].children
  256. for (let j = 0; j <child_div.length; j++) {
  257. let rect_div = child_div[j].getBoundingClientRect();
  258. if(rect.top < (rect_div.top + rect_div.height) && rect.bottom > (rect_div.bottom - rect_div.height) &&
  259. rect.left < (rect_div.left + rect_div.width) && rect.right > (rect_div.right - rect_div.width)) {
  260. select_div.push(child_div[j].getAttribute("id"));
  261. }
  262. }
  263. }
  264. }
  265. for (let i = 0; i < select_div.length; i++) {
  266. this.setSeatDrawMap(select_div[i]);
  267. }
  268. this.drawDialogClen()
  269. }
  270. });
  271. },
  272. // 画框座位放置参数
  273. setSeatDrawMap(key) {
  274. let map = this.colSeatMap[key];
  275. map.status = this.drawForm.status;
  276. map.color = this.drawForm.seat ? this.drawForm.seat.color : '';
  277. map.seatTypeId = this.drawForm.seat ? this.drawForm.seat.id : '';
  278. map.seatLabel = this.drawForm.seat ? this.drawForm.seat.name : '';
  279. map.name = "";
  280. map.priority = this.drawForm.priority;
  281. if(this.drawForm.status == 2) {
  282. map.color = '#7d7d7e';
  283. map.seatTypeId = '';
  284. map.seatLabel = '';
  285. }
  286. this.$set(this.colSeatMap, key, map);
  287. this.countNum();
  288. this.$forceUpdate()
  289. },
  290. // 鼠标滚动
  291. wheelHandle(e) {
  292. if(e.wheelDelta > 0){
  293. this.seatWidth = Math.trunc(this.seatWidth + 10);
  294. } else {
  295. if(this.initWidth > this.seatWidth + 5){
  296. // this.seatWidth = this.initWidth;
  297. } else {
  298. this.seatWidth = Math.trunc(this.seatWidth -10)
  299. }
  300. }
  301. this.boxWidth = this.seatWidth * this.seatMap.col + 100;
  302. // this.seatWidth = (this.seatWidth + this.zoom);
  303. this.$forceUpdate();
  304. },
  305. wheelDrawHandle(e) {
  306. if(e.preventDefault){
  307. e.preventDefault()
  308. } else {
  309. e.returnValue = false
  310. }
  311. return false
  312. },
  313. contextmenuEven(e) {
  314. return false;
  315. },
  316. dragEven(){
  317. this.dragStatus = !this.dragStatus;
  318. },
  319. /**
  320. * 打开弹框
  321. * @date 2023-11-22
  322. * @param {any} obj
  323. * @returns {any}
  324. */
  325. openDialog(title, obj) {
  326. this.open = true;
  327. this.seatType = false;
  328. this.getSeatTypeList();
  329. this.colSeatMap = {}
  330. this.drawForm = {};
  331. this.$set(this.drawForm, 'status', '1')
  332. this.boxWidth = 0;
  333. this.dragStatus = true;
  334. this.$set(this.form, 'status', '1')
  335. if (obj){
  336. this.title = "座位模板";
  337. this.auditoriumId = obj.id;
  338. this.$set(this.seatMap, 'row', obj.rows);
  339. this.$set(this.seatMap, 'col', obj.cols);
  340. this.$set(this, 'seatMapRow', obj.rows);
  341. this.$set(this, 'seatMapCol', obj.cols);
  342. this.getSelectByIdApi(obj)
  343. }else{
  344. this.seatType = true;
  345. this.title = "座位模板";
  346. this.$nextTick(() => {
  347. this.$refs["form"].clearValidate();
  348. });
  349. }
  350. },
  351. /** 获取详情 */
  352. getSelectByIdApi(row) {
  353. const id = row.id
  354. getSelectById(id).then(response => {
  355. const dataList = response.data;
  356. this.$nextTick(() =>{
  357. dataList.forEach(item => {
  358. if(item.status == 2){
  359. item.color = '#7d7d7e';
  360. }
  361. this.$set(this.colSeatMap, item.sortId + '_', item);
  362. })
  363. this.seatType = true;
  364. this.$nextTick(() =>{
  365. this.boxWidth = this.$refs.seatBox.offsetWidth;
  366. this.seatWidth = ((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
  367. this.initWidth = Math.trunc((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
  368. })
  369. this.countNum();
  370. })
  371. });
  372. },
  373. /** 设置座位模板行列 */
  374. setRowCol(row, col) {
  375. if(!row || !col){
  376. this.$message.error("请输入行和列!");
  377. return false;
  378. }
  379. if(row <= 0 || col <= 0){
  380. this.$message.error("请输入大于0的行和列!");
  381. return false;
  382. }
  383. if(this.colSeatMap) {
  384. this.$confirm('此操作将重置座位模板, 是否继续?', '提示', {
  385. confirmButtonText: '确定',
  386. cancelButtonText: '取消',
  387. type: 'warning'
  388. }).then(() => {
  389. this.seatMap.row = row;
  390. this.seatMap.col = col;
  391. this.seatType = false;
  392. this.seatType = true;
  393. this.colSeatMap = {}
  394. let index = 0;
  395. for (let i = 1; i < this.seatMap.row + 1; i++) {
  396. for (let j = this.seatMap.col; j > 0; j--) {
  397. let rowColMap = {
  398. "auditoriumId": this.auditoriumId,
  399. "name": "",
  400. "rowNo": i,
  401. "sortId": index,
  402. "columnNo": j,
  403. "seatTypeColor": '#fdfdfd',
  404. "seatTypeId": "",
  405. "seatLabel": "",
  406. "priority": "",
  407. "status": 2
  408. };
  409. this.$set(this.colSeatMap, index + '_', rowColMap);
  410. index ++;
  411. }
  412. }
  413. this.$nextTick(() =>{
  414. this.boxWidth = this.$refs.seatBox.offsetWidth;
  415. this.seatWidth = ((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
  416. this.initWidth = Math.trunc((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
  417. })
  418. this.countNum();
  419. }).catch(() => {
  420. });
  421. }
  422. },
  423. /** 座位类型列表 */
  424. getSeatTypeList() {
  425. pageList(this.addDateRange({pageNum: 1, pageSize: 100}))
  426. .then(response => {
  427. this.seatList = response.data.rows;
  428. }
  429. );
  430. },
  431. /** 座位类型选择事件 */
  432. seatTypeChange(val) {
  433. this.$set(this.form, 'priority', '');
  434. this.$set(this.form, 'name', '');
  435. this.seatList.forEach(item => {
  436. if(val == item.id){
  437. this.form.seat = item
  438. }
  439. })
  440. },
  441. /** 画框座位类型选择事件 */
  442. seatTypeDrawChange(val) {
  443. this.$set(this.drawForm, 'priority', '');
  444. this.seatList.forEach(item => {
  445. if(val == item.id){
  446. this.drawForm.seat = item
  447. }
  448. })
  449. },
  450. /** 座位设置确认事件 */
  451. setSeatMap() {
  452. this.seatSetMap = {};
  453. this.seatSetMap.status = this.form.status;
  454. this.seatSetMap.color = this.form.seat.color;
  455. this.seatSetMap.seatTypeId = this.form.seat.id;
  456. this.seatSetMap.seatLabel = this.form.seat.name;
  457. this.seatSetMap.name = this.form.name;
  458. this.seatSetMap.priority = this.form.priority;
  459. if(this.seatSetMap.status == 2) {
  460. this.seatSetMap.color = '#7d7d7e';
  461. this.seatSetMap.seatTypeId = '';
  462. this.seatSetMap.seatLabel = '';
  463. }
  464. },
  465. // 计算可售和不可售数量
  466. countNum() {
  467. this.canNum = [];
  468. this.unCanNum = [];
  469. if(this.colSeatMap) {
  470. for (const key in this.colSeatMap) {
  471. if(this.colSeatMap[key].status == 2 || !this.colSeatMap[key].status){
  472. this.unCanNum.push(key)
  473. } else if (this.colSeatMap[key].status == 1) {
  474. this.canNum.push(key)
  475. }
  476. }
  477. }
  478. },
  479. // 点击座位放置参数
  480. setSeatTemplateMap(key) {
  481. if(this.dragStatus){
  482. return false
  483. }
  484. if(!this.seatSetMap.status){
  485. this.seatSetMap.color = '#7d7d7e';
  486. }
  487. let map = this.colSeatMap[key];
  488. map.status = this.seatSetMap.status;
  489. map.color = this.seatSetMap.color;
  490. map.seatTypeId = this.seatSetMap.seatTypeId;
  491. map.seatLabel = this.seatSetMap.seatLabel;
  492. map.name = this.seatSetMap.name;
  493. map.priority = this.seatSetMap.priority;
  494. this.$set(this.colSeatMap, key, map);
  495. this.countNum();
  496. this.$forceUpdate()
  497. },
  498. /**
  499. * 保存
  500. * @date 2023-11-22
  501. * @returns {any}
  502. */
  503. submitForm() {
  504. let that = this;
  505. this.$refs["form"].validate(async (valid) => {
  506. if (valid) {
  507. let postList = []
  508. for (const codeKey in this.colSeatMap) {
  509. postList.push(this.colSeatMap[codeKey])
  510. }
  511. try {
  512. this.loading = true;
  513. const { code } = await saveAndEdit({ id: this.auditoriumId, rows: this.seatMap.row, cols: this.seatMap.col });
  514. if (code === 200) {
  515. let postList = []
  516. for (const codeKey in this.colSeatMap) {
  517. postList.push(this.colSeatMap[codeKey])
  518. }
  519. const { code } = await seatSaveAndEdit(postList);
  520. if (code === 200) {
  521. that.$message.success("操作成功!");
  522. that.$emit("getList");
  523. that.cancel();
  524. }
  525. }
  526. } catch (error) {
  527. } finally {
  528. this.loading = false;
  529. }
  530. }
  531. });
  532. },
  533. /**
  534. * 重置
  535. * @date 2023-11-22
  536. * @returns {any}
  537. */
  538. reset() {
  539. this.$refs["form"].resetFields();
  540. this.form.id = undefined;
  541. },
  542. /**
  543. * 关闭弹框
  544. * @date 2023-11-22
  545. * @returns {any}
  546. */
  547. cancel() {
  548. this.reset();
  549. this.open = false;
  550. },
  551. /**
  552. * 上传成功
  553. * @date 2023-11-22
  554. * @param {any} res
  555. * @returns {any}
  556. */
  557. handleAvatarSuccess(res) {
  558. if (res.code === 200) {
  559. // this.form.mainImg = res?.data?.url;
  560. this.$set(this.form, 'mainImg', res?.data?.url)
  561. }
  562. },
  563. /**
  564. * 上传文件之前之前
  565. * @date 2023-11-22
  566. * @param {any} file
  567. * @returns {any}
  568. */
  569. beforeAvatarUpload(file) {
  570. const isJPG = file.type === "image/jpeg" || "image/png";
  571. if (!isJPG) {
  572. this.$message.error("上传头像图片只能是jpg或png格式!");
  573. }
  574. return isJPG;
  575. },
  576. },
  577. };
  578. </script>
  579. <style lang="scss" scoped>
  580. .dialog {
  581. padding: 0 30px;
  582. max-height: 75vh;
  583. overflow-y: auto;
  584. }
  585. .draw-dialog-class{
  586. border-radius: 10px;
  587. height: 240px;
  588. width: 220px;
  589. background-color: #fff;
  590. position: absolute;
  591. z-index: 55;
  592. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  593. }
  594. .dialog {
  595. padding: 0 30px;
  596. .title-class{
  597. text-align: center;
  598. color: #6e6e6e;
  599. margin: 10px auto;
  600. }
  601. .box-top-class{
  602. .stage-class{
  603. margin: 10px auto;
  604. width: 160px;
  605. height: 80px;
  606. border: 2px solid #7d7d7e;
  607. text-align: center;
  608. line-height: 80px;
  609. }
  610. }
  611. .box-class ::-webkit-scrollbar{ /*滚动条基本样式,高度*/
  612. width:10px;height:10px;
  613. }
  614. .box-class{
  615. width: 100%;
  616. height: 500px;
  617. border: 2px solid #7d7d7e;
  618. border-radius: 4px;
  619. padding: 10px;
  620. .box-bottom-class{
  621. //border: 2px solid #5656c2;
  622. //margin-top: 15px;
  623. //padding-left: 4px;
  624. .seat-tag{
  625. display: inline-block;
  626. border: 1px solid #7d7d7e;
  627. margin-right: 2px;
  628. cursor: pointer;
  629. background: url("../../../../assets/images/seat-icon.png") no-repeat;
  630. background-size: 100% 100%;
  631. position: relative;
  632. &:hover{
  633. opacity: 0.8;
  634. }
  635. }
  636. .seat-p-class{
  637. position: absolute;
  638. left: 0;
  639. top: 0;
  640. text-align: center;
  641. font-size: 18px;
  642. display: inline-block;
  643. color: white;
  644. }
  645. }
  646. }
  647. .upload-btn {
  648. width: 100px;
  649. height: 100px;
  650. background-color: #fbfdff;
  651. border: dashed 1px #c0ccda;
  652. border-radius: 5px;
  653. i {
  654. font-size: 30px;
  655. margin-top: 20px;
  656. }
  657. &-text {
  658. margin-top: -10px;
  659. }
  660. }
  661. .avatar {
  662. cursor: pointer;
  663. }
  664. }
  665. </style>