| | |
| | | params: params |
| | | }) |
| | | } |
| | | // 分类授权 |
| | | export const batchAddSave = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/codeApplyWebManagementController/batchAddSave', |
| | | method: 'post', |
| | | params: params |
| | | }) |
| | | } |
| | |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body class="avue-dialog avue-dialog--top" title="分类授权" top="-10"> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body class="avue-dialog avue-dialog--top" title="分类授权" top="-50px"> |
| | | |
| | | <el-row> |
| | | <el-col :span="10"> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <div slot="footer" class="dialog-footer" style="height: 50px;line-height: 50px"> |
| | | <el-button type="primary" icon="el-icon-plus" size="small">授 权</el-button> |
| | | <el-button type="primary" icon="el-icon-plus" size="small" @click="empower">授 权</el-button> |
| | | <el-button icon="el-icon-close" size="small" type="danger">重 置</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | | import {getSysInfoList, sysInfoAdd, sysInfoEdit, sysInfoDel, sysInfoTree} from '@/api/integration/sysInfo.js' |
| | | import {getSysInfoList, sysInfoAdd, sysInfoEdit, sysInfoDel, sysInfoTree,batchAddSave} from '@/api/integration/sysInfo.js' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | checkAll:[], |
| | | //避免缓存 |
| | | reload: Math.random(), |
| | | TreeLoading: false, |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | empower(){ |
| | | batchAddSave({systemOid: this.checkAll.oid, systemId: this.checkAll.id}).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | //分类授权多选回调 |
| | | checkChange(row,checked) { |
| | | // console.log(row) |
| | | // if(checked){ |
| | | // |
| | | // } |
| | | if(checked){ |
| | | // console.log('row',row) |
| | | this.checkAll.push(row); |
| | | console.log('checkAll',this.checkAll) |
| | | } |
| | | }, |
| | | //分类授权 |
| | | classifyHandler(row) { |
| | |
| | | }, |
| | | // enter搜索 |
| | | handleEnter() { |
| | | if (this.search[this.selectValue] === '') return |
| | | else this.getDataList() |
| | | |
| | | this.getDataList() |
| | | }, |
| | | // 输入框清空 |
| | | handleClear() { |