|
@@ -73,8 +73,7 @@ const contractId = ref(store.getContractId)
|
|
|
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
- getTestDataType()
|
|
|
- getContractData()
|
|
|
+ getDataApi()
|
|
|
})
|
|
|
|
|
|
const curId = defineModel('modelValue', {
|
|
@@ -82,6 +81,13 @@ const curId = defineModel('modelValue', {
|
|
|
default: '',
|
|
|
})
|
|
|
|
|
|
+const getDataApi = async () => {
|
|
|
+ await getTestDataType()
|
|
|
+ await getContractData()
|
|
|
+ const ids = curId.value
|
|
|
+ dataIds.value = isNullES(ids) ? [] : ids.split(',')
|
|
|
+}
|
|
|
+
|
|
|
//监听
|
|
|
const dataIds = ref([])
|
|
|
watch(() => curId.value, (id) => {
|