Commit 9e1e6ea0 by 宋毅

tj

parent 35619590
<gsb-pagecard>
<div slot="content">
<gsb-grid2
bizCode="users"
spaceHeight="100"
modelName="user"
listMethod="findAndCountAll"
deleteMethod="delete"
initMethod="initNewInstance"
isDataAuto="true"
:headStyle="headStyle"
:colFormatter="onColFormater"
:isSingleSelect="isSingleSelect"
@rowclick="onRowClick">
</gsb-grid2>
</div>
</gsb-pagecard>
{
template:'${tmpl}',
data:function(){
return {
multipleSelection: [],
isSingleSelect:false,
}
},
mounted:function(){
},
created:function(){
},
methods:{
onColFormater(row,column,cellvalue,index){
return cellvalue;
},
handleSelectionChange:function(val){
this.multipleSelection = val;
console.log(val);
},
onRowClick(row,key,e){
if(key=="stopUser"){
}
},
},
computed: Vuex.mapState({
count:state=>state.count,
headStyle:function(){
return {"background-color":"white"};
}
}),
vname:"gsb_Test"
}
<gsb-pagecard>
<div slot="header">
<h3>用户管理</h3>
</div>
<div slot="content">
<gsb-grid2
bizCode="users"
spaceHeight="100"
modelName="user"
listMethod="findAndCountAll"
deleteMethod="delete"
initMethod="initNewInstance"
isDataAuto="true"
:headStyle="headStyle"
:colFormatter="onColFormater"
:isSingleSelect="isSingleSelect"
@rowclick="onRowClick">
</gsb-grid2>
</div>
</gsb-pagecard>
{
template:'${tmpl}',
data:function(){
return {
multipleSelection: [],
isSingleSelect:false,
}
},
mounted:function(){
},
created:function(){
},
methods:{
onColFormater(row,column,cellvalue,index){
return cellvalue;
},
handleSelectionChange:function(val){
this.multipleSelection = val;
console.log(val);
},
onRowClick(row,key,e){
if(key=="stopUser"){
}
},
},
computed: Vuex.mapState({
count:state=>state.count,
headStyle:function(){
return {"background-color":"white"};
}
}),
vname:"gsb_test"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment