刘洋 11 mēneši atpakaļ
vecāks
revīzija
3532c67e1c

+ 4 - 7
src/modules/questions/views/OrgProperty.vue

@@ -444,12 +444,9 @@ export default {
     ...mapState({ user: (state) => state.user }),
   },
   created() {
-    this.form.orgId = this.$route.params.rootOrgId;
+    this.form.orgId = this.$route.query.rootOrgId;
     this.rootOrgName =
-      this.$route.params.rootOrgName +
-      "(" +
-      this.$route.params.rootOrgCode +
-      ")";
+      this.$route.query.rootOrgName + "(" + this.$route.query.rootOrgCode + ")";
     if (!this.form.orgId) {
       this.form.orgId = sessionStorage.getItem("org_prop_info_org_id");
       this.rootOrgName = sessionStorage.getItem("org_prop_info_org_name");
@@ -473,7 +470,7 @@ export default {
   methods: {
     initAiNums(msg) {
       getAiNums({
-        rootOrgId: this.$route.params.rootOrgId,
+        rootOrgId: this.$route.query.rootOrgId,
       }).then((res) => {
         if (res.data) {
           this.leftCount = res.data?.leftCount;
@@ -486,7 +483,7 @@ export default {
     },
     updateAiNums() {
       updateAiNums({
-        rootOrgId: this.$route.params.rootOrgId,
+        rootOrgId: this.$route.query.rootOrgId,
       }).then(() => {
         this.initAiNums("更新成功");
       });

+ 1 - 1
src/modules/questions/views/School.vue

@@ -539,7 +539,7 @@ export default {
     orgSet(row) {
       this.$router.push({
         name: "org_property",
-        params: {
+        query: {
           rootOrgId: row.id,
           rootOrgName: row.name,
           rootOrgCode: row.code,