Commit 7f05541f by heshihao

feat: 假数据修改后端返回

parent aa769808
...@@ -278,8 +278,8 @@ export default { ...@@ -278,8 +278,8 @@ export default {
}, },
mounted() { mounted() {
this.initChartMap(); this.initChartMap();
// this.getOverview(); this.getOverview();
// this.getData(); this.getData();
}, },
methods: { methods: {
changeDistrict() { changeDistrict() {
...@@ -308,17 +308,15 @@ export default { ...@@ -308,17 +308,15 @@ export default {
}, },
changeActiveType(val) { changeActiveType(val) {
this.activeType = val; this.activeType = val;
// this.getData(); this.getData();
}, },
async getData() { async getData() {
let res = await api.GetData({ data_time: "", flag: this.activeType }); let res = await api.GetData({ data_time: "", flag: this.activeType });
console.log(res);
this.data_time = res.data_time; this.data_time = res.data_time;
this.scoreList = res.target_data_li; this.scoreList = res.target_data_li;
}, },
async getOverview() { async getOverview() {
let res = await api.Overview({ district_name: "" }); let res = await api.Overview({ district_name: "" });
console.log(res);
if (res.success) { if (res.success) {
} else { } else {
this.nums = res; this.nums = res;
......
...@@ -69,22 +69,22 @@ export default { ...@@ -69,22 +69,22 @@ export default {
project_source: "", project_source: "",
industry_name: "", industry_name: "",
list: [ list: [
{ // {
index: 0, // index: 0,
project_name: "生活用纸1", // project_name: "生活用纸1",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "北京", // investor_district: "北京",
investment_volume: "88", // investment_volume: "88",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
{ // {
index: 1, // index: 1,
project_name: "生活用纸2", // project_name: "生活用纸2",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "南京", // investor_district: "南京",
investment_volume: "18", // investment_volume: "18",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
], ],
id_list: [], id_list: [],
page: 1, page: 1,
...@@ -138,11 +138,11 @@ export default { ...@@ -138,11 +138,11 @@ export default {
industry_name: "", industry_name: "",
project_source: this.project_source, project_source: this.project_source,
}); });
// this.chartPie.setOption({ this.chartPie.setOption({
// series: { series: {
// data: res, data: res,
// }, },
// }); });
}, },
async getList() { async getList() {
let res = await api.ArealProject({ let res = await api.ArealProject({
...@@ -159,17 +159,17 @@ export default { ...@@ -159,17 +159,17 @@ export default {
console.log(res); console.log(res);
if (res.success == 0) { if (res.success == 0) {
this.id_list = []; this.id_list = [];
// this.data_time = ""; this.data_time = "";
// this.list = []; this.list = [];
this.total = 0; this.total = 0;
} else { } else {
// this.list = res.data.map((item, index) => { this.list = res.data.map((item, index) => {
// item.index = index + 1; item.index = index + 1;
// return item; return item;
// }); });
// this.id_list = res.id_list; this.id_list = res.id_list;
// this.data_time = res.data_time; this.data_time = res.data_time;
// this.total = res.size; this.total = res.size;
} }
}, },
goProjectInfo(item) { goProjectInfo(item) {
......
...@@ -68,22 +68,22 @@ export default { ...@@ -68,22 +68,22 @@ export default {
data_time: "2023-11-10", data_time: "2023-11-10",
chartBar: null, chartBar: null,
list: [ list: [
{ // {
index: 0, // index: 0,
project_name: "生活用纸1", // project_name: "生活用纸1",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "北京", // investor_district: "北京",
investment_volume: "88", // investment_volume: "88",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
{ // {
index: 1, // index: 1,
project_name: "生活用纸2", // project_name: "生活用纸2",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "南京", // investor_district: "南京",
investment_volume: "18", // investment_volume: "18",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
], ],
id_list: [], id_list: [],
page: 1, page: 1,
...@@ -146,11 +146,11 @@ export default { ...@@ -146,11 +146,11 @@ export default {
industry_name: "", industry_name: "",
project_source: "", project_source: "",
}); });
// this.chartBar.setOption({ this.chartBar.setOption({
// series: { series: {
// data: res, data: res,
// }, },
// }); });
}, },
async getList() { async getList() {
let res = await api.ArealProject({ let res = await api.ArealProject({
...@@ -166,16 +166,16 @@ export default { ...@@ -166,16 +166,16 @@ export default {
}); });
if (res.success == 0) { if (res.success == 0) {
this.id_list = []; this.id_list = [];
// this.data_time = ""; this.data_time = "";
// this.list = []; this.list = [];
this.total = 0; this.total = 0;
} else { } else {
// this.list = res.data.map((item, index) => { this.list = res.data.map((item, index) => {
// item.index = index + 1; item.index = index + 1;
// return item; return item;
// }); });
this.id_list = res.id_list; this.id_list = res.id_list;
// this.data_time = res.data_time; this.data_time = res.data_time;
this.total = res.size; this.total = res.size;
} }
}, },
......
...@@ -67,22 +67,22 @@ export default { ...@@ -67,22 +67,22 @@ export default {
data_time: "2023-11-10", data_time: "2023-11-10",
chartPie: null, chartPie: null,
list: [ list: [
{ // {
index: 0, // index: 0,
project_name: "生活用纸1", // project_name: "生活用纸1",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "北京", // investor_district: "北京",
investment_volume: "88", // investment_volume: "88",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
{ // {
index: 1, // index: 1,
project_name: "生活用纸2", // project_name: "生活用纸2",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "南京", // investor_district: "南京",
investment_volume: "18", // investment_volume: "18",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
], ],
id_list: [], id_list: [],
page: 1, page: 1,
...@@ -143,11 +143,11 @@ export default { ...@@ -143,11 +143,11 @@ export default {
industry_name: "", industry_name: "",
project_source: "", project_source: "",
}); });
// this.chartPie.setOption({ this.chartPie.setOption({
// series: { series: {
// data: res, data: res,
// }, },
// }); });
}, },
async getList() { async getList() {
let res = await api.ArealProject({ let res = await api.ArealProject({
...@@ -161,20 +161,19 @@ export default { ...@@ -161,20 +161,19 @@ export default {
page: this.page, page: this.page,
per_page: this.per_page, per_page: this.per_page,
}); });
console.log(res);
if (res.success == 0) { if (res.success == 0) {
this.id_list = []; this.id_list = [];
// this.data_time = ""; this.data_time = "";
// this.list = []; this.list = [];
this.total = 0; this.total = 0;
} else { } else {
// this.list = res.data.map((item, index) => { this.list = res.data.map((item, index) => {
// item.index = index + 1; item.index = index + 1;
// return item; return item;
// }); });
this.id_list = res.id_list; this.id_list = res.id_list;
// this.data_time = res.data_time; this.data_time = res.data_time;
this.total = res.size; this.total = res.size;
} }
}, },
......
...@@ -69,22 +69,22 @@ export default { ...@@ -69,22 +69,22 @@ export default {
chartPie: null, chartPie: null,
chartBar: null, chartBar: null,
list: [ list: [
{ // {
index: 0, // index: 0,
project_name: "生活用纸1", // project_name: "生活用纸1",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "北京", // investor_district: "北京",
investment_volume: "88", // investment_volume: "88",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
{ // {
index: 1, // index: 1,
project_name: "生活用纸2", // project_name: "生活用纸2",
industry: "生活用纸", // industry: "生活用纸",
investor_district: "南京", // investor_district: "南京",
investment_volume: "18", // investment_volume: "18",
project_type: "生活用纸", // project_type: "生活用纸",
}, // },
], ],
id_list: [], id_list: [],
flag: 4, flag: 4,
...@@ -99,20 +99,20 @@ export default { ...@@ -99,20 +99,20 @@ export default {
watch: { watch: {
district(newV, oldV) { district(newV, oldV) {
console.log(newV); console.log(newV);
// this.getData(); this.getData();
// this.getList(); this.getList();
}, },
time1(newV, oldV) { time1(newV, oldV) {
console.log(newV); console.log(newV);
if (newV && this.time2 != "") { if (newV && this.time2 != "") {
// this.getData(); this.getData();
// this.getList(); this.getList();
} }
}, },
time2(newV, oldV) { time2(newV, oldV) {
if (newV && this.time1 != "") { if (newV && this.time1 != "") {
// this.getData(); this.getData();
// this.getList(); this.getList();
} }
}, },
}, },
...@@ -120,8 +120,8 @@ export default { ...@@ -120,8 +120,8 @@ export default {
console.log(this.cycle); console.log(this.cycle);
this.$nextTick(() => { this.$nextTick(() => {
this.initChartBar(); this.initChartBar();
// this.getData(); this.getData();
// this.getList(); this.getList();
}); });
}, },
methods: { methods: {
...@@ -145,7 +145,6 @@ export default { ...@@ -145,7 +145,6 @@ export default {
industry_name: this.industry_name, industry_name: this.industry_name,
project_source: "", project_source: "",
}); });
console.log(res);
if (this.flag == 4) { if (this.flag == 4) {
let yAxis = res.map((item) => { let yAxis = res.map((item) => {
return item.name; return item.name;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-tab-pane label="对接库" name="onLine"> </el-tab-pane> <el-tab-pane label="对接库" name="onLine"> </el-tab-pane>
<el-tab-pane label="签约库" name="contract"></el-tab-pane> <el-tab-pane label="签约库" name="contract"></el-tab-pane>
<el-tab-pane label="开工库" name="suspend"></el-tab-pane> <el-tab-pane label="开工库" name="suspend"></el-tab-pane>
<div > <div>
<ul class="option"> <ul class="option">
<li> <li>
<label for="" class="five">项目名称 :</label> <label for="" class="five">项目名称 :</label>
......
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