This commit is contained in:
zoujiandong 2024-06-13 17:36:07 +08:00
parent 3f8c0900a6
commit bff706590f
3 changed files with 41 additions and 1 deletions

View File

@ -15,7 +15,8 @@
>
<template #default="{ node, data }">
<span class="custom-tree-node" >
<span>{{ node.label }}</span>
<span>{{ node.label }}-{{ data.custom_id}}</span>
<span >
<icon-plus-circle-fill v-has="'admin:sysArea:add'" @click="append(data)" title="添加" style="margin-left: 8px;font-size: 16px;color:#165DFF" v-if="node.level!=3"/>
<icon-edit title="修改" v-has="'admin:sysArea:edit'" @click="edit(node, data)" style="margin-left: 8px;font-size: 16px;color:#165DFF"/>
@ -147,6 +148,7 @@ const handleNodeClick = (data) => {
level:0,
label:item.area_name,
id:item.area_id,
custom_id:item.area_id,
parent_id:item.parent_id
}
});
@ -157,6 +159,7 @@ const handleNodeClick = (data) => {
return {
label:item.area_name,
level:1,
custom_id:item.area_id,
id:item.area_id,
parent_id:item.parent_id
}
@ -168,6 +171,7 @@ const handleNodeClick = (data) => {
return {
isLeaf: true,
level:2,
custom_id:item.area_id,
label:item.area_name,
id:item.area_id,
parent_id:item.parent_id

View File

@ -1,5 +1,23 @@
<template>
<div class="app-container">
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
<a-form-item field="doctor_name" label="医生姓名">
<a-input :style="{ width: '182px' }" v-model="queryForm.doctor_name" placeholder="请输入姓名" @press-enter="handleQuery" />
</a-form-item>
<a-form-item field="mobile" label="电话号码">
<a-input :style="{ width: '182px' }" v-model="queryForm.mobile" placeholder="请输入电话号码" @press-enter="handleQuery" />
</a-form-item>
<a-form-item>
<a-space>
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
<a-button @click="handleResetQuery"><icon-loop /> 重置</a-button>
</a-space>
</a-form-item>
</a-form>
<a-divider />
<!-- action -->
<div class="action">
<a-space>

View File

@ -1,5 +1,23 @@
<template>
<div class="app-container">
<a-form :model="queryForm" ref="queryFormRef" layout="inline">
<a-form-item field="doctor_name" label="医生姓名">
<a-input :style="{ width: '182px' }" v-model="queryForm.doctor_name" placeholder="请输入姓名" @press-enter="handleQuery" />
</a-form-item>
<a-form-item field="mobile" label="电话号码">
<a-input :style="{ width: '182px' }" v-model="queryForm.mobile" placeholder="请输入电话号码" @press-enter="handleQuery" />
</a-form-item>
<a-form-item>
<a-space>
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
<a-button @click="handleResetQuery"><icon-loop /> 重置</a-button>
</a-space>
</a-form-item>
</a-form>
<a-divider />
<!-- action -->
<div class="action">
<a-space>