From be1ba16a724cc70bda924333e809d144e6725552 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 06 十二月 2024 17:54:26 +0800
Subject: [PATCH] 增加自定义url

---
 Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue  |    5 ++++-
 Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue  |    6 +++++-
 Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue |    6 +++++-
 Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue  |    6 +++---
 4 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue
index 19a7c3b..10ec422 100644
--- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue
+++ b/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 => {
diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
index 1a832cd..0eba875 100644
--- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
+++ b/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;
diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
index e0e6f8f..9b5b6fe 100644
--- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
+++ b/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){
diff --git a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue b/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
index 8a9012a..592c8b0 100644
--- a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
+++ b/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

--
Gitblit v1.9.3