From cc993ff4b559a937f6ceaf01c7e77e1d6b50baa1 Mon Sep 17 00:00:00 2001 From: Ldc <ldc@vci.com> Date: 星期二, 16 四月 2024 10:53:34 +0800 Subject: [PATCH] 1、修改form表单上传方式 --- Source/ProjectWeb/src/views/base/UIContentArea.vue | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/Source/ProjectWeb/src/views/base/UIContentArea.vue b/Source/ProjectWeb/src/views/base/UIContentArea.vue index 10e9627..82f2975 100644 --- a/Source/ProjectWeb/src/views/base/UIContentArea.vue +++ b/Source/ProjectWeb/src/views/base/UIContentArea.vue @@ -22,9 +22,12 @@ </el-collapse> <div v-else class="componentVO"> <compoent-index :key="areasName+'componentVO-'+areaItem.componentVOs[0].oid" + :uiBtmType="uiBtmType" + :uiContext="uiContext" :inDialog="inDialog" :componentVO="areaItem.componentVOs[0]" :sourceData="newSourceData" + :sourceBtmType="sourceBtmType" :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" @@ -41,9 +44,12 @@ </template> <div class="componentVO"> <compoent-index :key="areasName+'componentVO-'+componentVO.oid" + :uiBtmType="uiBtmType" + :uiContext="uiContext" :inDialog="inDialog" :componentVO="componentVO" :sourceData="newSourceData" + :sourceBtmType="sourceBtmType" :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" @@ -54,9 +60,12 @@ </el-collapse> <div v-else class="componentVO"> <compoent-index :key="areasName+'componentVO-'+newAreasData[0].componentVOs[0].oid" + :uiBtmType="uiBtmType" + :uiContext="uiContext" :inDialog="inDialog" :componentVO="newAreasData[0].componentVOs[0]" :sourceData="newSourceData" + :sourceBtmType="sourceBtmType" :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" @@ -104,6 +113,14 @@ name: "UIContentArea", components:{compoentIndex}, props:{ + //ui涓婁笅鏂囩殑涓氬姟绫诲瀷锛堟垨閾炬帴绫诲瀷锛� + uiBtmType: { + type: String + }, + //ui涓婁笅鏂� + uiContext:{ + type: String + }, inDialog: { type: Boolean, default: false @@ -120,6 +137,10 @@ //鑿滃崟婧愭暟鎹垨鑰呭脊绐楁椂鎸夐挳鎵�灞炲尯鍩熺殑涓婁竴鍖哄煙閫変腑鏁版嵁 type:Object, default: {} + }, + //涓婁竴鍖哄煙涓氬姟绫诲瀷 + sourceBtmType:{ + type: String }, dataStore:{ //寮圭獥鏃舵寜閽墍灞炲尯鍩熼�変腑鏁版嵁 @@ -179,6 +200,8 @@ let newDisplayExpressionStr=displayExpressionStr.replace(/"\s*and\s*"/g,'" && "').replace(/"\s*AND\s*"/g,'" && "').replace(/"\s*or\s*"/g,'" || "').replace(/"\s*OR\s*"/g,'" || "'); newDisplayExpressionStr=newDisplayExpressionStr.replace(/"\s*<>\s*"/g,'" != "').replace(/"\s*=\s*"/g,'" == "'); newDisplayExpressionStr=newDisplayExpressionStr.replace(/"\$\{/g,'this.newSourceData.').replace(/\}"/g,'') + + const sandbox = {}; if(eval('('+newDisplayExpressionStr+')')){ checkdisplay=true; } -- Gitblit v1.9.3