Bläddra i källkod

企业贸易数据,部门信息修改

gks 1 år sedan
förälder
incheckning
8690384a1f

+ 8 - 0
src/api/portal/ENTERPRISETRADEPERFORMANCE/ENTERPRISETRADEPERFORMANCE.js

@@ -52,6 +52,14 @@ export function getDeptList(data) {
   })
   })
 }
 }
 
 
+// 获取已有基础数据的部门列表
+export function getBaseDeptList(data) {
+  return request({
+    url: '/GARDENBASEDATA/list',
+    method: 'get',
+  })
+}
+
 // 删除企业贸易绩效数据(每个月填报)
 // 删除企业贸易绩效数据(每个月填报)
 export function delENTERPRISETRADEPERFORMANCE(id) {
 export function delENTERPRISETRADEPERFORMANCE(id) {
   return request({
   return request({

+ 5 - 3
src/views/ENTERPRISETRADEPERFORMANCE/index.vue

@@ -245,7 +245,7 @@
 <script>
 <script>
 import {
 import {
   listENTERPRISETRADEPERFORMANCE,
   listENTERPRISETRADEPERFORMANCE,
-  getDeptList,
+  getBaseDeptList,
   getENTERPRISETRADEPERFORMANCE,
   getENTERPRISETRADEPERFORMANCE,
   delENTERPRISETRADEPERFORMANCE,
   delENTERPRISETRADEPERFORMANCE,
   addENTERPRISETRADEPERFORMANCE,
   addENTERPRISETRADEPERFORMANCE,
@@ -509,8 +509,10 @@ export default {
   },
   },
   created() {
   created() {
     this.getList();
     this.getList();
-    getDeptList().then((res) => {
-      this.deptList = res.data;
+    getBaseDeptList().then((res) => {
+      console.log(res);
+      this.deptList = res.rows;
+      console.log(this.deptList);
     });
     });
   },
   },
   methods: {
   methods: {