CategoryProperty.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  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. console.log(this.JSONObj)
  133. this.$emit('loadCmpGoodsByBrandEvent', item.id, JSON.stringify(this.JSONObj))
  134. },
  135. delBrand () {
  136. this.selectedBrand = {}
  137. this.$emit('loadCmpGoodsByBrandEvent', null, JSON.stringify(this.JSONObj))
  138. },
  139. selectProperty (item, propertyId) {
  140. this.selectedProduct['a' + propertyId] = ''
  141. delete this.JSONObj[propertyId]
  142. this.$emit('loadCmpGoodsByTypeEvent', JSON.stringify(this.JSONObj), this.selectedBrand.id)
  143. this.hasProperties = this.isempty(this.selectedProduct)
  144. this.list_exp_flag = true
  145. this.list_exp_flag = false
  146. },
  147. isempty (obj) {
  148. for (let attr in obj) {
  149. if (obj[attr] !== '') {
  150. return true
  151. }
  152. }
  153. return false
  154. },
  155. isDel (propertyId) {
  156. return this.selectedProduct['a' + propertyId] === ''
  157. },
  158. selectPropertyValue (item, propertyId) {
  159. this.hasProperties = true
  160. this.selectedProduct['a' + propertyId] = item
  161. this.JSONObj[propertyId] = item.value
  162. this.$emit('loadCmpGoodsByTypeEvent', JSON.stringify(this.JSONObj), this.selectedBrand.id)
  163. this.list_exp_flag = false
  164. },
  165. use_exp_list: function (pro, index) {
  166. this.selectedProperties = pro
  167. this.selectedProperties.values.sort(compare('value'))
  168. let dom = document.getElementsByClassName('drop-down-list')[0]
  169. let list = document.getElementsByClassName('list-menu')[index]
  170. let content = document.getElementsByClassName('container')[0]
  171. let left = list.getBoundingClientRect().left - content.offsetLeft - 1.5
  172. dom.setAttribute('style', 'left: ' + left + 'px')
  173. this.list_exp_flag = true
  174. },
  175. hide_exp_list: function () {
  176. this.list_exp_flag = false
  177. },
  178. show_exp_list: function () {
  179. this.list_exp_flag = true
  180. }
  181. }
  182. }
  183. </script>
  184. <style scoped>
  185. .clear, .clr {
  186. clear: both;
  187. }
  188. /* breadcrumbs */
  189. .breadcrumbs {
  190. margin-top: 20px;
  191. }
  192. .breadcrumbs ul.list-unstyled.list-inline {
  193. margin-left: 0px;
  194. }
  195. .breadcrumbs ul.list-inline.list-unstyled li.crumb-item {
  196. position: relative;
  197. padding-left: 0px;
  198. padding-right: 0px;
  199. padding-bottom: 1px;
  200. height: 32px;
  201. line-height: 30px;
  202. background: #fff;
  203. border: solid 1px #6493ff;
  204. }
  205. .breadcrumbs ul li.crumb-item-angle {
  206. margin-left: -5px;
  207. }
  208. .breadcrumbs ul li.crumb-item>a {
  209. display: inline-block;
  210. width: 100%;
  211. height: 100%;
  212. padding-left: 15px;
  213. padding-right: 15px;
  214. cursor: pointer;
  215. text-decoration: none;
  216. color: #323232;
  217. font-size: 16px;
  218. }
  219. .breadcrumbs ul li.crumb-item:hover>a span,.breadcrumbs ul li.crumb-item:hover>a i{
  220. color: #5078cb;
  221. }
  222. .breadcrumbs ul li.crumb-item>a i{
  223. margin-right: 10px;
  224. }
  225. .breadcrumbs ul li.crumb-item:hover>a i{
  226. transform: rotate(-180deg);
  227. }
  228. .breadcrumbs ul li.crumb-item .angle {
  229. position: absolute;
  230. left: -6px;
  231. top: 50%;
  232. margin-top: -5px;
  233. height: 10px;
  234. width: 10px;
  235. border-bottom: 1px solid #6493ff;
  236. border-left: 1px solid #6493ff;
  237. background: white;
  238. transform: rotate(45deg);
  239. -ms-transform: rotate(45deg); /* IE 9 */
  240. -moz-transform: rotate(45deg); /* Firefox */
  241. -webkit-transform: rotate(45deg); /* Safari 和 Chrome */
  242. -o-transform: rotate(45deg); /* Opera */
  243. z-index: 14;
  244. }
  245. .breadcrumbs ul li.crumb-item .crumb-drop {
  246. position: absolute;
  247. display: none;
  248. left: -1px;
  249. top: 30px;
  250. border: #6493ff 1px solid;
  251. background: #fff;
  252. z-index: 100;
  253. width: 200px;
  254. }
  255. .breadcrumbs ul li.crumb-item .crumb-drop li {
  256. line-height: 20px;
  257. }
  258. .breadcrumbs ul li.crumb-item .crumb-drop li a{
  259. font-size: 12px;
  260. }
  261. li{
  262. list-style: none;
  263. }
  264. .breadcrumbs ul li.crumb-item:hover .crumb-drop {
  265. display: block;
  266. }
  267. .breadcrumbs ul li.crumb-item:hover>a {
  268. border-color: #f50;
  269. background: #ffffff;
  270. z-index: 101;
  271. }
  272. .breadcrumbs ul li.crumb-item a{
  273. color: #323232;
  274. }
  275. .breadcrumbs ul li.crumb-item a:hover{
  276. color: #5078cb;
  277. }
  278. .kind-count-line {
  279. line-height: 25px;
  280. height: 25px;
  281. color: #fff;
  282. font-weight: 600;
  283. background: #7bb4e1;
  284. }
  285. .kind-count-line .kind-count {
  286. display: inline-block;
  287. padding: 0 15px;
  288. background-color: #f39800;
  289. }
  290. /* sl_warp */
  291. .main-content .selector {
  292. color: #666;
  293. border: 1px solid #ddd;
  294. border-top: #6493ff 2px solid;
  295. margin-bottom: 30px;
  296. padding: 10px 0;
  297. }
  298. .main-content .sl-wrap {
  299. position: relative;
  300. line-height: 22px;
  301. padding: 5px 0;
  302. }
  303. .main-content .sl-wrap .sl-key {
  304. float: left;
  305. width: 100px;
  306. padding: 0 8px;
  307. }
  308. .main-content .sl-wrap .sl-key>span {
  309. color: #323232;
  310. font-size: 14px;
  311. }
  312. .main-content .sl-wrap .sl-value {
  313. margin-left: 110px;
  314. overflow-y: auto;
  315. }
  316. .main-content .sl-wrap .sl-value ul li a{
  317. color: #323232;
  318. font-size: 14px;
  319. }
  320. .main-content .sl-wrap .sl-value ul li a:hover{
  321. color: #5078cb;
  322. }
  323. .main-content .sl-wrap .sl-value .sl-selected {
  324. display: inline-block;
  325. position: relative;
  326. padding-left: 10px;
  327. padding-right: 30px;
  328. border: 1px solid #ccc;
  329. cursor: pointer;
  330. }
  331. .main-content .sl-wrap .sl-value .sl-selected a {
  332. color: #666;
  333. text-decoration: none;
  334. }
  335. .main-content .sl-wrap .sl-value .sl-selected:HOVER {
  336. border: 1px solid #f50;
  337. }
  338. .main-content .sl-wrap .sl-value .sl-selected:HOVER a {
  339. color: #f50;
  340. }
  341. .main-content .sl-wrap .sl-value .sl-selected span {
  342. display: inline-block;
  343. position: absolute;
  344. right: 0px;
  345. top: 0px;
  346. height: 100%;
  347. width: 20px;
  348. text-align: center;
  349. background: #ccc;
  350. color: #fff;
  351. }
  352. .main-content .sl-wrap .sl-value .sl-selected:HOVER span {
  353. background: #f50;
  354. }
  355. .main-content .sl-wrap .sl-value ul {
  356. margin-bottom: 0;
  357. }
  358. .main-content .sl-wrap .sl-value ul.list-inline li {
  359. width: 16.6666%;
  360. white-space:nowrap;
  361. overflow:hidden;
  362. text-overflow:ellipsis;
  363. }
  364. .main-content .sl-wrap .sl-value ul, .main-content .sl-set .sl-value ul{
  365. min-height: 25px;
  366. }
  367. .main-content .sl-wrap .sl-ext {
  368. position: absolute;
  369. top: 0px;
  370. right: 0px;
  371. width: 80px;
  372. }
  373. .main-content .sl-more {
  374. position: relative;
  375. top: -1px;
  376. line-height: 30px;
  377. text-align: center;
  378. border-top: 1px solid #DDD;
  379. }
  380. .main-content .sl-more a {
  381. position: relative;
  382. display: inline-block;
  383. margin-top: -1px;
  384. height: 30px;
  385. line-height: 30px;
  386. padding: 0 10px 0 10px;
  387. border-width: 1px;
  388. border-style: solid;
  389. border-color: #FFF #DDD #DDD;
  390. background: #fff;
  391. cursor: pointer;
  392. -webkit-transition: border-color .15s ease-in-out;
  393. -moz-transition: border-color .15s ease-in-out;
  394. transition: border-color .15s ease-in-out;
  395. }
  396. .main-content .sl-more:hover {
  397. border-top-color: #f39800;
  398. }
  399. .main-content .sl-more:hover a {
  400. color: #f39800;
  401. border-color: #FFF #f39800 #f39800;
  402. text-decoration: none;
  403. }
  404. .main-content .sl-more a:focus {
  405. text-decoration: none;
  406. color: #f39800;
  407. }
  408. .main-content .sl-set {
  409. position: relative;
  410. line-height: 30px;
  411. font-size: 14px;
  412. }
  413. .main-content .sl-set .sl-key {
  414. float: left;
  415. width: 100px;
  416. }
  417. .main-content .sl-set .sl-value {
  418. margin-left: 110px;
  419. }
  420. .main-content .content {
  421. position: relative;
  422. }
  423. .main-content .content .total {
  424. position: relative;
  425. margin-bottom: 10px;
  426. line-height: 30px;
  427. height: 30px;
  428. background: #7bb4e1;
  429. color: white;
  430. font-weight: 700;
  431. }
  432. .main-content .info {
  433. line-height: 24px;
  434. }
  435. .main-content .info .title {
  436. display: inline-block;
  437. width: 100px;
  438. font-family: 'microsoft yahei';
  439. font-weight: 600;
  440. }
  441. .main-content .info .content {
  442. font-size: 14px;
  443. }
  444. .main-content .operate {
  445. margin-bottom: 5px;
  446. }
  447. .main-content .operate .btn {
  448. width: 100px;
  449. text-align: left;
  450. }
  451. .main-content .content .view_all:hover {
  452. text-decoration: none;
  453. color: #f50;
  454. background: #f5f5f5
  455. }
  456. .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th,
  457. .table>thead>tr>td, .table>thead>tr>th {
  458. padding: 10px 5px;
  459. }
  460. .total-content {
  461. background-color: #f39800;
  462. padding-left: 10px;
  463. }
  464. .btnactive {
  465. background-color: #f39800;
  466. }
  467. .reserve {
  468. color: white;
  469. font-weight: 500;
  470. }
  471. .pagging .pagging-count {
  472. padding-left: 10px;
  473. padding-right: 10px;
  474. }
  475. .pagging .pagging-count:HOVER {
  476. background: #4D7BA5;
  477. cursor: pointer;
  478. }
  479. .pagging .pagging-count a {
  480. color: white !important;
  481. text-decoration: none !important;
  482. }
  483. .parameter-selection > div:first-child {
  484. display: inline-block;
  485. position: absolute;
  486. top: 50%;
  487. left: 8px;
  488. transform: translateY(-50%);
  489. }
  490. .parameter-selection div:last-child {
  491. display: inline-block;
  492. position: absolute;
  493. top: 50%;
  494. left: 40px;
  495. transform: translateY(-50%);
  496. }
  497. .div-table{
  498. width:1190px;
  499. height:120px;
  500. border-top: #6493ff 2px solid;
  501. }
  502. .div-table-left{
  503. width:135px;
  504. float:left;
  505. text-align: center;
  506. }
  507. .parameter-selection-ul{
  508. min-height: 80px;
  509. max-height: 176px;
  510. overflow: scroll;
  511. overflow-x:hidden;
  512. }
  513. .div-table-right{
  514. float:left;
  515. height:120px;
  516. width:1055px;
  517. overflow-x:auto;
  518. overflow-y:hidden;
  519. border:1px solid #DBDBDB;
  520. }
  521. .div-table-right .table{
  522. margin-bottom: 0;
  523. }
  524. .div-table-right table thead tr td{
  525. width: 140px;
  526. text-align: center;
  527. vertical-align: middle;
  528. padding: 0;
  529. }
  530. .text-hidden {
  531. text-overflow:ellipsis;
  532. overflow:hidden;
  533. white-space: nowrap;
  534. }
  535. .text-hidden:hover{
  536. overflow: visible;
  537. }
  538. .td-width{
  539. color: #323232;
  540. font-size: 14px;
  541. }
  542. .td-icon{
  543. font-size:18px;
  544. }
  545. .tr-brand{
  546. height:80px;
  547. vertical-align: middle;
  548. }
  549. .tr-properties{
  550. height:65px;
  551. }
  552. .td-brand,.td-properties{
  553. line-height: 20px;
  554. word-wrap : break-word;
  555. word-break : break-all;
  556. }
  557. thead tr {
  558. background: linear-gradient(rgb(93, 134, 220), rgb(12, 53, 136));
  559. color: #fff;
  560. height: 48px;
  561. }
  562. .table>thead>tr>th{
  563. padding:5px 5px;
  564. }
  565. .dropdown:hover>.dropdown-back {
  566. border-color: transparent;
  567. background-color: transparent;
  568. }
  569. /* scroll */
  570. ::-webkit-scrollbar {
  571. width: 10px;
  572. height: 10px;
  573. background: #ededed;
  574. }
  575. ::-webkit-scrollbar-thumb {
  576. background-color: #c1c1c1;
  577. border-radius: 5px;
  578. }
  579. ::-webkit-scrollbar-thumb:hover {
  580. background-color: #959595;
  581. }
  582. .container {
  583. position: relative;
  584. width: 1190px;
  585. }
  586. .main-content .wrap {
  587. position: relative;
  588. width: 500px;
  589. border: 1px solid #ccc;
  590. overflow-x: auto;
  591. }
  592. .table {
  593. display: table;
  594. table-layout: fixed;
  595. width: 100%;
  596. border-collapse: collapse;
  597. position: relative;
  598. left: 0px;
  599. }
  600. .tr, .th {
  601. display: table-row;
  602. }
  603. .th {
  604. font-weight: 600;
  605. }
  606. .td {
  607. display: table-cell;
  608. padding: 5px;
  609. width: 100px;
  610. text-align: center;
  611. border: 1px solid #ddd;
  612. }
  613. .dropdown-menu {
  614. display: none;
  615. position: absolute;
  616. top: 100%;
  617. background: #fff;
  618. text-align: center;
  619. cursor: pointer;
  620. }
  621. [split-dropdown] {
  622. position: relative;
  623. }
  624. [split-dropdown-toggle] {
  625. position: absolute;
  626. display: none;
  627. border: 1px solid #ccc;
  628. background: #fff;
  629. z-index: 100;
  630. top: 40px !important;
  631. }
  632. .drop-down-list{
  633. font-size: 14px;
  634. min-width: 140px;
  635. line-height: 1.75;
  636. background: #fff;
  637. text-align:center;
  638. padding: 5px 0;
  639. margin: 1px 0 0;
  640. }
  641. .drop-down-list a{
  642. padding: 0 10px;
  643. }
  644. .drop-down-list li:hover,.dropdown-menu li:hover a{
  645. background: #5078cb;
  646. }
  647. .drop-down-list li:hover a,.dropdown-menu li:hover a{
  648. color: #fff;
  649. }
  650. .a-color {
  651. color:black;
  652. cursor: pointer;
  653. }
  654. tr.properties-hint-tr {
  655. height: 65px;
  656. }
  657. tr.properties-hint-tr > td.properties-hint-td {
  658. vertical-align: middle;
  659. line-height: 20px;
  660. border-bottom: none;
  661. }
  662. tr.properties-hint-tr > td.properties-hint-td > div {
  663. /*position: relative;
  664. left: -25em;*/
  665. text-align: left;
  666. margin-left: 38em;
  667. }
  668. .word-break {
  669. word-break: break-word;
  670. }
  671. /*修改样式*/
  672. .breadcrumbs,.main-content{
  673. padding: 0;
  674. }
  675. .main-content .table-bordered{
  676. border-top: none;
  677. }
  678. .main-content .table-bordered thead tr{
  679. background: none;
  680. line-height: 40px;
  681. height: 40px;
  682. color: #323232;
  683. }
  684. .div-table-left table thead tr td,.div-table-right table thead tr td{
  685. border-bottom: none;
  686. }
  687. .div-table-left table tbody tr td,.div-table-right table tbody tr td{
  688. font-size: 12px;
  689. }
  690. .div-table-left table tr td{
  691. border-right: none;
  692. }
  693. .div-table-right table thead tr td:first-child{
  694. border-left: none;
  695. }
  696. .table-bordered{
  697. border: none;
  698. }
  699. .div-table-right table thead tr td:hover span{
  700. color: #5078cb;
  701. }
  702. .div-table-right table thead tr td:hover span.fa-angle-down{
  703. transform: rotate(-180deg);
  704. }
  705. .div-table-right table .td-properties{
  706. text-align: center;
  707. }
  708. .div-table-right table .td-properties i,.div-table-left table i{
  709. color: #5078cb;
  710. }
  711. .div-table-right table .td-properties{
  712. border-bottom: none;
  713. }
  714. .div-table-left .table{
  715. margin-bottom: 0;
  716. }
  717. .div-table-right tbody tr td:first-child{
  718. border-left: none;
  719. }
  720. .text-length-more{
  721. width: 100px;
  722. display: block;
  723. white-space: nowrap;
  724. overflow: hidden;
  725. text-overflow: ellipsis;
  726. float: left;
  727. }
  728. .drop-down-list {
  729. position: absolute;
  730. top: 40px;
  731. left: 135px;
  732. border: 1px solid #ddd;
  733. }
  734. </style>