|
|
@@ -3,7 +3,7 @@
|
|
|
<yun-table
|
|
|
:columns="columns"
|
|
|
search="nickname,mobile"
|
|
|
- toolbar="refresh,edit,del,recyclebin,more"
|
|
|
+ toolbar="refresh,add,edit,del,recyclebin,more"
|
|
|
ref="yuntable"
|
|
|
:auth="auth"
|
|
|
:extend="extend">
|
|
|
@@ -23,7 +23,9 @@
|
|
|
recyclebin:Yunqi.auth.check('app\\admin\\controller\\user\\Index','recyclebin'),
|
|
|
},
|
|
|
extend:{
|
|
|
+
|
|
|
index_url: 'user/index/index',
|
|
|
+ add_url: 'user/index/add',
|
|
|
edit_url: 'user/index/edit',
|
|
|
del_url: 'user/index/del',
|
|
|
multi_url: 'user/index/multi',
|
|
|
@@ -36,12 +38,10 @@
|
|
|
{field: 'username',title: __('用户名'),operate:'='},
|
|
|
{field: 'avatar', title: __('头像'), formatter: Yunqi.formatter.image, operate: false},
|
|
|
{field: 'nickname',title: __('昵称'),operate: 'LIKE',formatter: Yunqi.formatter.tag},
|
|
|
- {field: 'sex', title: __('性别'),width:100,searchList: {1: __('男'), 2: __('女')},operate:'select',formatter:Yunqi.formatter.select},
|
|
|
+ {field: 'sex', title: __('性别'),width:100,searchList: {1: __('男'), 2: __('女')},operate:false,formatter:Yunqi.formatter.select},
|
|
|
{field: 'email',title: __('邮箱'),operate:'LIKE'},
|
|
|
{field: 'mobile',title: __('手机'),operate: '='},
|
|
|
- {field: 'level', title: __('等级'),sortable: true,operate:'selects',searchList:{0:'普通',1:'1级',2:'2级',3:'3级',4:'4级'}},
|
|
|
- {field: 'score', title: __('积分'),sortable: true,operate:'between'},
|
|
|
- {field: 'balance', title: __('余额'),sortable: true,operate:'between'},
|
|
|
+ {field: 'role', title: __('角色'),sortable: true,operate:'selects',searchList:{0:'录入员 ',1:'库管'}},
|
|
|
{field: 'status', title: __('状态'),searchList: {'normal': __('正常'),'hidden': __('隐藏')},formatter:Yunqi.formatter.switch,operate:'select'},
|
|
|
{field: 'createtime', title: __('创建时间'), width:160,formatter: Yunqi.formatter.datetime,operate:false,sortable: true},
|
|
|
{
|
|
|
@@ -50,20 +50,6 @@
|
|
|
width:180,
|
|
|
fixed:'right',
|
|
|
action:{
|
|
|
- recharge:{
|
|
|
- tooltip:true,
|
|
|
- icon:'fa fa-plug',
|
|
|
- type:'warning',
|
|
|
- text:__('会员充值'),
|
|
|
- method:'recharge'
|
|
|
- },
|
|
|
- detail:{
|
|
|
- tooltip:true,
|
|
|
- icon:'fa fa-list',
|
|
|
- type:'info',
|
|
|
- text:__('会员明细'),
|
|
|
- method:'detail'
|
|
|
- },
|
|
|
edit:true,
|
|
|
del:true
|
|
|
}
|
|
|
@@ -71,24 +57,24 @@
|
|
|
]
|
|
|
},
|
|
|
methods: {
|
|
|
- detail:function (row){
|
|
|
- Yunqi.api.open({
|
|
|
- url:'user/index/detail?ids='+row.id,
|
|
|
- width:1000,
|
|
|
- title:__('会员明细'),
|
|
|
- icon:'fa fa-list'
|
|
|
- });
|
|
|
- },
|
|
|
- recharge:function (row){
|
|
|
- Yunqi.api.open({
|
|
|
- url:'user/index/recharge?ids='+row.id,
|
|
|
- title:__('会员充值'),
|
|
|
- icon:'fa fa-plug',
|
|
|
- close:()=>{
|
|
|
- this.$refs.yuntable.reload();
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+ // detail:function (row){
|
|
|
+ // Yunqi.api.open({
|
|
|
+ // url:'user/index/detail?ids='+row.id,
|
|
|
+ // width:1000,
|
|
|
+ // title:__('会员明细'),
|
|
|
+ // icon:'fa fa-list'
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // recharge:function (row){
|
|
|
+ // Yunqi.api.open({
|
|
|
+ // url:'user/index/recharge?ids='+row.id,
|
|
|
+ // title:__('会员充值'),
|
|
|
+ // icon:'fa fa-plug',
|
|
|
+ // close:()=>{
|
|
|
+ // this.$refs.yuntable.reload();
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
</script>
|