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

业务审批

parent d6f85ce9
<template>
<div class="table-box">
<!-- <div class=" bg-white pt-2 pl-2">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
<div class=" bg-white pt-2 pl-2">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" v-if="roleType !== 'view'">
<el-tab-pane
:label="item.label"
:name="item.value"
......@@ -16,14 +16,14 @@
</template>
</el-tab-pane>
</el-tabs>
</div> -->
</div>
<ProTable ref="proTable" :config="config" :api="func" :paramCallback="paramCallback">
</ProTable>
</div>
</template>
<script setup lang="jsx" name="platformManage">
import { ref, reactive, onMounted } from 'vue';
import { ref, reactive, onMounted, computed } from 'vue';
import { Plus, Delete, Edit, Setting } from '@element-plus/icons-vue';
import { getcustomerReportPage, getriskPage, getlegalPage } from '@/api/customer';
import { ElMessageBox, ElMessage, ElButton, ElTag } from 'element-plus';
......@@ -41,7 +41,15 @@
const onCheckboxChange = (row) => {
selectdList.value = row.records;
};
const roleType = computed(() => {
if (route.fullPath.includes('infoGather/dangerReport')) {
return 'view'
} else if (route.fullPath.includes('/business-approval/riskManager')) {
return 'risk'
}else if (route.fullPath.includes('/business-approval/legalManager')) {
return 'legal'
}
});
const router = useRouter();
const func = () => {
if (route.fullPath.includes('infoGather/dangerReport')) {
......@@ -60,6 +68,32 @@
if (obj['createTime'][1]) obj['createTimeEnd'] = obj['createTime'][1];
delete obj['createTime'];
}
if (roleType.value === 'risk') {
obj['riskControlStatus'] = activeName.value;
} else if (roleType.value === 'legal') {
obj['legalAffairStatus'] = activeName.value;
}
setTimeout(() => {
const arr = JSON.parse(JSON.stringify(FlowStatus.value))
// getRepairApplyTotal({...obj, flowStatus: null}).then(res => {
// if (res.success) {
// arr.forEach(item => {
// const tt = res.result.find(v => v.flowStatus === item.value)
// if (tt) {
// item['msg'] = tt.number
// } else {
// item['msg'] = 0
// }
// })
// tabs.value = arr
// } else {
// tabs.value = arr
// }
// }).catch(e => {
// tabs.value = arr
// })
tabs.value = arr
}, (FlowStatus.value && FlowStatus.value.length) ? 100 : 1000)
paramObj.value = obj
return obj;
};
......
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