From 349f98a9dd1706da8c61c8805021398994fff35e Mon Sep 17 00:00:00 2001 From: ludc Date: 星期四, 14 九月 2023 09:04:22 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue | 12 +++-- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java | 4 +- Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyFor410MainPanel.java | 8 ++- Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue | 6 +- Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue | 13 +++--- Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyPanelFor410ActionListener.java | 4 + Source/UBCS-WEB/src/App.vue | 5 ++ Source/UBCS-WEB/src/views/MasterData/items.vue | 7 --- Source/UBCS-WEB/src/components/Master/MasterTree.vue | 12 +++-- 9 files changed, 39 insertions(+), 32 deletions(-) diff --git a/Source/UBCS-WEB/src/App.vue b/Source/UBCS-WEB/src/App.vue index ea73e65..916c298 100644 --- a/Source/UBCS-WEB/src/App.vue +++ b/Source/UBCS-WEB/src/App.vue @@ -29,7 +29,10 @@ margin-bottom: 0; } .avue-dialog .el-dialog__body { - margin-bottom: 10px + margin-bottom: 40px +} +.avue-dialog__footer{ + z-index: 1000; } .avue-crud__pagination { padding: 10px 0 2px 20px; diff --git a/Source/UBCS-WEB/src/components/Master/MasterTree.vue b/Source/UBCS-WEB/src/components/Master/MasterTree.vue index e923ebc..eb35b74 100644 --- a/Source/UBCS-WEB/src/components/Master/MasterTree.vue +++ b/Source/UBCS-WEB/src/components/Master/MasterTree.vue @@ -1,9 +1,11 @@ <template> - <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" - :option="Treeoption" - style="height: calc(100vh - 150px);" - @node-click=" nodeClick" - ></avue-tree> + <div style="overflow: auto; height: calc(100vh - 150px);"> + <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" :option="Treeoption" @node-click="nodeClick" style="width: fit-content;"> + <template slot-scope="{ node }"> + <span style="display: inline-block;">{{ node.label }}</span> + </template> + </avue-tree> + </div> </template> <script> diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue index c7cd494..9378a8b 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue @@ -4,7 +4,7 @@ <!-- 宸︿晶鑿滃崟--> <el-aside> <basic-container style="overflow:hidden;"> - <div> + <div style="overflow: hidden"> <div> <div style="display: flex; flex-direction: column;"> <div style="display: flex;"> @@ -74,7 +74,7 @@ :defaultExpandAll="false" :option="Treeoption" class="classifyTree" - style="height: calc(100vh - 230px);" + style="height: calc(100vh - 230px)" @node-click="nodeClick" > </avue-tree> @@ -143,7 +143,7 @@ <avue-tree ref="cloneTree" v-model="TreeAvueform" v-loading="loading" :data="Treedata" :defaultExpandAll="false" :option="Treeoption" - style="height: 50.5vh;margin-right: 10px" + style="height: 50.5vh;margin-right: 10px;width: 300px" @node-click="ClonenodeClick" > </avue-tree> diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue index 66e133e..4427e05 100644 --- a/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue +++ b/Source/UBCS-WEB/src/components/refer/vciWebReferDefalut.vue @@ -5,8 +5,8 @@ :visible.sync="visible" top="0" class="avue-dialog avue-dialog--top" - :width="options.width|| '80%'"> - + :width="options.width|| '80%'" + :height="options.height|| 'auto'"> <avue-crud :option="option" :table-loading="loading" :data="data" @@ -247,7 +247,7 @@ this.selectionList.forEach((item,_index) =>{ if(isMutiValue){ var valueFieldArray = _that.props.value.split(","); - valueFieldArray.forEach((_itemField,_indexFiel)=>{ + valueFieldArray.forEach((_itemField,_indexField)=>{ value.push( (item[_itemField] || item['data'][_itemField]) + (_that.referConfig.valueSep?_that.referConfig.valueSep:' ')); }) }else { @@ -313,14 +313,15 @@ } } getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url, this.method).then(res => { + let data=[] if(res.data.records){ - this.data = res.data.records + data = res.data.records this.page.total=res.data.total ; }else{ - this.data = res.data.data.records; + data = res.data.data.records; this.page.total=res.data.data.total; } - this.data=this.data.map(item => { + this.data=data.map(item => { item.data=item.data || {} return { ...item diff --git a/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue b/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue index 70ccbae..7bc31f2 100644 --- a/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue +++ b/Source/UBCS-WEB/src/components/refer/vciWebReferTable.vue @@ -5,7 +5,8 @@ :visible.sync="visible" top="0" class="avue-dialog avue-dialog--top" - :width="options.width|| '80%'"> + :width="options.width|| '80%'" + :height="options.height|| 'auto'"> <avue-crud :option="option" :table-loading="loading" :data="data" @@ -305,7 +306,7 @@ this.selectionList.forEach((item,_index) =>{ if(isMutiValue){ var valueFieldArray = _that.props.value.split(","); - valueFieldArray.forEach((_itemField,_indexFiel)=>{ + valueFieldArray.forEach((_itemField,_indexField)=>{ value.push( (item[_itemField] || item['data'][_itemField]) + (_that.referConfig.valueSep?_that.referConfig.valueSep:' ')); }) }else { @@ -371,14 +372,15 @@ } } getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url).then(res => { + let data=[] if(res.data.records){ - this.data = res.data.records + data = res.data.records this.page.total=res.data.total ; }else{ - this.data = res.data.data.records; + data = res.data.data.records; this.page.total=res.data.data.total; } - this.data=this.data.map(item => { + this.data=data.map(item => { item.data=item.data || {} return { ...item diff --git a/Source/UBCS-WEB/src/views/MasterData/items.vue b/Source/UBCS-WEB/src/views/MasterData/items.vue index 03db218..83996ca 100644 --- a/Source/UBCS-WEB/src/views/MasterData/items.vue +++ b/Source/UBCS-WEB/src/views/MasterData/items.vue @@ -94,10 +94,5 @@ </script> <style scoped> -.el-aside { - height: calc(100% - 30px); -} -.el-main { - height: calc(100% - 30px); -} + </style> diff --git a/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyFor410MainPanel.java b/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyFor410MainPanel.java index f2bcbb8..69e582e 100644 --- a/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyFor410MainPanel.java +++ b/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyFor410MainPanel.java @@ -83,7 +83,7 @@ private StringBuffer tempStr= new StringBuffer();//鍙彉鐮佹鐨勫��; private String levelRes=""; private String[] specialSecVals = new String[0]; - private RMDataTransmitObject transmitForRMData = null; + private RMDataTransmitObject transmitForRMData = new RMDataTransmitObject(); private CodeRuleVO codeRuleVO=null; /** * 瀛樺偍灞炴�у拰鍊肩殑Map,key,鐢ㄤ簬榛樿鍊肩殑鏄剧ず @@ -167,8 +167,10 @@ } } }else{ - VCIOptionPane.showMessage(this,r.getMsg()); - } + if(!r.getMsg().equals("褰撳墠涓婚搴撳垎绫伙紝浠ュ強瀹冪殑鎵�鏈夌殑涓婄骇鍒嗙被閮芥病鏈夎缃紪鐮佽鍒�")){ + VCIOptionPane.showMessage(this,r.getMsg()); + } + } /**鍔犺浇瑙勫垯瀵瑰簲鐨勭爜娈典俊鎭�**/ if(codeRuleVO!=null){ List<CodeBasicSecVO> codeBasicSecVOList=codeRuleVO.getSecVOList(); diff --git a/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyPanelFor410ActionListener.java b/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyPanelFor410ActionListener.java index 793fb25..cf9b98f 100644 --- a/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyPanelFor410ActionListener.java +++ b/Source/UBCS/ubcs-codeApply/src/main/java/com/vci/rmip/code/client/codeapply/Apply410/CodeApplyPanelFor410ActionListener.java @@ -161,7 +161,9 @@ Object applyGroupCodeData = JSONObject.toJSON(applyMap); R applyResult= HttpUtil.sendPost(url+"/DockingPreApplyCode/applyGroupCode",applyGroupCodeData.toString(),headerMap); if(!applyResult.isSuccess()){ - VCIOptionPane.showMessage(this.owner, r.getMsg()); + VCIOptionPane.showMessage(this.owner, "闆嗗洟鐮佺敵璇峰け璐ワ紝"+r.getMsg()); + }else{ + VCIOptionPane.showMessage(this.owner, "淇濆瓨鏁版嵁鎴愬姛锛岀瓑寰呴泦鍥㈢爜鐢宠锛�"); } } }else { diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java index 212e250..e89b4cd 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java @@ -2867,7 +2867,7 @@ } else { if (CollectionUtils.isEmpty(fullInfoBO.getParentClassifyVOs())) { //璇存槑宸茬粡鏄渶楂樺眰绾�, - throw new VciBaseException("褰撳墠涓婚搴撳垎绫伙紝浠ュ強瀹冪殑鎵�鏈夌殑涓婄骇鍒嗙被閮芥病鏈夎缃紪鐮佽鍒�"); + throw new ServiceException("褰撳墠涓婚搴撳垎绫伙紝浠ュ強瀹冪殑鎵�鏈夌殑涓婄骇鍒嗙被閮芥病鏈夎缃紪鐮佽鍒�"); } List<CodeClassifyVO> parentClassifyVOList = fullInfoBO.getParentClassifyVOs().stream().sorted((o1, o2) -> o1.getDataLevel().compareTo(o2.getDataLevel())).collect(Collectors.toList()); //浠庢渶楂樼殑level寮�濮嬭幏鍙� @@ -2879,7 +2879,7 @@ } } if (StringUtils.isBlank(codeRuleOid)) { - throw new VciBaseException("褰撳墠涓婚搴撳垎绫伙紝浠ュ強瀹冪殑鎵�鏈夌殑涓婄骇鍒嗙被閮芥病鏈夎缃紪鐮佽鍒�"); + throw new ServiceException("褰撳墠涓婚搴撳垎绫伙紝浠ュ強瀹冪殑鎵�鏈夌殑涓婄骇鍒嗙被閮芥病鏈夎缃紪鐮佽鍒�"); } } return ruleService.getObjectHasSecByOid(codeRuleOid); -- Gitblit v1.9.3