提交
This commit is contained in:
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user