|
|
@ -37,7 +37,7 @@ |
|
|
|
<a-row :gutter="[16, 16]"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-item label="维护单位" name="maintenanceUnit"> |
|
|
|
<a-input v-model:value="form.maintenanceUnit" placeholder="请输入" /> |
|
|
|
<a-input v-model:value="form.maintenanceUnit" placeholder="请输入" disabled/> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
@ -75,7 +75,7 @@ |
|
|
|
import { reactive, ref ,toRefs} from 'vue'; |
|
|
|
import { message } from 'ant-design-vue'; |
|
|
|
import AMapLoader from '@amap/amap-jsapi-loader'; |
|
|
|
import { getInfo, add, update, getProjectInfo, getOrganizationType } from './api'; |
|
|
|
import { getInfo, add, update, getProjectInfo, getOrganizationType,getContractPartyBNameByProjectName } from './api'; |
|
|
|
export default { |
|
|
|
setup(props,{emit}) { |
|
|
|
const title = ref('新增'); |
|
|
@ -102,15 +102,17 @@ |
|
|
|
const res = await getOrganizationType(); |
|
|
|
organizationNameOptions.value = res.rows; |
|
|
|
}; |
|
|
|
const showModal = async (type, id, projectId,dataSource) => { |
|
|
|
console.log(dataSource); |
|
|
|
const showModal = async (type, id, projectId,selectInfo) => { |
|
|
|
console.log(selectInfo); |
|
|
|
visible.value = true; |
|
|
|
|
|
|
|
|
|
|
|
if (type == 1) { |
|
|
|
title.value = '新增'; |
|
|
|
form.projectName = dataSource[0].projectName |
|
|
|
form.organizationName = dataSource[0].organizationName |
|
|
|
form.projectName = selectInfo.node.ownerName |
|
|
|
form.organizationName = selectInfo.node.projectName |
|
|
|
const res = await getContractPartyBNameByProjectName({projectName:selectInfo.node.ownerName}) |
|
|
|
form.maintenanceUnit = res |
|
|
|
initMap(); |
|
|
|
} else if (type == 2) { |
|
|
|
title.value = '编辑'; |
|
|
|