Commit 6989bdf6 authored by xinzhedeai's avatar xinzhedeai

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

parent 3e0db5e7
......@@ -812,14 +812,14 @@ var reqApis = function () {
rightBtn: [
{
type: 'primary', icon: 'el-icon-refresh', name: '刷新', 'callback': function () {
this.loadData()
}
},
{
type: 'success', icon: 'el-icon-s-data', name: '图表', 'callback': function () {
reqApi.common.openCharts.call(this);
this.loadData()
}
},
// {
// type: 'success', icon: 'el-icon-s-data', name: '图表', 'callback': function () {
// reqApi.common.openCharts.call(this);
// }
// },
{
type: 'warning', icon: 'el-icon-document', name: '导出', 'callback': function () {
reqApi.common.toExports.call(this);
......@@ -843,6 +843,8 @@ var reqApis = function () {
//this.Dict.baseInfo["jctime"].table = partTableStatus;
this.table.page = 1;
this.loadData()
this.initChart1();
this.getCanvasData();
}
},
{
......
......@@ -492,7 +492,7 @@ export default {
// 重构后的统一绘制入口(通过配置驱动)
drawAllImages() {
// 1. 绘制背景图
// 1. 绘制背景图
this.drawBackground();
// 2. 绘制po.png(遍历配置数组)
......@@ -933,13 +933,14 @@ export default {
});
}
},
loadData: function () {
// console.log(this.form, "form");
this.initChart1();
this.getCanvasData();
// loadData: function () {
// // console.log(this.form, "form");
// // this.initChart1();
// // this.getCanvasData();
return reqApi.common.getRequst;
},
// return reqApi.common.getRequst;
// },
loadData:reqApi.common.getRequst,
cancelForm() {
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