Ext.define('saas.view.sys.guide.FormPanel', {
extend: 'Ext.panel.Panel',
xtype: 'sys-guide-formpanel',
layout:'fit',
bodyCls:'x-guide-background',
//工具类
FormUtil: Ext.create('saas.util.FormUtil'),
BaseUtil: Ext.create('saas.util.BaseUtil'),
dataUrl:'/api/commons/init/check',
initComponent: function () {
var me = this;
showInformation = function(type,value) {
me.showInformation(type,value)
}
var view = new Ext.DataView({
style:"margin:7% 0 7% 0;",
store : Ext.create('Ext.data.Store', {
fields: [{
name:'baseSet',type:'boolean'
},{
name:'warehouse',type:'boolean'
},{
name:'product',type:'boolean'
},{
name:'customer',type:'boolean'
},{
name:'vendor',type:'boolean'
},{
name:'begin',type:'boolean'
}],
autoLoad: false,
pageSize: 10,
data: [{
baseSet:false,
warehouse:false,
product:false,
customer:false,
vendor:false,
begin:false,
}],
proxy: {
timeout:8000,
type: 'ajax',
url: me.dataUrl,
actionMethods: {
read: 'GET'
},
reader: {
type: 'json',
rootProperty: 'data',
totalProperty: 'data',
}
},
}),
tpl : new Ext.XTemplate(
'x-guide-mask ',
'" src="resources/images/guide/baseSet.png" align ="center" width="135" height="90" alt="基础设置" >',
'
x-guide-mask ',
'"src="resources/images/guide/warehouse.png" align ="center" width="135" height="90" alt="仓库资料" >',
'
x-guide-mask ',
'"src="resources/images/guide/product.png" align ="center" width="135" height="90" alt="物料资料" >',
'
x-guide-mask ',
'"src="resources/images/guide/1.png" style="cursor: pointer;position: absolute;margin: -16px 290px 0 -339px;z-index: 100;" align ="center" width="32" height="32" onClick="showInformation(\'baseSet\')" >',
'
x-guide-mask ',
'"src="resources/images/guide/2.png" style="cursor: pointer;position: absolute;margin: -16px 0 0 -16px;z-index: 100;" align ="center" width="32" height="32" onClick="showInformation(\'warehouse\')" >',
'
x-guide-mask ',
'"src="resources/images/guide/3.png" style="cursor: pointer;position: absolute;margin: -16px 0 0 305px;z-index: 100;" align ="center" width="32" height="32" onClick="showInformation(\'product\')" >',
'
x-guide-mask ',
'"src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
'
x-guide-mask ',
'"src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
'
x-guide-mask ',
'"src="resources/images/guide/point.png" style="margin: 2px 0px 0 0;" align ="center" width="16" height="16" >',
"
",
'',
'x-guide-mask ',
'"src="resources/images/guide/customer.png" align ="center" width="135" height="90" alt="客户资料" >',
'
x-guide-mask ',
'"src="resources/images/guide/vendor.png" align ="center" width="135" height="90" alt="供应商资料" >',
'
x-guide-mask ',
'" src="resources/images/guide/begin.png" align ="center" width="135" height="90" alt="开始使用" >',
'
x-guide-mask ',
'" src="resources/images/guide/4.png" style="cursor: pointer;position: absolute;margin: -16px 290px 0 -339px;z-index: 100;" align ="center" width="32" height="32" onClick="showInformation(\'customer\')" >',
'
x-guide-mask ',
'" src="resources/images/guide/5.png" style="cursor: pointer;position: absolute;margin: -16px 0 0 -16px;z-index: 100;" align ="center" width="32" height="32" onClick="showInformation(\'vendor\')">',
'
x-guide-mask ',
'" src="resources/images/guide/6.png" style="cursor: pointer;position: absolute;margin: -16px 0 0 305px;z-index: 100;" align ="center" width="32" height="32" onClick="showInformation(\'begin\',\'{begin}\')" >',
'
x-guide-mask ',
'" src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
'
x-guide-mask ',
'" src="resources/images/guide/point.png" style="margin: 2px 306px 0 0;" align ="center" width="16" height="16" >',
'
x-guide-mask ',
'" src="resources/images/guide/point.png" style="margin: 2px 0px 0 0;" align ="center" width="16" height="16" >',
"
",
'',
'