Jelajahi Sumber

Merge branch 'main' of http://39.108.216.210:3000/web/admin into main

duy 9 bulan lalu
induk
melakukan
9cac371202
1 mengubah file dengan 20 tambahan dan 7 penghapusan
  1. 20 7
      src/views/project/detail/info.vue

+ 20 - 7
src/views/project/detail/info.vue

@@ -1,6 +1,17 @@
 <template>
-    <div>
-        111
+    <div class="hc-contract-info-data">
+        <hc-card-item title="基础信息">
+            内容区域
+        </hc-card-item>
+        <hc-card-item class="mt-14px" title="组卷归档默认信息">
+            内容区域
+        </hc-card-item>
+        <hc-card-item class="mt-14px" title="附加信息">
+            内容区域
+        </hc-card-item>
+        <hc-card-item class="mt-14px" title="计量信息">
+            内容区域
+        </hc-card-item>
     </div>
 </template>
 
@@ -20,17 +31,19 @@ const props = defineProps({
     },
 })
 
+//渲染完成
+onMounted(() => {
+    getDataApi()
+})
+
 //监听数据
 const dataInfo = ref(props.data)
 watch(() => props.data, (data) => {
     dataInfo.value = data
-}, { immediate: true, deep: true })
-
-//渲染完成
-onMounted(() => {
     getDataApi()
-})
+}, { deep: true })
 
+//获取数据
 const getDataApi = async () => {
     const { cid, type } = getObjValue(dataInfo.value)
     await getContractTypeList()