update: 大屏接口

This commit is contained in:
xf
2025-07-08 10:11:15 +08:00
parent 01f3339833
commit a2da7e4be7
6 changed files with 76 additions and 14 deletions
+15 -1
View File
@@ -39,12 +39,13 @@
<script setup lang="ts">
import Dialog from '/@/components/dialog/Dialog.vue';
import { useDialog } from '/@/views/components/dialogHooks.ts';
import { ref, watch } from 'vue';
import { onMounted, ref, watch } from 'vue';
import { SexType, sexTypeList } from '/@/utils/settings.ts';
import { Form } from 'ant-design-vue';
import { useDepart } from '/@/components/secondaryScreen/secondMap/secondMapHooks.ts';
import { message } from 'ant-design-vue';
import BasicTable from '/@/components/secondaryScreen/secondMap/components/basicTable/BasicTable.vue';
import { getSecondaryDepartmentList } from '/@/views/indexSun/indexSun.api.ts';
const props = defineProps({
title: {
@@ -75,6 +76,17 @@
return message.warning('请先选择单位');
}
}
onMounted(() => {
getSecondDept();
});
function getSecondDept() {
getSecondaryDepartmentList().then((res) => {
console.log(res, 'shshakjhdsjbjanmdjka');
if (res.code == 200) {
console.log(res, 'ddddddddd');
}
});
}
const formItemLayout = {
labelCol: {
style: { width: '80px' },
@@ -88,6 +100,7 @@
watch(props, () => {
dialogTitle.value = props.title;
getField();
getSecondDept();
});
function tableLoad(b: boolean) {
@@ -103,6 +116,7 @@
...formRecord.value,
...result,
};
getSecondDept();
console.log(formRecord.value);
}
function handleClicksearch() {