developmentDetails.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <div class="autoBox box" >
  3. <div class="crumbs">
  4. <el-breadcrumb separator="/">
  5. <el-breadcrumb-item :to="{ path: 'home' }">{{$t('common.Home')}}</el-breadcrumb-item>
  6. <el-breadcrumb-item :to="{ path: 'developmentCooperation' }">发展合作留言</el-breadcrumb-item>
  7. <el-breadcrumb-item>发展合作留言详情</el-breadcrumb-item>
  8. </el-breadcrumb>
  9. </div>
  10. <!-- 留言内容 -->
  11. <div style="margin: 20px auto;padding:20px 10px;width:92%;border-bottom:1px dashed #cecece">
  12. <div>
  13. <div style="width:40px;height:40px;border-radius:50%;border:1px solid #aaaaaa;display:inline-block">
  14. <img src="@/assets/img/helpCenter/head.jpg" alt="" style="width:100%;border-radius: 50%;">
  15. </div>
  16. <div style="width:92%;float:right;">
  17. <div>
  18. <span style="float:left;color:#3a88c6;">{{messageList.title}}</span>
  19. <span style="float:right;color:#c1c1c1">{{$t('common.MessageTime')}}:{{formatDate(messageList.update_date)}}</span>
  20. </div>
  21. <div style="margin:30px 0;">
  22. <p v-html="messageList.content"> </p>
  23. </div>
  24. <div>
  25. <span style="float:right;margin-left:34px;color:#c1c1c1"><span style="color:#000">{{messageList.collect_num}} </span>{{$t('common.Collect')}}</span>
  26. <span style="float:right;margin-left:34px;color:#c1c1c1"><span style="color:#000">{{messageList.like_num}}</span>{{$t('common.Praise')}}</span>
  27. </div>
  28. </div>
  29. <div style="clear:both"></div>
  30. </div>
  31. </div>
  32. <!-- 平台回复 -->
  33. <div class="Platform" v-show="this.replyMess ">
  34. <div style="height:70px;background:#f1f4f9;border-bottom:1px solid #cecece;padding:0 30px;line-height: 70px;">
  35. <span style="float:left;font-size:24px;color:#3c5375;font-weight:700">GEIDCP平台回复</span>
  36. </div>
  37. <div v-for="(item,index) in replyMess" style="border-bottom:1px dotted #aaaaaa;width:95%;margin:auto" >
  38. <div style="margin:30px 0;">
  39. <span style="float:right;color:#c1c1c1;width:18%">回复时间:<span>{{item.update_date}}</span></span>
  40. <p style="float:left;width:70%;display:inline-block" v-html="item.content"> </p>
  41. <div style="clear:both"></div>
  42. </div>
  43. <!-- <div style="height: 20px;margin-bottom: 30px;padding:0 40px;">
  44. <span style="float:right;margin-left:34px;color:#c1c1c1"><span style="color:#000">15 </span>{{$t('common.Collect')}}</span>
  45. <span style="float:right;margin-left:34px;color:#c1c1c1"><span style="color:#000">10</span>{{$t('common.Praise')}}</span>
  46. </div> -->
  47. </div>
  48. </div>
  49. </div>
  50. </template>
  51. <script>
  52. import Screen from '@/components/screen'
  53. import { getMessage,getsCustomized,getColumnTree,saveOrUpdate } from "@/api/baseDevelopment"
  54. import { formatDate } from "@/utils/formatUtils";
  55. import Base from "@/views/base/Base";
  56. export default {
  57. name: 'developmentDetails',
  58. extends: Base,
  59. components:{Screen},
  60. data () {
  61. return {
  62. active:1,
  63. messageList:{},
  64. replyMess:[]
  65. }
  66. },
  67. mounted(){
  68. this.getMessages()
  69. },
  70. methods:{
  71. getImg(url){
  72. return require(url);
  73. },
  74. //获取留言信息
  75. getMessages(){
  76. var params={
  77. id:this.$route.query.key.id
  78. };
  79. getMessage(params).then(res=>{
  80. this.messageList = res.data.baseDevelopmentCooperationMessage;
  81. this.replyMess = res.data.baseDevelopmentCooperationReplyMessages;
  82. this.replyMess.forEach((i) => {
  83. i.update_date = i.update_date
  84. ? formatDate(i.update_date, "YYYY-MM-DD")
  85. : "";
  86. })
  87. });
  88. },
  89. }
  90. }
  91. </script>
  92. <!-- Add "scoped" attribute to limit CSS to this component only -->
  93. <style scoped>
  94. body {
  95. margin: 0;
  96. }
  97. .box {
  98. margin-top: 10px;
  99. background: #fff;
  100. /* height: 500px; */
  101. padding: 20px 0;
  102. }
  103. .crumbs {
  104. margin-left: 20px;
  105. }
  106. .Platform{
  107. width: 100%;
  108. margin: 28px 0;
  109. border-top: 3px solid #2f5586;
  110. border-bottom: 3px solid #2f5586;
  111. }
  112. </style>