hino / app / controllers / account-management / account-contact.js
account-contact.js
Raw
import Controller from '@ember/controller';

export default Controller.extend({
	queryParams: ['page', 'perPage', 'sort', 'filter'],
	page: 1,
	perPage: 15,
	filter: null,
	parentId: "",
	init() {
		this._super(...arguments);
		this.table = {
			mode: "list",
			model: "account-contact",
			columns: [
			{
				name: 'Party ID',
				key: 'partyId',
				uri: "account-contact.detail",
				editUri: "account-contact.edit"
			},
			{
				name: 'Party Number',
				key: 'partyNumber',
			},
			{
				name: 'Account Party ID',
				key: 'accountPartyId',
			},
			{
				name: 'Contact Resource',
				key: 'contactResource.nama',
			},
			{
				name: 'Account Party Number',
				key: 'accountPartyNumber',
			},
			] 
		};
	},
});