6.13更新
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-tree>
|
||||
|
||||
<a-modal v-model:visible="okVisible" :modal-style="{width:'420px'}" body-class="okmodal" @ok="handleConfirm"
|
||||
@cancel="handleClose" >
|
||||
<template #title>
|
||||
@@ -33,6 +32,9 @@
|
||||
<a-form-item field="area_name" label="名称" >
|
||||
<a-textarea v-model.trim="form.area_name" allow-clear placeholder="请输入名称"></a-textarea>
|
||||
</a-form-item>
|
||||
<a-form-item field="area_id" label="区域id" >
|
||||
<a-input v-model="form.area_id" allow-clear placeholder="请输入区域id"></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item field="label" label="上级名称" v-if="title=='添加区域'">
|
||||
<a-input v-model="form.label" disabled placeholder="请输入级名称" size="large" class="input-demo" />
|
||||
</a-form-item>
|
||||
@@ -99,7 +101,8 @@ const handleNodeClick = (data) => {
|
||||
const cityData = ref([]);
|
||||
const countryData = ref([]);
|
||||
const rules= reactive({
|
||||
area_name: [{ required: true, message: '请输入名称' }]
|
||||
area_name: [{ required: true, message: '请输入名称' }],
|
||||
area_id:[{ required: true, message: '请输入区域id' }]
|
||||
});
|
||||
let id = 1000;
|
||||
const append=(data)=>{
|
||||
@@ -122,6 +125,7 @@ const handleNodeClick = (data) => {
|
||||
title.value="修改区域";
|
||||
form.parent_id=node.data.id;
|
||||
form.area_name=node.data.label;
|
||||
form.area_id=node.data.id;
|
||||
okVisible.value=true;
|
||||
current.id=data.id;
|
||||
current.parent_id=data.parent_id;
|
||||
|
||||
@@ -208,11 +208,11 @@
|
||||
//详情
|
||||
const handleDetail = async (record) => {
|
||||
const { code, data, message } = await getHospitalDetail(record.hospital_id)
|
||||
hospitalChild.value.getData();
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
modalVisible.value = true;
|
||||
}
|
||||
hospitalChild.value.getData(true);
|
||||
};
|
||||
// 批量删除
|
||||
const handleBatchDelete = () => {
|
||||
|
||||
Reference in New Issue
Block a user