Commit 6989bdf6 authored by xinzhedeai's avatar xinzhedeai

fix: 列表接口请求问题处理

parent 3e0db5e7
...@@ -812,14 +812,14 @@ var reqApis = function () { ...@@ -812,14 +812,14 @@ var reqApis = function () {
rightBtn: [ rightBtn: [
{ {
type: 'primary', icon: 'el-icon-refresh', name: '刷新', 'callback': function () { type: 'primary', icon: 'el-icon-refresh', name: '刷新', 'callback': function () {
this.loadData() this.loadData()
}
},
{
type: 'success', icon: 'el-icon-s-data', name: '图表', 'callback': function () {
reqApi.common.openCharts.call(this);
} }
}, },
// {
// type: 'success', icon: 'el-icon-s-data', name: '图表', 'callback': function () {
// reqApi.common.openCharts.call(this);
// }
// },
{ {
type: 'warning', icon: 'el-icon-document', name: '导出', 'callback': function () { type: 'warning', icon: 'el-icon-document', name: '导出', 'callback': function () {
reqApi.common.toExports.call(this); reqApi.common.toExports.call(this);
...@@ -843,6 +843,8 @@ var reqApis = function () { ...@@ -843,6 +843,8 @@ var reqApis = function () {
//this.Dict.baseInfo["jctime"].table = partTableStatus; //this.Dict.baseInfo["jctime"].table = partTableStatus;
this.table.page = 1; this.table.page = 1;
this.loadData() this.loadData()
this.initChart1();
this.getCanvasData();
} }
}, },
{ {
......
...@@ -492,7 +492,7 @@ export default { ...@@ -492,7 +492,7 @@ export default {
// 重构后的统一绘制入口(通过配置驱动) // 重构后的统一绘制入口(通过配置驱动)
drawAllImages() { drawAllImages() {
// 1. 绘制背景图 // 1. 绘制背景图
this.drawBackground(); this.drawBackground();
// 2. 绘制po.png(遍历配置数组) // 2. 绘制po.png(遍历配置数组)
...@@ -933,13 +933,14 @@ export default { ...@@ -933,13 +933,14 @@ export default {
}); });
} }
}, },
loadData: function () { // loadData: function () {
// console.log(this.form, "form"); // // console.log(this.form, "form");
this.initChart1(); // // this.initChart1();
this.getCanvasData(); // // this.getCanvasData();
return reqApi.common.getRequst; // return reqApi.common.getRequst;
}, // },
loadData:reqApi.common.getRequst,
cancelForm() { cancelForm() {
this.form.visible = false; this.form.visible = false;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment