From 2ee762713f93c6259bb7f1c2f357572d0923ea33 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 25 八月 2023 23:08:18 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
---
Source/UBCS-WEB/src/const/code/fixedValueMgrDialog.js | 4
Source/UBCS-WEB/src/views/code/code.vue | 65 ++++++++--------
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 2
Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue | 4
Source/UBCS-WEB/src/const/code/selectAttrOptionDialog.js | 4
Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/web/util/VciBaseUtil.java | 3
Source/UBCS-WEB/public/index.html | 4
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java | 27 ++++--
Source/UBCS-WEB/src/components/FormTemplate/index.vue | 1
Source/UBCS-WEB/src/App.vue | 3
Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue | 45 +++++-----
Source/UBCS-WEB/src/components/code-dialog-page/maxSerialnumDialog.vue | 28 ++----
Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue | 2
13 files changed, 96 insertions(+), 96 deletions(-)
diff --git a/Source/UBCS-WEB/public/index.html b/Source/UBCS-WEB/public/index.html
index a43a165..05a1476 100644
--- a/Source/UBCS-WEB/public/index.html
+++ b/Source/UBCS-WEB/public/index.html
@@ -19,8 +19,8 @@
<script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
<script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
<link rel="icon" href="<%= BASE_URL %>favicon.png">
- <script src="https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js"></script>
- <script src="https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js"></script>
+<!-- <script src="https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js"></script>-->
+<!-- <script src="https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js"></script>-->
<title>ubcs浼佷笟骞冲彴</title>
<style>
html,
diff --git a/Source/UBCS-WEB/src/App.vue b/Source/UBCS-WEB/src/App.vue
index 3bf8519..53a3d1d 100644
--- a/Source/UBCS-WEB/src/App.vue
+++ b/Source/UBCS-WEB/src/App.vue
@@ -31,4 +31,7 @@
.avue-dialog .el-dialog__body {
margin-bottom: 10px
}
+.avue-crud__pagination {
+ padding: 10px 0 2px 20px;
+}
</style>
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
index ee1422f..ee649ed 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
@@ -84,7 +84,7 @@
trendsSpan: {
type: Number,
default: 8,
- },
+ }
},
data() {
return {
@@ -130,7 +130,6 @@
methods: {
// 娓叉煋琛ㄥ崟妯℃澘
templateRender(formItemList) {
- console.log(formItemList, "formItemList");
// 鏃犻渶鍒嗙粍鏁版嵁
let column = [];
let group = [];
@@ -242,7 +241,6 @@
}
});
this.slotColumnList = slotColumnList;
- console.log(column, "column");
this.$set(this.option, "column", column);
this.$set(this.option, "group", group);
this.updateIndex++;
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index 69e0bc2..dcdfb1b 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -275,7 +275,6 @@
"coderefersec",
//灞炴�х爜娈�
"codeattrsec",
- // "codelevelsec",
//鏃ユ湡鐮佹
"codedatesec",
];
diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index 9355248..465f489 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -5,7 +5,7 @@
<div class="testbox" style="">
<div>
</div>
- <el-row style="width: 100%;margin-bottom: 20px">
+ <el-row style="width: 100%;margin-bottom: 10px">
<div>
<el-button v-for="(item, index) in masterVrBtnList"
v-if="!['PREVIEW', 'DELETEFILE', 'revisefile', 'DOWNLOADFILE', 'UPLOADFILE'].includes(item.uniqueFlag)"
diff --git a/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue b/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue
index be3715f..f2a1313 100644
--- a/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue
+++ b/Source/UBCS-WEB/src/components/advanced-query/advancedQuery.vue
@@ -14,7 +14,7 @@
lock-scroll
class="avue-dialog avue-dialog--top"
top="-3%"
- :close-on-click-modal="false"
+ destroy-on-close
@close="recoverPage">
<div class="search-total">
<!-- 澶撮儴鎸夐挳鍖哄煙 -->
diff --git a/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue b/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue
index 4f61aaa..965e500 100644
--- a/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue
+++ b/Source/UBCS-WEB/src/components/code-dialog-page/formulaEditor.vue
@@ -5,16 +5,16 @@
append-to-body
:visible.sync="isShowformulaEdit"
@close="closeFormulaEdit"
- width="78%"
- style="height: 150vh; margin-top: -13vh; overflow: hidden">
-
- <div style="overflow-y: auto; height: 80vh">
+ width="75%"
+ class="avue-dialog avue-dialog--top" top="-3%"
+ style="height: 100vh;">
+ <div>
<el-row>
<!-- 宸︿晶鍏紡鍐呭 -->
<el-col :span="14" style="overflow: hidden">
<el-card
class="box-card"
- style="height: 33vh; overflow-y: auto; overflow-x: auto">
+ style="height: 29.5vh; overflow-y: auto; overflow-x: auto;margin-right: 10px">
<div slot="header" class="clearfix">
<span style="font-size: medium">鍏紡鍐呭</span>
<el-button
@@ -35,8 +35,8 @@
<div class="text item">
<el-input
type="textarea"
- :rows="5"
- style="width: 560px"
+ :rows="6"
+ style="width: 100%"
v-model="formulaContent"
></el-input>
</div>
@@ -47,7 +47,7 @@
<el-card
class="box-card formula-box-card"
data-v-49729759
- style="height: 35vh;">
+ style="height: 29.5vh;">
<div slot="header" class="clearfix">
<span style="font-size: medium">杩愮畻绗�</span>
</div>
@@ -216,11 +216,10 @@
</el-row>
<el-row>
<!-- 宸︿晶鍏紡閫夋嫨鍖哄煙 -->
- <el-col :span="14" style="overflow: hidden">
+ <el-col :span="14" style="overflow: hidden;">
<el-card
class="box-card"
- style="height: 40vh; overflow-y: auto; overflow-x: auto"
- >
+ style="height: 35vh; overflow-y: auto; overflow-x: auto;margin-right: 10px">
<div slot="header" class="clearfix">
<span style="font-size: medium">鍏紡閫夋嫨</span>
</div>
@@ -235,7 +234,7 @@
>
<el-table-column prop="formula" width="300">
</el-table-column>
- <el-table-column prop="desc" width="300"> </el-table-column>
+ <el-table-column prop="desc"> </el-table-column>
</el-table>
</el-tab-pane>
@@ -248,7 +247,7 @@
>
<el-table-column prop="formula" width="300">
</el-table-column>
- <el-table-column prop="desc" width="300"> </el-table-column>
+ <el-table-column prop="desc"> </el-table-column>
</el-table>
</el-tab-pane>
@@ -261,7 +260,7 @@
>
<el-table-column prop="formula" width="300">
</el-table-column>
- <el-table-column prop="desc" width="300"> </el-table-column>
+ <el-table-column prop="desc"> </el-table-column>
</el-table>
</el-tab-pane>
@@ -274,7 +273,7 @@
>
<el-table-column prop="formula" width="300">
</el-table-column>
- <el-table-column prop="desc" width="300"> </el-table-column>
+ <el-table-column prop="desc"> </el-table-column>
</el-table>
</el-tab-pane>
@@ -287,7 +286,7 @@
>
<el-table-column prop="formula" width="300">
</el-table-column>
- <el-table-column prop="desc" width="300"> </el-table-column>
+ <el-table-column prop="desc" > </el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
@@ -298,7 +297,7 @@
<el-col :span="10" style="overflow: hidden">
<el-card
class="box-card"
- style="height: 40vh; overflow-y: auto; overflow-x: auto"
+ style="height: 35vh; overflow-y: auto; overflow-x: auto"
>
<div slot="header" class="clearfix">
<span style="font-size: medium">鍙橀噺</span>
@@ -312,9 +311,9 @@
:show-header="false"
style="width: 100%"
>
- <el-table-column prop="formula" width="120">
+ <el-table-column prop="formula" width="300">
</el-table-column>
- <el-table-column prop="desc" width="200"> </el-table-column>
+ <el-table-column prop="desc"> </el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="绯荤粺鍙橀噺" name="second">
@@ -324,9 +323,9 @@
:show-header="false"
style="width: 100%"
>
- <el-table-column prop="formula" width="200">
+ <el-table-column prop="formula" width="300">
</el-table-column>
- <el-table-column prop="desc" width="200"> </el-table-column>
+ <el-table-column prop="desc"> </el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
@@ -729,8 +728,8 @@
}
.formula-editor-btn-sm {
- width: 4.5vw;
- height: 4vh;
+ width: 68px;
+ height: 34px;
margin-left: 10px;
text-align: center;
line-height: 0;
diff --git a/Source/UBCS-WEB/src/components/code-dialog-page/maxSerialnumDialog.vue b/Source/UBCS-WEB/src/components/code-dialog-page/maxSerialnumDialog.vue
index 83740c1..d06d536 100644
--- a/Source/UBCS-WEB/src/components/code-dialog-page/maxSerialnumDialog.vue
+++ b/Source/UBCS-WEB/src/components/code-dialog-page/maxSerialnumDialog.vue
@@ -1,5 +1,5 @@
<template>
- <el-dialog title="鏈�澶ф祦姘村彿" width="30%" append-to-body="true" :visible.sync="dialogVisible">
+ <el-dialog title="鏈�澶ф祦姘村彿" width="30%" append-to-body="true" class="avue-dialog avue-dialog--top" top="-3%" :visible.sync="dialogVisible">
<el-form :label-position="right" ref="ruleForm" label-width="80px" :model="formModel" :rules="rules">
<el-form-item label="娴佹按鍙�" prop="maxSecNum">
<el-input v-model="formModel.maxSecNum"></el-input>
@@ -72,13 +72,13 @@
],
},
selfColumnType: {
- codefixedsec: "combox",
- codeclassifysec: "refer",
- codevariablesec: "text",
- codeattrsec: "text",
- codelevelsec: "text",
- coderefersec: "refer",
- codedatesec: "date",
+ codefixedsec: "combox",//鍥哄畾鐮佹
+ codeclassifysec: "refer",//鍒嗙被鐮佹
+ codevariablesec: "text",//鍙彉鐮佹
+ coderefersec: "refer",//寮曠敤鐮佹
+ codeattrsec: "text",
+ codelevelsec: "text",
+ codedatesec: "date"
},
selfColumnConfig: {
function: {
@@ -129,13 +129,11 @@
typeList.includes(item.secType)
);
if (this.secVOList.length > 0) {
- // this.showCodeApply = true;
-
this.$nextTick(() => {
this.$refs.CodeApply.templateRender(this.secVOList);
});
} else {
- // this.showCodeApply = false;
+ this.$refs.CodeApply.loading = false;
}
}
},
@@ -152,7 +150,7 @@
this.formModel['codeRuleOid'] = ''
this.formModel['maxSecNum'] = ''
this.$refs.ruleForm.clearValidate('maxSecNum')
-
+
},
// 纭
async comfirm() {
@@ -176,12 +174,10 @@
})
this.formModel['secDTOList'] = arrCode
this.formModel['codeRuleOid'] = this.ruleOid
- console.log(this.formModel)
this.confirmLoadding = true
const rule = await this.$refs.CodeApply.validate()
this.$refs.ruleForm.validate(res => {
if (rule && res) {
- console.log(rule)
saveMaxSerialNum(this.formModel).then(res => {
if (res.data.success) {
this.$message.success('鎿嶄綔鎴愬姛锛�');
@@ -197,7 +193,6 @@
},
// 鍙傜収缁勪欢鏁版嵁鍙樻洿
referConfigDataUpdate(data) {
- // console.log(data)
const { field } = data;
this.secVOList = this.secVOList.map((item) => {
if (item.parentClassifySecOid === field) {
@@ -226,7 +221,6 @@
}
},
getReferConfig(item) {
- // console.log(item)
let params = {};
if (item.secType == "codeclassifysec") {
params = {
@@ -305,4 +299,4 @@
},
}
}
-</script>
\ No newline at end of file
+</script>
diff --git a/Source/UBCS-WEB/src/const/code/fixedValueMgrDialog.js b/Source/UBCS-WEB/src/const/code/fixedValueMgrDialog.js
index 2eb57c3..9505f40 100644
--- a/Source/UBCS-WEB/src/const/code/fixedValueMgrDialog.js
+++ b/Source/UBCS-WEB/src/const/code/fixedValueMgrDialog.js
@@ -1,6 +1,6 @@
export default {
//width: '70%',
- height: '60vh',
+ height: '58vh',
calcHeight: 30,
tip: false,
editBtn: false,
@@ -35,4 +35,4 @@
searchSpan: 7,
},
]
-}
\ No newline at end of file
+}
diff --git a/Source/UBCS-WEB/src/const/code/selectAttrOptionDialog.js b/Source/UBCS-WEB/src/const/code/selectAttrOptionDialog.js
index da773ec..d66dc8c 100644
--- a/Source/UBCS-WEB/src/const/code/selectAttrOptionDialog.js
+++ b/Source/UBCS-WEB/src/const/code/selectAttrOptionDialog.js
@@ -1,5 +1,5 @@
export default {
- height: '41vh',
+ height: '45vh',
calcHeight: 30,
tip: false,
editBtn: false,
@@ -43,4 +43,4 @@
search: false,
}
]
-}
\ No newline at end of file
+}
diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue
index 4b9fec7..6c67d5b 100644
--- a/Source/UBCS-WEB/src/views/code/code.vue
+++ b/Source/UBCS-WEB/src/views/code/code.vue
@@ -130,11 +130,13 @@
append-to-body
:visible.sync="codeRangeSettingBox"
width="800px"
- style="height: 116vh; margin-top: -10vh;">
+ class="avue-dialog avue-dialog--top"
+ style="height: 100vh;" top="-3%">
<avue-crud
:option="dialogeOption"
:table-loading="dialogLoading"
:data="useRangeData"
+ style="margin-top:-40px"
@refresh-change="refreshUseRangeChange">
</avue-crud>
</el-dialog>
@@ -144,8 +146,9 @@
append-to-body
:visible.sync="cloneSettingBox"
width="800px"
- style="height: 120vh; margin-top: -14vh; overflow: hidden;">
- <div style="overflow-y: auto; height: 78vh">
+ class="avue-dialog avue-dialog--top"
+ style="height: 100vh;" top="-3%">
+ <div>
<el-row>
<el-form ref="form" :model="form" label-width="80px" :inline="true">
<el-form-item label="缂栧彿" required>
@@ -160,7 +163,7 @@
</el-form>
</el-row>
<el-row>
- <p style="margin: -3vh 0px 16px 50%; font-weight: 500; font-size: 16px; color: #000;">鐮佹绠$悊</p>
+ <p style="margin: 0 0px 16px 50%; font-weight: 500; font-size: 20px; color: #000;">鐮佹绠$悊</p>
<avue-crud
class="clone-avue-crud"
:option="cloneOption"
@@ -187,7 +190,7 @@
</avue-crud>
</el-row>
</div>
- <div slot="footer" class="dialog-footer" style="height: 50px; margin-top: -4vh;">
+ <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveCloneCodeRule">淇� 瀛�</el-button>
<el-button @click="cloneSettingBox = false">鍙� 娑�</el-button>
</div>
@@ -196,13 +199,14 @@
<!-- 缂栫爜瑙勫垯,浠庡叾浠栬鍒欏厠闅嗗璇濇 -->
<el-dialog title="鍏嬮殕缂栫爜瑙勫垯鐨勫熀纭�淇℃伅"
append-to-body
+ class="avue-dialog avue-dialog--top"
:visible.sync="cloneOtherCodeRuleSettingBox"
width="800px"
- style="height: 150vh; margin-top: -14vh;"
+ style="height: 100vh;" top="-3%"
destroy-on-close>
<div>
<el-row>
- <p style="margin-top: -12px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">缂栫爜瑙勫垯</p>
+ <p style="margin-top: -20px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">缂栫爜瑙勫垯</p>
<avue-crud
class="other-clone-coderule-crud"
:option="cloneCodeRuleOption"
@@ -216,8 +220,8 @@
@on-load="onLoad">
</avue-crud>
</el-row>
- <el-row>
- <p style="margin-top: -12px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">鐮佹淇℃伅</p>
+ <el-row style="margin-top:10px;border-top: 1px solid #EBEEF5;">
+ <p style="margin-top: 10px; margin-bottom: 4px; font-weight: 570; font-size: 19px; color: #0e2d5f;">鐮佹淇℃伅</p>
<avue-crud
class="other-clone-codebasic-crud"
:option="cloneBasicOption"
@@ -229,7 +233,7 @@
</avue-crud>
</el-row>
</div>
- <div slot="footer" class="dialog-footer" style="height: 50px; margin-top: -4vh;">
+ <div slot="footer" class="dialog-footer" style="height: 50px;">
<el-button type="primary" @click="saveOtherCodeBasic">淇� 瀛�</el-button>
<el-button @click="cloneOtherCodeRuleSettingBox = false">鍙� 娑�</el-button>
</div>
@@ -352,7 +356,8 @@
:visible.sync="isShowBasicSecCodeValueMgr"
:width="isShowFixedForm ? '69vw':'50vw'"
append-to-body
- style="height: 116vh; margin-top: -10vh;"
+ class="avue-dialog avue-dialog--top"
+ style="height: 100vh;" top="-3%"
@close="clearFixedOrClassifyForm('close')"
destroy-on-close>
<!-- 鍒嗙被鐮佹鐮佸�肩鐞� -->
@@ -366,7 +371,7 @@
:data="classifyValueTreeData"
:option="classisyValueTreeOption"
@node-click="classisyValueTreeOnodeClick"
- style="overflow-y: auto; height: 54vh"/>
+ style=""/>
</div>
</basic-container>
</div>
@@ -401,7 +406,7 @@
<el-row v-show="isShowFixedForm">
<el-col :span="15">
<basic-container>
- <div class="box fixedbox" style="height:65vh; margin-bottom:-40px">
+ <div class="box fixedbox" style="height:63vh; margin-bottom:-40px">
<avue-crud
class="fixed-avue-crud"
ref="crudFixedValue"
@@ -417,15 +422,15 @@
</template>
</avue-crud>
</div>
- <div style="margin-top:20px;">
+ <div style="margin-top:10px;">
<el-button size="mini" type="primary" icon="el-icon-success" class="button" @click="saveCodeFixedOrClassifyValueOption('fixedValue')">淇濆瓨</el-button>
</div>
</basic-container>
</el-col>
<el-col :span="9">
<basic-container>
- <div class="box" style="height: 65vh; margin-bottom:-40px; overflow:hidden;" >
- <div style="overflow-y:auto;height: 60vh;">
+ <div class="box" style="height: 63vh; margin-bottom:-40px; overflow:hidden;" >
+ <div style="overflow-y:auto;height: 58vh;">
<el-form>
<el-form-item label="鐮佸��:" label-width="54px" required>
<el-input style="width: 19.5vw" v-model="codeFixdForm.id"></el-input>
@@ -436,7 +441,7 @@
</el-form>
</div>
</div>
- <div style="margin-top:20px; display: flex; align-items:center; justify-content:center;">
+ <div style="margin-top:10px; display: flex; align-items:center; justify-content:center;">
<el-button :disabled="selectedFixedOrCodeclassifyValue!=''" size="mini" type="primary" icon="el-icon-circle-plus" class="button" @click="addCodeSecValue('codefixedsec')">娣诲姞</el-button>
<el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="success" plain icon="el-icon-edit-outline" class="button" @click="editCodeSecValue('codefixedsec')">淇敼</el-button>
<el-button :disabled="selectedFixedOrCodeclassifyValue==''" size="mini" type="danger" icon="el-icon-close" class="button" @click="delCodeSecValue('codefixedsec')">鍒犻櫎</el-button>
@@ -452,14 +457,15 @@
:visible.sync="addBasicCodeSettingBox"
width="60vw"
append-to-body
- style="height: 115vh; margin-top: -13vh; overflow: hidden"
+ class="avue-dialog avue-dialog--top"
+ style="height: 100vh;" top="-3%"
destroy-on-close
lock-scroll
:close-on-click-modal="false"
@close="clearBasicAddForm">
<!-- 绗竴灞傚璇濇,娣诲姞鐮佹淇℃伅瀵硅瘽妗嗕腑鐨勫唴瀹� -->
- <div class="add-basicsec-total" style="overflow-y: auto; height: 70vh">
+ <div class="add-basicsec-total" style="overflow-y: auto; height: 58vh">
<el-form :model="form" class="add-basicsec-form">
<span class="left">
<el-form-item label="鐮佹缂栧彿:" :label-width="leftFormLabelWidth" required>
@@ -731,7 +737,8 @@
append-to-body
:visible.sync="isShowSelectAttrOption"
width="78%"
- style="height: 100%; margin-top: -8vh; overflow: hidden">
+ class="avue-dialog avue-dialog--top" top="-3%"
+ style="height: 100%;">
<div style="overflow-y: auto; height: 60vh">
<el-row>
<!-- 宸︿晶涓婚搴撳垎绫绘爲 -->
@@ -898,13 +905,15 @@
/*浣跨敤鑼冨洿瀵硅瘽妗嗛厤缃�*/
dialogeOption: {
height: 'auto',
- calcHeight: 30,
+ calcHeight: 150,
tip: false,
searchShow: false,
searchMenuSpan: 6,
border: true,
index: true,
disablePage:false,
+ refreshBtn:false,
+ columnBtn:false,
viewBtn: false,
addBtn: false,
menu: false,
@@ -1903,7 +1912,7 @@
return;
}
if(this.selectionList[0].lcStatus != 'Editing'){
- this.$message.warning("缂栫爜瑙勫垯宸茶寮曠敤锛屼笉鍏佽缂栬緫鎴栧垹闄�!");
+ this.$message.warning("缂栫爜瑙勫垯宸茶寮曠敤锛屼笉鍏佽缂栬緫!");
return;
}
this.cloneOtherCodeRuleSettingBox = true;
@@ -1954,7 +1963,6 @@
this.$message.warning("闇�瑕佸厠闅嗙殑缂栫爜瑙勫垯涓庤鍏嬮殕鐨勭紪鐮佽鍒欑浉鍚�!");
return;
}
- //console.log(res);
let oidArr = [];
fromDialogPkCodebasic.forEach(ele => {
oidArr.push(ele.oid);
@@ -2421,7 +2429,7 @@
/** 鍒ゆ柇鏁版嵁鏄惁閫夋嫨浠ュ強鍙兘閫夋嫨鍗曟潯鏁版嵁*/
tipsMessage(list){
if(list.length != 1){
- this.$message.warning("璇烽�夋嫨涓�鏉$紪鐮佽鍒欐暟鎹�!");
+ this.$message.warning("璇烽�夋嫨涓�鏉℃暟鎹�!");
return false;
}
return true;
@@ -2485,7 +2493,6 @@
const data = res.data.data;
if(this.cloneSettingBox){
this.cloneData = data.records;
- // console.log(tihs.cloneData);
this.cloneTableLoading = false;
}else {
this.basicData = data.records;
@@ -2498,7 +2505,6 @@
selectionBasicChange(list) {
this.selectionBasicList = list;
this.$refs.crudBasic.setCurrentRow(this.selectionBasicList[list.length-1]);
- //console.log(this.selectionBasicList);
},
/** 鍩虹鐮佹琚崟鍑昏〃鏍艰鏃惰Е鍙�*/
codeBasicSecRowClick(row){
@@ -2508,7 +2514,6 @@
this.$refs.crudBasic.toggleRowSelection(row); //閫変腑褰撳墠琛�
},
basicSearchChange(params, done){
- //console.log(this.$refs.crudBasic);
this.sendGridCodeBasicSec(Object.assign(params,{"pkCodeRule":this.selectionList[this.selectionList.length-1].oid}),false);
done();
},
@@ -2542,7 +2547,6 @@
return;
}
let codeRuleOid = this.selectionList[0].oid;
- //console.log(this.selectionList);
if (this.selectionList[0].lcStatus != 'Editing') {
this.$message.warning("鍙湁缂栫爜瑙勫垯鐨勭姸鎬佹槸 [缂栬緫涓璢 鐨勬椂鍊欙紝鎵嶈兘璋冩暣鐮佹椤哄簭!");
return;
@@ -2832,10 +2836,6 @@
margin-bottom: -15px;
}
- .code-rule-crud > .avue-crud__pagination {
- padding: 14px 0 2px 20px;
- }
-
.clone-input-textarea > .el-form-item__content {
width: 495px;
}
@@ -2907,7 +2907,6 @@
/** 鏂板鐮佹 */
.add-basicsec-total {
width: 100%;
- padding: 20px 0 0 0;
}
.add-basicsec-total .el-input__inner,.add-basicsec-total .el-textarea__inner {
diff --git a/Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/web/util/VciBaseUtil.java b/Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/web/util/VciBaseUtil.java
index 288ae1f..4ccbc9b 100644
--- a/Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/web/util/VciBaseUtil.java
+++ b/Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/web/util/VciBaseUtil.java
@@ -1344,7 +1344,8 @@
// Map resulMapChild = (Map) mapData;
for (Object o : mapData.keySet()) {
if(existFild == null || existFild.contains(String.valueOf(o).toLowerCase())){
- if(Func.isNotBlank(String.valueOf(returnMap.get(String.valueOf(o).toLowerCase())))
+ if((Func.isNotBlank(String.valueOf(returnMap.get(String.valueOf(o).toLowerCase())))
+ && returnMap.get(String.valueOf(o).toLowerCase()) !=null)
&& Func.isBlank(String.valueOf(mapData.get(o)))){
continue;
}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java
index eaf4e1f..30ddb67 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java
@@ -59,7 +59,8 @@
import javax.annotation.Resource;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
-import java.util.concurrent.atomic.AtomicInteger;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import static com.vci.ubcs.code.constant.MdmEngineConstant.DEFAULT_SYNC_ATTR_LIST;
@@ -204,7 +205,7 @@
//鑾峰彇鍒嗙被淇℃伅
try {
libray = classVO.getLibrary();
- CodeClassifyVO codeClassifyVO = getClassfy(classVO);
+ CodeClassifyVO codeClassifyVO = getClassfy(classVO,libray);
log.info("end锛氬垎绫绘煡璇㈠畬姣�");
//鑾峰彇鍒嗙被妯℃澘淇℃伅
if(codeClassifyVO==null || StringUtils.isBlank(codeClassifyVO.getOid())){
@@ -217,7 +218,7 @@
DockingSystemConfig dockingSystemConfig= checkIspass(finalSystemId, SysIntegrationDataFlowTypeEnum.ACCEPT.getValue(), sysIntegrationPushTypeEnum.ACCPET_APPCODE.getValue(),codeClassifyVO.getOid());
if(dockingSystemConfig==null){
errorid[0] ="101";
- throw new Throwable("绯荤粺鏍囪瘑涓恒��"+ finalSystemId +"銆戯紝闆嗘垚鍒嗙被涓恒��+codeClassifyVO.getName()銆戜互涓婂垎绫伙紝"+sysIntegrationPushTypeEnum.ACCPET_APPCODE.getText()+"鎺ュ彛閰嶇疆宸插仠鐢ㄦ垨鑰呮湭閰嶇疆锛岃鑱旂郴缂栫爜绠$悊鍛橈紒");
+ throw new Throwable("绯荤粺鏍囪瘑涓恒��"+ finalSystemId +"銆戯紝闆嗘垚鍒嗙被涓恒��"+codeClassifyVO.getName()+"銆戜互涓婂垎绫伙紝"+sysIntegrationPushTypeEnum.ACCPET_APPCODE.getText()+"鎺ュ彛閰嶇疆宸插仠鐢ㄦ垨鑰呮湭閰嶇疆锛岃鑱旂郴缂栫爜绠$悊鍛橈紒");
}
isCodeOrGroupCode="true".equals(dockingSystemConfig.getIsGroupCodeFlag())?true:false;
}
@@ -421,7 +422,7 @@
//鑾峰彇鍒嗙被淇℃伅
try {
String libray = classVO.getLibrary();
- CodeClassifyVO codeClassifyVO = getClassfy(classVO);
+ CodeClassifyVO codeClassifyVO = getClassfy(classVO,libray);
if(codeClassifyVO==null || StringUtils.isBlank(codeClassifyVO.getOid())){
objerrorCode="100";
throw new Throwable ("鏍规嵁浼犺緭鐨勫垎绫伙紝鏈幏鍙栧埌鍒嗙被淇℃伅");
@@ -1327,7 +1328,7 @@
* 鏌ヨ鏍¢獙鍒嗙被淇℃伅
* @param classfyVO
*/
- private CodeClassifyVO getClassfy(ClassfyVO classfyVO) throws Throwable{
+ private CodeClassifyVO getClassfy(ClassfyVO classfyVO,String libray) throws Throwable{
CodeClassifyVO classifyVO = new CodeClassifyVO();
try {
String classCode = classfyVO.getClassCode();
@@ -1336,13 +1337,19 @@
if (StringUtils.isNotBlank(classfyVO.getClassCode())) {
Map<String, String> conditionMap = new HashMap<>();
List<CodeClassify> codeClassifyList = classifyService.selectByWrapper(Wrappers.<CodeClassify>query().lambda().eq(CodeClassify::getId, classCode));
+ final CodeClassify[] newCodeClassify = {new CodeClassify()};
if (!CollectionUtils.isEmpty(codeClassifyList)) {
- CodeClassify classifyDO = codeClassifyList.get(0);
- //灏咲TO杞崲涓篋O
+ codeClassifyList.stream().forEach(codeClassify -> {
+ CodeClassifyVO codeClassifyVO= classifyService.getTopClassifyVO(codeClassify.getOid());
+ if(codeClassifyVO.getId().equals(libray)){
+ newCodeClassify[0] =codeClassify;
+ }
+ });
classifyVO = new CodeClassifyVO();
- BeanUtilForVCI.copyPropertiesIgnoreCase(classifyDO, classifyVO);
+ BeanUtilForVCI.copyPropertiesIgnoreCase(newCodeClassify[0], classifyVO);
+ //灏咲TO杞崲涓篋O
if(StringUtils.isBlank(classifyVO.getOid())){
- throw new Throwable("鏍规嵁鍒嗙被浠e彿鏈煡璇㈠埌鐩稿簲鐨勫垎绫讳俊鎭�");
+ throw new Throwable("鐢宠缂栫爜鐨勫垎绫伙細銆�"+classCode+"銆戜笉灞炰簬搴撹妭鐐广��"+libray+"銆戯紝璇锋鏌ュ弬鏁板垎绫昏妭鐐�/搴撹妭鐐逛俊鎭槸鍚﹀尮閰�");
}
}else{
throw new Throwable("鏍规嵁鍒嗙被浠e彿鏈煡璇㈠埌鐩稿簲鐨勫垎绫讳俊鎭�");
@@ -1355,7 +1362,7 @@
}
}catch (Throwable e){
objerrorCode="100";
- new Throwable("鑾峰彇鍒嗙被淇℃伅澶辫触:"+e.getMessage());
+ throw new Throwable("鑾峰彇鍒嗙被淇℃伅澶辫触:"+e.getMessage());
}
return classifyVO;
}
--
Gitblit v1.9.3