vSummary.vue 22 KB

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