wangting
2024-10-28 a67acbd55451349df089e4d9aa3cb748e225b05b
Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue
@@ -7,7 +7,7 @@
</template>
<script>
import {deleteLog, getPeroid, savePeriod} from "@/api/system/log/logBasic";
import {getSecretGradeConfig, saveSecretGrade} from "@/api/authority/secure/classification";
export default {
  name: "index",
@@ -36,18 +36,26 @@
    }
  },
  created() {
    this.getPeroid()
    this.getSecretGradeConfig()
  },
  methods:{
    getPeroid:function (){
      getPeroid().then(res => {
        //this.form=res.data.data;
    getSecretGradeConfig:function (){
      getSecretGradeConfig().then(res => {
        if(res.data.obj.userSecuritySwith){
          this.form.type=[0]
        }
        if(res.data.obj.ipSecuritySwith){
          this.form.type.push(1)
        }
      }).catch(error => {
      })
    },
    saveHandler:function (form,done){
      debugger;
      savePeriod({'type':this.form.type}).then(res => {
      const params={
        userSecuritySwith:this.form.type.includes(0),
        ipSecuritySwith:this.form.type.includes(1)
      }
      saveSecretGrade(params).then(res => {
        if (res.data.success) {
          this.$message.success('保存成功')
        }