移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

details_issues.vue 4.9 KiB

2 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <div class="home_wrapper">
  3. <div class="header_main">
  4. {{form.openName}}
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <div class="release_head">
  8. <div class="people"><i class="icon"></i>发布人:{{form.createBy}}</div>
  9. <div class="time"><i class="icon"></i>发布日期:{{form.createTime}}</div>
  10. </div>
  11. <div class="release_conetnt">
  12. <img :src="'/api'+item" v-for="(item,index) in form.openPic" :key="index" />
  13. <van-cell-group inset>
  14. <van-cell :title="item.substr(27,item.length)" v-for="(item,index) in form.openFile" :key="index" @click="goFile(item)" />
  15. </van-cell-group>
  16. <p style="margin-top: 10PX">{{form.remark}}</p>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import { financePublicDetail , tempWorkerPublicDetail } from "@/api/sunVillage_info/fixedAssets";
  22. import Cookies from "js-cookie";
  23. import request from '@/utils/request'
  24. export default {
  25. name: "certificateList",
  26. data() {
  27. return {
  28. queryParams:{
  29. id:'',
  30. },
  31. form:{},
  32. type:''
  33. };
  34. },
  35. created() {
  36. this.houseGetDicts("asset_status").then((response) => {
  37. this.assetStatusOptions = response.data;
  38. });
  39. this.houseGetDicts("asset_type").then((response) => {
  40. this.assetTypeOptions = response.data;
  41. });
  42. this.houseGetDicts("use_type").then((response) => {
  43. this.useTypeOptions = response.data;
  44. });
  45. this.queryParams.id = this.$route.query.id;
  46. this.type = this.$route.query.type;
  47. this.queryParams.bookId = Cookies.get('bookId');
  48. this.queryParams.deptId = Cookies.get('deptId');
  49. this.getDetail()
  50. },
  51. methods: {
  52. getDetail(id){
  53. setTimeout(() => {
  54. if (this.type == 'finance'){
  55. financePublicDetail(this.queryParams).then(response => {
  56. if (response.code == 200){
  57. if (response.data.openFile){response.data.openFile = response.data.openFile.split(',');}
  58. if (response.data.openPic){response.data.openPic = response.data.openPic.split(',');}
  59. response.data.createTime = response.data.createTime.substr(0,10)
  60. this.form = response.data;
  61. }
  62. });
  63. }
  64. if (this.type == 'tourists'){
  65. tempWorkerPublicDetail(this.queryParams).then(response => {
  66. if (response.code == 200){
  67. if (response.data.openFile){response.data.openFile = response.data.openFile.split(',');}
  68. if (response.data.openPic){response.data.openPic = response.data.openPic.split(',');}
  69. response.data.createTime = response.data.createTime.substr(0,10)
  70. this.form = response.data;
  71. }
  72. });
  73. }
  74. }, 1000);
  75. },
  76. goFile(item){
  77. window.location = '/api'+item;
  78. }
  79. },
  80. }
  81. </script>
  82. <style scoped lang="scss">
  83. .home_wrapper{
  84. background: #e9e9e9;
  85. min-height: 100vh;
  86. width: 100vw;
  87. .header_main {
  88. height: 116px;
  89. background: url('../../assets/images/sunVillage_info/list_head.png') no-repeat;
  90. background-size: 100% 100%;
  91. position: fixed;
  92. top: 0;
  93. left: 0;
  94. width: 100%;
  95. font-size: 36px;
  96. line-height: 116px;
  97. text-align: center;
  98. color: #fff;
  99. position: relative;
  100. .return_btn {
  101. width: 24px;
  102. height: 43.2px;
  103. background: url('../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  104. background-size: 20px 36px;
  105. position: absolute;
  106. left: 38px;
  107. top: 36px;
  108. }
  109. }
  110. .release_head{
  111. height: 90px;
  112. padding:0 23px;
  113. display: flex;
  114. align-items: center;
  115. font-size: 26px;
  116. color: #929292;
  117. .people{
  118. flex: 1;
  119. display: flex;
  120. align-items: center;
  121. .icon{
  122. width: 24px;
  123. height: 21px;
  124. background: url('../../assets/images/sunVillage_info/details_icon_1.png') no-repeat;
  125. background-size: 100% 100%;
  126. display: block;
  127. margin-right: 8px;
  128. }
  129. }
  130. .time{
  131. flex: 1;
  132. display: flex;
  133. align-items: center;
  134. justify-content:flex-end;
  135. .icon{
  136. width: 25px;
  137. height: 25px;
  138. background: url('../../assets/images/sunVillage_info/details_icon_2.png') no-repeat;
  139. background-size: 100% 100%;
  140. display: block;
  141. margin-right: 8px;
  142. }
  143. }
  144. }
  145. .release_conetnt{
  146. padding:0 22px;
  147. font-size: 32px;
  148. color: #252525;
  149. line-height: 44px;
  150. img{
  151. max-width: 100%;
  152. margin-bottom: 16px;
  153. }
  154. p{
  155. margin-bottom: 16px;
  156. }
  157. }
  158. }
  159. </style>