This commit is contained in:
ljx
2025-09-10 19:34:57 +08:00
parent a3d35a7410
commit a3dd00645f
45 changed files with 146 additions and 55 deletions

View File

@ -167,7 +167,7 @@ const reset = () => {
form.value = { ...initFormData };
leaveFormRef.value?.resetFields();
};
const projectId = ref('');
/** 获取详情 */
const getInfo = () => {
loading.value = true;
@ -175,6 +175,7 @@ const getInfo = () => {
nextTick(async () => {
const res = await getVersionDetail(routeParams.value.id);
console.log(res);
projectId.value = res.data.projectId;
Object.assign(form.value, res.data);
loading.value = false;
buttonLoading.value = false;
@ -186,7 +187,7 @@ const sheets = ref([]);
const getSheetName = async () => {
try {
const params = {
projectId: currentProject.value?.id,
projectId: projectId.value,
versions: form.value.versions
};
const res = await sheetList(params);
@ -208,7 +209,7 @@ const tableData = ref([]);
//获取列表
const getListTable = async () => {
const res = await getTreeLimit({
projectId: currentProject.value?.id,
projectId: projectId.value,
versions: form.value.versions,
sheet: form.value.sheet,
type: '0'