¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | }) |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {deleteLog, getPeroid, savePeriod} from "@/api/system/log/logBasic"; |
| | | import {getSecretGradeConfig, saveSecretGrade} from "@/api/authority/secure/classification"; |
| | | |
| | | export default { |
| | | name: "index", |
| | |
| | | } |
| | | }, |
| | | 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('ä¿åæå') |
| | | } |
| | |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="æä½åç±»" |
| | | width="60%" |
| | | width="500px" |
| | | > |
| | | <avue-crud |
| | | ref="methodsCrud" |
| | |
| | | :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> |
| | | <!--导å
¥ --> |
| | |
| | | addBtn: false, |
| | | menu: false, |
| | | height: 500, |
| | | header:false, |
| | | column: [ |
| | | { |
| | | label: 'æä½åç±»', |
| | |
| | | // å¢å æä½ç±»å |
| | | 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 { |
| | |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="æä½åç±»" |
| | | width="60%" |
| | | width="500px" |
| | | > |
| | | <avue-crud |
| | | ref="methodsCrud" |
| | |
| | | :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> |
| | | <!--导å
¥ --> |
| | |
| | | addBtn: false, |
| | | menu: false, |
| | | height: 500, |
| | | header:false, |
| | | column: [ |
| | | { |
| | | label: 'æä½åç±»', |
| | |
| | | // å¢å æä½ç±»å |
| | | 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 { |
| | |
| | | this.methodsVisble = false; |
| | | this.$message.success(res.data.msg); |
| | | this.form.childType = null; |
| | | this.refresh = Math.random(); // å·æ°å·¦ä¾§æ |
| | | this.handleRefreshTree('add') |
| | | } |
| | | }) |
| | | }, |