hbchen 10 ヶ月 前
コミット
6054b7ad85

+ 4 - 2
src/api/api.js

@@ -11,7 +11,8 @@ import {
   baiinfoInterface,
   nationalInterface,
   databankInterface,
-  yongyiInterface
+  yongyiInterface,
+  icpiInterface
 } from './modules/thirdBaseApi';
 
 //手工指标 手工数据 手工数据权限
@@ -114,7 +115,8 @@ export {
   homeInterface,
   businessTripInterence,
   reportVarietyENInterence,
-  yongyiInterface
+  yongyiInterface,
+  icpiInterface
 };
 
 //老接口 研报 ppt等

+ 29 - 1
src/api/modules/thirdBaseApi.js

@@ -777,6 +777,33 @@ const yongyiInterface={
 	},
 }
 
+/* ICPI消费价格指数 */
+const icpiInterface={
+	/**
+	 * 分类列表
+	 * @param {} params 
+	 * @returns 
+	 */
+	classifyList: params => {
+		return http.get('/data_source/icpi/classify/list',params);
+	},
+	/**
+	 * 获取指标列表详情
+	 * BaseFromIcpiClassifyId PageSize CurrentIndex
+	 */
+	dataList: params => {
+		return http.get('/data_source/icpi/index/data',params);
+	},
+	//单个指标数据
+	getTargetDataList:params=>{
+		return http.get('/datamanage/yongyi/single_data',params);
+	},
+	// 搜索
+	getTargetListByName:params=>{
+		return http.get('/datamanage/yongyi/search_list',params);
+	},
+}
+
 export { 
 	lzDataInterface,
 	glDataInterface,
@@ -788,5 +815,6 @@ export {
   baiinfoInterface,
   nationalInterface,
   databankInterface,
-  yongyiInterface
+  yongyiInterface,
+	icpiInterface
 }

+ 3 - 3
src/routes/modules/dataRoutes.js

@@ -81,9 +81,9 @@ export default [
         hidden: true,
       },
       {
-        path: "ICPCconsumption",
-        component: () => import("@/views/dataEntry_manage/thirdBase/icpcConsumption.vue"),
-        name: "ICPC消费价格指数",
+        path: "ICPIconsumption",
+        component: () => import("@/views/dataEntry_manage/thirdBase/icpiConsumption.vue"),
+        name: "ICPI消费价格指数",
         hidden: false,
       },
       {

+ 15 - 2
src/views/dataEntry_manage/thirdBase/icpcConsumption.vue → src/views/dataEntry_manage/thirdBase/icpiConsumption.vue

@@ -84,8 +84,10 @@
 <script>
 import lzTable from "@/components/lzTable.vue";
 import { lzDataInterface } from "@/api/api.js";
+import { icpiInterface } from "@/api/api.js";
+
 export default {
-  name: "icpcConsumption",
+  name: "icpiConsumption",
   components: { lzTable },
   data() {
     return {
@@ -113,6 +115,10 @@ export default {
       select_Unit: "", // 选中的单位
       select_ModifyTime: "", //选中的更新时间
       select_breed: "", // 选中的分类名称
+      pageParams:{
+        PageSize:20,
+        CurrentIndex:1
+      }
     };
   },
   computed: {
@@ -142,8 +148,10 @@ export default {
   methods: {
     /* 获取分类 */
     getClassify() {
+      // icpiInterface
       lzDataInterface.classifyList().then((res) => {
         if (res.Ret !== 200) return;
+        console.log(res);
         this.classifyList = res.Data || [];
         this.select_classify =
           this.select_classify || this.classifyList[0].BreedId;
@@ -155,7 +163,12 @@ export default {
     /* 获取数据 */
     getDataList() {
       this.dataloading = true;
-      lzDataInterface.dataList({BreedId: Number(this.select_classify),Frequency:1}).then((res) => {
+      // icpiInterface.dataList({
+      //   BaseFromIcpiClassifyId: Number(this.select_classify),
+      //   PageSize:this.pageParams.PageSize,
+      //   CurrentIndex:this.pageParams.CurrentIndex
+      // })
+      lzDataInterface.dataList({BaseFromIcpiClassifyId: Number(this.select_classify),Frequency:1}).then((res) => {
         this.rightShow = true;
         if (res.Ret !== 200) return;
         // 设置表格数据