瀏覽代碼

feat: 流程优化

liuc 5 月之前
父節點
當前提交
8b948dbc2a

+ 4 - 3
src/views/flow/stFormDesign/packages/StBatch/batch.vue

@@ -131,7 +131,7 @@
         </a-card>
         <a-button type="dashed" style="width: 100%"
                   v-show="this.dynamicValidateForm.domains&&this.dynamicValidateForm.domains.length>1"
-                  @click="openChild=true">查看更多 (共有{{ this.dynamicValidateForm.domains.length}}条数据)
+                  @click="openChild=true">查看更多 (共有{{ this.dynamicValidateForm.domains.length }}条数据)
         </a-button>
       </div>
 
@@ -162,7 +162,7 @@
             style="color: #1890ff"
         >
           <template #icon>
-            <LeftOutlined /> <!-- 返回图标 -->
+            <LeftOutlined/> <!-- 返回图标 -->
           </template>
           返回
         </a-button>
@@ -342,7 +342,7 @@ export default {
                 return {
                   title: item.label,
                   dataIndex: item.model,
-                  width: index === this.record.list.length - 1 ? '' : '300px',
+                  width: index === this.record.list.length - 1 ? '' : (item.options.childWidth ? item.options.childWidth : '300px'),
                 };
               })
       );
@@ -592,6 +592,7 @@ export default {
   overflow-y: auto; /* 允许内容滚动 */
   padding: 1px;
 }
+
 /* 悬浮在顶部的按钮容器 */
 .floating-top-button {
   position: sticky;

+ 6 - 1
src/views/flow/stFormDesign/packages/StFormDesign/module/formItemProperties.vue

@@ -80,9 +80,14 @@
               placeholder='最大高度'
           />
         </a-form-item>
-        <a-form-item v-if="typeof options.width !== 'undefined'" label='宽度'>
+        <a-form-item v-if="typeof options.width !== 'undefined'&&!isInBatchTable" label='宽度'>
           <a-input placeholder='请输入' v-model:value='options.width'/>
         </a-form-item>
+
+        <a-form-item v-if="isInBatchTable" label='宽度(示例:300px)'>
+          <a-input placeholder='请输入' v-model:value='options.childWidth'/>
+        </a-form-item>
+
         <a-form-item v-if="typeof options.height !== 'undefined'" label='高度'>
           <a-input-number v-model:value='options.height'/>
         </a-form-item>