feat: 细节调整

This commit is contained in:
xuziqiang
2024-06-11 13:37:10 +08:00
parent cbfa942ff6
commit d58f066b39
8 changed files with 116 additions and 78 deletions

View File

@@ -2,19 +2,13 @@
<template>
<ns-view-list-table v-bind="tableConfig" :model="data" ref="mainRef" rowKey="uuid" />
<a-drawer
:width="600"
:visible="visible"
:body-style="{ paddingBottom: '80px' }"
:footer-style="{ textAlign: 'right' }"
destroyOnClose
@close="onClose">
<ns-drawer v-bind="addDrawerConfig">
<ns-form ref="formRef" :schemas="formSchema" :model="formData" formLayout="vertical" />
<template #footer>
<a-button style="margin-right: 8px" @click="onClose">取消</a-button>
<a-button type="primary" @click="onEdit">确定</a-button>
</template>
</a-drawer>
</ns-drawer>
<a-drawer
:width="600"
:visible="borderVisible"
@@ -94,6 +88,15 @@
const tableConfig = computed(() => {
return insertConfig(visible);
});
const getOrgRandomCode = () => {
http.post(enterPrise.getCode).then((res) => {
formData.value.projectId = res.data;
});
};
getOrgRandomCode();
// drawer form
const opMap: any = {
type: 'add',
fuc: () => {},
@@ -120,6 +123,14 @@
serviceVisible.value = false;
};
const addDrawerConfig = ref({
width: '520',
visible: visible,
footerStyle: { textAlign: 'right' },
destroyOnClose: true,
onClose: onClose,
});
const borderAdd = () => {
treeAddVisible.value = true;
treeAdd.value?.toggle();