Beginning of a project (b)

Author: Old Cen

When it comes to the last data bindings, data binding is successful, but no data, how to do it?
I do not know that you get is so, my own data is to play up.
Here Insert Picture Description
This is just my approach will be, this is just a table of data, and if you want the data displayed is the need to associate all tables must have data to show up.
The last time I even this few tables
from tbBorrowMoney in myModels.B__BorrowMoney
the Join tbKindType in myModels.B__KindType ON tbBorrowMoney.KindTypeID the equals tbKindType.KindTypeID
the Join tbClinet in myModels.S_Client ON tbBorrowMoney.ClientID the equals tbClinet.ClientID
the Join tbUser in myModels.S_User ON the equals tbUser.UserID tbBorrowMoney.ClientID
the Join tbRepayment in myModels.B ___ Repayment ON tbBorrowMoney.RepaymentID the equals tbRepayment.RepaymentID
the Join tbPaymentMethod in myModels.B ___ PaymentMethod ON tbBorrowMoney.RepaymentID the equals tbPaymentMethod.PaymentMethodID
so the corresponding database that I must have a few tables of data data can be displayed.
Here Insert Picture Description
This is almost on the page will be able to display the data came out, it is still missing a medium to display it.
borrowmoney var;
var layerIndex = 0;
var Layer, layuiTabe;
blInsert = to true;
$ (function () {
layui.use ([ 'Layer', 'Table'], function () {
Layer = layui.layer, layuiTabe = layui .table;
tabBorrowMoney = layuiTabe.render ({
elem: "#borrowmoney",
URL: "/ QJtabulation / BorrowMoney / SlestBorrowMoney",
cols: [[
{title: 'No. borrowing', field: 'borrowing', align: 'center '},
{title:' username ', Field:' userName ', align = left:' Center '},
{title:' borrowing title ', Field:' BorrowingTitle ', align = left:' Center '},
{title:' borrowing amount ', Field:' BorrowingBalance ', align = left:' Center '},
{title:' rate ', field:' RateInterest ', align:' center '},
{Title: 'loan period', Field: 'LifeLoan', align = left: 'Center'},
{title: 'loan type', Field: 'KindName', align = left: 'Center'},
{title: 'repayment' , Field: 'PaymentMethodName', align = left: 'Center'},
{title: 'submitted', Field: 'SubmissionTime', align = left: 'Center'},
{title: 'status', field: 'AuditStatus', align: 'Center'},
{title: 'View', Templet: setOperate, width: 160., align = left: 'Center'}
]],
})
})
})
If only this data is not right, because this parameter is not setOperate definition will error,
Here Insert Picture Description
uncaught ReferenceError: setOperate iS not defined: uncaught reference error: setoperation not defined
remaining suspense for the next release.
to be continued. . .

Guess you like

Origin blog.csdn.net/weixin_44541224/article/details/91357004