CategoryProperty.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  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}`">{{c.nameCn}}</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. <!--orderBy:'nameCn'-->
  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 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. margin-bottom: 30px;
  295. padding: 10px 0;
  296. }
  297. .main-content .sl-wrap {
  298. position: relative;
  299. line-height: 22px;
  300. padding: 5px 0;
  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. margin-left: 110px;
  313. overflow-y: auto;
  314. }
  315. .main-content .sl-wrap .sl-value ul li a{
  316. color: #323232;
  317. font-size: 14px;
  318. }
  319. .main-content .sl-wrap .sl-value ul li a:hover{
  320. color: #5078cb;
  321. }
  322. .main-content .sl-wrap .sl-value .sl-selected {
  323. display: inline-block;
  324. position: relative;
  325. padding-left: 10px;
  326. padding-right: 30px;
  327. border: 1px solid #ccc;
  328. cursor: pointer;
  329. }
  330. .main-content .sl-wrap .sl-value .sl-selected a {
  331. color: #666;
  332. text-decoration: none;
  333. }
  334. .main-content .sl-wrap .sl-value .sl-selected:HOVER {
  335. border: 1px solid #f50;
  336. }
  337. .main-content .sl-wrap .sl-value .sl-selected:HOVER a {
  338. color: #f50;
  339. }
  340. .main-content .sl-wrap .sl-value .sl-selected span {
  341. display: inline-block;
  342. position: absolute;
  343. right: 0px;
  344. top: 0px;
  345. height: 100%;
  346. width: 20px;
  347. text-align: center;
  348. background: #ccc;
  349. color: #fff;
  350. }
  351. .main-content .sl-wrap .sl-value .sl-selected:HOVER span {
  352. background: #f50;
  353. }
  354. .main-content .sl-wrap .sl-value ul {
  355. margin-bottom: 0;
  356. }
  357. .main-content .sl-wrap .sl-value ul.list-inline li {
  358. width: 16.6666%;
  359. white-space:nowrap;
  360. overflow:hidden;
  361. text-overflow:ellipsis;
  362. }
  363. .main-content .sl-wrap .sl-value ul, .main-content .sl-set .sl-value ul{
  364. min-height: 25px;
  365. }
  366. .main-content .sl-wrap .sl-ext {
  367. position: absolute;
  368. top: 0px;
  369. right: 0px;
  370. width: 80px;
  371. }
  372. .main-content .sl-more {
  373. position: relative;
  374. top: -1px;
  375. line-height: 30px;
  376. text-align: center;
  377. border-top: 1px solid #DDD;
  378. }
  379. .main-content .sl-more a {
  380. position: relative;
  381. display: inline-block;
  382. margin-top: -1px;
  383. height: 30px;
  384. line-height: 30px;
  385. padding: 0 10px 0 10px;
  386. border-width: 1px;
  387. border-style: solid;
  388. border-color: #FFF #DDD #DDD;
  389. background: #fff;
  390. cursor: pointer;
  391. -webkit-transition: border-color .15s ease-in-out;
  392. -moz-transition: border-color .15s ease-in-out;
  393. transition: border-color .15s ease-in-out;
  394. }
  395. .main-content .sl-more:hover {
  396. border-top-color: #f39800;
  397. }
  398. .main-content .sl-more:hover a {
  399. color: #f39800;
  400. border-color: #FFF #f39800 #f39800;
  401. text-decoration: none;
  402. }
  403. .main-content .sl-more a:focus {
  404. text-decoration: none;
  405. color: #f39800;
  406. }
  407. .main-content .sl-set {
  408. position: relative;
  409. line-height: 30px;
  410. font-size: 14px;
  411. }
  412. .main-content .sl-set .sl-key {
  413. float: left;
  414. width: 100px;
  415. }
  416. .main-content .sl-set .sl-value {
  417. margin-left: 110px;
  418. }
  419. .main-content .content {
  420. position: relative;
  421. }
  422. .main-content .content .total {
  423. position: relative;
  424. margin-bottom: 10px;
  425. line-height: 30px;
  426. height: 30px;
  427. background: #7bb4e1;
  428. color: white;
  429. font-weight: 700;
  430. }
  431. .main-content .info {
  432. line-height: 24px;
  433. }
  434. .main-content .info .title {
  435. display: inline-block;
  436. width: 100px;
  437. font-family: 'microsoft yahei';
  438. font-weight: 600;
  439. }
  440. .main-content .info .content {
  441. font-size: 14px;
  442. }
  443. .main-content .operate {
  444. margin-bottom: 5px;
  445. }
  446. .main-content .operate .btn {
  447. width: 100px;
  448. text-align: left;
  449. }
  450. .main-content .content .view_all:hover {
  451. text-decoration: none;
  452. color: #f50;
  453. background: #f5f5f5
  454. }
  455. .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th,
  456. .table>thead>tr>td, .table>thead>tr>th {
  457. padding: 10px 5px;
  458. }
  459. .total-content {
  460. background-color: #f39800;
  461. padding-left: 10px;
  462. }
  463. .btnactive {
  464. background-color: #f39800;
  465. }
  466. .reserve {
  467. color: white;
  468. font-weight: 500;
  469. }
  470. .pagging .pagging-count {
  471. padding-left: 10px;
  472. padding-right: 10px;
  473. }
  474. .pagging .pagging-count:HOVER {
  475. background: #4D7BA5;
  476. cursor: pointer;
  477. }
  478. .pagging .pagging-count a {
  479. color: white !important;
  480. text-decoration: none !important;
  481. }
  482. .parameter-selection > div:first-child {
  483. display: inline-block;
  484. position: absolute;
  485. top: 50%;
  486. left: 8px;
  487. transform: translateY(-50%);
  488. }
  489. .parameter-selection div:last-child {
  490. display: inline-block;
  491. position: absolute;
  492. top: 50%;
  493. left: 40px;
  494. transform: translateY(-50%);
  495. }
  496. .div-table{
  497. width:1190px;
  498. height:120px;
  499. border-top: #6493ff 2px solid;
  500. }
  501. .div-table-left{
  502. width:135px;
  503. float:left;
  504. text-align: center;
  505. }
  506. .parameter-selection-ul{
  507. min-height: 80px;
  508. max-height: 176px;
  509. overflow: scroll;
  510. overflow-x:hidden;
  511. }
  512. .div-table-right{
  513. float:left;
  514. height:120px;
  515. width:1055px;
  516. overflow-x:auto;
  517. overflow-y:hidden;
  518. border:1px solid #DBDBDB;
  519. }
  520. .div-table-right .table{
  521. margin-bottom: 0;
  522. }
  523. .div-table-right table thead tr td{
  524. width: 140px;
  525. text-align: center;
  526. vertical-align: middle;
  527. padding: 0;
  528. }
  529. .text-hidden {
  530. text-overflow:ellipsis;
  531. overflow:hidden;
  532. white-space: nowrap;
  533. }
  534. .text-hidden:hover{
  535. overflow: visible;
  536. }
  537. .td-width{
  538. color: #323232;
  539. font-size: 14px;
  540. }
  541. .td-icon{
  542. font-size:18px;
  543. }
  544. .tr-brand{
  545. height:80px;
  546. vertical-align: middle;
  547. }
  548. .tr-properties{
  549. height:65px;
  550. }
  551. .td-brand,.td-properties{
  552. line-height: 20px;
  553. word-wrap : break-word;
  554. word-break : break-all;
  555. }
  556. thead tr {
  557. background: linear-gradient(rgb(93, 134, 220), rgb(12, 53, 136));
  558. color: #fff;
  559. height: 48px;
  560. }
  561. .table>thead>tr>th{
  562. padding:5px 5px;
  563. }
  564. .dropdown:hover>.dropdown-back {
  565. border-color: transparent;
  566. background-color: transparent;
  567. }
  568. /* scroll */
  569. ::-webkit-scrollbar {
  570. width: 10px;
  571. height: 10px;
  572. background: #ededed;
  573. }
  574. ::-webkit-scrollbar-thumb {
  575. background-color: #c1c1c1;
  576. border-radius: 5px;
  577. }
  578. ::-webkit-scrollbar-thumb:hover {
  579. background-color: #959595;
  580. }
  581. .container {
  582. position: relative;
  583. width: 1190px;
  584. }
  585. .main-content .wrap {
  586. position: relative;
  587. width: 500px;
  588. border: 1px solid #ccc;
  589. overflow-x: auto;
  590. }
  591. .table {
  592. display: table;
  593. table-layout: fixed;
  594. width: 100%;
  595. border-collapse: collapse;
  596. position: relative;
  597. left: 0px;
  598. }
  599. .tr, .th {
  600. display: table-row;
  601. }
  602. .th {
  603. font-weight: 600;
  604. }
  605. .td {
  606. display: table-cell;
  607. padding: 5px;
  608. width: 100px;
  609. text-align: center;
  610. border: 1px solid #ddd;
  611. }
  612. .dropdown-menu {
  613. display: none;
  614. position: absolute;
  615. top: 100%;
  616. background: #fff;
  617. text-align: center;
  618. cursor: pointer;
  619. }
  620. [split-dropdown] {
  621. position: relative;
  622. }
  623. [split-dropdown-toggle] {
  624. position: absolute;
  625. display: none;
  626. border: 1px solid #ccc;
  627. background: #fff;
  628. z-index: 100;
  629. top: 40px !important;
  630. }
  631. .drop-down-list{
  632. font-size: 14px;
  633. min-width: 140px;
  634. line-height: 1.75;
  635. background: #fff;
  636. text-align:center;
  637. padding: 5px 0;
  638. margin: 1px 0 0;
  639. }
  640. .drop-down-list a{
  641. padding: 0 10px;
  642. }
  643. .drop-down-list li:hover,.dropdown-menu li:hover a{
  644. background: #5078cb;
  645. }
  646. .drop-down-list li:hover a,.dropdown-menu li:hover a{
  647. color: #fff;
  648. }
  649. .a-color {
  650. color:black;
  651. cursor: pointer;
  652. }
  653. tr.properties-hint-tr {
  654. height: 65px;
  655. }
  656. tr.properties-hint-tr > td.properties-hint-td {
  657. vertical-align: middle;
  658. line-height: 20px;
  659. border-bottom: none;
  660. }
  661. tr.properties-hint-tr > td.properties-hint-td > div {
  662. /*position: relative;
  663. left: -25em;*/
  664. text-align: left;
  665. margin-left: 38em;
  666. }
  667. .word-break {
  668. word-break: break-word;
  669. }
  670. /*修改样式*/
  671. .breadcrumbs,.main-content{
  672. padding: 0;
  673. }
  674. .main-content .table-bordered{
  675. border-top: none;
  676. }
  677. .main-content .table-bordered thead tr{
  678. background: none;
  679. line-height: 40px;
  680. height: 40px;
  681. color: #323232;
  682. }
  683. .div-table-left table thead tr td,.div-table-right table thead tr td{
  684. border-bottom: none;
  685. }
  686. .div-table-left table tbody tr td,.div-table-right table tbody tr td{
  687. font-size: 12px;
  688. }
  689. .div-table-left table tr td{
  690. border-right: none;
  691. }
  692. .div-table-right table thead tr td:first-child{
  693. border-left: none;
  694. }
  695. .table-bordered{
  696. border: none;
  697. }
  698. .div-table-right table thead tr td:hover span{
  699. color: #5078cb;
  700. }
  701. .div-table-right table thead tr td:hover span.fa-angle-down{
  702. transform: rotate(-180deg);
  703. }
  704. .div-table-right table .td-properties{
  705. text-align: center;
  706. }
  707. .div-table-right table .td-properties i,.div-table-left table i{
  708. color: #5078cb;
  709. }
  710. .div-table-right table .td-properties{
  711. border-bottom: none;
  712. }
  713. .div-table-left .table{
  714. margin-bottom: 0;
  715. }
  716. .div-table-right tbody tr td:first-child{
  717. border-left: none;
  718. }
  719. .text-length-more{
  720. width: 100px;
  721. display: block;
  722. white-space: nowrap;
  723. overflow: hidden;
  724. text-overflow: ellipsis;
  725. float: left;
  726. }
  727. .drop-down-list {
  728. position: absolute;
  729. top: 40px;
  730. left: 135px;
  731. border: 1px solid #ddd;
  732. }
  733. </style>