apply-list.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <div class="other-container" style="margin-top: 178px;">
  3. <IHeader />
  4. <div style="padding-top: 10px;background: #FFF;margin-top:20px;">
  5. <el-card class="box-card">
  6. <div slot="header" class="clearfix">
  7. <span>{{ selectDepartName }} 法律法规类资料</span>
  8. <el-button style="float: right; padding: 3px 0;color: #999;font-size: 12px;" type="text" @click="handleOpenMore(1)">更多></el-button>
  9. </div>
  10. <div v-for="(o,index) in restaurants" :key="o.id" class="text item">
  11. <div style="display: inline-block;width: 100%;" >
  12. <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
  13. <span class="oneline" >
  14. {{ (index+1)}} 、 {{o.title|filterTitle}}
  15. </span>
  16. </el-link>
  17. <!-- <span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span> -->
  18. <el-button class="fr" type="text" @click="applyDoc()"> 审核通过 </el-button>
  19. <span style="clear: both;"></span>
  20. </div>
  21. </div>
  22. <el-pagination
  23. :current-page="1"
  24. :page-size="10"
  25. :page-sizes="[10, 30, 50, 100]"
  26. :style="{float:'center',padding:'20px'}"
  27. :total="total"
  28. layout="total, sizes, prev, pager, next, jumper"
  29. ></el-pagination>
  30. </el-card>
  31. </div>
  32. <el-dialog title="申请材料" center :visible.sync="dialogFormVisible" >
  33. <h3> 本材料非公开,需要向对应科室申请</h3>
  34. <div class="dialog-footer" slot="footer">
  35. <el-button type="warning" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">取 消</el-button>
  36. <el-button type="primary" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">确认申请</el-button>
  37. </div>
  38. </el-dialog>
  39. <IFooter />
  40. </div>
  41. </template>
  42. <script>
  43. import IHeader from "./components/IHeader";
  44. import IFooter from "./components/IFooter";
  45. import glIcon from '@/icons/img/2016smyjj_gl_icon.jpg'
  46. import data from '../data/data.js'
  47. import {getHotArticalList,getArticalList,getApplyArticalList} from '@/api/article'
  48. export default {
  49. name: 'application',
  50. components: {
  51. IHeader,
  52. IFooter
  53. },
  54. data() {
  55. return {
  56. dialogFormVisible: false,
  57. glIcon: glIcon,
  58. list: data.departs,
  59. total: 0,
  60. page:1,
  61. size: 20,
  62. searchDepartId: "",
  63. restaurants: [],
  64. state3: '',
  65. selectDepartId:1,
  66. selectDepartName: '',
  67. category:'',
  68. isShowMore: false
  69. }
  70. },
  71. mounted() {
  72. this.getApplyArticalList();
  73. },
  74. filters:{
  75. filterTitle(val){
  76. if( val.length > 35) {
  77. return val.substr(0,32)+"..."
  78. }else{
  79. return val
  80. }
  81. }
  82. },
  83. methods: {
  84. getApplyArticalList() {
  85. getApplyArticalList( {} ).then( res=>{
  86. this.restaurants = res.data.list
  87. this.total = res.data.total
  88. console.log("getHotArticalList", res)
  89. })
  90. }
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. .el-breadcrumb{
  96. display: inline-block;
  97. padding-left: 10px;
  98. }
  99. .box-card{
  100. margin-bottom: 20px;
  101. }
  102. .my-autocomplete {
  103. li {
  104. line-height: normal;
  105. padding: 7px;
  106. .name {
  107. text-overflow: ellipsis;
  108. overflow: hidden;
  109. }
  110. .addr {
  111. font-size: 12px;
  112. color: #b4b4b4;
  113. }
  114. .highlighted .addr {
  115. color: #ddd;
  116. }
  117. }
  118. }
  119. .el-card__body .text{
  120. margin: 5px 0;
  121. }
  122. .el-button--medium{
  123. margin: 0;
  124. padding: 0;
  125. color: #303133
  126. }
  127. .el-card{
  128. color: #1890ff;
  129. }
  130. .el-card__header{
  131. padding: 15px 20px;
  132. }
  133. .el-menu-vertical-demo:not(.el-menu--collapse) {
  134. width: 200px;
  135. min-height: 400px;
  136. }
  137. .oneline {
  138. line-height: 30px;
  139. white-space: nowrap;
  140. overflow: hidden;
  141. text-overflow: ellipsis;
  142. }
  143. </style>