在订单表js中,修改userID字段
原字段:
{field: 'userId', title: __('Userid')},
修改为:
- {
- field: 'userId',
- width: "120px",
- title: __('Userid'),
- table: table,
- events: Table.api.events.operate,
- buttons: [
- {
- name: 'Userid',
- text:function (row) {
- return row.userId
- },
- title:'用户资料',
- classname: 'btn btn-xs btn-dialog',
- extend:'data-area=\'["80%", "80%"]\'',
- url: 'xcx/user?id={userId}',
- },
- ],
- formatter: Table.api.formatter.buttons
- },