notice.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div class="main fr">
  3. <h4><a href="/">首页</a> > 班级通知</h4>
  4. <div class="content ov bgf ">
  5. <dl class="notice" style="width: 100%;">
  6. <dt>班级通知 <!--<a href="" class="fr">更多+</a>--></dt>
  7. <div class="oper">
  8. <Button type="info" @click="modal1 = true">发布通知</Button>
  9. <Modal
  10. v-model="modal1" class-name="vertical-center-modal" footer-hide="true"
  11. title="发布通知"
  12. @on-ok="ok"
  13. @on-cancel="cancel">
  14. <Form :model="formItem" :label-width="80">
  15. <FormItem label="通知标题">
  16. <Input v-model="formItem.input" placeholder="请输入通知标题"></Input>
  17. </FormItem>
  18. <FormItem label="通知内容">
  19. <Input v-model="formItem.textarea" type="textarea" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入通知内容"></Input>
  20. </FormItem>
  21. <FormItem>
  22. <Button type="primary" @click="yes">发布</Button>
  23. <Button style="margin-left: 8px" @click="cancel">取消</Button>
  24. </FormItem>
  25. </Form>
  26. </Modal>
  27. </div>
  28. <dd><a href="/noticeDetail">5月10日上午8点举行奥运知识抢答赛,请班级成员准时参加。<span>2019-05-09</span></a></dd>
  29. <dd><a href="">师退生进 让学生站在教室中央<span>2019-05-09</span></a></dd>
  30. <dd><a href="">2019.4.9 核心素养深入研究,开拓视野精彩纷呈。<span>2019-05-09</span></a></dd>
  31. <dd><a href="">18.11.27区数学高段“问题解决”专题 暨“老带青”教研活动通讯。<span>2019-05-09</span></a></dd>
  32. <dd><a href="">2019年2月28日四年级教研活动通讯<span>2019-05-09</span></a></dd>
  33. <dd><a href="">5月10日上午8点举行奥运知识抢答赛,请班级成员准时参加。<span>2019-05-09</span></a></dd>
  34. <dd><a href="">师退生进 让学生站在教室中央<span>2019-05-09</span></a></dd>
  35. <dd><a href="">2019.4.9 核心素养深入研究,开拓视野精彩纷呈。<span>2019-05-09</span></a></dd>
  36. <dd><a href="">18.11.27区数学高段“问题解决”专题 暨“老带青”教研活动通讯。<span>2019-05-09</span></a></dd>
  37. <dd><a href="">2019年2月28日四年级教研活动通讯<span>2019-05-09</span></a></dd>
  38. </dl>
  39. <Page :total="100" size="small" show-total class="fr" />
  40. </div>
  41. </div>
  42. </template>
  43. <script>
  44. export default {
  45. data () {
  46. return {
  47. modal1: false,
  48. formItem: {
  49. input: '',
  50. textarea: ''
  51. }
  52. }
  53. },
  54. methods: {
  55. ok () {
  56. this.$Message.info('发布成功');
  57. },
  58. // cancel () {
  59. // this.$Message.info('');
  60. // }
  61. yes () {
  62. this.modal1 = false;
  63. this.$Message.success('发布成功');
  64. },
  65. cancel () {
  66. this.modal1 = false;
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="less">
  72. .vertical-center-modal{
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. .ivu-modal{
  77. top: 0;
  78. }
  79. }
  80. .ivu-modal .ivu-btn-primary{background: #2db7f5;border-color:#2db7f5}
  81. </style>