<template>
  <div>
    <div class="container normal-panel normal-margin">
      <el-button size="small" type="warning" @click="updateSite_Parameter">保 存</el-button>
    </div>
    <div class="container normal-panel normal-margin">
      <p class="normal-title normal-margin">消息提醒设置</p>
      <div class="flex-align-center">
        <div class="flex-align-center switch-panel">
          <small>系统弹窗提醒&emsp;</small>
          <el-switch
            :active-value="1"
            :inactive-value="0"
            v-model="form.remind_showdialog">
          </el-switch>
        </div>
        <div class="flex-align-center switch-panel">
          <small>邮件提醒&emsp;</small>
          <el-switch
            :active-value="1"
            :inactive-value="0"
            v-model="form.remind_mail">
          </el-switch>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  data () {
    return {
      form:{}
    }
  },
  computed:{
  },
  methods:{
    async querySite_Parameter () {
      const res = await this.$api.requested({
        "classname": "webmanage.site.site",
        "method": "querySite_Parameter",
        "content": {
        }
      })
      this.form = Object.assign({},this.form,res.data)
    },
    async updateSite_Parameter () {
      const res = await this.$api.requested({
        "classname": "webmanage.site.site",
        "method": "updateSite_Parameter",
        "content": this.form
      })
      this.tool.showMessage(res)
    },
  },
  mounted () {
    this.querySite_Parameter()
  }
}

</script>
<style>
</style>
<style scoped>
.switch-panel{
  width: 250px;
}
</style>