| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template>
- <el-card shadow="never">
- <yun-table
- :columns="columns"
- search="name,phone"
- toolbar="refresh,add,edit,del,more"
- ref="yuntable"
- :auth="auth"
- :extend="extend">
- </yun-table>
- </el-card>
- </template>
- <script>
- import table from "@components/Table.js";
- export default{
- components:{'YunTable':table},
- data:{
- auth:{
- add:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','add'),
- edit:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','edit'),
- del:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','del'),
- multi:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','multi'),
- recyclebin:Yunqi.auth.check('app\\admin\\controller\\shop\\Customer','recyclebin'),
- },
- extend:{
- index_url: 'shop/customer/index',
- add_url: 'shop/customer/add',
- edit_url: 'shop/customer/edit',
- del_url: 'shop/customer/del',
- multi_url: 'shop/customer/multi',
- download_url: 'shop/customer/download',
- recyclebin_url: 'shop/customer/recyclebin',
- },
- columns:[
- {checkbox: true},
- {field: 'id',title: __('ID'),width:80,sortable: true},
- {field: 'name',title: __('姓名'),operate:'LIKE'},
- {field: 'phone',title: __('手机'),operate: '='},
- {field: 'status', title: __('状态'),width:120,searchList: {1: __('正常'),2: __('停用')},formatter:Yunqi.formatter.switch},
- {field: 'account_term', title: __('账期'),searchList: {1: __('日结'), 2: __('周结'), 3: __('半月结')}},
- {field: 'remark', title: __('备注'),operate: false},
- {field: 'createtime', title: __('创建时间'), width:160,formatter: Yunqi.formatter.datetime,operate:false,sortable: true},
- {
- field: 'operate',
- title: __('操作'),
- width:150,
- action:{sort:true,edit:true,del:true}
- }
- ]
- },
- methods: {
-
- }
- }
- </script>
- <style>
- </style>
|