浏览代码

bug处理

ljb 9 月之前
父节点
当前提交
8d80d5baec

+ 1 - 1
src/api/basicResource/compDeptList.js

@@ -29,7 +29,7 @@ export const update = (row) => {
 
 export const remove = (ids) => {
   return request({
-    url: '/api/kd-scientific/remove',
+    url: '/api/kd-scientific/department/remove',
     method: 'delete',
     params: {
       ids

+ 16 - 0
src/components/year-month-select/index.vue

@@ -51,6 +51,7 @@ export default {
       monthList: [],
       year: "",
       month: "",
+      vipYearList: [2025, 2026, 2027]
     };
   },
   watch: {
@@ -68,9 +69,24 @@ export default {
       this.$emit("input", this.formatYearMonth(newVal, this.month));
     },
   },
+  computed: {
+    datePickerOptions() {
+      return {
+        disabledDate: time => {
+          const year = new Date(time).getFullYear();
+          return !this.vipYearList.includes(year);
+        }
+      }
+    }
+  },
   created() {
     this.initMonth();
   },
+  mounted() {
+    // this.year = "2025";
+    // this.month = "08";
+    // this.$emit("input", this.formatYearMonth(this.year, this.month));
+  },
   methods: {
     initMonth() {
       let list = [];

+ 1 - 1
src/views/basic-resource/comp-basic-info/components/comp-info-table.vue

@@ -140,7 +140,7 @@ export default {
           this.loading = false;
           if (data.code == 200) {
             this.$message.success('读取成功!');
-            this.initFormData(data.data);
+            this.getEnterpriseInfoFunc(this.yearAndMonth);
           }
         }).catch(() => {
           this.loading = false;