ソースを参照

子表单数据插入由队头改为队尾,修改操作列宽度

cfort 2 年 前
コミット
4d3643c635

+ 2 - 1
src/business/platform/form/formrender/dynamic-form/dynamic-form-table.vue

@@ -559,7 +559,8 @@ export default {
         },
         // 新增数据
         addData(data) {
-            this.dataModel.unshift(data)
+            // this.dataModel.unshift(data)
+            this.dataModel.push(data)
             // 初始化运行公式计算 unshift
             this.initRunCalFormula(this.dataModel.length - 1)
             // 后置事件

+ 1 - 1
src/components/ibps-crud/index.vue

@@ -328,7 +328,7 @@
               v-if="rowHandle"
               v-bind="rowHandle"
               :label=" handleAttribute(rowHandle.columnHeader,'操作') "
-              :width="handleAttribute(rowHandle.width, rowHandleDefaultWidth) <80 ?  '80' : this.rowHandle.actions.length !=0 && this.rowHandle.actions.length<3  ? 110 * this.rowHandle.actions.length : handleAttribute(rowHandle.width, rowHandleDefaultWidth)"
+              :width="handleAttribute(rowHandle.width, rowHandleDefaultWidth) <80 ?  '80' : this.rowHandle.actions.length !=0 && this.rowHandle.actions.length<=3  ? 80 + 50 * (this.rowHandle.actions.length - 1) : 80"
               :fixed="handleAttribute(rowHandle.fixed, 'right')"
               :align="handleAttribute(rowHandle.align, 'center')"
             >

+ 1 - 1
src/components/ibps-toolbar/index.vue

@@ -34,7 +34,7 @@
         >
           {{ button.label }}
         </el-link>
-        <el-divider v-if="index < actions.length-1" :key="index" direction="vertical" />
+        <el-divider v-if="index !== actions.length - 1" :key="index" direction="vertical" />
       </template>
       <template v-else-if="type==='linkHide'">
         <p>