custom_data.vue 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <template>
  2. <section>
  3. <el-row style="padding-bottom: 0px;text-align:center;margin-top:20px;z-index: 999;">
  4. <el-col :span="6" >
  5. <div>&nbsp;</div>
  6. </el-col>
  7. <el-col :span="12" style="">
  8. <el-date-picker
  9. v-model="dateRange" :editable="false"
  10. format="yyyy-MM-dd" value-format="yyyy-MM-dd"
  11. @change="getEchart"
  12. :clearable="true"
  13. range-separator="至"
  14. type="daterange"
  15. start-placeholder="开始日期"
  16. end-placeholder="结束日期"
  17. ></el-date-picker>
  18. <el-radio-group v-model="radio" @change="getEchart" style="margin-left:10px;">
  19. <el-radio-button label="项目"></el-radio-button>
  20. <!-- <el-radio-button label="部门"></el-radio-button> -->
  21. <el-radio-button label="人员"></el-radio-button>
  22. <el-radio-button label="部门"></el-radio-button>
  23. <!-- <el-radio-button :label="namess" v-if="jichu.customDegreeActive == 1"></el-radio-button> -->
  24. </el-radio-group>
  25. </el-col>
  26. <el-col :span="6">
  27. <el-button @click="showExportDialog">报表导出</el-button>
  28. </el-col>
  29. </el-row>
  30. <div :style="'width:'+widthHtval+'px;position: relative; height:'+containerHeight+'px;'">
  31. <div id="container" :style="'height:'+containerHeight+'px;width:100%'"></div>
  32. </div>
  33. <div style="position:fixed;top:170px;left:600px;" v-show="radio=='部门' && parentDeptId != null">
  34. <el-button @click="backToParentDept">返回上级</el-button>
  35. </div>
  36. <!--导出报表条件选择 -->
  37. <el-dialog title="工时报表导出" v-if="exportDialog" :visible.sync="exportDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
  38. <el-form ref="form3" :model="exportParam" >
  39. <el-form-item prop="projectId" label="选择项目" >
  40. <el-select v-model="exportParam.projectId" placeholder="全部项目" clearable style="width:350px;" filterable="true">
  41. <el-option v-for="item in projectList" :key="item.id" :label="item.projectName + item.projectCode" :value="item.id">
  42. <span style="float: left;color: #8492a6; font-size: 13px">{{ item.projectCode }}</span>
  43. <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
  44. </el-option>
  45. </el-select>
  46. </el-form-item>
  47. <!-- <el-form-item prop="userIds" label="选择人员" >
  48. <el-select v-model="exportParam.userIds" placeholder="全部人员" multiple="true" clearable style="width:350px;" filterable="true">
  49. <el-option v-for="item in hasReportUserList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  50. </el-select>
  51. </el-form-item> -->
  52. <el-form-item prop="projectId" :label="user.timeType.fixMonthcost==0?'日期范围':'选择月份'">
  53. <el-date-picker v-show="user.timeType.fixMonthcost==0"
  54. v-model="exportParam.dateRange" :editable="false"
  55. format="yyyy-MM-dd" value-format="yyyy-MM-dd"
  56. :clearable="false"
  57. range-separator="至"
  58. type="daterange"
  59. start-placeholder="开始日期"
  60. end-placeholder="结束日期"
  61. ></el-date-picker>
  62. </el-form-item>
  63. <!-- <el-form-item label="选择人员" v-if="radio == '项目' || radio == '部门'">
  64. <el-select v-model="exportParam.userId" placeholder="请选择人员" style="width: 350px" filterable="true">
  65. <span v-for="(item, index) in users" :key="index">
  66. <el-option :label="item.name" :value="item.id"></el-option>
  67. </span>
  68. </el-select>
  69. </el-form-item> -->
  70. </el-form>
  71. <div slot="footer" class="dialog-footer">
  72. <el-button type="primary" @click="exportProjectData" style="width:100%;" >导出</el-button>
  73. </div>
  74. </el-dialog>
  75. </section>
  76. </template>
  77. <script>
  78. import util from "../../common/js/util";
  79. export default {
  80. data() {
  81. return {
  82. yAxisValue: localStorage.yAxisValue?localStorage.yAxisValue:0,
  83. parentDeptStack:[],
  84. parentDeptId:null,
  85. hasReportUserList:[],
  86. projectList:[],
  87. exportParam:{projectId:null,dateRange:[],userId: null},
  88. exportDialog:false,
  89. dateRange:[],
  90. user: JSON.parse(sessionStorage.getItem("user")),
  91. radio: sessionStorage.radio!=null?sessionStorage.radio:'项目',
  92. containerHeight: 0,
  93. myChart: null,
  94. params: null,
  95. widthHtval: document.body.clientWidth - 230,
  96. users: [],
  97. jichu: [],
  98. namess: '',
  99. timers: null, // 点击的时间
  100. zhishin: 0
  101. };
  102. },
  103. methods: {
  104. //Y轴点击改变显示的数据
  105. onYAxisChange() {
  106. localStorage.yAxisValue = this.yAxisValue;
  107. this.jieliu();
  108. },
  109. jutishez() {
  110. this.http.post('/time-type/getCompanyTimeSetting', {
  111. companyId: this.user.companyId,
  112. },
  113. res => {
  114. if (res.code == "ok") {
  115. this.jichu = res.data
  116. if(res.data.customDegreeActive == 1) {
  117. this.namess = res.data.customDegreeName
  118. }
  119. } else {
  120. this.$message({
  121. message: res.msg,
  122. type: "error"
  123. });
  124. }
  125. },
  126. error => {
  127. this.$message({
  128. message: error,
  129. type: "error"
  130. });
  131. });
  132. },
  133. getUsers() {
  134. // console.log(this.port.manage.list,'getusers')
  135. this.http.post(this.port.manage.list, {
  136. departmentId: -1,
  137. pageIndex: 1,
  138. pageSize: 99999
  139. },
  140. res => {
  141. if (res.code == "ok") {
  142. this.users = res.data.records;
  143. } else {
  144. this.$message({
  145. message: res.msg,
  146. type: "error"
  147. });
  148. }
  149. },
  150. error => {
  151. this.$message({
  152. message: error,
  153. type: "error"
  154. });
  155. });
  156. },
  157. showExportDialog() {
  158. this.exportDialog = true;
  159. this.exportParam.dateRange = this.dateRange;
  160. },
  161. //获取我的项目列表
  162. getMyProjectList() {
  163. this.http.post('/project/getProjectList', {
  164. },
  165. res => {
  166. if (res.code == "ok") {
  167. this.projectList = res.data;
  168. } else {
  169. this.$message({
  170. message: res.msg,
  171. type: "error"
  172. });
  173. }
  174. },
  175. error => {
  176. this.$message({
  177. message: error,
  178. type: "error"
  179. });
  180. });
  181. },
  182. exportProjectData() {
  183. var param = {};
  184. if (this.exportParam.dateRange != null) {
  185. param = {startDate:this.exportParam.dateRange[0], endDate: this.exportParam.dateRange[1]};
  186. }
  187. var url = "/project/exportCustomDataSum";
  188. var fileName = this.user.timeType.customDataName + '统计.xls';
  189. // if (this.radio == '人员' ) {
  190. // console.log(this.exportParam.userIds);
  191. // fileName = '人员工时成本统计.xls';
  192. // url = '/department/exportUserStatistic';
  193. // if (this.exportParam.userIds != null && this.exportParam.userIds.length > 0) {
  194. // var ids = '';
  195. // this.exportParam.userIds.forEach(u=>{
  196. // ids += u+',';
  197. // })
  198. // param.userIds = ids;
  199. // }
  200. // }
  201. if (this.exportParam.projectId != null) {
  202. param.projectId = this.exportParam.projectId;
  203. }
  204. this.http.post(url, param,
  205. res => {
  206. this.listLoading = false;
  207. if (res.code == "ok") {
  208. this.exportDialog = false;
  209. var aTag = document.createElement('a');
  210. aTag.download = fileName;
  211. aTag.href = res.data;
  212. aTag.click();
  213. } else {
  214. this.$message({
  215. message: res.msg,
  216. type: "error"
  217. });
  218. }
  219. },
  220. error => {
  221. this.listLoading = false;
  222. this.$message({
  223. message: error,
  224. type: "error"
  225. });
  226. });
  227. },
  228. //获取人员成本统计列表
  229. getUserCostList() {
  230. this.listLoading = true;
  231. let url = this.radio == '人员' ? '/department/getUserCustomDataStatistic' : '/department/getDeptCustomDataStatistic'
  232. this.http.post(url, {
  233. startDate:this.user.timeType.fixMonthcost==0?this.dateRange[0]:this.dateRange,
  234. endDate: this.user.timeType.fixMonthcost==0?this.dateRange[1]:this.dateRange
  235. },
  236. res => {
  237. this.listLoading = false;
  238. var _this = this;
  239. this.hasReportUserList = [];
  240. if (res.code == "ok") {
  241. //工时总成本
  242. this.hasReportUserList = this.radio == '人员' ? res.data.userList : res.data.department;
  243. var xList = [] , yList = [] , list = res.data.list, array = [] , series = [];
  244. var totalHours = 0.0;
  245. if (list.length > 0) {
  246. var num = list.length==0?0:list[0].project.length;
  247. for(var i in list) {
  248. xList.push(list[i].name);
  249. var pro = list[i].project;
  250. for(var j in pro) {
  251. if(array.indexOf(pro[j].project) == -1) {
  252. array.push(pro[j].project)
  253. }
  254. }
  255. }
  256. for(var i in array) {
  257. yList.push(array[i]);
  258. var dataList = [];
  259. for(var j in list) {
  260. var project = list[j].project , num = 0;
  261. if(project.length != 0) {
  262. for(var k in project) {
  263. if(project[k].project == array[i]) {
  264. dataList.push({
  265. "value": project[k].cost,
  266. "cost": project[k].cost
  267. })
  268. totalHours += parseFloat(project[k].cost);
  269. } else {
  270. num++;
  271. }
  272. if(k == project.length-1 && num != project.length-1) {
  273. dataList.push({
  274. "value": 0,
  275. "cost": 0
  276. })
  277. }
  278. }
  279. } else {
  280. dataList.push({
  281. "value": 0,
  282. "cost": 0,
  283. })
  284. }
  285. }
  286. series.push({
  287. name: array[i],
  288. type: 'bar',
  289. stack:'1',
  290. barMaxWidth: 30,
  291. data: dataList,
  292. })
  293. }
  294. }
  295. var myChart = echarts.init(document.getElementById("container"));
  296. totalHours = totalHours.toFixed(1);
  297. _this.myChart = myChart;
  298. var option = {
  299. //总成本
  300. title: {
  301. text: _this.user.timeType.customDataName + '总计' + totalHours,
  302. left:'left',
  303. },
  304. // 工具箱
  305. legend: {
  306. x: 80,
  307. y: 10,
  308. data: yList,
  309. show: true,
  310.        top:"5%",//与上方的距离 可百分比% 可像素px
  311. },
  312. grid : {
  313. top : 80, //距离容器上边界40像素
  314. bottom: 35 //距离容器下边界30像素
  315. },
  316. toolbox: {
  317. show: true,
  318. feature:{
  319. saveAsImage:{
  320. show:true
  321. },
  322. restore:{
  323. show:true
  324. },
  325. // dataView:{
  326. // show:true
  327. // },
  328. // dataZoom:{
  329. // show:true
  330. // },
  331. magicType:{
  332. type:['line','bar']
  333. }
  334. }
  335. },
  336. tooltip:{
  337. trigger:'axis',
  338. formatter: function (params,ticket,callback) {
  339. var totalTime = 0;
  340. var res = "";
  341. for(var i in params) {
  342. if (params[i].data.value > 0) {
  343. res += "<div style='margin-top:3px;font-size:12px;'><font color='#ddd'>项目名称:" + params[i].seriesName
  344. + "</font><br/>"+_this.user.timeType.customDataName+" : " + params[i].data.cost+"</div>";
  345. totalTime += Number(params[i].data.cost);
  346. }
  347. }
  348. res = res +'<br/>'+ params[0].name+ '<br/>总计: ' + totalTime.toFixed(1);
  349. return res;
  350. }
  351. },
  352. xAxis: {
  353. data: xList,
  354. axisLabel: {
  355. interval:0,rotate:20
  356. }
  357. },
  358. yAxis: [{
  359. type : 'value',
  360. axisLabel: {
  361. formatter:'{value}'
  362. }
  363. }],
  364. series: series,
  365. };
  366. myChart.setOption(option,{notMerge:true});
  367. } else {
  368. this.$message({
  369. message: res.msg,
  370. type: "error"
  371. });
  372. }
  373. },
  374. error => {
  375. this.listLoading = false;
  376. this.$message({
  377. message: error,
  378. type: "error"
  379. });
  380. });
  381. },
  382. yanjiu() {
  383. // console.log('触发')
  384. },
  385. getEchart(){
  386. var that = this
  387. // that.timers = setTimeout(()=>{
  388. // clearTimeout(that.timers)
  389. // console.log(that.timers)
  390. that.jieliu()
  391. // },100);
  392. // this.jieliu()
  393. },
  394. backToParentDept() {
  395. if (this.radio == '部门') {
  396. if (this.parentDeptStack.length > 0) {
  397. this.parentDeptStack.pop();
  398. if (this.parentDeptStack.length > 0) {
  399. this.parentDeptId = this.parentDeptStack[this.parentDeptStack.length -1];
  400. } else {
  401. this.parentDeptId = null;
  402. }
  403. this.jieliu();
  404. }
  405. }
  406. },
  407. // 脱离出来的方法
  408. jieliu() {
  409. sessionStorage.radio = this.radio;
  410. var _this = this;
  411. var param = {};
  412. if (this.dateRange != null) {
  413. param = {startDate:this.user.timeType.fixMonthcost==0?this.dateRange[0]:this.dateRange,
  414. endDate: this.user.timeType.fixMonthcost==0?this.dateRange[1]:this.dateRange};
  415. // console.log(param);
  416. }
  417. var url = '';
  418. if (this.radio=='项目') {
  419. url = '/project/getCustomDataSum';
  420. // } else if (this.radio=='部门') {
  421. // url = '/department/getDeptCustomDataStatistic';
  422. } else if (this.radio=='人员' || this.radio == '部门') {
  423. this.getUserCostList();
  424. return;
  425. } else if (this.radio == this.namess) {
  426. url = '/project/getDegreeCost'
  427. }
  428. this.http.post(url, param,
  429. res => {
  430. if (res.code == "ok") {
  431. for(var i in res.data.costList) {
  432. if(i>20) {
  433. // this.widthHtval = +this.widthHtval + 2
  434. this.widthHtval = +this.widthHtval + 40
  435. } else {
  436. this.widthHtval = document.body.clientWidth - 230
  437. }
  438. }
  439. // 测试写的
  440. var xList = []
  441. var yList = []
  442. var list
  443. var totalMoneyCost;
  444. var totalHours = 0.0;
  445. if(this.radio == '项目' || this.radio=='部门') {
  446. list = res.data.costList
  447. totalMoneyCost = ((this.radio=='项目')?res.data.totalMoneyCost:res.data.totalCostMoney);
  448. for(var i in list) {
  449. if(this.radio=='项目') {
  450. xList.push(this.radio=='项目'?list[i].project:list[i].name);
  451. yList.push({
  452. "value": list[i].cost.toFixed(1),
  453. "id": list[i].id || i,
  454. "cost": list[i].cost
  455. });
  456. totalHours += parseFloat(list[i].cost);
  457. } else {
  458. xList.push(list[i].departmentName);
  459. yList.push({
  460. "value": list[i].costTime.toFixed(1),
  461. "id": list[i].departmentId,
  462. "cost": list[i].costTime,
  463. "hasSubDept": list[i].hasSubDept
  464. });
  465. totalHours += parseFloat(list[i].costTime);
  466. }
  467. }
  468. } else {
  469. list = res.data
  470. var totalMoneyCost = 0;
  471. for(var i in list) {
  472. // console.log(list[i].name, list[i].costMoney, list[i].cost)
  473. xList.push(list[i].name);
  474. yList.push({
  475. "value": this.yAxisValue==0?list[i].costMoney:list[i].cost,
  476. "id": list[i].id || i,
  477. "cost": list[i].cost,
  478. "money":list[i].costMoney.toFixed(2)
  479. });
  480. totalHours += parseFloat(list[i].cost);
  481. totalMoneyCost += parseFloat(list[i].costMoney);
  482. }
  483. }
  484. totalHours = totalHours.toFixed(1);
  485. var myChart = echarts.init(document.getElementById("container"));
  486. myChart.resize({
  487. width: this.widthHtval
  488. })
  489. _this.myChart = myChart;
  490. // console.log(totalMoneyCost.toFixed(2), '看看', totalMoneyCost)
  491. // var chengbentongji = totalMoneyCost.toFixed(2) || totalMoneyCost
  492. if(totalMoneyCost) {
  493. this.zhishin = totalMoneyCost.toFixed(2)
  494. }
  495. if(this.radio == '项目' || this.radio == '人员' || this.radio=='部门') {
  496. var option = {
  497. title: {
  498. text: _this.user.timeType.customDataName+'总计:' + totalHours,
  499. left:'left',
  500. },
  501. // 工具箱
  502. toolbox: {
  503. show: true,
  504. feature:{
  505. saveAsImage:{show:true},restore:{show:true}, magicType:{ type:['line','bar']},
  506. }
  507. },
  508. tooltip:{
  509. trigger:'axis',
  510. formatter: function (params,ticket,callback) {
  511. var res = params[0].name + "<br/>"+_this.user.timeType.customDataName+" : " + params[0].data.cost;
  512. _this.params = params;
  513. return res;
  514. }
  515. },
  516. xAxis: {
  517. data: xList,
  518. axisLabel: {
  519. interval:0,rotate:20
  520. }
  521. },
  522. yAxis: [{
  523. type : 'value',
  524. axisLabel: {
  525. formatter:'{value}'
  526. }
  527. }],
  528. series: [{
  529. name: _this.user.timeType.customDataName,
  530. type: 'bar',
  531. barMaxWidth: 30,
  532. data: yList,
  533. }]
  534. };
  535. } else {
  536. var option = {
  537. title: {
  538. text: '工时成本总计' + _this.zhishin + '元, 时长'+totalHours+'小时',
  539. left:'left',
  540. },
  541. // 工具箱
  542. toolbox: {
  543. show: true,
  544. feature:{
  545. saveAsImage:{show:true},restore:{show:true}, magicType:{ type:['line','bar']},
  546. }
  547. },
  548. tooltip:{
  549. trigger:'axis',
  550. formatter: function (params,ticket,callback) {
  551. var res = params[0].name + "<br/>工作成本"+" : " + params[0].data.money
  552. + "元 <br/>工作时长"+" : " + params[0].data.cost + "小时";
  553. _this.params = params;
  554. return res;
  555. }
  556. },
  557. xAxis: {
  558. data: xList,
  559. axisLabel: {
  560. interval:0,rotate:20
  561. }
  562. },
  563. yAxis: [{
  564. type : 'value',
  565. axisLabel: {
  566. formatter:this.yAxisValue==0?'{value} (元)':'{value}小时'
  567. }
  568. }],
  569. series: [{
  570. name: this.yAxisValue==0?'工作成本(元)':'工作时长(小时)',
  571. type: 'bar',
  572. barMaxWidth: 30,
  573. data: yList,
  574. }]
  575. };
  576. }
  577. myChart.setOption(option,{notMerge: true});
  578. // myChart.getZr().on('click', params => {
  579. // const pointInPixel = [params.offsetX, params.offsetY];
  580. // if (myChart.containPixel('grid', pointInPixel)) {
  581. // console.log('sss',_this.params)
  582. // if(_this.radio=='项目') {
  583. // if (_this.dateRange != null) {
  584. // if (this.user.timeType.fixMonthcost == 0) {
  585. // _this.$router.push("/cost/" + _this.params[0].data.id + "/" + _this.params[0].name
  586. // +"?startDate="+_this.dateRange[0]+"&endDate="+_this.dateRange[1]);
  587. // } else {
  588. // _this.$router.push("/cost/" + _this.params[0].data.id + "/" + _this.params[0].name
  589. // +"?startDate="+_this.dateRange+"&endDate="+_this.dateRange);
  590. // }
  591. // } else {
  592. // _this.$router.push("/cost/" + _this.params[0].data.id + "/" + _this.params[0].name);
  593. // }
  594. // } else if (_this.radio=='部门') {
  595. // if (_this.params[0].data.hasSubDept) {
  596. // if (_this.parentDeptId != _this.params[0].data.id) {
  597. // _this.parentDeptId = _this.params[0].data.id;
  598. // _this.parentDeptStack.push(_this.parentDeptId);
  599. // _this.jieliu();
  600. // }
  601. // // _this.jieliu();
  602. // } else {
  603. // if (_this.dateRange != null) {
  604. // _this.$router.push("/costDep/" + _this.params[0].data.id + "/" + _this.params[0].name
  605. // +"?startDate="+_this.dateRange[0]+"&endDate="+_this.dateRange[1]);
  606. // } else {
  607. // _this.$router.push("/costDep/" + _this.params[0].data.id + "/" + _this.params[0].name);
  608. // }
  609. // }
  610. // }
  611. // }
  612. // });
  613. } else {
  614. this.$message({
  615. message: res.msg,
  616. type: "error"
  617. });
  618. }
  619. },
  620. error => {
  621. this.$message({
  622. message: error,
  623. type: "error"
  624. });
  625. });
  626. }
  627. },
  628. created() {
  629. },
  630. mounted() {
  631. this.containerHeight = window.innerHeight - 200
  632. const that = this;
  633. window.onresize = function temp() {
  634. this.containerHeight = window.innerHeight - 200
  635. };
  636. if (this.user.timeType.fixMonthcost == 0) {
  637. if (this.$route.query.startDate != null) {
  638. this.dateRange = [this.$route.query.startDate, this.$route.query.endDate];
  639. } else {
  640. //默认查看本月
  641. var now = new Date();
  642. var t = util.formatDate.format(now, 'yyyy-MM-dd');
  643. var startStr = util.formatDate.format(new Date(), 'yyyy-MM') + "-01";
  644. this.dateRange = [startStr,t];
  645. }
  646. this.exportParam.dateRange = this.dateRange;
  647. } else if (this.user.timeType.fixMonthcost == 1) {
  648. if (this.$route.query.startDate != null) {
  649. this.dateRange = this.$route.query.startDate;
  650. } else {
  651. //默认查看本月
  652. var startStr = util.formatDate.format(new Date(), 'yyyy-MM');
  653. this.dateRange = startStr;
  654. }
  655. this.exportParam.dateRange = this.dateRange;
  656. }
  657. this.radio = '项目'
  658. this.getEchart();
  659. var _this = this;
  660. window.addEventListener("resize", function() {
  661. _this.myChart.resize();
  662. });
  663. // this.getDepartment();
  664. this.getMyProjectList();
  665. this.getUsers()
  666. this.jutishez()
  667. },
  668. };
  669. </script>
  670. <style lang="scss" scoped>
  671. #container {
  672. // display: inline-block;
  673. display: block;
  674. position: absolute;
  675. // width: 100% !important;
  676. margin-top: 60px;
  677. }
  678. </style>
  679. <style lang="scss">
  680. </style>