Merge remote-tracking branch 'origin/master'
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | }) |
| | | } |
| | |
| | | data: params |
| | | }); |
| | | } |
| | | // å é¤é
ç½® |
| | | export function delAppConf(params) { |
| | | return request({ |
| | | url: "/api/hmSysModConfigController/delAppConf", |
| | | method: "delete", |
| | | params: params |
| | | }); |
| | | } |
| | | |
| | | // å¯¼åº |
| | | export function exportSysConf(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('ä¿åæå') |
| | | } |
| | |
| | | ...basicOption, |
| | | rowKey: 'oid', |
| | | rowParentKey: 'parentId', |
| | | expandRowKeys:[], |
| | | selection: false, |
| | | addBtn: false, |
| | | editBtn: false, |
| | |
| | | getTableList() { |
| | | refTree({queryAllLevel: true, 'extandParamsMap[showAllDepartmentNode]': true}).then(res => { |
| | | this.tableData = this.departDtaFormAtter(res.data.treeData); |
| | | this.option.expandRowKeys=[res.data.treeData[0].oid]; |
| | | }) |
| | | }, |
| | | |
| | |
| | | return items.map(item => { |
| | | // 转æ¢å½åèç¹ç屿§ |
| | | const formList = { |
| | | expanded:item.expanded, |
| | | oid: item.oid, |
| | | id: item.attributes.id, |
| | | name: item.attributes.name, |
| | |
| | | done(); |
| | | } |
| | | }).catch(err => { |
| | | console.log(err); |
| | | loading(); |
| | | }) |
| | | |
| | |
| | | done(); |
| | | } |
| | | }).catch(err => { |
| | | console.log(err); |
| | | loading(); |
| | | }) |
| | | }, |
| | |
| | | { |
| | | label: 'ç¼å·', |
| | | prop: 'id', |
| | | width:200, |
| | | }, |
| | | { |
| | | label: '代å·', |
| | | prop: 'code' |
| | | prop: 'code', |
| | | width:200 |
| | | }, |
| | | { |
| | | label:'ä¸ä¸', |
| | |
| | | refreshBtn: false, |
| | | addBtn: false, |
| | | menu: false, |
| | | header:false, |
| | | column: [ |
| | | { |
| | | label: 'é¨é¨', |
| | |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="userCrud" |
| | | :before-open="beforeOpen" |
| | | :data="tableData" |
| | | :option="option" |
| | | :page.sync="page" |
| | |
| | | @row-save="rowSaveHandler" |
| | | @row-update="rowUpdateHandler" |
| | | > |
| | | <!-- é¨é¨å¤´é¨æç´¢ææ§½ --> |
| | | <template slot-scope="{disabled,size}" slot="pkDepartmentNameSearch"> |
| | | <div style="display: flex;gap: 5px"> |
| | | <el-select v-model="departSearchValue" clearable placeholder="è¯·éæ©é¨é¨"> |
| | | <el-option :label="departSearchObj.name" :value="departSearchObj.oid"></el-option> |
| | | </el-select> |
| | | <el-button size="small" type="success" @click="dialogDepartSearchHandler">éæ©é¨é¨</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | | <!-- å¯¹è¯æ¡é¨é¨ææ§½ --> |
| | | <template slot="pkDepartmentNameForm" slot-scope="scope"> |
| | | <div style="display: flex;gap: 5px"> |
| | | <el-select v-model="departValue" clearable placeholder="è¯·éæ©é¨é¨"> |
| | | <el-option :label="departObj.name" :value="departObj.oid"></el-option> |
| | | </el-select> |
| | | <el-button size="small" type="success" @click="dialogDepartHandler">éæ©é¨é¨</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | | <template slot="status" slot-scope="{row}"> |
| | | <el-tag v-if="row.status === 0" type="success">å¯ç¨</el-tag> |
| | | <el-tag v-if="row.status === 1" type="danger">åç¨</el-tag> |
| | |
| | | departSearchValue:'', |
| | | loadKey: 0, |
| | | departStatus: '', // åºåä¸åæ¹å¼æå¼é¨é¨å¯¹è¯æ¡ |
| | | departValue: '', // é¨é¨å¯¹è¯æ¡ä¸ææ¡ç»å®å¼ |
| | | departObj: {}, // é¨é¨å¯¹è¯æ¡ä¸ææ¡é项ç»å®å¼ |
| | | departCurrenRow: {}, |
| | | departOption: { |
| | | ...basicOption, |
| | |
| | | menu: false, |
| | | refreshBtn: false, |
| | | gridBtn: false, |
| | | header:false, |
| | | column: [ |
| | | { |
| | | label: 'åç§°', |
| | |
| | | created() { |
| | | }, |
| | | methods: { |
| | | // æ°å¢æä¿®æ¹å¯¹è¯æ¡æå¼å |
| | | beforeOpen(done, type) { |
| | | if(type == 'add'){ |
| | | this.departObj = {}; |
| | | this.departValue = ""; |
| | | } |
| | | done(); |
| | | }, |
| | | |
| | | // è¡¨æ ¼è¯·æ± |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | |
| | | this.page.total = res.data.total; |
| | | this.tableLoading = false; |
| | | }) |
| | | this.departmentQueryOnLoad() |
| | | }, |
| | | |
| | | // è¡¨æ ¼å³ä¾§å·æ°å¾æ |
| | |
| | | // æç´¢æ¥è¯¢ |
| | | handleSearch(params, done) { |
| | | this.searchParams = {}; |
| | | if(this.departSearchObj && this.departSearchValue){ |
| | | this.searchParams['conditionMap["pkDepartment"]'] = this.departSearchValue; |
| | | } |
| | | |
| | | if (!func.isEmptyObject(params)) { |
| | | for (let key in params) { |
| | | if (params.hasOwnProperty(key)) { |
| | |
| | | } |
| | | } |
| | | |
| | | if (func.isEmptyObject(params) && !this.departSearchValue) { |
| | | if (func.isEmptyObject(params)) { |
| | | this.searchParams = {}; |
| | | } |
| | | |
| | |
| | | |
| | | // éç½®æç´¢æ¡ä»¶ |
| | | handleReset() { |
| | | this.departSearchObj = {}; |
| | | this.departSearchValue = ""; |
| | | this.searchParams = {}; |
| | | this.getTableList(); |
| | | }, |
| | |
| | | this.$message.error('è¯·æ£æ¥ä¸¤æ¬¡å¯ç æ¯å¦è¾å
¥ä¸è´ï¼') |
| | | return this.$refs.userCrud.$refs.dialogForm.$refs.tableForm.allDisabled = false; |
| | | } |
| | | row.pkDepartment = this.departValue; // å°å½åè¡çé¨é¨åæ°pkDepartment èµå¼ä¸ºä¸ææ¡ç»å®çå¼ |
| | | addUser(row).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | |
| | | |
| | | // æä½æ ç¼è¾ |
| | | rowEditHandler(row, index) { |
| | | let obj = { name: row.pkDepartmentName, oid: row.pkDepartment, rowOid: row.oid }; |
| | | this.departValue = row.pkDepartment; |
| | | this.departObj = obj; |
| | | |
| | | if (this.departObj.rowOid) { |
| | | this.$refs.userCrud.rowEdit(row, index); |
| | | } |
| | | |
| | | this.$refs.userCrud.rowEdit(row, index); |
| | | }, |
| | | |
| | | // ç¼è¾ |
| | |
| | | this.$message.error('è¯·æ£æ¥ä¸¤æ¬¡å¯ç æ¯å¦è¾å
¥ä¸è´ï¼') |
| | | return this.$refs.userCrud.$refs.dialogForm.$refs.tableForm.allDisabled = false; |
| | | } |
| | | row.pkDepartment = this.departValue; // å°å½åè¡çé¨é¨åæ°pkDepartment èµå¼ä¸ºä¸ææ¡ç»å®çå¼ |
| | | updateUser(row).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | |
| | | // ä¸è½½å¯¼å
¥æ¨¡æ¿ |
| | | downloadHandler() { |
| | | download().then(res => { |
| | | console.log(res); |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('ä¸è½½æå'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | return; |
| | | } |
| | | this.departStatus = 'default'; // åºåä¸åæ¹å¼æå¼é¨é¨å¯¹è¯æ¡ |
| | | this.departmentQueryOnLoad(); |
| | | this.departVisible = true; |
| | | }, |
| | | |
| | | // åé
é¨é¨è¡¨æ ¼åå§åè¯·æ± |
| | |
| | | departmentQueryController({queryAllLevel: true}).then(res => { |
| | | const data = res.data.treeData; |
| | | this.departData = this.departDtaFormAtter(data); |
| | | this.departVisible = true; |
| | | this.option.column[7].dicData=[{oid:'ALLDept',name:'ææé¨é¨',expand:true,disabled:true,children:this.departData}] |
| | | this.option.column[7].defaultExpandedKeys=['ALLDept']; |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | |
| | | return; |
| | | } |
| | | |
| | | //åé
é¨é¨ |
| | | if (this.departStatus == 'default') { |
| | | let params = { |
| | | userOIds: this.selectList.map(item => item.oid).join(','), |
| | |
| | | this.getTableList(); |
| | | this.$message.success('åé
æåï¼') |
| | | } |
| | | }).catch(err => { |
| | | console.log(err); |
| | | }) |
| | | return; |
| | | } |
| | | |
| | | if (this.departStatus == 'handle') { |
| | | this.departObj = this.departCurrenRow; |
| | | this.departValue = this.departCurrenRow.oid; |
| | | this.departVisible = false; |
| | | return;; |
| | | } |
| | | |
| | | if(this.departStatus == 'search'){ |
| | | this.departSearchObj = this.departCurrenRow; |
| | | this.departSearchValue = this.departCurrenRow.oid; |
| | | this.departVisible = false; |
| | | return; |
| | | } |
| | | }, |
| | | |
| | | // å¯¹è¯æ¡åé
é¨é¨æé® |
| | | dialogDepartHandler() { |
| | | this.departmentQueryOnLoad(); |
| | | this.departStatus = 'handle'; // åºåä¸åæ¹å¼æå¼é¨é¨å¯¹è¯æ¡ |
| | | }, |
| | | |
| | | // æç´¢å¯¹è¯æ¡åé
é¨é¨æé® |
| | | dialogDepartSearchHandler(){ |
| | | this.departmentQueryOnLoad(); |
| | | this.departStatus = 'search'; // åºåä¸åæ¹å¼æå¼é¨é¨å¯¹è¯æ¡ |
| | | }, |
| | | } |
| | | |
| | |
| | | prop: 'id', |
| | | search:true, |
| | | sortable:true, |
| | | editDisabled: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | prop: 'status', |
| | | display:false, |
| | | sortable:true, |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: 'å¯ç çç¥', |
| | | prop: 'pkPasswordStrategyName', |
| | | sortable:true, |
| | | display:false, |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: 'éå®ç¶æ', |
| | | prop: 'lockFlag', |
| | | sortable:true, |
| | | display:false, |
| | | width: 100, |
| | | }, |
| | | { |
| | | label: 'æå±é¨é¨', |
| | | prop: 'pkDepartmentName', |
| | | prop: 'pkDepartment', |
| | | align:'center', |
| | | type:'tree', |
| | | dicData: [], |
| | | props: { |
| | | label: 'name', |
| | | value: 'oid' |
| | | }, |
| | | search:true, |
| | | sortable:true, |
| | | overHidden: true, |
| | |
| | | prop: 'email', |
| | | sortable:true, |
| | | overHidden: true, |
| | | row:true |
| | | row:true, |
| | | span:24 |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | |
| | | prop: 'description', |
| | | sortable:true, |
| | | overHidden: true, |
| | | span:24 |
| | | }, |
| | | { |
| | | label: 'é¨é¨é¢å¯¼', |
| | |
| | | { |
| | | label: 'æå±å¯çº§', |
| | | prop: 'secretGradeText', |
| | | sortable:true, |
| | | display:false, |
| | | width: 80 |
| | | }, |
| | | ]; |
| | |
| | | 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') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div style="max-height: calc(100vh - 170px);overflow: auto"> |
| | | <div style="max-height: calc(100vh - 150px);overflow: auto"> |
| | | <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | |
| | | </el-aside> |
| | | <el-main> |
| | | <basic-container> |
| | | |
| | | <avue-crud |
| | | ref="crud" |
| | | :data="configData" |
| | |
| | | :visible.sync="addVisible" |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | width="50%" |
| | | width="600px" |
| | | @close="addVisibleClose"> |
| | | <el-form ref="form" :model="form" label-width="80px"> |
| | | <el-form-item label="åç§°ï¼"> |
| | | <el-input v-model="form.name"></el-input> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px" size="small"> |
| | | <el-form-item label="åç§°ï¼" prop="name"> |
| | | <el-input v-model="form.name" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="nodeRow.id !== 'firstNode'" label="keyï¼"> |
| | | <el-form-item v-if="nodeRow.id !== 'firstNode'" label="keyï¼" prop="key"> |
| | | <el-input v-model="form.key"></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="nodeRow.id !== 'firstNode'" label="valueï¼"> |
| | | <el-form-item v-if="nodeRow.id !== 'firstNode'" label="å¼ï¼" prop="value"> |
| | | <el-input v-model="form.value"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°ï¼"> |
| | | <el-input v-model="form.desc" type="textarea"></el-input> |
| | | <el-input v-model="form.desc" type="textarea" prop="desc"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | getAppConfigDetailsByID, |
| | | addAppConf, |
| | | updateAppConf, |
| | | delAppConf, |
| | | exportSysConf |
| | | } from "@/api/systemModel/systemConfig/api" |
| | | import basicOption from "@/util/basic-option"; |
| | |
| | | editStatus: false, |
| | | form: { |
| | | name: "", |
| | | key:"", |
| | | value:"", |
| | | desc: "" |
| | | }, |
| | | rules: { |
| | | name: [ |
| | | {required: true, message: '请è¾å
¥åç§°', trigger: 'blur'} |
| | | ], |
| | | key: [{required: true, message: '请è¾å
¥key', trigger: 'blur'}], |
| | | value: [{required: true, message: '请è¾å
¥å¼', trigger: 'blur'}] |
| | | }, |
| | | addVisible: false, |
| | | nodeRow: {}, |
| | |
| | | sortable: true |
| | | }, |
| | | { |
| | | label: 'value', |
| | | label: 'å¼', |
| | | prop: 'value', |
| | | overHidden: true, |
| | | sortable: true |
| | |
| | | this.form[key] = ""; |
| | | }) |
| | | this.addVisible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | |
| | | // ä¿å |
| | | addSaveClickHandler() { |
| | | if (this.nodeRow.id === 'firstNode') { |
| | | if (!this.form.name) { |
| | | this.$message.error('åç§°ä¸è½ä¸ºç©ºï¼'); |
| | | return; |
| | | } |
| | | } else { |
| | | if (!this.form.name) { |
| | | this.$message.error('åç§°ä¸è½ä¸ºç©ºï¼'); |
| | | return; |
| | | } |
| | | if (!this.form.key) { |
| | | this.$message.error('keyå¼ä¸è½ä¸ºç©ºï¼'); |
| | | return; |
| | | } |
| | | if (!this.form.value) { |
| | | this.$message.error('valueå¼ä¸è½ä¸ºç©ºï¼'); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | const params = this.nodeRow.id === 'firstNode' ? { |
| | | appConfigDetailInfo: { |
| | | name: this.form.name, |
| | | desc: this.form.desc, |
| | | id: this.editStatus ? this.form.id : null |
| | | }, |
| | | isConfCategorys: true //true表示ç»é¡¶å±æ·»å é
置项åç±» |
| | | } : { |
| | | appConfigDetailInfo: { |
| | | categoryId: this.nodeRow.id, |
| | | name: this.form.name, |
| | | desc: this.form.desc, |
| | | key: this.form.key, |
| | | value: this.form.value, |
| | | id: this.editStatus ? this.form.id : null |
| | | }, |
| | | isConfCategorys: false //true表示ç»é¡¶å±æ·»å é
置项åç±» |
| | | } |
| | | const saveApi = this.editStatus ? updateAppConf : addAppConf; |
| | | saveApi(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.addVisibleClose(); |
| | | if (this.nodeRow.id === 'firstNode') { |
| | | this.getTreeList('save'); |
| | | } else { |
| | | this.configLoading = true; |
| | | getAppConfigDetailsByID({clsId: this.nodeRow.id}).then(res => { |
| | | if (res.data.code === 200) { |
| | | const data = res.data.data; |
| | | this.configData = data; |
| | | this.configLoading = false; |
| | | } |
| | | }) |
| | | this.$refs.form.validate((valid) => { |
| | | if (valid) { |
| | | const params = this.nodeRow.id === 'firstNode' ? { |
| | | appConfigDetailInfo: { |
| | | name: this.form.name, |
| | | desc: this.form.desc, |
| | | id: this.editStatus ? this.form.id : null |
| | | }, |
| | | isConfCategorys: true //true表示ç»é¡¶å±æ·»å é
置项åç±» |
| | | } : { |
| | | appConfigDetailInfo: { |
| | | categoryId: this.nodeRow.id, |
| | | name: this.form.name, |
| | | desc: this.form.desc, |
| | | key: this.form.key, |
| | | value: this.form.value, |
| | | id: this.editStatus ? this.form.id : null |
| | | }, |
| | | isConfCategorys: false //true表示ç»é¡¶å±æ·»å é
置项åç±» |
| | | } |
| | | const saveApi = this.editStatus ? updateAppConf : addAppConf; |
| | | saveApi(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.addVisibleClose(); |
| | | if (this.nodeRow.id === 'firstNode') { |
| | | this.getTreeList('save'); |
| | | } else { |
| | | this.configLoading = true; |
| | | getAppConfigDetailsByID({clsId: this.nodeRow.id}).then(res => { |
| | | if (res.data.code === 200) { |
| | | const data = res.data.data; |
| | | this.configData = data; |
| | | this.configLoading = false; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // ç¼è¾æé® |
| | |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | getAppConfigCategoryInfo(params).then(res => { |
| | | console.log(res) |
| | | delAppConf(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success('å 餿å'); |
| | | if (this.nodeRow.id === 'firstNode') { |
| | |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | getAppConfigCategoryInfo(params).then(res => { |
| | | console.log(res) |
| | | delAppConf(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success('å 餿å'); |
| | | if (this.nodeRow.id === 'firstNode') { |