| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <div>
- <el-button size="small" type="primary" @click="onSubmit">新 建</el-button>
- <!-- <p>创建通告中....</p>-->
- </div>
- </template>
- <script>
- export default {
- components:{
- },
- data () {
- return {
- defaultData:{},
- folderid:JSON.parse(sessionStorage.getItem('folderid')).appfolderid,
- form:{
- "sat_noticeid":0,
- "sat_notice_classid": '9999' + JSON.parse(sessionStorage.getItem('active_account')).userid,
- "title": "",
- "summary": "",
- "content": "",
- "issecret": 1,
- "begdate":(new Date()).toLocaleDateString(),
- "enddate":'',
- "isontop":0
- }
- }
- },
- methods:{
- onChecked () {},
- async onSubmit () {
- const res = await this.$api.requested({
- "id": "20221101094803",
- "content": this.form
- })
- this.$store.dispatch('DrawerShowChange',true)
- res.code === 1?this.$router.push({path:'/notice_add',query:{id:res.data.sat_noticeid}}):''
- },
- },
- mounted () {
- /*this.onSubmit()*/
- }
- }
- </script>
- <style>
- </style>
|