|
|
@ -9,7 +9,7 @@ |
|
|
<!---------- 查询表单form begin -----------> |
|
|
<!---------- 查询表单form begin -----------> |
|
|
<a-form class="smart-query-form"> |
|
|
<a-form class="smart-query-form"> |
|
|
<a-row class="smart-query-form-row"> |
|
|
<a-row class="smart-query-form-row"> |
|
|
<a-form-item label="申请人" class="smart-query-form-item"> |
|
|
<a-form-item label="申请人" class="smart-query-form-item" v-if="isCeo || isCto"> |
|
|
<a-input style="width: 150px" v-model:value="queryForm.userName" placeholder="请输入申请人" /> |
|
|
<a-input style="width: 150px" v-model:value="queryForm.userName" placeholder="请输入申请人" /> |
|
|
</a-form-item> |
|
|
</a-form-item> |
|
|
<a-form-item label="申请日期" class="smart-query-form-item"> |
|
|
<a-form-item label="申请日期" class="smart-query-form-item"> |
|
|
@ -45,11 +45,17 @@ |
|
|
<!---------- 表格操作行 begin -----------> |
|
|
<!---------- 表格操作行 begin -----------> |
|
|
<a-row class="smart-table-btn-block"> |
|
|
<a-row class="smart-table-btn-block"> |
|
|
<div class="smart-table-operate-block"> |
|
|
<div class="smart-table-operate-block"> |
|
|
<a-button @click="showForm" type="primary" v-if="!isCeo"> |
|
|
<a-button @click="() => showForm('user')" type="primary" v-if="!isCeo"> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<PlusOutlined /> |
|
|
<PlusOutlined /> |
|
|
</template> |
|
|
</template> |
|
|
新建 |
|
|
申请律师无处罚证明 |
|
|
|
|
|
</a-button> |
|
|
|
|
|
<a-button @click="() => showForm('cto')" type="primary" v-if="isCto"> |
|
|
|
|
|
<template #icon> |
|
|
|
|
|
<PlusOutlined /> |
|
|
|
|
|
</template> |
|
|
|
|
|
申请律所无处罚证明 |
|
|
</a-button> |
|
|
</a-button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="smart-table-setting-block"> |
|
|
<div class="smart-table-setting-block"> |
|
|
@ -249,6 +255,21 @@ import PenaltyApplyForm from './penalty-apply-form.vue'; |
|
|
dataIndex: 'userName', |
|
|
dataIndex: 'userName', |
|
|
ellipsis: true, |
|
|
ellipsis: true, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
title: '无处罚证明类型', |
|
|
|
|
|
dataIndex: 'type', |
|
|
|
|
|
ellipsis: true, |
|
|
|
|
|
customRender: ({ text, record }) => { |
|
|
|
|
|
// 根据type字段值显示对应的证明类型 |
|
|
|
|
|
if (text === 'cto') { |
|
|
|
|
|
return '律所无处罚证明'; |
|
|
|
|
|
} else if (text === 'user') { |
|
|
|
|
|
return '律师无处罚证明'; |
|
|
|
|
|
} else { |
|
|
|
|
|
return text || '未知类型'; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '申请日期', |
|
|
title: '申请日期', |
|
|
dataIndex: 'applyDate', |
|
|
dataIndex: 'applyDate', |
|
|
@ -403,8 +424,10 @@ import PenaltyApplyForm from './penalty-apply-form.vue'; |
|
|
// ---------------------------- 添加/修改 ---------------------------- |
|
|
// ---------------------------- 添加/修改 ---------------------------- |
|
|
const formRef = ref(); |
|
|
const formRef = ref(); |
|
|
|
|
|
|
|
|
function showForm(data) { |
|
|
function showForm(type, data) { |
|
|
formRef.value.show(data); |
|
|
// 将type参数传递给表单组件 |
|
|
|
|
|
const formData = data ? { ...data, type } : { type }; |
|
|
|
|
|
formRef.value.show(formData); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// ---------------------------- 单个删除 ---------------------------- |
|
|
// ---------------------------- 单个删除 ---------------------------- |
|
|
|