移动端
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.
 
 

180 rivejä
4.8 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <div class="header_main">
  4. {{title}}
  5. <div class="return_btn" @click="back"></div>
  6. </div>
  7. <van-form ref="formData" :readonly="true">
  8. <div class="list_main">
  9. <van-field name="otherName" :value="form.otherName" label="公开名称" input-align="right" :border="false" />
  10. <van-field name="openAt" :value="form.openAt" label="公开时间" input-align="right" :border="false" />
  11. <van-field name="openContent" label="公开内容" input-align="right" :border="false" />
  12. <div class="open-content" v-html="form.openContent"></div>
  13. <van-field
  14. name="openPic"
  15. label="公开图片"
  16. input-align="right"
  17. :border="false"
  18. >
  19. </van-field>
  20. <CommonUpload name="openPic" :value="form.openPic" multiple :deletable="false" :show-upload="false"/>
  21. <van-field
  22. name="openFile"
  23. label="公开文件"
  24. input-align="right"
  25. :border="false"
  26. >
  27. </van-field>
  28. <CommonUpload name="openFile" :value="form.openFile" multiple :deletable="false" :show-upload="false"/>
  29. <van-field name="remake" :value="form.remark" label="备注" input-align="left" :border="false"/>
  30. </div>
  31. </van-form>
  32. </div>
  33. </template>
  34. <script>
  35. import CommonUpload from "@/components/form/CommonUpload.vue";
  36. import {getRegistration} from "@/api/sunVillage_info/registration";
  37. import {getOther} from "@/api/sunVillage_info/otherOpen";
  38. export default {
  39. name: "otherOpenDetail",
  40. components: {CommonUpload},
  41. data() {
  42. return {
  43. form: {
  44. id: null,
  45. bookId: null,
  46. deptId: null,
  47. deptName: null,
  48. otherName: null,
  49. otherType: '1',
  50. openYear: null,
  51. openAt: null,
  52. openContent: null,
  53. openFile: null,
  54. openPic: null,
  55. remark: null,
  56. createBy: null,
  57. createTime: null,
  58. updateBy: null,
  59. updateTime: null,
  60. },
  61. id:'',
  62. title: '综合公开',
  63. };
  64. },
  65. created() {
  66. this.id = this.$route.query.id;
  67. this.getDetail();
  68. },
  69. methods: {
  70. getDetail() {
  71. if(!this.id)
  72. {
  73. this.back();
  74. return;
  75. }
  76. getOther(this.id).then((resp) => {
  77. this.form = resp.data;
  78. this.getDicts('other_gk_type').then((resp) => {
  79. const dict = resp.data.find((x) => x.dictValue == this.form.otherType);
  80. if(dict)
  81. this.title = dict.dictLabel;
  82. });
  83. });
  84. },
  85. back() {
  86. this.$router.back();
  87. },
  88. },
  89. }
  90. </script>
  91. <style scoped lang="scss">
  92. /deep/ .van-button--primary{
  93. background: url("../../../assets/images/sunVillage_info/btn_bg.png") no-repeat;
  94. background-size: 100% 100%;
  95. border: none;
  96. }
  97. .home_wrapper{
  98. background: #e9e9e9;
  99. min-height: 100vh;
  100. width: 100vw;
  101. .header_main {
  102. height: 116px;
  103. background: url('../../../assets/images/sunVillage_info/list_head.png') no-repeat;
  104. background-size: 100% 100%;
  105. position: fixed;
  106. top: 0;
  107. left: 0;
  108. width: 100%;
  109. font-size: 36px;
  110. line-height: 116px;
  111. text-align: center;
  112. color: #fff;
  113. position: relative;
  114. .return_btn {
  115. width: 24px;
  116. height: 43.2px;
  117. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  118. background-size: 20px 36px;
  119. position: absolute;
  120. left: 38px;
  121. top: 36px;
  122. }
  123. .add_btn {
  124. width: 56.4px;
  125. height: 40.8px;
  126. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  127. background-size: 47px 34px;
  128. position: absolute;
  129. right: 38px;
  130. top: 36px;
  131. }
  132. }
  133. .list_main{
  134. padding:25px;
  135. background: #ffffff;
  136. width: 94%;
  137. margin: 25px auto 0;
  138. border-radius: 15PX;
  139. box-shadow: 4px 6px 5px rgba(63, 68, 75, 0.1);
  140. }
  141. .titBox{
  142. display: flex;
  143. align-items: center;
  144. }
  145. .tit{
  146. font-size: 36px;
  147. font-weight: bold;
  148. }
  149. /deep/ .van-cell{
  150. padding-left: 0!important;
  151. padding-right: 0!important;
  152. padding-bottom: 0!important;
  153. }
  154. /deep/ .van-field__label{
  155. padding-left: 10PX;
  156. width: 8.2em;
  157. }
  158. /deep/ .van-cell--required::before{
  159. left: 0;
  160. }
  161. }
  162. .open-content {
  163. padding: .2rem .3rem;
  164. max-height: 8rem;
  165. }
  166. </style>