wangting
2024-10-28 a67acbd55451349df089e4d9aa3cb748e225b05b
密级管理,修改操作类型
已修改3个文件
已添加1个文件
60 ■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/api/authority/secure/classification.js 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/api/authority/secure/classification.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
import request from '@/router/axios';
export function getSecretGradeConfig(params) {
  return request({
    url: "/api/secretGradeController/getSecretGradeConfig",
    method: "get",
    params
  });
}
export const saveSecretGrade = (params) => {
  return request({
    url: '/api/secretGradeController/saveSecretGrade',
    method: 'post',
    params: params
  })
}
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('保存成功')
        }
Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue
@@ -139,7 +139,7 @@
      append-to-body="true"
      class="avue-dialog"
      title="操作分类"
      width="60%"
      width="500px"
    >
      <avue-crud
        ref="methodsCrud"
@@ -148,11 +148,10 @@
        :table-loading="methodsLoading"
        @row-click="rowMethodsClickHandler"
        @selection-change="selectMethodsChange">
      </avue-crud>
      <span slot="footer" class="dialog-footer">
         <el-button @click="methodsVisble = false">取 æ¶ˆ</el-button>
         <el-button type="primary" @click="methodsSaveClickHandler">保 å­˜</el-button>
         <el-button @click="methodsVisble = false">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
    <!--导入    -->
@@ -193,6 +192,7 @@
        addBtn: false,
        menu: false,
        height: 500,
        header:false,
        column: [
          {
            label: '操作分类',
@@ -408,10 +408,10 @@
    // å¢žåŠ æ“ä½œç±»åž‹
    addMethodsClickHandler() {
      this.methodsLoading = true;
      getSysModelTreeMenuByPID({parentId: 'sysOptionNode'}).then(res => {
      getSysModelTreeMenuByPID({parentId: 'operateNode'}).then(res => {
        if (res.data.code === 200 && res.data.data.length>0) {
          this.methodsVisble = true;
          const data = res.data.data[0].children;
          const data = res.data.data;
          this.methodsData = data;
          this.methodsLoading = false;
        }else {
Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue
@@ -139,7 +139,7 @@
      append-to-body="true"
      class="avue-dialog"
      title="操作分类"
      width="60%"
      width="500px"
    >
      <avue-crud
        ref="methodsCrud"
@@ -148,11 +148,10 @@
        :table-loading="methodsLoading"
        @row-click="rowMethodsClickHandler"
        @selection-change="selectMethodsChange">
      </avue-crud>
      <span slot="footer" class="dialog-footer">
         <el-button @click="methodsVisble = false">取 æ¶ˆ</el-button>
         <el-button type="primary" @click="methodsSaveClickHandler">保 å­˜</el-button>
         <el-button @click="methodsVisble = false">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
    <!--导入    -->
@@ -193,6 +192,7 @@
        addBtn: false,
        menu: false,
        height: 500,
        header:false,
        column: [
          {
            label: '操作分类',
@@ -411,10 +411,10 @@
    // å¢žåŠ æ“ä½œç±»åž‹
    addMethodsClickHandler() {
      this.methodsLoading = true;
      getSysModelTreeMenuByPID({parentId: 'sysOptionNode'}).then(res => {
      getSysModelTreeMenuByPID({parentId: 'operateNode'}).then(res => {
        if (res.data.code === 200 && res.data.data.length>0) {
          this.methodsVisble = true;
          const data = res.data.data[0].children;
          const data = res.data.data;
          this.methodsData = data;
          this.methodsLoading = false;
        }else {
@@ -441,7 +441,7 @@
          this.methodsVisble = false;
          this.$message.success(res.data.msg);
          this.form.childType = null;
          this.refresh = Math.random(); // åˆ·æ–°å·¦ä¾§æ ‘
          this.handleRefreshTree('add')
        }
      })
    },