vSummary.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. <template>
  2. <div class="vsummary">
  3. <div class="xiangmuxuanze">
  4. <span>项目选择:</span>
  5. <a-select default-value="" style="width: 500px" @change="selectChange" placeholder="请选择项目账户">
  6. <a-select-option v-for="(item,index) in projectArr" :key="index" :value='item.id'>
  7. {{ item }}
  8. </a-select-option>
  9. </a-select>
  10. </div>
  11. <div class="timeDiv">
  12. <div>
  13. <span>时间范围:</span>
  14. <a-range-picker
  15. :disabled-date="disabledDate"
  16. format="YYYY-MM-DD"
  17. style="width: 250px;"
  18. @change="dateChange"
  19. v-model="dateRange"
  20. />
  21. <span v-show="daysFlag">共{{totalSelect}}天</span>
  22. </div>
  23. <div>
  24. <span>消耗:</span>
  25. <a-input-number id="inputNumber" v-model="consumeValue" :min="0" @change="consumeOnChange" />
  26. <span>视频ID:</span>
  27. <a-input class="myinput" v-model="videoID" style="width:250px" />
  28. </div>
  29. <a-button type="primary" @click="searchRes">查询</a-button>
  30. </div>
  31. <div style="display:flex;margin-bottom:15px" class="btndiv">
  32. <a-button type="primary" @click="customColumns">自定义列</a-button>
  33. <a-button type="default" @click="exportExcel" id="mybtn" v-show="exportExcelIsOk">导出报表</a-button>
  34. </div>
  35. <a-modal v-model="visible" title="自定义列" on-ok="handleOk" width="65%">
  36. <template slot="footer">
  37. <a-button key="back" @click="handleCancel">取消</a-button>
  38. <a-button key="submit" type="primary" :loading="loading" @click="handleOk">应用</a-button>
  39. </template>
  40. <!-- <a-input-search placeholder="输入要添加的列的名称" style="width: 40%" enter-button @search="onSearch" /> -->
  41. <div class="zhuti">
  42. <div class="addlist">
  43. <p>可添加的列</p>
  44. <div class="selectionList">
  45. <!-- v-for="(item,index) in addColumns" :key="index" -->
  46. <selectComponent
  47. :showCol="listNum"
  48. @getshowlist="getshowlist"
  49. :fixedColLength="columnsFixd.length"
  50. />
  51. </div>
  52. </div>
  53. <div class="listNum">
  54. <p>已选{{listNum.length}}列</p>
  55. <a-button id="btn" type="link" @click="clearAllList">清空全部</a-button>
  56. <ul class="selectlist">
  57. <li v-for="(item,index) in listNum" :key="index">
  58. <span v-if=" index <4">
  59. <a-icon type="lock" />
  60. <span class="listText">{{item.title}}</span>
  61. </span>
  62. <span v-else-if=" index >3">
  63. <a-icon type="menu" style="color:#ccc" />
  64. <span class="listText">{{item.title}}</span>
  65. <a-icon
  66. type="close"
  67. @click="deleteCol(item,index)"
  68. id="closeStyle"
  69. style="fontSize:12px;"
  70. />
  71. </span>
  72. </li>
  73. </ul>
  74. </div>
  75. </div>
  76. </a-modal>
  77. <a-table
  78. size="middle"
  79. :columns="columns"
  80. :dataSource="data"
  81. bordered
  82. id="outTable"
  83. :pagination="ipagination"
  84. :scroll="{ x: scrollX }"
  85. :loading="loading"
  86. ref="vSummaryTable"
  87. :width="tableWidth"
  88. @customHeaderCell="customHeaderCell(columns)"
  89. <<<<<<< HEAD
  90. height="100"
  91. style="word-break: break-all;"
  92. =======
  93. >>>>>>> 536646d72ad55d4ae0958ced6fabeaed3636f1de
  94. >
  95. <div slot="videoU" slot-scope="test,records">
  96. <img
  97. :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'"
  98. alt
  99. style="width:140px"
  100. @click="openVideo(records.url)"
  101. />
  102. </div>
  103. <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
  104. <span
  105. slot="play25FeedBreakRate"
  106. slot-scope="play25FeedBreakRate"
  107. >{{ play25FeedBreakRate | toPercentage }}</span>
  108. <span slot="playOverRate" slot-scope="playOverRate">{{ playOverRate | toPercentage }}</span>
  109. <!-- 新加数据 -->
  110. <span slot="convertRate" slot-scope="convertRate">{{ convertRate | toPercentage }}</span>
  111. <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
  112. <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
  113. <span slot="cpc" slot-scope="cpm">{{ cpm | tofixed }}</span>
  114. <span slot="cpm" slot-scope="cpm">{{ cpm | tofixed }}</span>
  115. <span slot="activeRate" slot-scope="activeRate">{{ activeRate | toPercentage }}</span>
  116. <span
  117. slot="installFinishRate"
  118. slot-scope="installFinishRate"
  119. >{{ installFinishRate | toPercentage }}</span>
  120. <span slot="validPlayRate" slot-scope="validPlayRate">{{ validPlayRate | tofixed }}</span>
  121. <span slot="activePayCost" slot-scope="activePayCost">{{ activePayCost | tofixed }}</span>
  122. <span slot="nextDayOpenCost" slot-scope="nextDayOpenCost">{{ nextDayOpenCost | tofixed }}</span>
  123. <span slot="validPlayCost" slot-scope="validPlayCost">{{ validPlayCost | tofixed }}</span>
  124. <span slot="activeCost" slot-scope="activeCost">{{ activeCost | tofixed }}</span>
  125. <span
  126. slot="gameAddictionCost"
  127. slot-scope="gameAddictionCost"
  128. >{{ gameAddictionCost | tofixed }}</span>
  129. <span
  130. slot="downloadFinishCost"
  131. slot-scope="downloadFinishCost"
  132. >{{ downloadFinishCost | tofixed }}</span>
  133. <span
  134. slot="downloadStartCost"
  135. slot-scope="downloadStartCost"
  136. >{{ downloadStartCost | tofixed }}</span>
  137. <span
  138. slot="installFinishCost"
  139. slot-scope="installFinishCost"
  140. >{{ installFinishCost | tofixed }}</span>
  141. <span slot="convertCost" slot-scope="convertCost">{{ convertCost | tofixed }}</span>
  142. <!-- -->
  143. <span
  144. slot="downloadStartRate"
  145. slot-scope="downloadStartRate"
  146. >{{ downloadStartRate | toPercentage }}</span>
  147. <span
  148. slot="downloadFinishRate"
  149. slot-scope="downloadFinishRate"
  150. >{{ downloadFinishRate | toPercentage }}</span>
  151. <span slot="activeRate" slot-scope="activeRate">{{ activeRate | toPercentage }}</span>
  152. <span
  153. slot="activeRegisterRate"
  154. slot-scope="activeRegisterRate"
  155. >{{ activeRegisterRate | toPercentage }}</span>
  156. <span
  157. slot="gameAddictionRate"
  158. slot-scope="gameAddictionRate"
  159. >{{ gameAddictionRate | toPercentage }}</span>
  160. <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
  161. <span slot="cpm" slot-scope="cpm">{{ cpm | tofixed }}</span>
  162. <span slot="statDatetime" slot-scope>{{ timedata[0]+'~'+timedata[1]}}</span>
  163. </a-table>
  164. <a-modal v-model="Videovisible" title="视频详情" @ok="videoOk" :footer="null" width="50%">
  165. <video
  166. @click.stop
  167. class="video"
  168. :src="videoUrl"
  169. controls="controls"
  170. style="height:600px;width:100%"
  171. >您的浏览器不支持 video 标签。</video>
  172. </a-modal>
  173. </div>
  174. </template>
  175. <script>
  176. import moment from 'moment'
  177. import { JeecgListMixin } from '@/mixins/ipagination'
  178. import { getAction, postAction, downFile, downFilePost } from '@/api/manage'
  179. import selectComponent from './selectComponent'
  180. const columnsFixd = [
  181. {
  182. title: '视频',
  183. dataIndex: 'videoU',
  184. align: 'center',
  185. width: 150,
  186. fixed: 'left',
  187. key: 'videoU',
  188. scopedSlots: { customRender: 'videoU' }
  189. },
  190. {
  191. title: '视频ID',
  192. dataIndex: 'signature',
  193. align: 'center',
  194. width: 100,
  195. fixed: 'left'
  196. },
  197. {
  198. title: '视频链接',
  199. dataIndex: 'url',
  200. align: 'center',
  201. width: 150,
  202. fixed: 'left'
  203. },
  204. {
  205. title: '视频描述',
  206. dataIndex: 'materialDesc',
  207. align: 'center',
  208. width: 100,
  209. fixed: 'left'
  210. }
  211. ]
  212. let variableCol = [
  213. {
  214. title: '消耗',
  215. dataIndex: 'cost',
  216. scopedSlots: { customRender: 'cost' },
  217. align: 'center',
  218. sorter: (a, b) => a.cost - b.cost
  219. },
  220. {
  221. title: '点击数',
  222. dataIndex: 'clickMaterial',
  223. align: 'center',
  224. scopedSlots: { customRender: 'clickMaterial' },
  225. sorter: (a, b) => a.clickMaterial - b.clickMaterial
  226. },
  227. {
  228. title: '点击率',
  229. dataIndex: 'ctr',
  230. align: 'center',
  231. scopedSlots: { customRender: 'ctr' },
  232. sorter: (a, b) => a.ctr - b.ctr
  233. },
  234. {
  235. title: '展示数',
  236. dataIndex: 'showMaterial',
  237. align: 'center',
  238. scopedSlots: { customRender: 'showMaterial' },
  239. sorter: (a, b) => a.showMaterial - b.showMaterial
  240. },
  241. {
  242. title: '25%进度播放率',
  243. dataIndex: 'play25FeedBreakRate',
  244. align: 'center',
  245. scopedSlots: { customRender: 'play25FeedBreakRate' },
  246. sorter: (a, b) => a.play25FeedBreakRate - b.play25FeedBreakRate
  247. },
  248. {
  249. title: '播完率',
  250. dataIndex: 'playOverRate',
  251. align: 'center',
  252. tip: '表示广告在投放期内的预估花费金额。当天数据可能会有波动,次日稳定',
  253. scopedSlots: { customRender: 'playOverRate' },
  254. sorter: (a, b) => a.playOverRate - b.playOverRate
  255. },
  256. {
  257. title: '转化数',
  258. dataIndex: 'convertMaterial',
  259. align: 'center',
  260. scopedSlots: { customRender: 'convertMaterial' },
  261. sorter: (a, b) => a.convertMaterial - b.convertMaterial
  262. },
  263. {
  264. title: '转化率',
  265. dataIndex: 'convertRate',
  266. align: 'center',
  267. scopedSlots: { customRender: 'convertRate' },
  268. sorter: (a, b) => a.convertRate - b.convertRate
  269. }
  270. ]
  271. export default {
  272. data() {
  273. return {
  274. //下拉选择框的数据
  275. projectArr:[],
  276. selectValue:'',
  277. //设置表格的列宽
  278. tableWidth: '',
  279. //gudinglie
  280. columnsFixd: columnsFixd,
  281. //是否打开视频
  282. Videovisible: false,
  283. videoUrl: '',
  284. //是否显示导出按钮
  285. exportExcelIsOk: true,
  286. consumeValue: 1000,
  287. columns: [...columnsFixd, ...variableCol],
  288. addColumns: [],
  289. data: [],
  290. totalSelect: 0,
  291. daysFlag: false,
  292. dateRange: [],
  293. dataElse: [],
  294. loading: false,
  295. visible: false,
  296. //自定义列的搜索框
  297. searchInput: '',
  298. //弹出框中现实的选中列数
  299. scrollX: 0,
  300. listNum: [],
  301. //
  302. form: [],
  303. videoID: '',
  304. timedata: []
  305. }
  306. },
  307. mixins: [JeecgListMixin],
  308. components: {
  309. selectComponent
  310. },
  311. methods: {
  312. moment,
  313. //select切换---项目
  314. selectChange(key){
  315. this.selectValue=key;
  316. },
  317. //打开视频
  318. openVideo(val) {
  319. this.Videovisible = true
  320. this.videoUrl = val
  321. },
  322. videoOk() {
  323. this.Videovisible = false
  324. },
  325. disabledDate(current) {
  326. // console.log(current)
  327. return current && current > moment().subtract(1, 'day')
  328. },
  329. consumeOnChange() {},
  330. //查询按钮
  331. searchRes() {
  332. this.date = []
  333. this.loading = true
  334. this.HttpPost();
  335. },
  336. //网络请求table数据函数
  337. HttpPost(){
  338. postAction('/toutiao/videoReportDaily/videoInfoListTotal', {
  339. startDate: this.timedata[0],
  340. endDate: this.timedata[1],
  341. cost: this.consumeValue,
  342. signature: this.videoID
  343. }).then(res => {
  344. let resArr = []
  345. this.loading = false
  346. console.log(res)
  347. if (res.success) {
  348. let result = res.result
  349. this.data.push({ ...result, key: 1 })
  350. result.map((item, index) => {
  351. item.key = index
  352. })
  353. this.data = result
  354. }
  355. })
  356. },
  357. //导出报表
  358. exportExcel() {
  359. // var params = {}
  360. // params.projectId = this.projectId
  361. // params.disCount = this.discount
  362. // params.statDate = this.statDate.format('YYYY-MM-DD')
  363. // var name = this.dataElse.filter(item => {
  364. // return item.projectId == this.projectId
  365. // })[0].projectName
  366. // downFilePost('/ctop/yiche/report/exportDailyReport', params).then(res => {
  367. // let blob = new Blob([res], {
  368. // type: 'application/vnd.ms-excel'
  369. let columns = this.columns.map((item, index) => {
  370. return item.dataIndex
  371. })
  372. downFilePost('/toutiao/videoReportDaily/bytedanceVideoInfoListTotalExportExcel', {
  373. columns,
  374. signature: this.videoID,
  375. startDate: this.timedata[0],
  376. endDate: this.timedata[1],
  377. cost: this.consumeValue
  378. }).then(res => {
  379. let blob = new Blob([res], {
  380. type:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
  381. })
  382. let downloadElement = document.createElement('a')
  383. let href = window.URL.createObjectURL(blob) //创建下载的链接
  384. downloadElement.href = href
  385. downloadElement.download = this.statDate.format('YYYY-MM-DD') + '视频汇总.xlsx' //下载后文件名
  386. document.body.appendChild(downloadElement)
  387. downloadElement.click() //点击下载
  388. document.body.removeChild(downloadElement) //下载完成移除元素
  389. window.URL.revokeObjectURL(href) //释放掉blob对象
  390. })
  391. },
  392. //日期选择回调
  393. dateChange(data, dataString) {
  394. if (data.length) {
  395. this.timedata = dataString
  396. this.dateRange[0] = data[0]
  397. this.totalSelect = (data[1]._d - data[0]._d) / (24 * 60 * 60 * 1000) + 1
  398. this.daysFlag = true
  399. if (this.totalSelect > 92) {
  400. this.$message.error('时间跨度太长啦,选小一点好嘛?')
  401. this.daysFlag = false
  402. this.dateRange = []
  403. }
  404. } else {
  405. this.daysFlag = false
  406. this.dateRange = []
  407. }
  408. },
  409. //弹出框打开,自定义列
  410. customColumns() {
  411. this.visible = true
  412. this.listNum = [...this.columns]
  413. },
  414. //设置头部单元格属性
  415. customHeaderCell(columns) {
  416. console.log(columns)
  417. },
  418. tableHandle() {
  419. // this.listNum = [...this.columns]
  420. console.log(this.listNum.length, this.columns)
  421. if (this.listNum.length >= 9 || this.columns.length >= 9) {
  422. this.tableWidth = 120
  423. this.scrollX = this.columns.length * 120
  424. console.log(this.scrollX)
  425. } else {
  426. this.scrollX = 0
  427. console.log('scroll==0')
  428. }
  429. },
  430. //弹出框确定
  431. handleOk(e) {
  432. this.loading = false
  433. this.visible = false
  434. if (this.listNum.length >= 10) {
  435. let newlist = this.listNum.slice(columnsFixd.length)
  436. console.log(newlist)
  437. this.columns = [...columnsFixd, ...newlist]
  438. } else {
  439. this.columns = [...this.listNum]
  440. }
  441. if (this.listNum.length == 4) {
  442. // console.log(this.listNum.length)
  443. this.scrollX = 0
  444. this.columns.map((item, index) => {
  445. item.width = 500
  446. })
  447. // console.log(1)
  448. } else {
  449. this.columns.map((item, index) => {
  450. if (index == 2 || index == 0) {
  451. item.width = 150
  452. } else if (index == 1 || index == 3) {
  453. item.width = 100
  454. }
  455. })
  456. // console.log(2)
  457. }
  458. this.tableHandle()
  459. },
  460. //弹出框取消按钮
  461. handleCancel(e) {
  462. this.visible = false
  463. },
  464. //弹出框里的搜索框
  465. onSearch(value) {
  466. console.log(value)
  467. },
  468. //清空全部按钮的事件
  469. clearAllList() {
  470. this.listNum = [...columnsFixd]
  471. console.log(this.$refs.vSummaryTable)
  472. },
  473. //li展示里的关闭按钮 删除当前被选中的这一个列
  474. deleteCol(item, index) {
  475. this.listNum = this.listNum.filter((item1, num) => {
  476. return num != index
  477. })
  478. },
  479. //从自定义列拿选择的项
  480. getshowlist(val) {
  481. var arr = []
  482. // console.log(val)
  483. if (val.length) {
  484. if (val.flag) {
  485. let newArr = val.arr
  486. newVal.map((item, index) => {
  487. // if(JSON.stringify(this.listNum).indexOf(JSON.stringify(item))==-1){
  488. // this.listNum.push(item); // 进行动态的操作
  489. // }
  490. var result = this.listNum.some(items => {
  491. if (items.dataIndex == item.dataIndex) {
  492. return true
  493. }
  494. })
  495. // console.log(result)
  496. if (result) {
  497. newArr.splice(index, 1)
  498. }
  499. })
  500. this.listNum = [...this.listNum, ...newArr]
  501. } else {
  502. //取消全选 清楚listNum中的val里的值
  503. val.arr.map((item, index) => {
  504. var result = this.listNum.some(items => {
  505. if (items.dataIndex == item.dataIndex) {
  506. return true
  507. }
  508. })
  509. // console.log(result)
  510. if (result) {
  511. this.listNum.splice(index, 1)
  512. }
  513. })
  514. }
  515. } else {
  516. arr = this.listNum.filter((item, index) => {
  517. return item.dataIndex == val.dataIndex
  518. })
  519. }
  520. if (arr.length) {
  521. var index
  522. this.listNum.map((item, ind) => {
  523. if (item.dataIndex == val.dataIndex) {
  524. index = ind
  525. }
  526. })
  527. console.log(index)
  528. this.listNum.splice(index, 1)
  529. } else {
  530. this.listNum.push(val)
  531. }
  532. }
  533. },
  534. activated() {
  535. console.log('activated')
  536. // this.getParticipateList()
  537. this.statDate = moment().subtract(1, 'day')
  538. moment().format('YYYY-MM-DD_HH:mm')
  539. postAction('/toutiao/videoReportDaily/getColumnJson', {
  540. columnType: 1
  541. }).then(res => {
  542. // console.log(res)
  543. if (res.success) {
  544. // console.log(JSON.parse(res.result))
  545. let columns = JSON.parse(res.result)
  546. if (columns.length) {
  547. if (columns.length >= columnsFixd.length) {
  548. columns.map((item, index) => {
  549. if (index > columnsFixd.length - 1) {
  550. item.sorter = function(a, b) {
  551. return a[item.dataIndex] - b[item.dataIndex]
  552. }
  553. }
  554. })
  555. columns = columns.slice(columnsFixd.length)
  556. this.columns = [...columnsFixd, ...columns]
  557. this.tableHandle()
  558. }
  559. // console.log(this.columns)
  560. }
  561. }
  562. })
  563. },
  564. deactivated() {
  565. let arr = JSON.stringify(this.columns)
  566. // console.log(arr)
  567. postAction('/toutiao/videoReportDaily/saveOrUpdateColumnJson', {
  568. json: arr,
  569. columnType: 1
  570. }).then(res => {
  571. // console.log(res)
  572. })
  573. },
  574. filters: {
  575. toPercentage(val) {
  576. return (val * 100).toFixed(2) + '%'
  577. // return val
  578. },
  579. toshowTime(val) {
  580. // console.log(val, this.timedata)
  581. // return this.timedata[0] + '~' + this.timedata[1]
  582. return val
  583. },
  584. tofixed(val) {
  585. return Number(val).toFixed(2)
  586. }
  587. },
  588. mounted() {
  589. this.columns = [...columnsFixd, ...variableCol]
  590. // console.log('mounted')
  591. //请求自定义列的数据
  592. postAction('/toutiao/videoReportDaily/videoInfoListTotalExportExcelPermission').then(res => {
  593. console.log(res)
  594. if (res.success) {
  595. if (res.result) {
  596. this.exportExcelIsOk = true
  597. } else {
  598. this.exportExcelIsOk = false
  599. }
  600. }
  601. })
  602. //进入页面默认展示昨天到今天的数据
  603. this.dateRange=[moment().subtract(1,'days'),moment()]
  604. this.timedata=[moment().subtract(1,'days').format('YYYY-MM-DD'),moment().format('YYYY-MM-DD')]
  605. this.loading=true;
  606. this.HttpPost();
  607. }
  608. }
  609. </script>
  610. <style lang="less">
  611. // .ant-table .ant-table-fixed-left .ant-table-thead {
  612. // height: 108px !important ;
  613. // }
  614. .ant-table .ant-table-thead .ant-table-header-column .ant-table-column-title {
  615. // display:block;
  616. white-space: normal;
  617. word-break: break-all;
  618. }
  619. </style>
  620. <style lang="scss" scoped>
  621. .vsummary {
  622. width: 100%;
  623. height: 100%;
  624. }
  625. .xiangmuxuanze{
  626. margin-bottom: 20px;;
  627. }
  628. .timeDiv {
  629. display: flex;
  630. justify-content: space-between;
  631. }
  632. span {
  633. margin-left: 5px;
  634. }
  635. .myinput {
  636. width: 40%;
  637. }
  638. .addlist {
  639. float: left;
  640. width: 70%;
  641. border: 1px solid #eee;
  642. .selectionList {
  643. padding: 10px 15px;
  644. height: 450px;
  645. overflow: auto;
  646. .leibie {
  647. .leiName {
  648. font-size: 26px;
  649. text-align: left;
  650. }
  651. }
  652. .jutixiang {
  653. display: inline-block;
  654. width: 32%;
  655. box-sizing: border-box;
  656. padding: 10px 3px;
  657. }
  658. }
  659. }
  660. .listNum {
  661. float: right;
  662. width: 28%;
  663. border: 1px solid #eee;
  664. position: relative;
  665. }
  666. .zhuti {
  667. margin-top: 15px;
  668. overflow: hidden;
  669. p {
  670. height: 40px;
  671. line-height: 20px;
  672. padding: 10px 15px;
  673. background: rgb(249, 250, 253);
  674. border-bottom: 1px solid #eee;
  675. }
  676. #btn {
  677. position: absolute;
  678. right: 0;
  679. top: 5px;
  680. }
  681. .selectlist {
  682. width: 100%;
  683. list-style: none;
  684. margin: 0;
  685. height: 450px;
  686. padding: 0 15px 10px;
  687. overflow: auto;
  688. li {
  689. width: 100%;
  690. padding: 5px 8px;
  691. margin: 6px 0;
  692. border-radius: 10px;
  693. background: rgb(248, 248, 248);
  694. height: 32px;
  695. position: relative;
  696. span {
  697. width: 80%;
  698. height: 100%;
  699. display: inline-block;
  700. margin: 0 10px;
  701. // overflow:hidden;
  702. // text-overflow:ellipsis;
  703. // white-space: nowrap;
  704. }
  705. .listText {
  706. position: absolute;
  707. top: 2;
  708. left: 10;
  709. width: 40%;
  710. overflow: hidden;
  711. white-space: nowrap;
  712. text-overflow: ellipsis;
  713. }
  714. #closeStyle {
  715. position: absolute;
  716. top: 9px;
  717. right: 7px;
  718. }
  719. }
  720. }
  721. }
  722. </style>