|
@@ -414,11 +414,13 @@ watch(
|
|
|
}
|
|
|
);
|
|
|
|
|
|
-onMounted(async () => {
|
|
|
+const initInfo = async () => {
|
|
|
const res = await getCaseInquestInfo(props.caseId);
|
|
|
- console.log("res", res);
|
|
|
+
|
|
|
if (!res.data) {
|
|
|
isDisableExport.value = true;
|
|
|
+ } else {
|
|
|
+ isDisableExport.value = false;
|
|
|
}
|
|
|
for (var k in data) {
|
|
|
if (res.data && res.data.hasOwnProperty(k)) {
|
|
@@ -426,6 +428,10 @@ onMounted(async () => {
|
|
|
data[k] = res.data[k];
|
|
|
}
|
|
|
}
|
|
|
+};
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ initInfo();
|
|
|
});
|
|
|
|
|
|
const addwitnessInfo = () => {
|
|
@@ -444,6 +450,7 @@ const handleSave = async () => {
|
|
|
const res = await saveCaseInquestInfo(props.caseId, data);
|
|
|
if (res.code === 0) {
|
|
|
ElMessage.success("保存成功!");
|
|
|
+ initInfo();
|
|
|
}
|
|
|
};
|
|
|
const handleExport = async () => {
|