getNoticeById3.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!--//公告管理-->
  2. <template>
  3. <div>
  4. <div class="noticeDetail">
  5. <PageTitle>返回</PageTitle>
  6. </div>
  7. <!--//详细内容展示部分-->
  8. <div class="form-box" style="margin-right: 10rem;margin-top: 30px;text-fill-color: #111111;-webkit-input-placeholder:111111FF" >
  9. <dil-form :formId="393" v-model="form1" ref="from1" autosize></dil-form>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. import PageTitle from "@/components/Page/Title";
  15. export default {
  16. name:"homeworkPath",
  17. components: { PageTitle },
  18. data() {
  19. return {
  20. form1: {},
  21. };
  22. },
  23. mounted() {
  24. console.log(this.$route)
  25. this.information();
  26. },
  27. methods: {
  28. information() {
  29. //编辑
  30. this.axios
  31. .post(
  32. "/api/v1/ams/getNoticeById/" +
  33. this.$route.params.noticeId
  34. )
  35. .then((res) => {
  36. console.log(res)
  37. res.data.data.forEach((e) => {
  38. this.form1 = e;
  39. console.log(e);
  40. console.log(this.form1);
  41. console.log(this.$route.params.noticeId);
  42. }
  43. );
  44. });
  45. },
  46. },
  47. }
  48. </script>
  49. <style>
  50. /* .el-textarea .el-input--medium .is-disabled {
  51. :rows="10"
  52. } */
  53. .el-textarea__inner{
  54. font-size: 15px !important;
  55. height:200px !important;
  56. }
  57. .from {
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. margin-top: 5px;
  62. margin-bottom: 20px;
  63. }
  64. .button-box{
  65. display: flex;
  66. text-align: center;
  67. align-items: center;
  68. justify-content: center;
  69. margin-top: 0.3125rem;
  70. margin-bottom: 1.25rem;
  71. }
  72. </style>
  73. <!--<el-input id="FormGroup_1639361270400"
  74. type="textarea"
  75. placeholder="请输入内容"
  76. v-model="textarea"
  77. >
  78. </el-input>-->