CategoryProperty.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. <template>
  2. <div class="main-content container">
  3. <div class="selector" v-if="kind && !kind.leaf">
  4. <div class="sl-wrap" >
  5. <!--<div class="sl-key">
  6. <span>分类:</span>
  7. </div>-->
  8. <div class="sl-value">
  9. <ul class="list-inline">
  10. <li v-for="c in children" :title="c.nameCn">
  11. <nuxt-link :to="`/product/kind/${c.id}`"><span>{{c.nameCn}}</span></nuxt-link>
  12. </li>
  13. </ul>
  14. </div>
  15. </div>
  16. </div>
  17. <!--<div class="div-table" split-dropdown v-if="kind && kind.leaf">
  18. <div class="div-table-left">
  19. <table class="table table-bordered">
  20. <thead >
  21. <tr>
  22. <td class="td-width dropdown">
  23. <span class="dropdown-toggle dropdown-back" data-toggle="dropdown">品牌<span class="fa fa-angle-down td-icon"></span></span>
  24. <ul class="dropdown-menu parameter-selection-ul" role="menu" aria-labelledby="dropdownMenu1" style="top: 38px;">
  25. &lt;!&ndash;orderBy:'nameCn'&ndash;&gt;
  26. <li v-for="b in brands"><a @click="selectBrand(b)"><span>{{b.nameCn}}</span></a></li>
  27. </ul>
  28. </td>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <tr class="tr-brand">
  33. <td class="td-brand" style="vertical-align: middle;">
  34. <div class="sl-selected" v-if="selectedBrand.nameCn" @click="delBrand()">
  35. <a class="text-num">{{selectedBrand.nameCn}}</a>
  36. <span><i class="fa fa-close"></i></span>
  37. </div>
  38. <div v-if="!selectedBrand.nameCn">
  39. 请选择品牌
  40. </div>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <div class="div-table-right" dropdown-scroll>
  47. <table class="table table-bordered" style="table-layout:fixed;">
  48. <thead>
  49. <tr>
  50. <td v-for="(pro, index) in properties" class="list-menu td-width word-break" split-dropdown-trigger="pro.id"
  51. @mouseenter="use_exp_list(pro,index)" @mouseleave="hide_exp_list()">
  52. <span class="dropdown-toggle dropdown-back" data-toggle="dropdown"><span>{{pro.property.labelCn}}</span><span class="fa fa-angle-down td-icon"></span></span>
  53. </td>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. <tr v-if="hasProperties" class="tr-properties">
  58. <td v-for="pro in properties" class="td-properties" style="vertical-align:middle;" v-bind="selectedProduct">
  59. <span class="sl-selected" @click="selectProperty(pro, pro.propertyId)" v-if="!isDel(pro.propertyId)">
  60. <a class="text-num" v-text="selectedProduct['a' + pro.propertyId].value" style="color: #5078CB"></a>
  61. <span><i class="fa fa-close"></i></span>
  62. </span>
  63. </td>
  64. </tr>
  65. <tr class="properties-hint-tr" v-if="!hasProperties">
  66. <td :colspan="properties.length" class="properties-hint-td">
  67. <div>请选择筛选属性</div>
  68. </td>
  69. </tr>
  70. </tbody>
  71. </table>
  72. </div>
  73. <ul v-show="list_exp_flag" @mouseenter="show_exp_list()" @mouseleave="hide_exp_list()" class="parameter-selection-ul drop-down-list" role="menu" aria-labelledby="dropdownMenu1">
  74. <li v-for="item in selectedProperties.values">
  75. <a @click="selectPropertyValue(item, selectedProperties.propertyId)" class="a-color">
  76. <span>{{item.value}}</span>
  77. </a>
  78. </li>
  79. </ul>
  80. </div>-->
  81. </div>
  82. </template>
  83. <script>
  84. function compare (propertyName) {
  85. return function (object1, object2) {
  86. var value1 = object1[propertyName]
  87. var value2 = object2[propertyName]
  88. if (value1 > value2) {
  89. return 1
  90. } else if (value1 < value2) {
  91. return -1
  92. } else {
  93. return 0
  94. }
  95. }
  96. }
  97. export default {
  98. layout: 'main',
  99. data () {
  100. return {
  101. hasProperties: false,
  102. selectedBrand: {
  103. nameCn: null
  104. },
  105. selectedProperties: {},
  106. list_exp_flag: false,
  107. selectedProduct: {},
  108. JSONObj: {}
  109. }
  110. },
  111. computed: {
  112. kind () {
  113. return this.$store.state.product.kind.kindsParentWithBother.data[this.$store.state.product.kind.kindsParentWithBother.data.length - 1]
  114. },
  115. children () {
  116. return this.$store.state.product.kind.children.data
  117. },
  118. properties () {
  119. let arr = this.$store.state.product.kind.kindProperty.data
  120. for (let i = 0; i < arr.length; i++) {
  121. this.selectedProduct[ 'a' + arr[i].propertyId ] = ''
  122. }
  123. return arr
  124. },
  125. brands () {
  126. return this.$store.state.product.kind.brands.data
  127. }
  128. },
  129. methods: {
  130. selectBrand (item) {
  131. this.selectedBrand = item
  132. this.$emit('loadCmpGoodsByBrandEvent', item.id, JSON.stringify(this.JSONObj))
  133. },
  134. delBrand () {
  135. this.selectedBrand = {}
  136. this.$emit('loadCmpGoodsByBrandEvent', null, JSON.stringify(this.JSONObj))
  137. },
  138. selectProperty (item, propertyId) {
  139. this.selectedProduct['a' + propertyId] = ''
  140. delete this.JSONObj[propertyId]
  141. this.$emit('loadCmpGoodsByTypeEvent', JSON.stringify(this.JSONObj), this.selectedBrand.id)
  142. this.hasProperties = this.isempty(this.selectedProduct)
  143. this.list_exp_flag = true
  144. this.list_exp_flag = false
  145. },
  146. isempty (obj) {
  147. for (let attr in obj) {
  148. if (obj[attr] !== '') {
  149. return true
  150. }
  151. }
  152. return false
  153. },
  154. isDel (propertyId) {
  155. return this.selectedProduct['a' + propertyId] === ''
  156. },
  157. selectPropertyValue (item, propertyId) {
  158. this.hasProperties = true
  159. this.selectedProduct['a' + propertyId] = item
  160. this.JSONObj[propertyId] = item.value
  161. this.$emit('loadCmpGoodsByTypeEvent', JSON.stringify(this.JSONObj), this.selectedBrand.id)
  162. this.list_exp_flag = false
  163. },
  164. use_exp_list: function (pro, index) {
  165. this.selectedProperties = pro
  166. this.selectedProperties.values.sort(compare('value'))
  167. let dom = document.getElementsByClassName('drop-down-list')[0]
  168. let list = document.getElementsByClassName('list-menu')[index]
  169. let content = document.getElementsByClassName('container')[0]
  170. let left = list.getBoundingClientRect().left - content.offsetLeft - 1.5
  171. dom.setAttribute('style', 'left: ' + left + 'px')
  172. this.list_exp_flag = true
  173. },
  174. hide_exp_list: function () {
  175. this.list_exp_flag = false
  176. },
  177. show_exp_list: function () {
  178. this.list_exp_flag = true
  179. }
  180. }
  181. }
  182. </script>
  183. <style lang="scss" scoped>
  184. .clear, .clr {
  185. clear: both;
  186. }
  187. /* breadcrumbs */
  188. .breadcrumbs {
  189. margin-top: 20px;
  190. }
  191. .breadcrumbs ul.list-unstyled.list-inline {
  192. margin-left: 0px;
  193. }
  194. .breadcrumbs ul.list-inline.list-unstyled li.crumb-item {
  195. position: relative;
  196. padding-left: 0px;
  197. padding-right: 0px;
  198. padding-bottom: 1px;
  199. height: 32px;
  200. line-height: 30px;
  201. background: #fff;
  202. border: solid 1px #6493ff;
  203. }
  204. .breadcrumbs ul li.crumb-item-angle {
  205. margin-left: -5px;
  206. }
  207. .breadcrumbs ul li.crumb-item>a {
  208. display: inline-block;
  209. width: 100%;
  210. height: 100%;
  211. padding-left: 15px;
  212. padding-right: 15px;
  213. cursor: pointer;
  214. text-decoration: none;
  215. color: #323232;
  216. font-size: 16px;
  217. }
  218. .breadcrumbs ul li.crumb-item:hover>a span,.breadcrumbs ul li.crumb-item:hover>a i{
  219. color: #5078cb;
  220. }
  221. .breadcrumbs ul li.crumb-item>a i{
  222. margin-right: 10px;
  223. }
  224. .breadcrumbs ul li.crumb-item:hover>a i{
  225. transform: rotate(-180deg);
  226. }
  227. .breadcrumbs ul li.crumb-item .angle {
  228. position: absolute;
  229. left: -6px;
  230. top: 50%;
  231. margin-top: -5px;
  232. height: 10px;
  233. width: 10px;
  234. border-bottom: 1px solid #6493ff;
  235. border-left: 1px solid #6493ff;
  236. background: white;
  237. transform: rotate(45deg);
  238. -ms-transform: rotate(45deg); /* IE 9 */
  239. -moz-transform: rotate(45deg); /* Firefox */
  240. -webkit-transform: rotate(45deg); /* Safari 和 Chrome */
  241. -o-transform: rotate(45deg); /* Opera */
  242. z-index: 14;
  243. }
  244. .breadcrumbs ul li.crumb-item .crumb-drop {
  245. position: absolute;
  246. display: none;
  247. left: -1px;
  248. top: 30px;
  249. border: #6493ff 1px solid;
  250. background: #fff;
  251. z-index: 100;
  252. width: 200px;
  253. }
  254. .breadcrumbs ul li.crumb-item .crumb-drop li {
  255. line-height: 20px;
  256. }
  257. .breadcrumbs ul li.crumb-item .crumb-drop li a{
  258. font-size: 12px;
  259. }
  260. li{
  261. list-style: none;
  262. }
  263. .breadcrumbs ul li.crumb-item:hover .crumb-drop {
  264. display: block;
  265. }
  266. .breadcrumbs ul li.crumb-item:hover>a {
  267. border-color: #f50;
  268. background: #ffffff;
  269. z-index: 101;
  270. }
  271. .breadcrumbs ul li.crumb-item a{
  272. color: #323232;
  273. }
  274. .breadcrumbs ul li.crumb-item a:hover{
  275. color: #5078cb;
  276. }
  277. .kind-count-line {
  278. line-height: 25px;
  279. height: 25px;
  280. color: #fff;
  281. font-weight: 600;
  282. background: #7bb4e1;
  283. }
  284. .kind-count-line .kind-count {
  285. display: inline-block;
  286. padding: 0 15px;
  287. background-color: #f39800;
  288. }
  289. /* sl_warp */
  290. .main-content .selector {
  291. color: #666;
  292. border: 1px solid #ddd;
  293. /*border-top: #6493ff 2px solid;*/
  294. padding: 10px 0;
  295. }
  296. .main-content .sl-wrap {
  297. position: relative;
  298. line-height: 22px;
  299. padding: 5px 0;
  300. /*border: 1px solid red;*/
  301. }
  302. .main-content .sl-wrap .sl-key {
  303. float: left;
  304. width: 100px;
  305. padding: 0 8px;
  306. }
  307. .main-content .sl-wrap .sl-key>span {
  308. color: #323232;
  309. font-size: 14px;
  310. }
  311. .main-content .sl-wrap .sl-value {
  312. max-height: 117px;
  313. overflow-y: auto;
  314. overflow-x: hidden;
  315. padding-left: 10px;
  316. }
  317. /*滚动条样式*/
  318. .main-content .sl-wrap .sl-value::-webkit-scrollbar {/*滚动条整体样式*/
  319. width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  320. }
  321. .main-content .sl-wrap .sl-value::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
  322. border-radius: 3px;
  323. background: #ccc;
  324. border-left: 1px solid #f1f1f1;
  325. border-right: 1px solid #f1f1f1;
  326. }
  327. .main-content .sl-wrap .sl-value::-webkit-scrollbar-track {/*滚动条里面轨道*/
  328. border-radius: 0;
  329. border: 1px solid #f1f1f1;
  330. background: #f1f1f1;
  331. }
  332. .main-content .sl-wrap .sl-value ul {
  333. width: 100%;
  334. padding-top: 5px;
  335. }
  336. .main-content .sl-wrap .sl-value ul li {
  337. width: 20% !important;
  338. text-align: center;
  339. }
  340. .main-content .sl-wrap .sl-value ul li a{
  341. color: #333;
  342. font-size: 14px;
  343. span{
  344. display: inline-block;
  345. width: 100%;
  346. overflow: hidden;
  347. text-overflow:ellipsis;
  348. white-space: nowrap;
  349. }
  350. }
  351. .main-content .sl-wrap .sl-value ul li a:hover{
  352. color: #f54802;
  353. span{
  354. color: #f54802;
  355. text-decoration: underline;
  356. }
  357. }
  358. .main-content .sl-wrap .sl-value .sl-selected {
  359. display: inline-block;
  360. position: relative;
  361. padding-left: 10px;
  362. padding-right: 30px;
  363. border: 1px solid #ccc;
  364. cursor: pointer;
  365. }
  366. .main-content .sl-wrap .sl-value .sl-selected a {
  367. color: #666;
  368. text-decoration: none;
  369. }
  370. .main-content .sl-wrap .sl-value .sl-selected:HOVER {
  371. border: 1px solid #f50;
  372. }
  373. .main-content .sl-wrap .sl-value .sl-selected:HOVER a {
  374. color: #f50;
  375. }
  376. .main-content .sl-wrap .sl-value .sl-selected span {
  377. display: inline-block;
  378. position: absolute;
  379. right: 0px;
  380. top: 0px;
  381. height: 100%;
  382. width: 20px;
  383. text-align: center;
  384. background: #ccc;
  385. color: #fff;
  386. }
  387. .main-content .sl-wrap .sl-value .sl-selected:HOVER span {
  388. background: #f50;
  389. }
  390. .main-content .sl-wrap .sl-value ul {
  391. margin-bottom: 0;
  392. }
  393. .main-content .sl-wrap .sl-value ul.list-inline li {
  394. width: 16.6666%;
  395. white-space:nowrap;
  396. overflow:hidden;
  397. text-overflow:ellipsis;
  398. }
  399. .main-content .sl-wrap .sl-value ul, .main-content .sl-set .sl-value ul{
  400. min-height: 25px;
  401. }
  402. .main-content .sl-wrap .sl-ext {
  403. position: absolute;
  404. top: 0px;
  405. right: 0px;
  406. width: 80px;
  407. }
  408. .main-content .sl-more {
  409. position: relative;
  410. top: -1px;
  411. line-height: 30px;
  412. text-align: center;
  413. border-top: 1px solid #DDD;
  414. }
  415. .main-content .sl-more a {
  416. position: relative;
  417. display: inline-block;
  418. margin-top: -1px;
  419. height: 30px;
  420. line-height: 30px;
  421. padding: 0 10px 0 10px;
  422. border-width: 1px;
  423. border-style: solid;
  424. border-color: #FFF #DDD #DDD;
  425. background: #fff;
  426. cursor: pointer;
  427. -webkit-transition: border-color .15s ease-in-out;
  428. -moz-transition: border-color .15s ease-in-out;
  429. transition: border-color .15s ease-in-out;
  430. }
  431. .main-content .sl-more:hover {
  432. border-top-color: #f39800;
  433. }
  434. .main-content .sl-more:hover a {
  435. color: #f39800;
  436. border-color: #FFF #f39800 #f39800;
  437. text-decoration: none;
  438. }
  439. .main-content .sl-more a:focus {
  440. text-decoration: none;
  441. color: #f39800;
  442. }
  443. .main-content .sl-set {
  444. position: relative;
  445. line-height: 30px;
  446. font-size: 14px;
  447. }
  448. .main-content .sl-set .sl-key {
  449. float: left;
  450. width: 100px;
  451. }
  452. .main-content .sl-set .sl-value {
  453. margin-left: 110px;
  454. }
  455. .main-content .content {
  456. position: relative;
  457. }
  458. .main-content .content .total {
  459. position: relative;
  460. margin-bottom: 10px;
  461. line-height: 30px;
  462. height: 30px;
  463. background: #7bb4e1;
  464. color: white;
  465. font-weight: 700;
  466. }
  467. .main-content .info {
  468. line-height: 24px;
  469. }
  470. .main-content .info .title {
  471. display: inline-block;
  472. width: 100px;
  473. font-family: 'microsoft yahei';
  474. font-weight: 600;
  475. }
  476. .main-content .info .content {
  477. font-size: 14px;
  478. }
  479. .main-content .operate {
  480. margin-bottom: 5px;
  481. }
  482. .main-content .operate .btn {
  483. width: 100px;
  484. text-align: left;
  485. }
  486. .main-content .content .view_all:hover {
  487. text-decoration: none;
  488. color: #f50;
  489. background: #f5f5f5
  490. }
  491. .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th,
  492. .table>thead>tr>td, .table>thead>tr>th {
  493. padding: 10px 5px;
  494. }
  495. .total-content {
  496. background-color: #f39800;
  497. padding-left: 10px;
  498. }
  499. .btnactive {
  500. background-color: #f39800;
  501. }
  502. .reserve {
  503. color: white;
  504. font-weight: 500;
  505. }
  506. .pagging .pagging-count {
  507. padding-left: 10px;
  508. padding-right: 10px;
  509. }
  510. .pagging .pagging-count:HOVER {
  511. background: #4D7BA5;
  512. cursor: pointer;
  513. }
  514. .pagging .pagging-count a {
  515. color: white !important;
  516. text-decoration: none !important;
  517. }
  518. .parameter-selection > div:first-child {
  519. display: inline-block;
  520. position: absolute;
  521. top: 50%;
  522. left: 8px;
  523. transform: translateY(-50%);
  524. }
  525. .parameter-selection div:last-child {
  526. display: inline-block;
  527. position: absolute;
  528. top: 50%;
  529. left: 40px;
  530. transform: translateY(-50%);
  531. }
  532. .div-table{
  533. width:1190px;
  534. height:120px;
  535. border-top: #6493ff 2px solid;
  536. }
  537. .div-table-left{
  538. width:135px;
  539. float:left;
  540. text-align: center;
  541. }
  542. .parameter-selection-ul{
  543. min-height: 80px;
  544. max-height: 176px;
  545. overflow: scroll;
  546. overflow-x:hidden;
  547. }
  548. .div-table-right{
  549. float:left;
  550. height:120px;
  551. width:1055px;
  552. overflow-x:auto;
  553. overflow-y:hidden;
  554. border:1px solid #DBDBDB;
  555. }
  556. .div-table-right .table{
  557. margin-bottom: 0;
  558. }
  559. .div-table-right table thead tr td{
  560. width: 140px;
  561. text-align: center;
  562. vertical-align: middle;
  563. padding: 0;
  564. }
  565. .text-hidden {
  566. text-overflow:ellipsis;
  567. overflow:hidden;
  568. white-space: nowrap;
  569. }
  570. .text-hidden:hover{
  571. overflow: visible;
  572. }
  573. .td-width{
  574. color: #323232;
  575. font-size: 14px;
  576. }
  577. .td-icon{
  578. font-size:18px;
  579. }
  580. .tr-brand{
  581. height:80px;
  582. vertical-align: middle;
  583. }
  584. .tr-properties{
  585. height:65px;
  586. }
  587. .td-brand,.td-properties{
  588. line-height: 20px;
  589. word-wrap : break-word;
  590. word-break : break-all;
  591. }
  592. thead tr {
  593. background: linear-gradient(rgb(93, 134, 220), rgb(12, 53, 136));
  594. color: #fff;
  595. height: 48px;
  596. }
  597. .table>thead>tr>th{
  598. padding:5px 5px;
  599. }
  600. .dropdown:hover>.dropdown-back {
  601. border-color: transparent;
  602. background-color: transparent;
  603. }
  604. /* scroll */
  605. ::-webkit-scrollbar {
  606. width: 10px;
  607. height: 10px;
  608. background: #ededed;
  609. }
  610. ::-webkit-scrollbar-thumb {
  611. background-color: #c1c1c1;
  612. border-radius: 5px;
  613. }
  614. ::-webkit-scrollbar-thumb:hover {
  615. background-color: #959595;
  616. }
  617. .container {
  618. position: relative;
  619. width: 1190px;
  620. }
  621. .main-content .wrap {
  622. position: relative;
  623. width: 500px;
  624. border: 1px solid #ccc;
  625. overflow-x: auto;
  626. }
  627. .table {
  628. display: table;
  629. table-layout: fixed;
  630. width: 100%;
  631. border-collapse: collapse;
  632. position: relative;
  633. left: 0px;
  634. }
  635. .tr, .th {
  636. display: table-row;
  637. }
  638. .th {
  639. font-weight: 600;
  640. }
  641. .td {
  642. display: table-cell;
  643. padding: 5px;
  644. width: 100px;
  645. text-align: center;
  646. border: 1px solid #ddd;
  647. }
  648. .dropdown-menu {
  649. display: none;
  650. position: absolute;
  651. top: 100%;
  652. background: #fff;
  653. text-align: center;
  654. cursor: pointer;
  655. }
  656. [split-dropdown] {
  657. position: relative;
  658. }
  659. [split-dropdown-toggle] {
  660. position: absolute;
  661. display: none;
  662. border: 1px solid #ccc;
  663. background: #fff;
  664. z-index: 100;
  665. top: 40px !important;
  666. }
  667. .drop-down-list{
  668. font-size: 14px;
  669. min-width: 140px;
  670. line-height: 1.75;
  671. background: #fff;
  672. text-align:center;
  673. padding: 5px 0;
  674. margin: 1px 0 0;
  675. }
  676. .drop-down-list a{
  677. padding: 0 10px;
  678. }
  679. .drop-down-list li:hover,.dropdown-menu li:hover a{
  680. background: #5078cb;
  681. }
  682. .drop-down-list li:hover a,.dropdown-menu li:hover a{
  683. color: #fff;
  684. }
  685. .a-color {
  686. color:black;
  687. cursor: pointer;
  688. }
  689. tr.properties-hint-tr {
  690. height: 65px;
  691. }
  692. tr.properties-hint-tr > td.properties-hint-td {
  693. vertical-align: middle;
  694. line-height: 20px;
  695. border-bottom: none;
  696. }
  697. tr.properties-hint-tr > td.properties-hint-td > div {
  698. /*position: relative;
  699. left: -25em;*/
  700. text-align: left;
  701. margin-left: 38em;
  702. }
  703. .word-break {
  704. word-break: break-word;
  705. }
  706. /*修改样式*/
  707. .breadcrumbs,.main-content{
  708. padding: 0;
  709. }
  710. .main-content .table-bordered{
  711. border-top: none;
  712. }
  713. .main-content .table-bordered thead tr{
  714. background: none;
  715. line-height: 40px;
  716. height: 40px;
  717. color: #323232;
  718. }
  719. .div-table-left table thead tr td,.div-table-right table thead tr td{
  720. border-bottom: none;
  721. }
  722. .div-table-left table tbody tr td,.div-table-right table tbody tr td{
  723. font-size: 12px;
  724. }
  725. .div-table-left table tr td{
  726. border-right: none;
  727. }
  728. .div-table-right table thead tr td:first-child{
  729. border-left: none;
  730. }
  731. .table-bordered{
  732. border: none;
  733. }
  734. .div-table-right table thead tr td:hover span{
  735. color: #5078cb;
  736. }
  737. .div-table-right table thead tr td:hover span.fa-angle-down{
  738. transform: rotate(-180deg);
  739. }
  740. .div-table-right table .td-properties{
  741. text-align: center;
  742. }
  743. .div-table-right table .td-properties i,.div-table-left table i{
  744. color: #5078cb;
  745. }
  746. .div-table-right table .td-properties{
  747. border-bottom: none;
  748. }
  749. .div-table-left .table{
  750. margin-bottom: 0;
  751. }
  752. .div-table-right tbody tr td:first-child{
  753. border-left: none;
  754. }
  755. .text-length-more{
  756. width: 100px;
  757. display: block;
  758. white-space: nowrap;
  759. overflow: hidden;
  760. text-overflow: ellipsis;
  761. float: left;
  762. }
  763. .drop-down-list {
  764. position: absolute;
  765. top: 40px;
  766. left: 135px;
  767. border: 1px solid #ddd;
  768. }
  769. </style>