1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
- <div>
- <el-button size="small" type="primary" @click="show(drawer=true)">新 增</el-button>
- <!-- <p>创建通告中....</p>-->
- <el-drawer
- title="我是标题"
- :visible.sync="drawer"
- :with-header="false"
- :wrapper-closable="false"
- direction="rtl"
- size="90%"
- append-to-body>
- <div class="detail__panel">
- </div>
- </el-drawer>
- </div>
- </template>
- <script>
- export default {
- components:{
- },
- data () {
- return {
- drawer:false,
- defaultData:{},
- folderid:JSON.parse(sessionStorage.getItem('folderid')).appfolderid,
- form:{
- "sat_noticeid":0,
- "sat_notice_classid": 0,
- "title": "",
- "summary": "",
- "content": "",
- "issecret": 1,
- "begdate":(new Date()).toLocaleDateString(),
- "enddate":(new Date()).toLocaleDateString(),
- "isontop":0
- }
- }
- },
- methods:{
- onChecked () {},
- async onSubmit () {
- const res = await this.$api.requested({
- "id": "20221101094803",
- "method": "insertormodify_notice",
- "content": this.form
- })
- res.code === 1?this.$router.push({path:'/notice_add',query:{id:res.data.sat_noticeid}}):''
- },
- show(){
- this.drawer = false
- this.onSubmit()
- }
- },
- mounted () {
- /*this.onSubmit()*/
- }
- }
- </script>
- <style>
- </style>
|