getNoticeById.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!--//公告管理-->
  2. <template>
  3. <div>
  4. <div class="noticeDetail">
  5. <PageTitle>返回</PageTitle>
  6. <el-divider content-position="left">公告信息</el-divider>
  7. </div>
  8. <!--//详细内容展示部分-->
  9. <div class="form-box" style="margin-right: 10rem;text-fill-color: #111111;-webkit-input-placeholder:111111FF" >
  10. <dil-form :formId="300" v-model="form1" ref="from1" autosize></dil-form>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import PageTitle from "@/components/Page/Title";
  16. export default {
  17. name:"homeworkPath",
  18. components: { PageTitle },
  19. data() {
  20. return {
  21. form1: {},
  22. };
  23. },
  24. mounted() {
  25. console.log(this.$route)
  26. this.information();
  27. },
  28. methods: {
  29. information() {
  30. //编辑
  31. this.axios
  32. .post(
  33. "/api/v1/rms/getNoticeById/" +
  34. this.$route.params.noticeId
  35. )
  36. .then((res) => {
  37. console.log(res)
  38. res.data.data.forEach((e) => {
  39. this.form1 = e;
  40. console.log(e);
  41. console.log(this.form1);
  42. console.log(this.$route.params.noticeId);
  43. }
  44. );
  45. });
  46. },
  47. },
  48. }
  49. </script>
  50. <style>
  51. /* .el-textarea .el-input--medium .is-disabled {
  52. /* rows="10" */
  53. /* } */
  54. .el-textarea__inner{
  55. font-size: 15px !important;
  56. height:200px !important;
  57. }
  58. </style>