|
@@ -31,7 +31,7 @@ const router = useRouter()
|
|
|
const useRoutes = useRoute()
|
|
|
const dataId = ref(useRoutes?.query?.id ?? '')
|
|
|
const dataType = ref(useRoutes?.query?.type ?? '')
|
|
|
-
|
|
|
+const infoData = ref({})
|
|
|
//缓存页面被激活时
|
|
|
onActivated(() => {
|
|
|
dataId.value = useRoutes?.query?.id ?? ''
|
|
@@ -39,6 +39,7 @@ onActivated(() => {
|
|
|
setTabsData()
|
|
|
if(dataType.value!=='add'){
|
|
|
getContractInfoById()
|
|
|
+ getListByContractId()
|
|
|
}else if(dataType.value=='add'){
|
|
|
infoData.value={}
|
|
|
infoDataFile.value={}
|
|
@@ -86,15 +87,10 @@ const tabsData = ref([
|
|
|
])
|
|
|
const tabsClick = (key) => {
|
|
|
tabsKey.value = key
|
|
|
- if(key=='milestone'&&dataType.value!=='add'){
|
|
|
- getListByContractId()
|
|
|
-
|
|
|
- }else if(key=='base'&&dataType.value!=='add'){
|
|
|
- getContractInfoById()
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
-const infoData = ref({})
|
|
|
+
|
|
|
const isNoDropShadow = ref(false)
|
|
|
//合同里程碑
|
|
|
const milestoneData=ref([{}])
|
|
@@ -111,10 +107,10 @@ const getListByContractId=async()=>{
|
|
|
const saveLoaing=ref(false)
|
|
|
//保存
|
|
|
const saveClick=(info,type)=>{
|
|
|
- console.log(info,'info');
|
|
|
- console.log(type,'type');
|
|
|
- console.log(infoData.value,'原始信息infoData.value');
|
|
|
-
|
|
|
+ console.log(infoData.value,'indo11111');
|
|
|
+ console.log(infoDataFile.value,'infoDataFile');
|
|
|
+ console.log(milestoneData.value,'milestoneData');
|
|
|
+
|
|
|
}
|
|
|
|
|
|
</script>
|