|
@@ -10,7 +10,7 @@
|
|
|
import { ref, reactive, toRefs, watch, nextTick, onMounted } from "vue";
|
|
|
import requests from "@common/requests";
|
|
|
import FormItem from "./formItem.vue";
|
|
|
-import { resetListData, itemFormSetValue } from "./formCorrespondenceProcessing"
|
|
|
+import { resetListData, itemFormSetValue, relatedField } from "./formCorrespondenceProcessing"
|
|
|
|
|
|
const list = ref([]);
|
|
|
const formRef = ref(null);
|
|
@@ -32,6 +32,15 @@ watch(() => props.formJson, (newValue) => {
|
|
|
|
|
|
watch(() => props.formValue, (newValue) => {
|
|
|
list.value = itemFormSetValue(props.formJson.list, newValue);
|
|
|
+ const fileds = Object.keys(newValue);
|
|
|
+ setTimeout(() => {
|
|
|
+ fileds.forEach(item => {
|
|
|
+ const cascade = relatedField[item];
|
|
|
+ if (cascade) {
|
|
|
+ cascadeProcessing(cascade)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }, 800)
|
|
|
});
|
|
|
|
|
|
function getJsonData() {
|