Commit 5141a66c authored by 沈翠玲's avatar 沈翠玲

案件分派

parent 68884e5c
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</div> </div>
<div style="margin-top: 10px; margin-bottom: 10px"> <div style="margin-top: 10px; margin-bottom: 10px">
<el-radio-group v-model="radio" @change="changeRadio"> <el-radio-group v-model="radio" @change="changeRadio">
<el-radio :value="0">分派到调解中心</el-radio> <el-radio :value="0" v-permission="'allcation_for_tenant'">分派到调解中心</el-radio>
<el-radio :value="1">分派到CPE</el-radio> <el-radio :value="1">分派到CPE</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
...@@ -211,7 +211,9 @@ ...@@ -211,7 +211,9 @@
import { getTenantPage } from '@/api/tenant'; import { getTenantPage } from '@/api/tenant';
import { computed } from 'vue'; import { computed } from 'vue';
import { reactive, ref, nextTick } from 'vue'; import { reactive, ref, nextTick } from 'vue';
import { useAuthStore } from '@/stores/modules/auth';
const emits = defineEmits(['success']); const emits = defineEmits(['success']);
const { authButtonListGet } = useAuthStore(); // 获取用户权限列表
const data = ref([]); const data = ref([]);
const mytransfer = ref(); const mytransfer = ref();
...@@ -300,12 +302,17 @@ ...@@ -300,12 +302,17 @@
currentAllBtn.value = null; currentAllBtn.value = null;
getTree(); getTree();
step.value = 0; step.value = 0;
radio.value = 0; if (!authButtonListGet.includes('allcation_for_tenant')) {
const p = {} radio.value = 1;
} else {
radio.value = 0;
}
let p = {}
if (lonsArr.value && lonsArr.value.length) { if (lonsArr.value && lonsArr.value.length) {
p['loanIds'] = lonsArr.value.map((v) => v.id); p['loanIds'] = lonsArr.value.map((v) => v.id);
} else { } else {
p = { ...pageParams.value }; p = param;
} }
radio.value === 0 && getStatisis(p); radio.value === 0 && getStatisis(p);
SaveBol.value = false; SaveBol.value = false;
......
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