فهرست منبع

块模式子表删除index顺序不对问题

shenqilong 1 سال پیش
والد
کامیت
e763cc6072
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/business/platform/form/formrender/dynamic-form/dynamic-form-table.vue

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

@@ -140,7 +140,7 @@
                                     <el-button-group>
                                         <template v-for="(button, b) in toolbarButtons">
                                             <template v-if="!(button.key === 'remove' && dataModel.length === 1)">
-                                                <el-button :key="b" :type="button.type" :icon="button.icon" @click="handleActionEvent(button, b)">
+                                                <el-button :key="b" :type="button.type" :icon="button.icon" @click="handleActionEvent(button, index)">
                                                     {{ button.label }}
                                                 </el-button>
                                             </template>