|
|
@@ -0,0 +1,60 @@
|
|
|
+<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\\goods\\ProductConfig','add'),
|
|
|
+ edit:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','edit'),
|
|
|
+ del:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','del'),
|
|
|
+ multi:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','multi'),
|
|
|
+ recyclebin:Yunqi.auth.check('app\\admin\\controller\\goods\\ProductConfig','recyclebin'),
|
|
|
+ },
|
|
|
+ extend:{
|
|
|
+ index_url: 'goods/product_config/index',
|
|
|
+ add_url: 'goods/product_config/add',
|
|
|
+ edit_url: 'goods/product_config/edit',
|
|
|
+ del_url: 'goods/product_config/del',
|
|
|
+ multi_url: 'goods/product_config/multi',
|
|
|
+ download_url: 'goods/product_config/download',
|
|
|
+ recyclebin_url: 'goods/product_config/recyclebin',
|
|
|
+ },
|
|
|
+ columns:[
|
|
|
+ {checkbox: true},
|
|
|
+ {field: 'id',title: __('ID'),width:80,sortable: true},
|
|
|
+ {field: 'type_id',title: __('品种'),operate:'LIKE', searchList: Yunqi.data.varietyList},
|
|
|
+ {field: 'title',title: __('标题'),operate: '='},
|
|
|
+ {field: 'another_name', title: __('别名'),operate:'LIKE'},
|
|
|
+ {field: 'weight', title: __('重量(斤)'),operate: false},
|
|
|
+ {field: 'type_box', title: __('包装箱'),operate: false, searchList: Yunqi.data.packingList},
|
|
|
+ {field: 'status', title: __('状态'),width:120,searchList: {1: __('正常'),2: __('停用')},formatter:Yunqi.formatter.switch},
|
|
|
+ {field: 'sort', title: __('排序'), operate:false,sortable: true},
|
|
|
+ {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>
|