Explorar el Código

主子表传参优化

wu hace 2 meses
padre
commit
35c1313f40

+ 2 - 2
src/components/Generator/components/InputTable/index.vue

@@ -4,7 +4,7 @@
       <h2>{{ config.__config__.label }}</h2>
       <div class="table-actions flex" v-if="!disabled">
         <el-button @click="relationBoxclick()" type="text" v-if="config.relationConfFlag && config.relationConf.itemRelationTable"> {{ config.relationActionText }} </el-button>
-        <el-button @click="addRow($event, true)" type="text" icon="el-icon-plus"> {{ config.actionText }}</el-button>
+        <el-button @click="addRow($event, true,false,tableFormData.length)" type="text" icon="el-icon-plus"> {{ config.actionText }}</el-button>
         <div @click="addRow($event, true)" v-if="config.isScan" class="JNPFInput-scan">
           <el-tooltip class="item" effect="dark" content="需点击子表单元格,才能获取扫码后的数据" placement="top-start">
             <svg data-v-217a6391="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(24,144,255,1)">
@@ -724,7 +724,7 @@ export default {
           tag: t.__config__.tag,
           formId: t.__config__.formId,
           value: relationFlag ? (flag ? '' : '') : this.fillFormData(val, t),
-          options: (t.__slot__ && t.__slot__.options && t.__slot__.options) || [], // 下拉 单选 多选
+          options: (t.__slot__ && t.__slot__.options) || [], // 下拉 单选 多选
           valid: true,
           __vModel__: t.__vModel__,
           required: t.__config__.required,

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 2 - 2
src/utils/request.js