vSummary.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  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. :fixedCol="columnsFixd"
  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.coverUrl"
  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="cpc">{{ cpc | 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: 'materialUploadTime',
  211. scopedSlots: { customRender: 'materialUploadTime' },
  212. align: 'center',
  213. sorter: () => {}
  214. },
  215. {
  216. title: '消耗',
  217. dataIndex: 'cost',
  218. scopedSlots: { customRender: 'cost' },
  219. align: 'center',
  220. sorter: () => {}
  221. },
  222. {
  223. title: '点击数',
  224. dataIndex: 'clickMaterial',
  225. align: 'center',
  226. scopedSlots: { customRender: 'clickMaterial' },
  227. sorter: () => {}
  228. // (a, b) => a.clickMaterial - b.clickMaterial
  229. },
  230. {
  231. title: '点击率',
  232. dataIndex: 'ctr',
  233. align: 'center',
  234. scopedSlots: { customRender: 'ctr' },
  235. sorter: () => {}
  236. },
  237. {
  238. title: '展示数',
  239. dataIndex: 'showMaterial',
  240. align: 'center',
  241. scopedSlots: { customRender: 'showMaterial' },
  242. sorter: () => {}
  243. },
  244. {
  245. title: '25%进度播放率',
  246. dataIndex: 'play25FeedBreakRate',
  247. align: 'center',
  248. scopedSlots: { customRender: 'play25FeedBreakRate' },
  249. sorter:() => {}
  250. },
  251. {
  252. title: '播完率',
  253. dataIndex: 'playOverRate',
  254. align: 'center',
  255. tip: '表示广告在投放期内的预估花费金额。当天数据可能会有波动,次日稳定',
  256. scopedSlots: { customRender: 'playOverRate' },
  257. sorter: () => {}
  258. },
  259. {
  260. title: '转化数',
  261. dataIndex: 'convertMaterial',
  262. align: 'center',
  263. scopedSlots: { customRender: 'convertMaterial' },
  264. sorter: () => {}
  265. },
  266. {
  267. title: '转化率',
  268. dataIndex: 'convertRate',
  269. align: 'center',
  270. scopedSlots: { customRender: 'convertRate' },
  271. sorter: () => {}
  272. }
  273. ]
  274. let show = 0
  275. export default {
  276. data() {
  277. return {
  278. roleCode: localStorage.getItem('roleCode'),
  279. //下拉选择框的数据
  280. projectArr:[],
  281. selectValue:'',
  282. appId:[],
  283. //设置表格的列宽
  284. tableWidth: '',
  285. //gudinglie
  286. columnsFixd: columnsFixd,
  287. //是否打开视频
  288. Videovisible: false,
  289. videoUrl: '',
  290. //是否显示导出按钮
  291. exportExcelIsOk: true,
  292. consumeValue: 1000,
  293. columns: [...columnsFixd, ...variableCol],
  294. addColumns: [],
  295. data: [],
  296. totalSelect: 0,
  297. daysFlag: false,
  298. dateRange: [],
  299. dataElse: [],
  300. loading: false,
  301. visible: false,
  302. //自定义列的搜索框
  303. searchInput: '',
  304. //弹出框中现实的选中列数
  305. scrollX: 0,
  306. listNum: [],
  307. //
  308. form: [],
  309. videoID: '',
  310. timedata: []
  311. }
  312. },
  313. mixins: [JeecgListMixin],
  314. components: {
  315. selectComponent,
  316. Treeselect
  317. },
  318. methods: {
  319. sort(pagination, filters, sorter, { currentDataSource }){
  320. console.log(pagination, filters, sorter)
  321. if(sorter.order == 'ascend'){
  322. this.HttpPost(sorter.columnKey+'+')
  323. }else if(sorter.order == 'descend'){
  324. this.HttpPost(sorter.columnKey+'-')
  325. }
  326. },
  327. moment,
  328. //select切换---项目
  329. selectChange(key){
  330. this.selectValue=key;
  331. },
  332. //打开视频
  333. openVideo(val) {
  334. this.Videovisible = true
  335. this.videoUrl = val
  336. },
  337. videoOk() {
  338. this.Videovisible = false
  339. },
  340. disabledDate(current) {
  341. // console.log(current)
  342. return current && current > moment().subtract(1, 'day')
  343. },
  344. consumeOnChange() {},
  345. //查询按钮
  346. searchRes() {
  347. this.date = []
  348. this.HttpPost()
  349. },
  350. //网络请求table数据函数
  351. HttpPost(sort){
  352. this.loading=true;
  353. show = 0
  354. postAction('/toutiao/videoReportDaily/videoInfoListTotal', {
  355. startDate: this.timedata[0],
  356. endDate: this.timedata[1],
  357. cost: this.consumeValue,
  358. signature: this.videoID,
  359. pageNo:this.ipagination.current,
  360. pageSize:this.ipagination.pageSize,
  361. accountIds:this.appId,
  362. sort:sort?sort:''
  363. }).then(res => {
  364. let resArr = []
  365. if (res.success) {
  366. // let result = res.result
  367. // this.data.push({ ...result, key: 1 })
  368. // result.map((item, index) => {
  369. // item.key = index
  370. // })
  371. this.data = res.result.list.map((item,index)=>{
  372. return {
  373. ...item,
  374. key:index
  375. }
  376. })
  377. this.ipagination.total = res.result.total
  378. this.loading = false
  379. }else{
  380. this.loading = false
  381. }
  382. })
  383. },
  384. //导出报表
  385. exportExcel() {
  386. // var params = {}
  387. // params.projectId = this.projectId
  388. // params.disCount = this.discount
  389. // params.statDate = this.statDate.format('YYYY-MM-DD')
  390. // var name = this.dataElse.filter(item => {
  391. // return item.projectId == this.projectId
  392. // })[0].projectName
  393. // downFilePost('/ctop/yiche/report/exportDailyReport', params).then(res => {
  394. // let blob = new Blob([res], {
  395. // type: 'application/vnd.ms-excel'
  396. let column = this.columns.map((item, index) => {
  397. return item.dataIndex
  398. })
  399. let columns=['url',...column]
  400. downFilePost('/toutiao/videoReportDaily/bytedanceVideoInfoListTotalExportExcel', {
  401. columns,
  402. signature: this.videoID,
  403. startDate: this.timedata[0],
  404. endDate: this.timedata[1],
  405. cost: this.consumeValue,
  406. accountIds:this.appId,
  407. }).then(res => {
  408. let blob = new Blob([res], {
  409. type:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
  410. })
  411. let downloadElement = document.createElement('a')
  412. let href = window.URL.createObjectURL(blob) //创建下载的链接
  413. downloadElement.href = href
  414. downloadElement.download = this.statDate.format('YYYY-MM-DD') + '视频汇总.xlsx' //下载后文件名
  415. document.body.appendChild(downloadElement)
  416. downloadElement.click() //点击下载
  417. document.body.removeChild(downloadElement) //下载完成移除元素
  418. window.URL.revokeObjectURL(href) //释放掉blob对象
  419. })
  420. },
  421. //日期选择回调
  422. dateChange(data, dataString) {
  423. if (data.length) {
  424. this.timedata = dataString
  425. this.dateRange[0] = data[0]
  426. this.totalSelect = (data[1]._d - data[0]._d) / (24 * 60 * 60 * 1000) + 1
  427. this.daysFlag = true
  428. if (this.totalSelect > 92) {
  429. this.$message.error('时间跨度太长啦,选小一点好嘛?')
  430. this.daysFlag = false
  431. this.dateRange = []
  432. }
  433. } else {
  434. this.daysFlag = false
  435. this.dateRange = []
  436. }
  437. },
  438. //弹出框打开,自定义列
  439. customColumns() {
  440. this.visible = true
  441. this.listNum = [...this.columns]
  442. },
  443. //设置头部单元格属性
  444. customHeaderCell(columns) {
  445. // console.log(columns)
  446. },
  447. tableHandle() {
  448. // this.listNum = [...this.columns]
  449. // console.log(this.listNum.length, this.columns)
  450. if (this.listNum.length >= 9 || this.columns.length >= 9) {
  451. this.tableWidth = 120
  452. this.scrollX = this.columns.length * 120
  453. // console.log(this.scrollX)
  454. } else {
  455. this.scrollX = 0
  456. }
  457. },
  458. //弹出框确定
  459. handleOk(e) {
  460. this.loading = false
  461. this.visible = false
  462. if (this.listNum.length >= 10) {
  463. let newlist = this.listNum.slice(columnsFixd.length)
  464. console.log(newlist)
  465. this.columns = [...columnsFixd, ...newlist]
  466. } else {
  467. this.columns = [...this.listNum]
  468. }
  469. if (this.listNum.length == 4) {
  470. // console.log(this.listNum.length)
  471. this.scrollX = 0
  472. this.columns.map((item, index) => {
  473. item.width = 500
  474. })
  475. // console.log(1)
  476. } else {
  477. this.columns.map((item, index) => {
  478. if (index == 2 || index == 0) {
  479. item.width = 150
  480. } else if (index == 1 || index == 2) {
  481. item.width = 100
  482. }
  483. })
  484. // console.log(2)
  485. }
  486. this.tableHandle()
  487. },
  488. //弹出框取消按钮
  489. handleCancel(e) {
  490. this.visible = false
  491. },
  492. loadShow(){
  493. show++
  494. if(this.data.length>0){
  495. if(show == (this.data.length*2)){
  496. this.data = [...this.data]
  497. }
  498. }
  499. },
  500. //弹出框里的搜索框
  501. onSearch(value) {
  502. console.log(value)
  503. },
  504. //清空全部按钮的事件
  505. clearAllList() {
  506. this.listNum = [...columnsFixd]
  507. console.log(this.$refs.vSummaryTable)
  508. },
  509. //li展示里的关闭按钮 删除当前被选中的这一个列
  510. deleteCol(item, index) {
  511. this.listNum = this.listNum.filter((item1, num) => {
  512. return num != index
  513. })
  514. },
  515. //从自定义列拿选择的项
  516. getshowlist(val) {
  517. var arr = []
  518. // console.log(val)
  519. if (val.length) {
  520. if (val.flag) {
  521. let newArr = val.arr
  522. newVal.map((item, index) => {
  523. // if(JSON.stringify(this.listNum).indexOf(JSON.stringify(item))==-1){
  524. // this.listNum.push(item); // 进行动态的操作
  525. // }
  526. var result = this.listNum.some(items => {
  527. if (items.dataIndex == item.dataIndex) {
  528. return true
  529. }
  530. })
  531. // console.log(result)
  532. if (result) {
  533. newArr.splice(index, 1)
  534. }
  535. })
  536. this.listNum = [...this.listNum, ...newArr]
  537. } else {
  538. //取消全选 清楚listNum中的val里的值
  539. val.arr.map((item, index) => {
  540. var result = this.listNum.some(items => {
  541. if (items.dataIndex == item.dataIndex) {
  542. return true
  543. }
  544. })
  545. // console.log(result)
  546. if (result) {
  547. this.listNum.splice(index, 1)
  548. }
  549. })
  550. }
  551. } else {
  552. arr = this.listNum.filter((item, index) => {
  553. return item.dataIndex == val.dataIndex
  554. })
  555. }
  556. if (arr.length) {
  557. var index
  558. this.listNum.map((item, ind) => {
  559. if (item.dataIndex == val.dataIndex) {
  560. index = ind
  561. }
  562. })
  563. console.log(index)
  564. this.listNum.splice(index, 1)
  565. } else {
  566. this.listNum.push(val)
  567. }
  568. }
  569. },
  570. watch:{
  571. 'ipagination.current':function(n,o){
  572. console.log(n,o)
  573. this.HttpPost()
  574. }
  575. },
  576. activated() {
  577. console.log('activated')
  578. // this.getParticipateList()
  579. this.statDate = moment().subtract(1, 'day')
  580. moment().format('YYYY-MM-DD_HH:mm')
  581. postAction('/toutiao/videoReportDaily/getColumnJson', {
  582. columnType: 1
  583. }).then(res => {
  584. // console.log(res)
  585. if (res.success) {
  586. // console.log(JSON.parse(res.result))
  587. if(res.result){
  588. let columns = JSON.parse(res.result)
  589. if (columns.length) {
  590. if (columns.length >= columnsFixd.length) {
  591. columns.map((item, index) => {
  592. if (index > columnsFixd.length - 1) {
  593. item.sorter = function(a, b) {
  594. return a[item.dataIndex] - b[item.dataIndex]
  595. }
  596. }
  597. })
  598. columns = columns.slice(columnsFixd.length)
  599. this.columns = [...columnsFixd, ...columns]
  600. this.tableHandle()
  601. }
  602. // console.log(this.columns)
  603. }
  604. }
  605. }
  606. })
  607. this.tableHandle();
  608. },
  609. deactivated() {
  610. let arr = JSON.stringify(this.columns)
  611. // console.log(arr)
  612. postAction('/toutiao/videoReportDaily/saveOrUpdateColumnJson', {
  613. json: arr,
  614. columnType: 1
  615. }).then(res => {
  616. // console.log(res)
  617. })
  618. },
  619. filters: {
  620. toPercentage(val) {
  621. return (val * 100).toFixed(2) + '%'
  622. // return val
  623. },
  624. toshowTime(val) {
  625. // console.log(val, this.timedata)
  626. // return this.timedata[0] + '~' + this.timedata[1]
  627. return val
  628. },
  629. tofixed(val) {
  630. return Number(val).toFixed(2)
  631. }
  632. },
  633. mounted() {
  634. this.columns = [...columnsFixd, ...variableCol]
  635. // console.log('mounted')
  636. //请求自定义列的数据
  637. postAction('/toutiao/videoReportDaily/videoInfoListTotalExportExcelPermission').then(res => {
  638. console.log(res)
  639. if (res.success) {
  640. if (res.result) {
  641. this.exportExcelIsOk = true
  642. } else {
  643. this.exportExcelIsOk = false
  644. }
  645. }
  646. })
  647. //进入页面默认展示昨天到今天的数据
  648. this.dateRange=[moment().subtract(7,'days'),moment()]
  649. this.timedata=[moment().subtract(7,'days').format('YYYY-MM-DD'),moment().format('YYYY-MM-DD')]
  650. // this.loading=true;
  651. this.HttpPost()
  652. }
  653. }
  654. </script>
  655. <style lang="less">
  656. // .ant-table .ant-table-fixed-left .ant-table-thead {
  657. // height: 108px !important ;
  658. // }
  659. .vsummary{
  660. .ant-table .ant-table-thead .ant-table-header-column .ant-table-column-title {
  661. // display:block;
  662. white-space: normal;
  663. word-break: break-all;
  664. }
  665. }
  666. </style>
  667. <style lang="scss" scoped>
  668. .vsummary {
  669. width: 100%;
  670. height: 100%;
  671. }
  672. .xiangmuxuanze{
  673. margin-bottom: 20px;;
  674. }
  675. .timeDiv {
  676. display: flex;
  677. justify-content: space-between;
  678. }
  679. span {
  680. margin-left: 5px;
  681. }
  682. .myinput {
  683. width: 40%;
  684. }
  685. .addlist {
  686. float: left;
  687. width: 70%;
  688. border: 1px solid #eee;
  689. .selectionList {
  690. padding: 10px 15px;
  691. height: 450px;
  692. overflow: auto;
  693. .leibie {
  694. .leiName {
  695. font-size: 26px;
  696. text-align: left;
  697. }
  698. }
  699. .jutixiang {
  700. display: inline-block;
  701. width: 32%;
  702. box-sizing: border-box;
  703. padding: 10px 3px;
  704. }
  705. }
  706. }
  707. .listNum {
  708. float: right;
  709. width: 28%;
  710. border: 1px solid #eee;
  711. position: relative;
  712. }
  713. .zhuti {
  714. margin-top: 15px;
  715. overflow: hidden;
  716. p {
  717. height: 40px;
  718. line-height: 20px;
  719. padding: 10px 15px;
  720. background: rgb(249, 250, 253);
  721. border-bottom: 1px solid #eee;
  722. }
  723. #btn {
  724. position: absolute;
  725. right: 0;
  726. top: 5px;
  727. }
  728. .selectlist {
  729. width: 100%;
  730. list-style: none;
  731. margin: 0;
  732. height: 450px;
  733. padding: 0 15px 10px;
  734. overflow: auto;
  735. li {
  736. width: 100%;
  737. padding: 5px 8px;
  738. margin: 6px 0;
  739. border-radius: 10px;
  740. background: rgb(248, 248, 248);
  741. height: 32px;
  742. position: relative;
  743. span {
  744. width: 80%;
  745. height: 100%;
  746. display: inline-block;
  747. margin: 0 10px;
  748. // overflow:hidden;
  749. // text-overflow:ellipsis;
  750. // white-space: nowrap;
  751. }
  752. .listText {
  753. position: absolute;
  754. top: 2;
  755. left: 10;
  756. width: 40%;
  757. overflow: hidden;
  758. white-space: nowrap;
  759. text-overflow: ellipsis;
  760. }
  761. #closeStyle {
  762. position: absolute;
  763. top: 9px;
  764. right: 7px;
  765. }
  766. }
  767. }
  768. }
  769. </style>