index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <template>
  2. <div class="app-container home">
  3. <el-row :gutter="5">
  4. <el-col :sm="24" :lg="17" style="padding-left: 15px">
  5. <div class="index_heade">
  6. <img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
  7. <p class="index_headetab">
  8. <span :class="[num == index ? ' spanto' : '']" v-for="(item,index) in editableTabs" :key="index" @click="tabSbu(index)">{{item.title}}</span>
  9. </p>
  10. <div v-if="num == 0">
  11. <ul class="index_headerUl">
  12. <li>
  13. <img src="../assets/images/icon_list_sj.png" alt="">
  14. <p>国家统计局:3月份商品住宅销售价格涨幅总体稳定</p>
  15. <span>03/06</span>
  16. </li>
  17. <li>
  18. <img src="../assets/images/icon_list_sj.png" alt="">
  19. <p>国家统计局:3月份商品住宅销售价格涨幅总体稳定</p>
  20. <span>03/06</span>
  21. </li>
  22. <li>
  23. <img src="../assets/images/icon_list_sj.png" alt="">
  24. <p>国家统计局:3月份商品住宅销售价格涨幅总体稳定</p>
  25. <span>03/06</span>
  26. </li>
  27. <li>
  28. <img src="../assets/images/icon_list_sj.png" alt="">
  29. <p>国家统计局:3月份商品住宅销售价格涨幅总体稳定</p>
  30. <span>03/06</span>
  31. </li>
  32. <li>
  33. <img src="../assets/images/icon_list_sj.png" alt="">
  34. <p>国家统计局:3月份商品住宅销售价格涨幅总体稳定</p>
  35. <span>03/06</span>
  36. </li>
  37. <li>
  38. <img src="../assets/images/icon_list_sj.png" alt="">
  39. <p>国家统计局:3月份商品住宅销售价格涨幅总体稳定</p>
  40. <span>03/06</span>
  41. </li>
  42. </ul>
  43. <div class="index_haderPagin">
  44. <el-pagination
  45. @size-change="handleSizeChange"
  46. @current-change="handleCurrentChange"
  47. :current-page.sync="currentPage3"
  48. :page-size="pageSize"
  49. layout="prev, pager, next, jumper"
  50. :total="1000">
  51. </el-pagination>
  52. <span>共 85 条 每页显示 5 条 当前 1/17 页</span>
  53. </div>
  54. </div>
  55. </div>
  56. <!-- 列表 -->
  57. <el-col :sm="24" :lg="24" style="margin-top: 20px;">
  58. <div class="index_heade index_headeNav">
  59. <img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
  60. <p class="index_headetab">
  61. <span :class="[num == index ? ' spanto' : '']" v-for="(item,index) in editableTabs" :key="index" @click="tabSbu(index)">{{item.title}} <p class="tab_i">3</p></span></span>
  62. </p>
  63. <!-- <el-tabs v-model="activeName" @tab-click="handleClick" > -->
  64. <!-- <el-tab-pane name="first">
  65. <span slot="label" class="index_heseviewed"><p class="tab_i">3</p> 我的行程</span> -->
  66. <div v-if="num == 0">
  67. <el-table :data="tableData" style="width: 100%;margin-top: 10px;" :stripe="true" >
  68. <!-- <el-table-column type="selection" width="55" align="center" /> -->
  69. <el-table-column label="序号" align="center" prop="noticeId" width="60" height="53" max-height="53" />
  70. <el-table-column
  71. label="申请人"
  72. align="center"
  73. prop="name"
  74. :show-overflow-tooltip="true"
  75. width="70"
  76. />
  77. <el-table-column
  78. label="部门"
  79. align="center"
  80. prop="name"
  81. :formatter="typeFormat"
  82. width="70"
  83. />
  84. <el-table-column
  85. label="请假类型"
  86. align="center"
  87. prop="status"
  88. :formatter="statusFormat"
  89. width="75"
  90. />
  91. <el-table-column label="请假事由" align="center" prop="createBy" width="100" :show-overflow-tooltip="true"/>
  92. <el-table-column label="请假时间" align="center" prop="date" width="150"/>
  93. <!-- <template slot-scope="scope">
  94. <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
  95. </template> -->
  96. <!-- </el-table-column> -->
  97. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  98. <template slot-scope="scope">
  99. <el-button
  100. size="small"
  101. type="success"
  102. @click="handleUpdate(scope.row)"
  103. v-hasPermi="['system:notice:edit']"
  104. >详情</el-button>
  105. <el-button
  106. size="small"
  107. type="primary"
  108. @click="handleDelete(scope.row)"
  109. v-hasPermi="['system:notice:remove']"
  110. >同意</el-button>
  111. <el-button
  112. size="small"
  113. type="danger"
  114. @click="handleDelete(scope.row)"
  115. v-hasPermi="['system:notice:remove']"
  116. >驳回</el-button>
  117. </template>
  118. </el-table-column>
  119. </el-table>
  120. <div class="index_haderPagin">
  121. <el-pagination
  122. @size-change="handleSizeChange"
  123. @current-change="handleCurrentChange"
  124. :current-page.sync="currentPage3"
  125. :page-size="pageSize"
  126. layout="prev, pager, next, jumper"
  127. :total="1000">
  128. </el-pagination>
  129. <span>共 85 条 每页显示 5 条 当前 1/17 页</span>
  130. </div>
  131. </div>
  132. </div>
  133. </el-col>
  134. <!-- </el-row> -->
  135. <!-- 公司概况 -->
  136. <el-col :sm="24" :lg="24">
  137. <div class="index_heade index_headeProfile">
  138. <img src="../assets/images/icon_tjbj.png" alt="" class="index_headerImg">
  139. <p class="index_headetab">
  140. <span :class="[num == index ? ' spanto' : '']" v-for="(item,index) in editableTabs" :key="index" @click="tabSbu(index)">{{item.title}} </span>
  141. </p>
  142. <!-- <el-tabs v-model="activeName" @tab-click="handleClick">
  143. <el-tab-pane label="用户管理" name="first"> -->
  144. <div v-if="num == 0">
  145. <h3 style="text-align: center;">北京凯特伟业科技有限公司</h3>
  146. <p class="index_profilep"> 北京凯特伟业科技有限公司,是HBP集团(股票代码002554)下属全资子公司,主营业务互联网软件服务。公司拥有十余年软件开发经验,其案例遍布能源、通信、金融 、医疗、养老 、制造业等各行业。主要产品有JEPLUS软件开发平台、蒜瓣企业管理系统等,并提供saas服务。
  147. 蒜瓣产品支持SAAS(即当前软件发展最流行的多租户模式,例如钉钉)和定制两种模式。一般企业不需要购买任何硬件,刚开始只需要简单注册即可,企业无需再配备IT方面的专业技术人员,同时又能得到最新的技术应用,满足企业对信息管理的需求;大型企业有专业化需求时,可采用定制模式。</p>
  148. <div class="index_haderPagin">
  149. <el-pagination
  150. @size-change="handleSizeChange"
  151. @current-change="handleCurrentChange"
  152. :current-page.sync="currentPage3"
  153. :page-size="pageSize"
  154. layout="prev, pager, next, jumper"
  155. :total="1000">
  156. </el-pagination>
  157. <span>共 85 条 每页显示 5 条 当前 1/17 页</span>
  158. </div>
  159. </div>
  160. <!-- </el-tab-pane>
  161. <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane>
  162. <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
  163. <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>
  164. </el-tabs> -->
  165. </div>
  166. </el-col>
  167. </el-col>
  168. <el-col :sm="24" :lg="7" style="padding-left: 15px">
  169. <div class="index_nav">
  170. <div class="index_navTime">
  171. <p class="index_navTimep">
  172. <span>日程</span>
  173. <span><i class="el-icon-date"></i>创建日程</span>
  174. </p>
  175. <el-calendar v-model="value">
  176. </el-calendar>
  177. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  178. </div>
  179. </div>
  180. <!-- 备忘录 -->
  181. <el-col :sm="24" :lg="24" >
  182. <div class="index_nav index_memoranduNnavTime">
  183. <div class="index_navTime ">
  184. <p class="index_navTimep">
  185. <span>日程</span>
  186. <span><i class="el-icon-date"></i>创建日程</span>
  187. </p>
  188. <ul >
  189. <li v-for="(index,item) in 6" :key="index">
  190. <p>今日的工作安排</p>
  191. <span>01-24</span>
  192. </li>
  193. </ul>
  194. <img src="../assets/images/icon_more.png" alt="">
  195. <!-- <el-calendar v-model="value">
  196. </el-calendar> -->
  197. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  198. </div>
  199. </div>
  200. </el-col >
  201. <!-- 通讯录 -->
  202. <el-col :sm="24" :lg="24">
  203. <div class="index_nav index_memoranduMail">
  204. <div class="index_navTime ">
  205. <p class="index_navTimep">
  206. <span>通讯录</span>
  207. <img src="../assets/images/icon_more.png" alt="" class="index_navTimeimgtwo">
  208. <!-- <span><i class="el-icon-date"></i>创建日程</span> -->
  209. </p>
  210. <div class="index_memoranduMailnav">
  211. <el-table :data="tableData" style="width: 100%;margin-top: 10px;" :stripe="true" >
  212. <!-- <el-table-column type="selection" width="55" align="center" /> -->
  213. <!-- <el-table-column label="序号" align="center" prop="noticeId" width="60" height="53" max-height="53" /> -->
  214. <el-table-column
  215. label="申请人"
  216. align="center"
  217. prop="name"
  218. :show-overflow-tooltip="true"
  219. style="height: 38px;"
  220. />
  221. <el-table-column
  222. label="部门"
  223. align="center"
  224. prop="name"
  225. :formatter="typeFormat"
  226. style="height: 38px;"
  227. />
  228. <el-table-column
  229. label="请假类型"
  230. align="center"
  231. prop="status"
  232. :formatter="statusFormat"
  233. style="height: 38px;"
  234. />
  235. </el-table>
  236. <div class="index_haderPagin index_haderPaginfoiu">
  237. <el-pagination
  238. @size-change="handleSizeChange"
  239. @current-change="handleCurrentChange"
  240. :current-page.sync="currentPage3"
  241. :page-size="pageSize"
  242. :small= "true"
  243. layout="prev, pager, next, jumper"
  244. :total="1000">
  245. </el-pagination>
  246. </div>
  247. </div>
  248. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  249. </div>
  250. </div>
  251. </el-col>
  252. </el-col>
  253. </el-row>
  254. <!-- <el-divider /> -->
  255. </div>
  256. </template>
  257. <script>
  258. export default {
  259. name: "index",
  260. data() {
  261. return {
  262. // 版本号
  263. version: "2.5.0",
  264. currentPage3: 1,
  265. pageSize:10,
  266. activeName: 'second',
  267. value: new Date(),
  268. editableTabs: [{
  269. title: 'Tab 1',
  270. name: '1',
  271. content: 'Tab 1 content'
  272. }, {
  273. title: 'Tab 2',
  274. name: '2',
  275. content: 'Tab 2 content'
  276. }],
  277. num:0
  278. };
  279. },
  280. methods: {
  281. goTarget(href) {
  282. window.open(href, "_blank");
  283. },
  284. handleSizeChange(val) {
  285. console.log(`每页 ${val} 条`);
  286. },
  287. handleCurrentChange(val) {
  288. console.log(`当前页: ${val}`);
  289. },
  290. handleClick(tab, event) {
  291. console.log(tab, event);
  292. },
  293. // tab点击
  294. tabSbu(index){
  295. this.num = index
  296. }
  297. },
  298. };
  299. </script>
  300. <style lang="scss">
  301. .home{
  302. .el-tabs__header{
  303. margin-bottom: 5px !important;
  304. }
  305. .el-calendar-table tr td:first-child{
  306. border: 0 !important;
  307. }
  308. .el-calendar-table tr:first-child td{
  309. border: 0 !important;
  310. }
  311. .el-calendar-table td{
  312. border: 0 !important;
  313. }
  314. .el-calendar-table .el-calendar-day{
  315. height: 30px;
  316. text-align: center;
  317. line-height: 30px;
  318. border-radius: 30px;
  319. padding: 0;
  320. // background-color: #0B18E8;
  321. }
  322. .el-calendar-table td.is-selected{
  323. // background-color: #0B18E8;
  324. border-radius: 30px;
  325. }
  326. .el-calendar__header{
  327. border: 0;
  328. padding: 0 20px;
  329. }
  330. .el-calendar__body{
  331. padding-top: 0;
  332. padding-bottom: 0;
  333. }
  334. .el-pagination{
  335. padding-left: 0;
  336. }
  337. .index_headeNav{
  338. .el-tabs__item{
  339. position: relative;
  340. }
  341. }
  342. .el-table th.is-leaf, .el-table td{
  343. border: 0 !important;
  344. }
  345. .el-calendar__title{
  346. font-size: 12px;
  347. }
  348. .el-table td{
  349. padding: 6px 0;
  350. }
  351. .index_haderPaginfoiu{
  352. .el-pagination__jump{
  353. display: block !important;
  354. text-align: center;
  355. margin-left: 0;
  356. }
  357. }
  358. }
  359. </style>
  360. <style scoped lang="scss">
  361. .home {
  362. // tab
  363. .index_headetab{
  364. display: flex;
  365. border-bottom: 1px solid #E5E5E5;
  366. height: 53px;
  367. padding-top: 10px;
  368. padding-bottom: 10px;
  369. span{
  370. width: 70px;
  371. text-align: center;
  372. line-height: 43px;
  373. height: 43px;
  374. font-size: 15px;
  375. font-family: PingFang SC;
  376. font-weight: bold;
  377. color: #666;
  378. position: relative;
  379. // flex: 1;
  380. // border-bottom: ;
  381. }
  382. .span{
  383. content: '';
  384. display: block;
  385. width: 18px;
  386. height: 8px;
  387. border-radius: 3px;
  388. background-color: #3C8DBC;
  389. color: #3C8DBC !important;
  390. // position: absolute;
  391. // border-bottom: ;
  392. }
  393. .spanto{
  394. color:#3C8DBC ;
  395. border-bottom: 3px solid #3C8DBC;
  396. }
  397. }
  398. p{
  399. margin: 0;
  400. }
  401. ul{
  402. margin: 0;
  403. padding: 0;
  404. }
  405. background-color: #eef0ff;
  406. blockquote {
  407. padding: 10px 20px;
  408. margin: 0 0 20px;
  409. font-size: 17.5px;
  410. border-left: 5px solid #eee;
  411. }
  412. .index_heade{
  413. // border: 1px solid #eee;
  414. // width: 100%;
  415. padding: 0 20px;
  416. height: 386px;
  417. background-color: #fff;
  418. position: relative;
  419. border-radius: 6px;
  420. .index_headerImg{
  421. width: 23px;
  422. height: 6px;
  423. position: absolute;
  424. right: 20px;
  425. top:25px;
  426. }
  427. .index_headerUl{
  428. width: 100%;
  429. padding: 0;
  430. margin: 0;
  431. li{
  432. margin: 0;
  433. display: flex;
  434. justify-content: space-between;
  435. align-items: center;
  436. height: 43px;
  437. img{
  438. width: 11px;
  439. height: 13px;
  440. }
  441. p{
  442. font-size: 14px;
  443. font-family: PingFang SC;
  444. font-weight: 400;
  445. color: #343434;
  446. line-height: 36px;
  447. margin: 0;
  448. text-align: left;
  449. flex: 1;
  450. padding: 0 18px;
  451. }
  452. span{
  453. font-size: 14px;
  454. font-family: PingFang SC;
  455. font-weight: 400;
  456. color: #343434;
  457. line-height: 36px;
  458. }
  459. }
  460. }
  461. .index_haderPagin{
  462. display: flex;
  463. justify-content: space-between;
  464. align-items: center;
  465. margin-top: 30px;
  466. span{
  467. flex: 1;
  468. font-size: 12px;
  469. font-family: PingFang SC;
  470. font-weight: 400;
  471. color: #343434;
  472. text-align: right;
  473. // line-height: 36px;
  474. }
  475. }
  476. }
  477. //表格样式
  478. .index_headeNav{
  479. padding: 0 20px;
  480. height: 550px;
  481. background-color: #fff;
  482. position: relative;
  483. border-radius: 6px;
  484. .tab_i{
  485. position: absolute;
  486. right: 1px;
  487. top:5px;
  488. border-radius: 50%;
  489. // display: block;
  490. width: 15px ;
  491. height: 15px;
  492. line-height: 15px;
  493. text-align: center;
  494. color: #fff;
  495. background-color: red;
  496. overflow:hidden; //超出的文本隐藏
  497. text-overflow:ellipsis; //溢出用省略号显示
  498. white-space:nowrap; //溢出不换行
  499. font-size: 11px;
  500. font-family: PingFang SC;
  501. font-weight: bold;
  502. }
  503. }
  504. .index_nav{
  505. // border: 1px solid #eee;
  506. background-color: #fff;
  507. height: 315px;
  508. box-shadow: 0px 4px 4px 0px rgba(130, 150, 162, 0.64);
  509. border-radius: 6px;
  510. .index_navTime{
  511. height: 270px;
  512. position: relative;
  513. }
  514. .index_navTimeimg{
  515. height: 47px;
  516. width: 100%;
  517. position: absolute;
  518. bottom: -76px;
  519. left: 0;
  520. }
  521. .index_navTimep{
  522. padding: 10px 0;
  523. margin: 0 20px;
  524. margin-bottom: 10px;
  525. border-bottom: 1px solid #E5E5E5;
  526. display: flex;
  527. justify-content: space-between;
  528. align-items: center;
  529. span:nth-child(1){
  530. font-size: 15px;
  531. font-family: PingFang SC;
  532. font-weight: bold;
  533. color: #3C8DBC;
  534. }
  535. span:nth-child(1)::before{
  536. content: "";
  537. display: block;
  538. width: 18px;
  539. height: 8px;
  540. background: #3C8DBC;
  541. border-radius: 3px;
  542. }
  543. span:nth-child(2){
  544. font-size: 12px;
  545. font-family: PingFang SC;
  546. font-weight: 400;
  547. color: #3C8DBC;
  548. }
  549. }
  550. }
  551. // 公司概况样式
  552. .index_headeProfile{
  553. margin-top: 20px;
  554. margin-bottom: 20px;
  555. height: 316px;
  556. .index_profilep{
  557. font-size: 12px;
  558. font-family: PingFang SC;
  559. font-weight: bold;
  560. color: #343434;
  561. line-height: 27px;
  562. }
  563. .index_haderPagin{
  564. margin-top: 25px;
  565. }
  566. .index_headerImg{
  567. width: 21px;
  568. height: 21px;
  569. top:9px;
  570. }
  571. }
  572. // 备忘录样式
  573. .index_memoranduNnavTime{
  574. height: 335px;
  575. margin-top: 90px;
  576. position: relative;
  577. .index_navTimep{
  578. padding: 20px 0;
  579. // margin-bottom: 20px;
  580. }
  581. .index_navTimeimg{
  582. height: 47px;
  583. width: 100%;
  584. position: absolute;
  585. bottom: -76px;
  586. left: 0;
  587. bottom: -96px;
  588. }
  589. img{
  590. width: 23px;
  591. height: 6px;
  592. position: absolute;
  593. right: 20px;
  594. bottom: -50px;
  595. }
  596. ul{
  597. padding: 0 20px;
  598. li{
  599. display: flex;
  600. justify-content: space-between;
  601. align-items: center;
  602. border-bottom: 1px dashed #E5E5E5;
  603. p{
  604. font-size: 12px;
  605. font-family: PingFang SC;
  606. font-weight: 400;
  607. color: #343434;
  608. line-height: 36px;
  609. flex: 1;
  610. }
  611. span{
  612. font-size: 12px;
  613. font-family: PingFang SC;
  614. font-weight: 400;
  615. color: #343434;
  616. line-height: 36px;
  617. }
  618. }
  619. }
  620. }
  621. //通讯录样式
  622. .index_memoranduMail{
  623. height: 363px;
  624. margin-top: 100px;
  625. .index_navTimeimgtwo{
  626. width: 23px;
  627. height: 6px;
  628. }
  629. .index_navTimep{
  630. padding: 20px 0;
  631. }
  632. .index_memoranduMailnav{
  633. padding: 0 20px;
  634. }
  635. .index_navTimeimg{
  636. height: 47px;
  637. width: 100%;
  638. position: absolute;
  639. bottom: -76px;
  640. left: 0;
  641. bottom: -126px;
  642. }
  643. .index_haderPagin{
  644. margin-top: 10px;
  645. }
  646. }
  647. }
  648. </style>