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