Ver Fonte

fix bug

Michael Wang há 3 anos atrás
pai
commit
520856a5c2

+ 8 - 1
src/components/ExplainModal.vue

@@ -1,5 +1,11 @@
 <template>
-  <a-modal title="报告说明信息页" ref="theModal" v-model:visible="visible">
+  <a-modal
+    title="报告说明信息页"
+    ref="theModal"
+    v-model:visible="visible"
+    @ok="visible = false"
+    ok-text="确定"
+  >
     <a-form>
       <a-form-item label="报告类别">
         <a-input disabled :value="keyName"></a-input>
@@ -24,6 +30,7 @@ let keyCode = $ref("");
 EventBus.on("SHOW_SETTING", (e) => {
   keyCode = e as string;
   keyName = ORG_GLOSSARY[keyCode as keyof typeof ORG_GLOSSARY];
+  visible = true;
 });
 let keyName = $ref("");
 let keyDetail = $ref("");

+ 4 - 0
src/features/allAnalysis/AllAnalysis2.vue

@@ -160,6 +160,10 @@ const columns = [
 onMounted(async () => {
   rootOrgId = store.userInfo.rootOrgId;
   await search();
+  if (sessionStorage.getItem("allAnalysisReload")) {
+    activeTab = "2";
+    sessionStorage.removeItem("allAnalysisReload");
+  }
 });
 
 async function goPaperAnalysis(record: any) {

+ 1 - 0
src/features/allAnalysis/ScoreRate.vue

@@ -248,6 +248,7 @@ async function handleRangeConfigUpdate(rangeConfig: any) {
     rangeConfig: JSON.stringify(rangeConfig),
   });
   message.success({ content: "操作成功" });
+  sessionStorage.setItem("allAnalysisReload", "2");
   window.location.reload();
 }