licailing 4 ani în urmă
părinte
comite
49093ca2b4

+ 1 - 0
src/main/java/com/izouma/wenlvju/security/WebSecurityConfig.java

@@ -68,6 +68,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                 .antMatchers("/rate/export/**").permitAll()
                 .antMatchers("/rate/export/**").permitAll()
                 .antMatchers("/rate/test").permitAll()
                 .antMatchers("/rate/test").permitAll()
                 .antMatchers("/district/NJ").permitAll()
                 .antMatchers("/district/NJ").permitAll()
+                .antMatchers("/setting/byFlag").permitAll()
                 .antMatchers("/upload/**").permitAll()
                 .antMatchers("/upload/**").permitAll()
                 .antMatchers("/files/**").permitAll()
                 .antMatchers("/files/**").permitAll()
                 .antMatchers("/static/**").permitAll()
                 .antMatchers("/static/**").permitAll()

+ 2 - 1
src/main/vue/src/views/Login.vue

@@ -273,7 +273,8 @@ export default {
     },
     },
     created() {
     created() {
         this.$http
         this.$http
-            .get('/district/NJ', { size: 1000, query: { del: false } })
+            // .get('/district/NJ', { size: 1000, query: { del: false } })
+            .post('/setting/byFlag', { flag: 2 })
             .then(res => {
             .then(res => {
                 if (res.length > 0) {
                 if (res.length > 0) {
                     res.forEach(item => {
                     res.forEach(item => {

+ 2 - 1
src/main/vue/src/views/organization/OrganizationEdit.vue

@@ -77,7 +77,8 @@ export default {
             this.formData = this.organization;
             this.formData = this.organization;
         }
         }
         this.$http
         this.$http
-            .get('/district/NJ', { size: 1000, query: { del: false } })
+            // .get('/district/NJ', { size: 1000, query: { del: false } })
+            .post('/setting/byFlag', { flag: 2 })
             .then(res => {
             .then(res => {
                 if (res.length > 0) {
                 if (res.length > 0) {
                     res.forEach(item => {
                     res.forEach(item => {

+ 2 - 1
src/main/vue/src/views/organization/OrganizationInfo.vue

@@ -111,7 +111,8 @@ export default {
         this.formData = this.organization;
         this.formData = this.organization;
         this.examinationAgency = this.organization.gradingOrganizationId;
         this.examinationAgency = this.organization.gradingOrganizationId;
         this.$http
         this.$http
-            .get('/district/NJ', { size: 1000, query: { del: false } })
+            // .get('/district/NJ', { size: 1000, query: { del: false } })
+            .post('/setting/byFlag', { flag: 2 })
             .then(res => {
             .then(res => {
                 if (res.length > 0) {
                 if (res.length > 0) {
                     res.forEach(item => {
                     res.forEach(item => {

+ 2 - 1
src/main/vue/src/views/rate/RateAudit.vue

@@ -249,7 +249,8 @@ export default {
             // }
             // }
         }
         }
         this.$http
         this.$http
-            .get('/district/NJ')
+            // .get('/district/NJ')
+            .post('/setting/byFlag', { flag: 2 })
             .then(res => {
             .then(res => {
                 this.districts = res;
                 this.districts = res;
             })
             })

+ 2 - 1
src/main/vue/src/views/rate/RateEdit.vue

@@ -356,7 +356,8 @@ export default {
             this.formData.organizationId = this.organization.id;
             this.formData.organizationId = this.organization.id;
         }
         }
         this.$http
         this.$http
-            .get('/district/NJ')
+            // .get('/district/NJ')
+            .post('/setting/byFlag', { flag: 2 })
             .then(res => {
             .then(res => {
                 this.districts = res;
                 this.districts = res;
             })
             })

+ 2 - 1
src/main/vue/src/views/record/RecordDistrictList.vue

@@ -154,7 +154,8 @@ export default {
     mixins: [pageableTable],
     mixins: [pageableTable],
     created() {
     created() {
         this.$http
         this.$http
-            .get('/district/NJ')
+            // .get('/district/NJ')
+            .post('/setting/byFlag', { flag: 2 })
             .then(res => {
             .then(res => {
                 this.district = res;
                 this.district = res;
             })
             })