Commit 32786cfe authored by hubaoshan's avatar hubaoshan

安全隐患页面公司名称列表问题

parent 778e1b0a
......@@ -113,13 +113,7 @@ const formSchema = ref([
ifShow: deptId === '100',
componentProps: {
placeholder: '公司名称',
options: [
{
label: '公司名称',
value: '公司名称',
key: '公司名称',
},
],
options: [],
},
colProps: { span: 4 },
},
......@@ -146,6 +140,12 @@ const { push } = useRouter();
onMounted(async () => {
columns.value = columnsDate
formSchema.value[2].componentProps.options = await getDepartmentList();
formSchema.value[2].componentProps.options = formSchema.value[2].componentProps.options.map(item => ({
key: item.value,
value: item.label,
label: item.label
}));
console.log('====-----',formSchema.value[2])
getStatisticList();
});
// 导出
......
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