Merge branch 'fix/0801-ch' into msb_test

msb_test
ch 3 years ago
commit 66bec61cc2

@ -38,10 +38,11 @@ export const logistics = (id) => {
method: 'get', method: 'get',
}); });
}; };
export const summary = () => { export const summary = (params) => {
return request({ return request({
url: '/mall/trade/admin/tradeOrder/statistics', url: '/mall/trade/admin/tradeOrder/statistics',
method: 'get', method: 'get',
params,
}); });
}; };
export const updateFees = (data) => { export const updateFees = (data) => {

@ -52,7 +52,7 @@ const actions = {
if (!res) { if (!res) {
ElMessage.error('查询订单列表失败'); ElMessage.error('查询订单列表失败');
} }
res = await api.summary(); res = await api.summary({ userId: data.userId });
if (res) { if (res) {
commit( commit(
'setSummary', 'setSummary',

@ -470,6 +470,7 @@
} }
.aside-body { .aside-body {
:deep(.el-tree) { :deep(.el-tree) {
font-size: 14px;
.flex { .flex {
width: 100%; width: 100%;
display: flex; display: flex;

@ -188,7 +188,8 @@
} }
}; };
const handleClose = () => { const handleClose = () => {
router.push({ name: 'EmployeeManagement' }); store.commit('layout/closeTab', { current: true });
router.replace({ name: 'EmployeeManagement' });
}; };
const loading2 = ref(false); const loading2 = ref(false);
const roleVisible = ref(false); const roleVisible = ref(false);

@ -16,6 +16,7 @@
emitPath: false, emitPath: false,
children: 'childDepartment', children: 'childDepartment',
}" }"
style="width: 500px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="选择角色权限" prop="handType"> <el-form-item label="选择角色权限" prop="handType">

@ -118,7 +118,8 @@
} }
}; };
const handleClose = () => { const handleClose = () => {
router.push({ name: 'CategoryManagement' }); store.commit('layout/closeTab', { current: true });
router.replace({ name: 'CategoryManagement' });
}; };
</script> </script>

@ -158,6 +158,9 @@
if (route.query.status) { if (route.query.status) {
state.condition.orderStatus = route.query.status.split(',').map((item) => +item); state.condition.orderStatus = route.query.status.split(',').map((item) => +item);
} else { } else {
if (route.query.id) {
state.condition.orderStatus = [0];
}
handleSearch(); handleSearch();
} }
}); });

@ -294,7 +294,7 @@
} }
await store.dispatch('productSkus/save', { id: route.params.id, data }); await store.dispatch('productSkus/save', { id: route.params.id, data });
store.commit('layout/closeTab', { current: true }); store.commit('layout/closeTab', { current: true });
router.push({ name: 'ProductManagement' }); router.replace({ name: 'ProductManagement' });
} }
state.loading = false; state.loading = false;
}; };

Loading…
Cancel
Save