Tea.context(function () {
	// 定义表格列
	this.columns = [
		{
			title: '工单标题',
			dataIndex: 'subject',
			key: 'subject',
			scopedSlots: { customRender: 'subjectSlot' },
			width: '400px'
		},
		{
			title: '最后操作时间',
			dataIndex: 'lastLogTime',
			key: 'lastLogTime',
			scopedSlots: { customRender: 'lastLogTimeSlot' },
			width: '200px'
		},
		{
			title: '最后操作人',
			dataIndex: 'latestLog',
			key: 'lastOperator',
			scopedSlots: { customRender: 'lastOperatorSlot' },
			width: '150px'
		},
		{
			title: '分类',
			dataIndex: 'category',
			key: 'category',
			scopedSlots: { customRender: 'categorySlot' },
			width: '150px'
		},
		{
			title: '状态',
			dataIndex: 'status',
			key: 'status',
			scopedSlots: { customRender: 'statusSlot' },
			width: '100px',
			align: 'center'
		},
		{
			title: '操作',
			key: 'action',
			scopedSlots: { customRender: 'actionSlot' },
			width: '100px',
			align: 'center',
			fixed: 'right'
		}
	];

	this.createTicket = function () {
		teaweb.popup("/tickets/createPopup", {
			height: "26em",
			title: '提交工单',
			callback: function () {
				teaweb.successRefresh("保存成功")
			}
		})
	}
})