移动端
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

174 righe
5.4 KiB

  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 , majorEventPublicDetail } 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. if (this.type == 'issues'){
  75. majorEventPublicDetail(this.queryParams).then(response => {
  76. if (response.code == 200){
  77. if (response.data.openFile){response.data.openFile = response.data.openFile.split(',');}
  78. if (response.data.openPic){response.data.openPic = response.data.openPic.split(',');}
  79. response.data.createTime = response.data.createTime.substr(0,10)
  80. this.form = response.data;
  81. }
  82. });
  83. }
  84. }, 1000);
  85. },
  86. goFile(item){
  87. window.location = '/api'+item;
  88. }
  89. },
  90. }
  91. </script>
  92. <style scoped lang="scss">
  93. .home_wrapper{
  94. background: #e9e9e9;
  95. min-height: 100vh;
  96. width: 100vw;
  97. .header_main {
  98. height: 116px;
  99. background: url('../../assets/images/sunVillage_info/list_head.png') no-repeat;
  100. background-size: 100% 100%;
  101. position: fixed;
  102. top: 0;
  103. left: 0;
  104. width: 100%;
  105. font-size: 36px;
  106. line-height: 116px;
  107. text-align: center;
  108. color: #fff;
  109. position: relative;
  110. .return_btn {
  111. width: 24px;
  112. height: 43.2px;
  113. background: url('../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  114. background-size: 20px 36px;
  115. position: absolute;
  116. left: 38px;
  117. top: 36px;
  118. }
  119. }
  120. .release_head{
  121. height: 90px;
  122. padding:0 23px;
  123. display: flex;
  124. align-items: center;
  125. font-size: 26px;
  126. color: #929292;
  127. .people{
  128. flex: 1;
  129. display: flex;
  130. align-items: center;
  131. .icon{
  132. width: 24px;
  133. height: 21px;
  134. background: url('../../assets/images/sunVillage_info/details_icon_1.png') no-repeat;
  135. background-size: 100% 100%;
  136. display: block;
  137. margin-right: 8px;
  138. }
  139. }
  140. .time{
  141. flex: 1;
  142. display: flex;
  143. align-items: center;
  144. justify-content:flex-end;
  145. .icon{
  146. width: 25px;
  147. height: 25px;
  148. background: url('../../assets/images/sunVillage_info/details_icon_2.png') no-repeat;
  149. background-size: 100% 100%;
  150. display: block;
  151. margin-right: 8px;
  152. }
  153. }
  154. }
  155. .release_conetnt{
  156. padding:0 22px;
  157. font-size: 32px;
  158. color: #252525;
  159. line-height: 44px;
  160. img{
  161. max-width: 100%;
  162. margin-bottom: 16px;
  163. }
  164. p{
  165. margin-bottom: 16px;
  166. }
  167. }
  168. }
  169. </style>