index.js 717 Bytes
'use strict';
var $ = require('jquery'),
	common = require('../common/common');

var g = new common.grid({
	el: "#basicTable",
	parms: function() {
		return {
			state: $('input[name="state"]').val()
		}
	},
	columns: [{
		display: '',
		name: 'foler',
		render: function() {
			return '';
		}
	}, {
		display: 'ID',
		name: 'categoryId'
	}, {
		display: '品类名称',
		name: 'categoryName'
	}, {
		display: '所属分类',
		name: '',
		render: function() {
			return '一级分类';
		}
	}, {
		display: '分类图标',
		name: ''
	}, {
		display: '排序',
		name: 'orderBy'
	}, {
		display: '状态',
		name: 'status'
	}, {
		display: '操作',
		render: function() {

		}
	}]
});

g.init($("#gridurl").val());