index.vue 22 KB

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