|
|
@@ -1,5 +1,5 @@
|
|
|
<script setup lang="ts">
|
|
|
-import { ref, computed, nextTick, h, watch, onMounted } from 'vue';
|
|
|
+import { ref, computed, nextTick, h, watch, onMounted, openBlock } from 'vue';
|
|
|
import { notification } from 'ant-design-vue';
|
|
|
import { getDictionaryMethod } from '@/request/api/dictionary.api';
|
|
|
import { UploadIFile } from '@/request/api/follow.api';
|
|
|
@@ -220,7 +220,9 @@ const filteredProjects = computed(() => {
|
|
|
|
|
|
function onSelectProject({ row }: any) {
|
|
|
if ((formData.items ?? []).some((item) => item.conditioningProgramDetail?.name === row.name)) {
|
|
|
- message.warning('不能重复添加该项目');
|
|
|
+ notification.warning({
|
|
|
+ message: '不能重复添加该项目',
|
|
|
+ });
|
|
|
return;
|
|
|
}
|
|
|
// 添加新行到主表格
|
|
|
@@ -628,6 +630,9 @@ function handleSelect(value: string, node: any, extra: any) {
|
|
|
formData.institutionId = value;
|
|
|
formData.institutionName = node.label;
|
|
|
}
|
|
|
+function openPopover() {
|
|
|
+ showProjectPopover.value = true;
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
@@ -775,7 +780,7 @@ function handleSelect(value: string, node: any, extra: any) {
|
|
|
<template #default="{ row, rowIndex }">
|
|
|
<template v-if="rowIndex === tableData.length - 1">
|
|
|
<a-popover
|
|
|
- v-model:open="showProjectPopover"
|
|
|
+ v-model="showProjectPopover"
|
|
|
trigger="click"
|
|
|
placement="bottomLeft"
|
|
|
:overlayStyle="{ width: '350px', padding: 0 }"
|
|
|
@@ -794,7 +799,7 @@ function handleSelect(value: string, node: any, extra: any) {
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
|
</template>
|
|
|
- <a-input v-model:value="row.name" placeholder="请搜索" style="width: 120px" @click="showProjectPopover = true" readonly />
|
|
|
+ <a-input v-model:value="row.name" placeholder="请搜索" style="width: 120px" @click="openPopover" readonly />
|
|
|
</a-popover>
|
|
|
</template>
|
|
|
<template v-else>
|