8
0
ZaiZai преди 9 месеца
родител
ревизия
5f3fe1e290
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      src/views/project/detail/detail.vue

+ 6 - 1
src/views/project/detail/detail.vue

@@ -70,8 +70,13 @@ const getDataApi = async () => {
 }
 
 //获取项目详情
+const projectInfo = ref({})
 const getProjectDeatil = async () => {
-    //mainApi
+    const { pid } = getObjValue(dataInfo.value)
+    contractForm.value = {}
+    if (isNullES(pid)) return
+    const { data } = await projectApi.detail(pid)
+    projectInfo.value = getObjValue(data)
 }
 
 //获取合同类型