Skip to content

最新代码table绑定dataType不加载子属性数据 #29

@zhoushijin

Description

@zhoushijin
model.dataType({
            name: "SubProduct",
            properties: {
                id: {
                    dataType: "number"
                },
                parentId: {
                    dataType: "number"
                },
                name:{
                }

            }
        });
        model.dataType({
            name: "Product",
            properties: {
                productName: {
                },
                id: {
                    dataType: "number"
                },
                categoryId: {
                    dataType: "number"
                },
                quantityPerUnit: {
                    dataType: "number"
                },
                unitPrice: {
                    dataType: "number"
                },
                unitsInStock: {
                    dataType: "number"
                },
                unitsOnOrder: {
                    dataType: "number"
                },
                subProduct:{
                    dataType: "SubProduct",
                    provider:{
						url:"./service/product/subproduct/{{@id}}",
						method:"POST"
					}
                }
            }
        });
        model.describe("products",{
            dataType:"Product",
            provider:{
				url:"./service/product/product/",
				method:"POST"
			}
        })

最新的代码中,table绑定datatype是不能加载子属性,如代码中加载不到products.subProduct的数据

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions