wangting
2024-12-06 be1ba16a724cc70bda924333e809d144e6725552
增加自定义url
已修改4个文件
23 ■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue
@@ -181,7 +181,11 @@
      }
      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 => {
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
@@ -356,7 +356,11 @@
      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;
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
@@ -244,7 +244,10 @@
      }
      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){
Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
@@ -31,7 +31,7 @@
            <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;">
@@ -235,7 +235,7 @@
  watch:{
    'form.userOid':{
      handler(val) {
        if(val){
        /*if(val){
          listRoleByUserOid(val).then(res => {
            // 组装好穿梭框可用数据
            this.roleDic = res.data.data;
@@ -258,7 +258,7 @@
          this.deptDic=[];
          this.form.roleOid=''
          this.form.deptOid='';
        }
        }*/
      },
      immediate: true,
      deep: true