diff --git a/src/components/XyTable/index.vue b/src/components/XyTable/index.vue index 2c91e6b..2410f84 100644 --- a/src/components/XyTable/index.vue +++ b/src/components/XyTable/index.vue @@ -12,6 +12,10 @@ export default { type:Array, default:()=> [] }, + rowKey: { + type: String, + default: 'id' + }, indent:{ type:Number, default:18 @@ -150,7 +154,7 @@ export default { height={height ?? tableHeight} class="v-table" style={tableStyle} - row-key="id" + row-key={this.rowKey} border default-expand-all={defaultExpandAll} tree-props={treeProps} @@ -240,7 +244,7 @@ export default { prop={item.prop} label-class-name={item.labelClassName} sortable={item.sortable ?? true} - type={item.type ?? ''} + type={item.type} selectable={item.selectable} scopedSlots={{ header(scope){ diff --git a/src/views/finance/components/addPropertyPlan.vue b/src/views/finance/components/addPropertyPlan.vue index 6a0fed8..65bb320 100644 --- a/src/views/finance/components/addPropertyPlan.vue +++ b/src/views/finance/components/addPropertyPlan.vue @@ -9,7 +9,29 @@ :rules="rules" @submit="submit" > -