Commit a197a352 authored by 沈翠玲's avatar 沈翠玲

案件分派汇总

parent f2326c99
<template> <template>
<!-- 未来30天访问量趋势预测图 --> <!-- 未来30天访问量趋势预测图 -->
<div class="region" style="margin-right: 10px; width: calc(50% - 10px)"> <div class="region" style="margin-right: 10px; width: calc(50% - 10px)">
<div class="echarts"> <div class="card-header">
<div class="title flex justify-between w-full">
<h4 class="box-title">近12个月回款金额</h4>
</div>
</div>
<div class="echarts" style="height: calc(100% - 30px);">
<ECharts :option="option" :resize="false" /> <ECharts :option="option" :resize="false" />
</div> </div>
</div> </div>
...@@ -130,9 +135,13 @@ ...@@ -130,9 +135,13 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.card-header {
padding: 0 18px !important;
}
.echarts { .echarts {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-left: 5px;
:deep(.line-chart-bg) { :deep(.line-chart-bg) {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
import { inject, nextTick } from 'vue'; import { inject, nextTick } from 'vue';
import { computed } from 'vue'; import { computed } from 'vue';
import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus'; import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus';
import { getdepartmentTree } from '@/api/departmentManage';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { getAppEnvConfig } from '@/utils/env'; import { getAppEnvConfig } from '@/utils/env';
import { getCollectorStatsVo, getCollectorNoDistributeStatsVo, getCollectorProvinceStatsVo } from '@/api/analy'; import { getCollectorStatsVo, getCollectorNoDistributeStatsVo, getCollectorProvinceStatsVo } from '@/api/analy';
...@@ -51,7 +52,9 @@ ...@@ -51,7 +52,9 @@
); );
const envs = getAppEnvConfig(); const envs = getAppEnvConfig();
const { userInfo } = useUserStore(); const { userInfo } = useUserStore();
const departlist = ref([]);
const userStore = useUserStore();
console.log('userStore', userStore)
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
const downloadfile = inject('download'); const downloadfile = inject('download');
...@@ -154,8 +157,9 @@ ...@@ -154,8 +157,9 @@
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 120, width: 120,
search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 105 }, search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 105 },
}, }]
{ if (userStore.userInfo?.roles && userStore.userInfo?.roles.find(i => i.roleCode === 'admin')) {
config['columns'].push({
showOverflow: 'tooltip', showOverflow: 'tooltip',
field: 'tenantName', field: 'tenantName',
enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }), enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }),
...@@ -163,7 +167,22 @@ ...@@ -163,7 +167,22 @@
fieldNames: { label: 'name', value: 'id' }, fieldNames: { label: 'name', value: 'id' },
title: '调解中心', title: '调解中心',
width: 120, width: 120,
}] })
} else if (userStore.userInfo?.roles && userStore.userInfo?.roles.find(i => i.roleCode === 'tenantAdmin')) {
config['columns'].push({
field: 'departmentName',
title: '部门',
width: 160,
enum: departlist,
fieldNames: { label: 'name', value: 'id' },
search: {
el: 'tree-select',
props: { filterable: true, checkStrictly: true },
labelWidth: 85,
key: 'departmentId',
}
})
}
} else if (activeName.value === '未分派案件汇总') { } else if (activeName.value === '未分派案件汇总') {
config['columns'] = [{ config['columns'] = [{
title: '委案类型', title: '委案类型',
...@@ -189,6 +208,11 @@ ...@@ -189,6 +208,11 @@
onMounted(() => { onMounted(() => {
query(); query();
getdepartmentTree().then((res) => {
if (res.success) {
departlist.value = res.result;
}
});
}); });
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment