给部分表增加启用状态和排序字段,完善对应页面
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(1)>-1" @click="batchSetStatus(true)"><a-icon type="check-square"/>启用</a-menu-item>
|
||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(1)>-1" @click="batchSetStatus(false)"><a-icon type="close-square"/>禁用</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button>
|
||||
批量操作 <a-icon type="down" />
|
||||
@@ -65,6 +67,10 @@
|
||||
</a-popconfirm>
|
||||
</span>
|
||||
<!-- 状态渲染模板 -->
|
||||
<template slot="customRenderEnabledFlag" slot-scope="enabled">
|
||||
<a-tag v-if="enabled" color="green">启用</a-tag>
|
||||
<a-tag v-if="!enabled" color="orange">禁用</a-tag>
|
||||
</template>
|
||||
<template slot="customRenderFlag" slot-scope="isDefault">
|
||||
<a-tag v-if="isDefault" color="green">是</a-tag>
|
||||
<a-tag v-if="!isDefault" color="orange">否</a-tag>
|
||||
@@ -119,11 +125,14 @@
|
||||
{title: '仓储费', dataIndex: 'warehousing', width: 80},
|
||||
{title: '搬运费', dataIndex: 'truckage', width: 80},
|
||||
{title: '负责人', dataIndex: 'principalName', width: 80},
|
||||
{title: '排序', dataIndex: 'sort', width: 80},
|
||||
{title: '是否默认',dataIndex: 'isDefault',width:100,align:"center",
|
||||
{title: '备注', dataIndex: 'remark', width: 120},
|
||||
{title: '排序', dataIndex: 'sort', width: 60},
|
||||
{ title: '状态',dataIndex: 'enabled',width:60,align:"center",
|
||||
scopedSlots: { customRender: 'customRenderEnabledFlag' }
|
||||
},
|
||||
{title: '是否默认',dataIndex: 'isDefault',width:80,align:"center",
|
||||
scopedSlots: { customRender: 'customRenderFlag' }
|
||||
},
|
||||
{title: '备注', dataIndex: 'remark', width: 120},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'action',
|
||||
@@ -136,7 +145,8 @@
|
||||
list: "/depot/list",
|
||||
delete: "/depot/delete",
|
||||
deleteBatch: "/depot/deleteBatch",
|
||||
setDefault: "/depot/updateIsDefault"
|
||||
setDefault: "/depot/updateIsDefault",
|
||||
batchSetStatusUrl: "/depot/batchSetStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user