|
@@ -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;
|
|
|
// 设置表格数据
|