|
|
@@ -32,7 +32,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getDLProjectDetail } from "@/api/dlwork";
|
|
|
+import { getStudentDLProjectDetail } from "@/api/dlwork";
|
|
|
import PageHeader from "@/components/PageHeader";
|
|
|
import PageBody from "@/components/PageBody/index";
|
|
|
|
|
|
@@ -48,10 +48,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
- const { dlworkId } = this.$route.params;
|
|
|
+ const { dlworkId } = this.$route.params.dlworkId;
|
|
|
+ const { userId } = this.$route.params.userId;
|
|
|
this.detailLoading = true;
|
|
|
- const detail = await getDLProjectDetail(dlworkId);
|
|
|
+ const detail = await getStudentDLProjectDetail(dlworkId, userId);
|
|
|
this.dlDetail = detail.data;
|
|
|
+
|
|
|
this.detailLoading = false;
|
|
|
}
|
|
|
};
|