| | |
| | | } |
| | | if (Object.keys(this.sourceData).length > 0 && this.isShow && this.actionType != "add") { |
| | | this.loading = true; |
| | | dataForm(this.params, this.paramVOS.getdataurl, this.paramVOS.getdatamethod).then(res => { |
| | | let url='' |
| | | if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsCustQueryCLsOrUrl |
| | | } |
| | | dataForm(this.params, this.paramVOS.getdataurl || url, this.paramVOS.getdatamethod).then(res => { |
| | | this.form = res.data.obj.data; |
| | | this.loading = false; |
| | | }).catch(error => { |
| | |
| | | if (Object.keys(this.sourceData).length>0 && this.isShow) { |
| | | this.tableList = []; |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, Object.assign({},this.params,this.query,params)).then(res => { |
| | | let url='' |
| | | if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsCustQueryCLsOrUrl; |
| | | } |
| | | getList(page.currentPage, page.pageSize, Object.assign({},this.params,this.query,params),url).then(res => { |
| | | let data = []; |
| | | if (res.data && res.data.data) { |
| | | data = res.data.data; |
| | |
| | | } |
| | | const parentBtmName = (node.level === 0) ? '' : (node.data.attributes.part.btmName || node.data.attributes.btmName); |
| | | const params = this.params; |
| | | let url=''; |
| | | let url='';debugger; |
| | | if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){ |
| | | url=this.componentVO.bsCustQueryCLsOrUrl; |
| | | } |
| | | if (node.level === 0) { |
| | | params.queryRoot = true; |
| | | if(this.paramVOS.querytemplate){ |
| | |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="addHandler">添加</el-button> |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="editHandler">修改</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">删除</el-button> |
| | | <el-button icon="el-icon-view" plain size="small" type="primary" @click="viewAuthHandler">查看授权结果</el-button> |
| | | <!--<el-button icon="el-icon-view" plain size="small" type="primary" @click="viewAuthHandler">查看授权结果</el-button>--> |
| | | </template> |
| | | </avue-crud> |
| | | <div style="margin-top: 15px;"> |
| | |
| | | watch:{ |
| | | 'form.userOid':{ |
| | | handler(val) { |
| | | if(val){ |
| | | /*if(val){ |
| | | listRoleByUserOid(val).then(res => { |
| | | // 组装好穿梭框可用数据 |
| | | this.roleDic = res.data.data; |
| | |
| | | this.deptDic=[]; |
| | | this.form.roleOid='' |
| | | this.form.deptOid=''; |
| | | } |
| | | }*/ |
| | | }, |
| | | immediate: true, |
| | | deep: true |