图书馆综合管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

594 lines
22 KiB

7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
6 months ago
7 months ago
7 months ago
  1. <template>
  2. <div class="app-container">
  3. <div class="venue-header">
  4. <h4><i class="iconfont icon-shujia" />架位列表</h4>
  5. <span class="bookshelf-area">{{ floorName }} - {{ regionName }}</span>
  6. <p><i class="iconfont icon-gongsi" />{{ user.fonds.fondsName }}</p>
  7. </div>
  8. <div class="bookshelf-main">
  9. <div class="bookshelf-top">
  10. <ul class="bookshelf-info">
  11. <li><p>书架名称</p><span>{{ bookShelfDetails && bookShelfDetails.shelfName }}</span></li>
  12. <li><p>书架规格</p><span>{{ bookShelfDetails && bookShelfDetails.shelfFloor + ' X ' + bookShelfDetails.shelfShelf }}</span></li>
  13. <li><p>/双面</p><span>{{ bookShelfDetails && bookShelfDetails.rowType === 1 ? '单面' :'双面' }}</span></li>
  14. <li><p>倒架规则</p><span>{{ bookShelfDetails && bookShelfDetails.shelfRule === 1 ? '无序' :'有序' }}</span></li>
  15. <li><p>错架判断</p><span>{{ bookShelfDetails && bookShelfDetails.shelfErrorJudge === 1 ? '书架' :'格子' }}</span></li>
  16. <!-- <li><p>前端测试用-架号顺序</p><span>{{ bookShelfDetails && bookShelfDetails.shelfType === 1 ? '始终最左边为第1架(S型排架)' : (bookShelfDetails.shelfType === 2 ? 'A面最左为第1架(B面最左为最后1架)' : 'B面最左为第1架(A面最左为最后1架)') }}</span></li>
  17. <li><p>前端测试用-层号顺序</p><span>{{ bookShelfDetails && bookShelfDetails.floorType === 1 ? '最顶层为第一层(从上至下)' :'最底层为第一层(从下至上)' }}</span></li> -->
  18. </ul>
  19. <div class="bookshelf-button">
  20. <el-button size="mini" @click="doExport">
  21. <i class="iconfont icon-daochu" />
  22. 导出层位编码
  23. </el-button>
  24. <el-button size="mini" :disabled="!cellInfo.cameraId" @click="handleViewVideo(cellInfo.cameraId)">
  25. <i class="iconfont icon-yulan" />
  26. {{ cellInfo.cameraId ? '摄像头预览' : '未绑定摄像头' }}
  27. </el-button>
  28. </div>
  29. </div>
  30. <div class="bookshelf-layer-info">
  31. <div class="bookshelf-left">
  32. <swiper
  33. ref="swiperTitle"
  34. class="swiper-title"
  35. :options="swiperOptionTitle"
  36. :auto-update="true"
  37. :auto-destroy="true"
  38. :delete-instance-on-destroy="true"
  39. :cleanup-styles-on-destroy="true"
  40. >
  41. <swiper-slide
  42. v-for="(item, index) of tabListData"
  43. ref="swiperSlideItem"
  44. :key="'name' + index"
  45. :iname="item.name"
  46. class="swiper-slide-title"
  47. >
  48. <div
  49. class="tab-name"
  50. :class="{ active: index === swiperActiveIndex }"
  51. @click="handleSlidClickFun(index)"
  52. >
  53. {{ item.name }}
  54. </div>
  55. </swiper-slide>
  56. </swiper>
  57. <swiper
  58. ref="swiperContent"
  59. class="swiper-content"
  60. :style="rowStyle"
  61. :options="swiperOptionContent"
  62. :auto-update="true"
  63. :auto-destroy="true"
  64. :delete-instance-on-destroy="true"
  65. :cleanup-styles-on-destroy="true"
  66. >
  67. <swiper-slide
  68. v-for="(item, index) of tabListData"
  69. :key="'content' + index"
  70. class="swiper-slide-content"
  71. >
  72. <ul class="cabinet-row" :style="rowStyle">
  73. <li v-for="(item,index) in booShelfGrid" :key="index" class="cabinet-cell" :style="cellStyle" :class="{ active: index === cellIndex }" @click="handleCellCurrent(item,index)">
  74. <span>{{ removeAreaPrefix(item.gridName) }}</span>
  75. </li>
  76. </ul>
  77. </swiper-slide>
  78. </swiper>
  79. </div>
  80. <div class="bookshelf-right-info">
  81. <div class="layer-status">
  82. <span v-if="cellInfo.startSortmark && cellInfo.endSortmark && checkValue === 'true'" class="row-state end-state">正常盘点</span>
  83. <span v-if="!cellInfo.startSortmark && !cellInfo.endSortmark && checkValue === 'true'" class="row-state soon-state">待初始化</span>
  84. <span v-if="checkValue === 'false'" class="row-state cancel-state">停止盘点</span>
  85. <span v-if="bookSortValue === 'false'" class="row-state other-state">无序倒架</span>
  86. <span v-else class="row-state ing-state">有序倒架</span>
  87. </div>
  88. <h5 class="layer-name">{{ cellInfo.gridName }}</h5>
  89. <div class="layer-code-sort">
  90. <ul>
  91. <!-- I247.58/586 -->
  92. <li><p>起始索书号</p><span>{{ cellInfo.startSortmark ? cellInfo.startSortmark : '-' }}</span></li>
  93. <li><p>结束索书号</p><span>{{ cellInfo.endSortmark? cellInfo.endSortmark : '-' }}</span></li>
  94. </ul>
  95. <el-button size="mini" class="edit-callNumber" @click="handleEditGridNum">
  96. <!-- <i class="iconfont icon-yulan" /> -->
  97. <i>&nbsp;&nbsp;&nbsp;</i>
  98. <i>索书号</i>
  99. </el-button>
  100. </div>
  101. <ul class="layer-handle">
  102. <li>
  103. <p>层位盘点开关</p>
  104. <el-switch
  105. v-model="checkValue"
  106. active-color="#13ce66"
  107. inactive-color="#ff4949"
  108. active-value="true"
  109. inactive-value="false"
  110. @change="changeCheckSwitch"
  111. />
  112. </li>
  113. <li>
  114. <p>图书有序检查</p>
  115. <el-switch
  116. v-model="bookSortValue"
  117. active-color="#13ce66"
  118. inactive-color="#ff4949"
  119. active-value="true"
  120. inactive-value="false"
  121. @change="changeBookSortSwitch"
  122. />
  123. </li>
  124. </ul>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- 编辑索书号 -->
  129. <el-dialog append-to-body :close-on-click-modal="false" :modal-append-to-body="false" :visible="callNumVisible" title="编辑索书号范围" :before-close="handleClose">
  130. <span class="dialog-right-top" />
  131. <span class="dialog-left-bottom" />
  132. <div class="setting-dialog">
  133. <el-form ref="form" :rules="rules" :model="form" size="small" label-width="100px">
  134. <el-form-item label="所属架位" prop="gridName">
  135. <el-input v-model="form.gridName" disabled style="width: 580px;" />
  136. </el-form-item>
  137. <el-form-item label="起始索书号" prop="startSortmark">
  138. <el-input v-model="form.startSortmark" style="width: 580px;" />
  139. </el-form-item>
  140. <el-form-item label="结束索书号" prop="endSortmark">
  141. <el-input v-model="form.endSortmark" style="width: 580px;" />
  142. </el-form-item>
  143. </el-form>
  144. <div slot="footer" class="dialog-footer">
  145. <el-button type="text" @click.native="handleClose">取消</el-button>
  146. <el-button type="primary" @click.native="handleSaveCallNum">保存</el-button>
  147. </div>
  148. </div>
  149. </el-dialog>
  150. <!-- 查看监控视频 -->
  151. <el-dialog class="view-video" ppend-to-body :close-on-click-modal="false" :modal-append-to-body="false" :visible="hkVideoVisible" title="查看监控视频" :before-close="handleClose">
  152. <span class="dialog-right-top" />
  153. <span class="dialog-left-bottom" />
  154. <div class="setting-dialog">
  155. <hkVideo :hk-config="hkConfig" />
  156. </div>
  157. </el-dialog>
  158. </div>
  159. </template>
  160. <script>
  161. // https://blog.csdn.net/qq_37236395/article/details/119737898
  162. import { FetchInitShelfGridByShelfId, FetcheEditSortmarkByGrid, FetchChangeOrderByGrid, FetchChangeCheckByGrid } from '@/api/shelf/index'
  163. import { FetchDeviceById } from '@/api/deviceVI/index'
  164. import { mapGetters } from 'vuex'
  165. import { swiper, swiperSlide } from 'vue-awesome-swiper'
  166. import 'swiper/dist/css/swiper.css'
  167. import { parseTime, saveAs, getBlob } from '@/utils/index'
  168. import qs from 'qs'
  169. import hkVideo from '@/views/components/hkVideo.vue'
  170. export default {
  171. name: 'BookshelfPosition',
  172. components: { swiper, swiperSlide, hkVideo },
  173. data() {
  174. const _this = this
  175. return {
  176. floorName: null,
  177. regionName: null,
  178. bookShelfDetails: null,
  179. booShelfGrid: null,
  180. cellInfo: {
  181. gridName: null,
  182. startSortmark: null,
  183. endSortmark: null,
  184. cameraId: null
  185. },
  186. callNumVisible: false,
  187. layerNum: 0,
  188. rackNum: 0,
  189. checkValue: 'true',
  190. bookSortValue: 'true',
  191. swiperActiveIndex: 0,
  192. cellIndex: null,
  193. swiperOptionContent: {
  194. slidesPerView: 'auto',
  195. on: {
  196. slideChangeTransitionStart: function() {
  197. _this.cellIndex = null
  198. _this.swiperActiveIndex = this.activeIndex
  199. console.log('activeIndexffff', this.swiperActiveIndex)
  200. _this.swiperTitle.slideTo(this.activeIndex, 500, false)
  201. }
  202. }
  203. },
  204. swiperOptionTitle: {
  205. slidesPerView: 'auto',
  206. freeMode: true
  207. },
  208. tabListData: [],
  209. form: {
  210. id: null,
  211. gridName: null,
  212. startSortmark: null,
  213. endSortmark: null,
  214. check: null,
  215. order: null,
  216. cameraId: null
  217. },
  218. rules: {
  219. gridName: [
  220. { required: true, message: '所属架位不可为空', trigger: 'blur' }
  221. ],
  222. startSortmark: [
  223. { required: true, message: '起始索书号不可为空', trigger: 'blur' }
  224. ],
  225. endSortmark: [
  226. { required: true, message: '结束索书号不可为空', trigger: 'blur' }
  227. ]
  228. },
  229. hkVideoVisible: false,
  230. hkConfig: {
  231. 'username': null,
  232. 'password': null,
  233. 'ip': null,
  234. 'port': null
  235. }
  236. }
  237. },
  238. computed: {
  239. ...mapGetters([
  240. 'user',
  241. 'baseApi'
  242. ]),
  243. swiperContent() {
  244. return this.$refs.swiperContent.$el.swiper
  245. },
  246. swiperTitle() {
  247. return this.$refs.swiperTitle.$el.swiper
  248. },
  249. cellStyle: function() {
  250. // const h = '100%/' + this.layerNum
  251. // const w = '100%/' + this.rackNum
  252. const h = '60px'
  253. const w = '146px'
  254. return { width: `calc(${w} - 4px )`, height: `calc(${h} - 2px)` }
  255. },
  256. rowStyle: function() {
  257. const w = 146 * this.rackNum + 'px'
  258. return { width: `calc(${w})` }
  259. }
  260. },
  261. watch: {
  262. '$route'(val, from) { // 监听到路由(参数)改变
  263. if (this.$route.query) {
  264. this.floorName = this.$route.query.floorName
  265. this.regionName = this.$route.query.regionName
  266. }
  267. }
  268. },
  269. async created() {
  270. if (this.$route.query) {
  271. this.floorName = this.$route.query.floorName
  272. this.regionName = this.$route.query.regionName
  273. }
  274. if (localStorage.getItem('bookShelfDetails')) {
  275. this.bookShelfDetails = JSON.parse(localStorage.getItem('bookShelfDetails'))
  276. this.layerNum = this.bookShelfDetails.shelfFloor
  277. this.rackNum = this.bookShelfDetails.shelfShelf
  278. // 单面/双面
  279. this.tabListData = this.bookShelfDetails.rowType === 1
  280. ? this.bookShelfDetails.toward === 1
  281. ? [{ name: 'A面' }]
  282. : [{ name: 'B面' }]
  283. : [{ name: 'A面' }, { name: 'B面' }]
  284. // 层数据
  285. this.getInitShelfGridByShelfId(this.bookShelfDetails.toward)
  286. }
  287. },
  288. mounted() {
  289. },
  290. methods: {
  291. removeAreaPrefix(gridNames) {
  292. const index = gridNames.indexOf('区')
  293. if (index !== -1) {
  294. return gridNames.substring(index + 1)
  295. }
  296. return gridNames
  297. },
  298. getInitShelfGridByShelfId(toward) {
  299. // rowType 1 单 2 双
  300. // toward 1 A面 2 B面
  301. // shelfType 1 '始终最左边为第1架(S型排架)'
  302. // shelfType 2 'A面最左为第1架(B面最左为最后1架)'
  303. // shelfType 3 'B面最左为第1架(A面最左为最后1架)'
  304. // floorType 1 '最顶层为第一层(从上至下)'
  305. // floorType 2 '最底层为第一层(从下至上)'
  306. FetchInitShelfGridByShelfId({ 'shelfId': this.bookShelfDetails.id, 'toward': toward }).then(res => {
  307. const sortFunction = toward === 1 ? {
  308. 1: { 1: 'sortBookshelvesLeftTop', 2: 'sortBookshelvesLeftBottom' },
  309. 2: { 1: 'sortBookshelvesLeftTop', 2: 'sortBookshelvesLeftBottom' },
  310. 3: { 1: 'sortBookshelvesRightTop', 2: 'sortBookshelvesRightBottom' }
  311. } : {
  312. 1: { 1: 'sortBookshelvesLeftTop', 2: 'sortBookshelvesLeftBottom' },
  313. 2: { 1: 'sortBookshelvesRightTop', 2: 'sortBookshelvesRightBottom' },
  314. 3: { 1: 'sortBookshelvesLeftTop', 2: 'sortBookshelvesLeftBottom' }
  315. }
  316. const shelfType = this.bookShelfDetails.shelfType
  317. const floorType = this.bookShelfDetails.floorType
  318. const sortMethod = sortFunction[shelfType][floorType]
  319. this.booShelfGrid = this[sortMethod](res)
  320. }).catch(() => {
  321. })
  322. },
  323. // 最左为第一架, 最顶层为第一层 从上往下
  324. sortBookshelvesLeftTop(data) {
  325. const sortedData = []
  326. const maxFloor = Math.max(...data.map(item => parseInt(item.gridFloor)))
  327. const maxShelf = Math.max(...data.map(item => parseInt(item.gridShelf.slice(-1))))
  328. for (let i = 1; i <= maxFloor; i++) {
  329. for (let j = 1; j <= maxShelf; j++) {
  330. const currentShelf = data.find(item => parseInt(item.gridFloor) === i && parseInt(item.gridShelf.slice(-1)) === j)
  331. if (currentShelf) {
  332. sortedData.push(currentShelf)
  333. }
  334. }
  335. }
  336. return sortedData
  337. },
  338. // 最右为第一架,最左为最后一架, 最顶层为第一层 从上往下
  339. sortBookshelvesRightTop(data) {
  340. const sortedData = []
  341. // 获取最大的楼层数
  342. const maxFloor = Math.max(...data.map(item => parseInt(item.gridFloor)))
  343. const maxShelf = Math.max(...data.map(item => parseInt(item.gridShelf.match(/\d+$/)[0])))
  344. for (let i = 1; i <= maxFloor; i++) {
  345. // 从最大的书架层数开始,向下排序
  346. for (let j = maxShelf; j >= 1; j--) {
  347. const currentShelf = data.find(item => parseInt(item.gridFloor) === i && parseInt(item.gridShelf.match(/\d+$/)[0]) === j)
  348. if (currentShelf) {
  349. sortedData.push(currentShelf)
  350. }
  351. }
  352. }
  353. return sortedData
  354. },
  355. // 最左为第一架, 最底层为第一层 从下往上
  356. sortBookshelvesLeftBottom(data) {
  357. const sortedData = []
  358. // 获取最大的楼层数
  359. const maxFloor = Math.max(...data.map(item => parseInt(item.gridFloor)))
  360. // 获取最大的书架层数
  361. const maxShelf = Math.max(...data.map(item => parseInt(item.gridShelf.slice(-1))))
  362. for (let i = maxFloor; i >= 1; i--) {
  363. for (let j = 1; j <= maxShelf; j++) {
  364. const currentShelf = data.find(item => parseInt(item.gridFloor) === i && parseInt(item.gridShelf.slice(-1)) === j)
  365. if (currentShelf) {
  366. sortedData.push(currentShelf)
  367. }
  368. }
  369. }
  370. return sortedData
  371. },
  372. // 最左为最后一架, 最底层为第一层 从下往上
  373. sortBookshelvesRightBottom(data) {
  374. const sortedData = []
  375. // 获取最大的楼层数
  376. const maxFloor = Math.max(...data.map(item => parseInt(item.gridFloor)))
  377. const maxShelfPerFloor = data.map(item => parseInt(item.gridShelf.match(/\d+$/)[0]))
  378. .reduce((acc, curr, index, arr) => {
  379. const floor = parseInt(data[index].gridFloor)
  380. if (!acc[floor]) acc[floor] = 1
  381. if (acc[floor] < curr) acc[floor] = curr
  382. return acc
  383. }, {})
  384. // 从最大的楼层开始向下遍历
  385. for (let i = maxFloor; i >= 1; i--) {
  386. // 从最大的书架编号开始向左遍历
  387. for (let j = maxShelfPerFloor[i] || 1; j >= 1; j--) {
  388. const currentShelf = data.find(item => parseInt(item.gridFloor) === i && parseInt(item.gridShelf.match(/\d+$/)[0]) === j)
  389. if (currentShelf) {
  390. sortedData.push(currentShelf)
  391. }
  392. }
  393. }
  394. return sortedData
  395. },
  396. handleSlidClickFun(index) {
  397. this.cellIndex = null
  398. this.handleSlideToFun(index)
  399. if (localStorage.getItem('bookShelfDetails')) {
  400. this.getInitShelfGridByShelfId(index + 1)
  401. }
  402. },
  403. handleSlideToFun(index) {
  404. this.swiperActiveIndex = index
  405. this.swiperContent.slideTo(index, 500, false)
  406. this.swiperTitle.slideTo(index, 500, false)
  407. },
  408. handleCellCurrent(item, index) {
  409. this.cellIndex = index
  410. this.cellInfo = {
  411. id: item.id,
  412. gridName: item.gridName,
  413. startSortmark: item.startSortmark,
  414. endSortmark: item.endSortmark,
  415. cameraId: item.cameraId,
  416. check: item.isCheck,
  417. order: item.isOrder
  418. }
  419. this.checkValue = `${item.isCheck}`
  420. this.bookSortValue = `${item.isOrder}`
  421. },
  422. handleEditGridNum() {
  423. console.log(this.cellIndex)
  424. if (this.cellIndex !== null) {
  425. this.callNumVisible = true
  426. this.form = this.cellInfo
  427. console.log(this.cellInfo)
  428. } else {
  429. this.$message({ message: '请选择需要操作得层位', type: 'error', offset: 8 })
  430. }
  431. },
  432. handleSaveCallNum() {
  433. if (this.$refs['form']) {
  434. this.$refs['form'].validate((valid) => {
  435. if (valid) {
  436. console.log(this.form)
  437. FetcheEditSortmarkByGrid(this.form).then(res => {
  438. console.log(res)
  439. if (res) {
  440. this.$message({ message: '编辑索书号范围成功', type: 'success', offset: 8 })
  441. this.callNumVisible = false
  442. }
  443. }).catch(() => {
  444. })
  445. }
  446. })
  447. }
  448. },
  449. handleClose() {
  450. if (this.callNumVisible) {
  451. this.$refs['form'].resetFields()
  452. this.callNumVisible = false
  453. }
  454. this.hkVideoVisible = false
  455. },
  456. handleViewVideo(data) {
  457. console.log('data', data)
  458. FetchDeviceById({ 'deviceId': data }).then(res => {
  459. if (res) {
  460. console.log(res)
  461. this.hkConfig = {
  462. 'username': res.account,
  463. 'password': res.password,
  464. 'ip': res.ipv4,
  465. 'port': res.rtsp
  466. }
  467. this.hkVideoVisible = true
  468. }
  469. })
  470. },
  471. // 盘点
  472. changeCheckSwitch(data) {
  473. console.log(data)
  474. if (this.cellIndex !== null) {
  475. this.$confirm('此操作将开启/关闭该层位的盘点功能' + '<span>你是否还要继续?</span>', '提示', {
  476. confirmButtonText: '继续',
  477. cancelButtonText: '取消',
  478. type: 'warning',
  479. dangerouslyUseHTMLString: true
  480. }).then(() => {
  481. this.cellInfo.check = JSON.parse(data)
  482. console.log(this.cellInfo)
  483. FetchChangeCheckByGrid(this.cellInfo).then(res => {
  484. this.$message({ message: '修改层位盘点状态成功', type: 'success', offset: 8 })
  485. if (localStorage.getItem('bookShelfDetails')) {
  486. this.getInitShelfGridByShelfId(this.swiperActiveIndex + 1)
  487. }
  488. }).catch(() => {
  489. this.checkValue = data === 'true' ? 'false' : 'true'
  490. })
  491. }).catch(() => {
  492. this.checkValue = data === 'true' ? 'false' : 'true'
  493. })
  494. } else {
  495. this.$message({ message: '请选择需要操作得层位', type: 'error', offset: 8 })
  496. this.checkValue = data === 'true' ? 'false' : 'true'
  497. return false
  498. }
  499. },
  500. changeBookSortSwitch(data) {
  501. console.log(data)
  502. if (this.cellIndex !== null) {
  503. this.$confirm('此操作将开启/关闭该层位的图书顺序检查' + '<span>你是否还要继续?</span>', '提示', {
  504. confirmButtonText: '继续',
  505. cancelButtonText: '取消',
  506. type: 'warning',
  507. dangerouslyUseHTMLString: true
  508. }).then(() => {
  509. this.cellInfo.order = JSON.parse(data)
  510. FetchChangeOrderByGrid(this.cellInfo).then(res => {
  511. this.$message({ message: '修改图书有序检查状态成功', type: 'success', offset: 8 })
  512. if (localStorage.getItem('bookShelfDetails')) {
  513. this.getInitShelfGridByShelfId(this.swiperActiveIndex + 1)
  514. }
  515. }).catch(() => {
  516. this.bookSortValue = data === 'true' ? 'false' : 'true'
  517. })
  518. }).catch(() => {
  519. this.bookSortValue = data === 'true' ? 'false' : 'true'
  520. })
  521. } else {
  522. this.$message({ message: '请选择需要操作得层位', type: 'error', offset: 8 })
  523. this.bookSortValue = data === 'true' ? 'false' : 'true'
  524. return false
  525. }
  526. },
  527. doExport() {
  528. console.log(this.bookShelfDetails)
  529. this.$confirm('此操作将导出所选数据' + '<span>你是否还要继续?</span>', '提示', {
  530. confirmButtonText: '继续',
  531. cancelButtonText: '取消',
  532. type: 'warning',
  533. dangerouslyUseHTMLString: true
  534. }).then(() => {
  535. const params = {
  536. 'shelfId': this.bookShelfDetails.id,
  537. 'toward': this.bookShelfDetails.toward
  538. }
  539. console.log(params)
  540. const fileName = '层位编码-' + parseTime(new Date()) + '.xlsx'
  541. getBlob(this.baseApi + '/api/bookShelf/exportShelfGridLabel' + '?' + qs.stringify(params, { indices: false }), function(blob) {
  542. saveAs(blob, fileName)
  543. })
  544. }).catch(() => {
  545. })
  546. }
  547. }
  548. }
  549. </script>
  550. <style lang="scss" scoped>
  551. .swiper-title{
  552. ::v-deep .swiper-wrapper{
  553. margin: 10px 0;
  554. border-bottom: 1px solid #EDEFF3;
  555. }
  556. }
  557. .swiper-slide-title {
  558. width: auto !important;
  559. margin-right: 20px;
  560. cursor: pointer;
  561. .tab-name {
  562. padding: 10px;
  563. &.active {
  564. color: #0348F3;
  565. border-bottom: 3px solid #0348F3;
  566. }
  567. }
  568. }
  569. .swiper-content{
  570. height: 544px;
  571. }
  572. .swiper-slide-content {
  573. // padding: 0 10px;
  574. // margin: 0 10px 0 0;
  575. }
  576. .view-video{
  577. ::v-deep .el-dialog{
  578. width: 1000px !important;
  579. }
  580. }
  581. .swiper-container{
  582. margin: 0 !important;
  583. }
  584. </style>