Commit ba352213 by heshihao

feat: 平台修改

parent cd261a04
......@@ -112,44 +112,69 @@
<div class="other">
<p>总建筑面积</p>
<p>
<span>{{ areaList.build_total_area }}</span
>
<!-- TODO需要放开 -->
<!-- <span>{{ areaList.build_total_area }}</span> -->
<span>{{ 11 }}</span>
</p>
<p>
同比
<span v-if="areaList.total_area_rate == 0" class="zero">{{ areaList.total_area_rate }}%</span>
<!-- TODO需要放开 -->
<!-- <span v-if="areaList.total_area_rate == 0" class="zero">{{ areaList.total_area_rate }}%</span>
<span v-if="areaList.total_area_rate > 0" class="add">{{ areaList.total_area_rate }}%</span>
<img v-if="areaList.total_area_rate > 0" src="@/assets/images/resources/icon-red.png" alt="" />
<span v-if="areaList.total_area_rate < 0" class="dec">{{ areaList.total_area_rate }}%</span>
<img v-if="areaList.total_area_rate < 0" src="@/assets/images/resources/icon-green.png" alt="" /> -->
<span v-if="areaList.total_area_rate == 0" class="zero">{{ 20 }}%</span>
<span v-if="areaList.total_area_rate > 0" class="add">{{ 30 }}%</span>
<img v-if="areaList.total_area_rate > 0" src="@/assets/images/resources/icon-red.png" alt="" />
<span v-if="areaList.total_area_rate < 0" class="dec">{{ 10 }}%</span>
<img v-if="areaList.total_area_rate < 0" src="@/assets/images/resources/icon-green.png" alt="" />
</p>
</div>
<div class="other">
<p>总闲置面积</p>
<p>
<span>{{ areaList.build_empty_area }}</span
>
<!-- TODO需要放开 -->
<!-- <span>{{ areaList.build_empty_area }}</span> -->
<span>{{ 20 }}</span>
</p>
<p>
同比
<span v-if="areaList.build_empty_rate == 0" class="zero">{{ areaList.build_empty_rate }}%</span>
<!-- TODO需要放开 -->
<!-- <span v-if="areaList.build_empty_rate == 0" class="zero">{{ areaList.build_empty_rate }}%</span>
<span v-if="areaList.build_empty_rate > 0" class="add">{{ areaList.build_empty_rate }}%</span>
<img v-if="areaList.build_empty_rate > 0" src="@/assets/images/resources/icon-red.png" alt="" />
<span v-if="areaList.build_empty_rate < 0" class="dec">{{ areaList.build_empty_rate }}%</span>
<img v-if="areaList.build_empty_rate < 0" src="@/assets/images/resources/icon-green.png" alt="" /> -->
<span v-if="areaList.build_empty_rate == 0" class="zero">{{ 30 }}%</span>
<span v-if="areaList.build_empty_rate > 0" class="add">{{ 80 }}%</span>
<img v-if="areaList.build_empty_rate > 0" src="@/assets/images/resources/icon-red.png" alt="" />
<span v-if="areaList.build_empty_rate < 0" class="dec">{{ 70 }}%</span>
<img v-if="areaList.build_empty_rate < 0" src="@/assets/images/resources/icon-green.png" alt="" />
</p>
</div>
<div class="other">
<p>闲置率</p>
<p>
<span>{{ areaList.current_build_empty_rate }}%</span>
<!-- TODO需要放开 -->
<!-- <span>{{ areaList.current_build_empty_rate }}%</span> -->
<span>{{ 78 }}%</span>
</p>
<p>
同比
<span v-if="areaList.build_rate == 0" class="zero">{{ areaList.build_rate }}%</span>
<!-- TODO需要放开 -->
<!-- <span v-if="areaList.build_rate == 0" class="zero">{{ areaList.build_rate }}%</span>
<span v-if="areaList.build_rate > 0" class="add">{{ areaList.build_rate }}%</span>
<img v-if="areaList.build_rate > 0" src="@/assets/images/resources/icon-red.png" alt="" />
<span v-if="areaList.build_rate < 0" class="dec">{{ areaList.build_rate }}%</span>
<img v-if="areaList.build_rate < 0" src="@/assets/images/resources/icon-green.png" alt="" /> -->
<span v-if="areaList.build_rate == 0" class="zero">{{ 30 }}%</span>
<span v-if="areaList.build_rate > 0" class="add">{{ 20 }}%</span>
<img v-if="areaList.build_rate > 0" src="@/assets/images/resources/icon-red.png" alt="" />
<span v-if="areaList.build_rate < 0" class="dec">{{ 40 }}%</span>
<img v-if="areaList.build_rate < 0" src="@/assets/images/resources/icon-green.png" alt="" />
</p>
</div>
......@@ -835,7 +860,8 @@ export default {
});
}
this.upDataChartBar();
// TODO 后续需要放开
// this.upDataChartBar();
},
// 更改地区选项
changeActive(district) {
......@@ -1531,7 +1557,19 @@ export default {
return str;
},
},
data: [],
data: [
"满城镇",
"南韩村镇",
"大册营镇",
"神星镇",
"方顺桥镇",
"于家庄乡",
"要庄乡",
"石井乡",
"坨南乡",
"刘家台乡",
"白龙乡",
],
},
yAxis: [
{
......@@ -1611,6 +1649,7 @@ export default {
},
yAxisIndex: 1,
color: ["#78a3ff "],
data: [1, 2, 3, 4, 5, 6, 5, 6, 3, 2, 1],
},
{
type: "bar",
......@@ -1624,6 +1663,7 @@ export default {
},
},
color: ["#ff7272"],
data: [12, 21, 32, 41, 52, 65, 53, 61, 31, 21, 11],
},
{
type: "bar",
......
......@@ -135,7 +135,7 @@
非固投到位资金完成情况
</li>
</ul>
<div style="margin-top:20px;">
<div>
<table>
<tr>
<th width="50">排名</th>
......@@ -193,16 +193,83 @@ export default {
data() {
return {
data_time: "",
scoreList: [],
scoreList: [
{
name: "满城镇",
target: "100",
data: "90",
value: "90",
},
{
name: "南韩村镇",
target: "100",
data: "80",
value: "80",
},
{
name: "大册营镇",
target: "100",
data: "70",
value: "70",
},
{
name: "神星镇",
target: "100",
data: "60",
value: "60",
},
{
name: "方顺桥镇",
target: "100",
data: "50",
value: "50",
},
{
name: "于家庄乡",
target: "100",
data: "40",
value: "40",
},
{
name: "要庄乡",
target: "100",
data: "30",
value: "30",
},
{
name: "石井乡",
target: "100",
data: "20",
value: "20",
},
{
name: "坨南乡",
target: "100",
data: "10",
value: "10",
},
{
name: "刘家台乡",
target: "100",
data: "9",
value: "9",
},
{
name: "白龙乡",
target: "100",
data: "8",
value: "8",
},
],
nums: {
project_obj_count1: 0,
project_obj_count2: 0,
project_obj_count3: 0,
project_obj_count1: 2,
project_obj_count2: 2,
project_obj_count3: 2,
},
nums2: {
project_obj_count1: 0,
project_obj_count2: 0,
project_obj_count3: 0,
project_obj_count1: 2,
project_obj_count2: 2,
project_obj_count3: 2,
},
chartMap: null,
district: "晋城市",
......@@ -211,8 +278,8 @@ export default {
},
mounted() {
this.initChartMap();
this.getOverview();
this.getData();
// this.getOverview();
// this.getData();
},
methods: {
changeDistrict() {
......@@ -241,7 +308,7 @@ export default {
},
changeActiveType(val) {
this.activeType = val;
this.getData();
// this.getData();
},
async getData() {
let res = await api.GetData({ data_time: "", flag: this.activeType });
......
......@@ -63,12 +63,29 @@ import api from "@/api/resources/project";
export default {
data() {
return {
data_time: "",
data_time: "2023-11-10",
chartPie: null,
flag: 1,
project_source: "",
industry_name: "",
list: [],
list: [
{
index: 0,
project_name: "生活用纸1",
industry: "生活用纸",
investor_district: "北京",
investment_volume: "88",
project_type: "生活用纸",
},
{
index: 1,
project_name: "生活用纸2",
industry: "生活用纸",
investor_district: "南京",
investment_volume: "18",
project_type: "生活用纸",
},
],
id_list: [],
page: 1,
per_page: 9,
......@@ -121,11 +138,11 @@ export default {
industry_name: "",
project_source: this.project_source,
});
this.chartPie.setOption({
series: {
data: res,
},
});
// this.chartPie.setOption({
// series: {
// data: res,
// },
// });
},
async getList() {
let res = await api.ArealProject({
......@@ -142,17 +159,17 @@ export default {
console.log(res);
if (res.success == 0) {
this.id_list = [];
this.data_time = "";
this.list = [];
// this.data_time = "";
// this.list = [];
this.total = 0;
} else {
this.list = res.data.map((item, index) => {
item.index = index + 1;
return item;
});
this.id_list = res.id_list;
this.data_time = res.data_time;
this.total = res.size;
// this.list = res.data.map((item, index) => {
// item.index = index + 1;
// return item;
// });
// this.id_list = res.id_list;
// this.data_time = res.data_time;
// this.total = res.size;
}
},
goProjectInfo(item) {
......@@ -241,7 +258,12 @@ export default {
},
// selectedMode: "single",
minAngle: 0,
data: [],
data: [
{ name: "满城镇", value: 1 },
{ name: "南韩村镇", value: 1 },
{ name: "大册营镇", value: 1 },
{ name: "神星镇", value: 1 },
],
},
],
};
......
......@@ -65,9 +65,26 @@ import api from "@/api/resources/project";
export default {
data() {
return {
data_time: "",
data_time: "2023-11-10",
chartBar: null,
list: [],
list: [
{
index: 0,
project_name: "生活用纸1",
industry: "生活用纸",
investor_district: "北京",
investment_volume: "88",
project_type: "生活用纸",
},
{
index: 1,
project_name: "生活用纸2",
industry: "生活用纸",
investor_district: "南京",
investment_volume: "18",
project_type: "生活用纸",
},
],
id_list: [],
page: 1,
per_page: 9,
......@@ -129,11 +146,11 @@ export default {
industry_name: "",
project_source: "",
});
this.chartBar.setOption({
series: {
data: res,
},
});
// this.chartBar.setOption({
// series: {
// data: res,
// },
// });
},
async getList() {
let res = await api.ArealProject({
......@@ -149,16 +166,16 @@ export default {
});
if (res.success == 0) {
this.id_list = [];
this.data_time = "";
this.list = [];
// this.data_time = "";
// this.list = [];
this.total = 0;
} else {
this.list = res.data.map((item, index) => {
item.index = index + 1;
return item;
});
// this.list = res.data.map((item, index) => {
// item.index = index + 1;
// return item;
// });
this.id_list = res.id_list;
this.data_time = res.data_time;
// this.data_time = res.data_time;
this.total = res.size;
}
},
......@@ -262,7 +279,7 @@ export default {
//柱形图圆角,初始化效果
barBorderRadius: [19, 19, 0, 0],
},
// data: ["10", "24", "14", "13", "17", "16"],
data: ["10", "24", "14", "13", "17", "16"],
},
],
};
......
......@@ -64,9 +64,26 @@ import api from "@/api/resources/project";
export default {
data() {
return {
data_time: "",
data_time: "2023-11-10",
chartPie: null,
list: [],
list: [
{
index: 0,
project_name: "生活用纸1",
industry: "生活用纸",
investor_district: "北京",
investment_volume: "88",
project_type: "生活用纸",
},
{
index: 1,
project_name: "生活用纸2",
industry: "生活用纸",
investor_district: "南京",
investment_volume: "18",
project_type: "生活用纸",
},
],
id_list: [],
page: 1,
per_page: 9,
......@@ -126,11 +143,11 @@ export default {
industry_name: "",
project_source: "",
});
this.chartPie.setOption({
series: {
data: res,
},
});
// this.chartPie.setOption({
// series: {
// data: res,
// },
// });
},
async getList() {
let res = await api.ArealProject({
......@@ -148,16 +165,16 @@ export default {
if (res.success == 0) {
this.id_list = [];
this.data_time = "";
this.list = [];
// this.data_time = "";
// this.list = [];
this.total = 0;
} else {
this.list = res.data.map((item, index) => {
item.index = index + 1;
return item;
});
// this.list = res.data.map((item, index) => {
// item.index = index + 1;
// return item;
// });
this.id_list = res.id_list;
this.data_time = res.data_time;
// this.data_time = res.data_time;
this.total = res.size;
}
},
......
......@@ -65,10 +65,27 @@ import api from "@/api/resources/project";
export default {
data() {
return {
data_time: "",
data_time: "2023-11-10",
chartPie: null,
chartBar: null,
list: [],
list: [
{
index: 0,
project_name: "生活用纸1",
industry: "生活用纸",
investor_district: "北京",
investment_volume: "88",
project_type: "生活用纸",
},
{
index: 1,
project_name: "生活用纸2",
industry: "生活用纸",
investor_district: "南京",
investment_volume: "18",
project_type: "生活用纸",
},
],
id_list: [],
flag: 4,
page: 1,
......@@ -82,20 +99,20 @@ export default {
watch: {
district(newV, oldV) {
console.log(newV);
this.getData();
this.getList();
// this.getData();
// this.getList();
},
time1(newV, oldV) {
console.log(newV);
if (newV && this.time2 != "") {
this.getData();
this.getList();
// this.getData();
// this.getList();
}
},
time2(newV, oldV) {
if (newV && this.time1 != "") {
this.getData();
this.getList();
// this.getData();
// this.getList();
}
},
},
......@@ -103,8 +120,8 @@ export default {
console.log(this.cycle);
this.$nextTick(() => {
this.initChartBar();
this.getData();
this.getList();
// this.getData();
// this.getList();
});
},
methods: {
......@@ -379,6 +396,7 @@ export default {
//柱形图圆角,初始化效果
barBorderRadius: [0, 10, 10, 0],
},
data: [1, 2, 3, 4, 5],
},
],
};
......
......@@ -55,10 +55,7 @@ export default {
async getData() {
let res = await api.StatisticShanxiData({
flag: 1,
data_time:
this.time1 != "" && this.time2 != ""
? this.time1 + "年" + this.time2 + "月"
: "",
data_time: this.time1 != "" && this.time2 != "" ? this.time1 + "年" + this.time2 + "月" : "",
});
if (res.success) {
} else {
......@@ -85,7 +82,19 @@ export default {
console.log(data2);
this.chartBar1.setOption({
xAxis: {
data: xData,
data: [
"满城镇",
"南韩村镇",
"大册营镇",
"神星镇",
"方顺桥镇",
"于家庄乡",
"要庄乡",
"石井乡",
"坨南乡",
"刘家台乡",
"白龙乡",
],
},
series: {
data: data,
......@@ -93,7 +102,19 @@ export default {
});
this.chartBar2.setOption({
xAxis: {
data: xData2,
data: [
"满城镇",
"南韩村镇",
"大册营镇",
"神星镇",
"方顺桥镇",
"于家庄乡",
"要庄乡",
"石井乡",
"坨南乡",
"刘家台乡",
"白龙乡",
],
},
series: {
data: data2,
......@@ -132,14 +153,7 @@ export default {
trigger: "axis",
formatter: function(param) {
console.log(param);
return (
param[0].marker +
param[0].name +
"<br />" +
"签约金额:" +
param[0].value +
"亿元"
);
return param[0].marker + param[0].name + "<br />" + "签约金额:" + param[0].value + "亿元";
},
},
xAxis: {
......
......@@ -54,10 +54,7 @@ export default {
async getData() {
let res = await api.StatisticShanxiData({
flag: 2,
data_time:
this.time1 != "" && this.time2 != ""
? this.time1 + "年" + this.time2 + "月"
: "",
data_time: this.time1 != "" && this.time2 != "" ? this.time1 + "年" + this.time2 + "月" : "",
});
if (res.success) {
} else {
......@@ -82,7 +79,19 @@ export default {
console.log(data2);
this.chartBar1.setOption({
xAxis: {
data: xData,
data: [
"满城镇",
"南韩村镇",
"大册营镇",
"神星镇",
"方顺桥镇",
"于家庄乡",
"要庄乡",
"石井乡",
"坨南乡",
"刘家台乡",
"白龙乡",
],
},
series: {
data: data,
......@@ -90,7 +99,19 @@ export default {
});
this.chartBar2.setOption({
xAxis: {
data: xData2,
data: [
"满城镇",
"南韩村镇",
"大册营镇",
"神星镇",
"方顺桥镇",
"于家庄乡",
"要庄乡",
"石井乡",
"坨南乡",
"刘家台乡",
"白龙乡",
],
},
series: {
data: data2,
......@@ -129,14 +150,7 @@ export default {
trigger: "axis",
formatter: function(param) {
console.log(param);
return (
param[0].marker +
param[0].name +
"<br />" +
"计划投资额:" +
param[0].value +
"亿元"
);
return param[0].marker + param[0].name + "<br />" + "计划投资额:" + param[0].value + "亿元";
},
},
xAxis: {
......
......@@ -54,10 +54,7 @@ export default {
async getData() {
let res = await api.StatisticShanxiData({
flag: 3,
data_time:
this.time1 != "" && this.time2 != ""
? this.time1 + "年" + this.time2 + "月"
: "",
data_time: this.time1 != "" && this.time2 != "" ? this.time1 + "年" + this.time2 + "月" : "",
});
if (res.success) {
} else {
......@@ -85,7 +82,19 @@ export default {
console.log(data2);
this.chartBar1.setOption({
xAxis: {
data: xData,
data: [
"满城镇",
"南韩村镇",
"大册营镇",
"神星镇",
"方顺桥镇",
"于家庄乡",
"要庄乡",
"石井乡",
"坨南乡",
"刘家台乡",
"白龙乡",
],
},
series: {
data: data,
......@@ -93,7 +102,19 @@ export default {
});
this.chartBar2.setOption({
xAxis: {
data: xData2,
data: [
"满城镇",
"南韩村镇",
"大册营镇",
"神星镇",
"方顺桥镇",
"于家庄乡",
"要庄乡",
"石井乡",
"坨南乡",
"刘家台乡",
"白龙乡",
],
},
series: {
data: data2,
......@@ -132,14 +153,7 @@ export default {
trigger: "axis",
formatter: function(param) {
console.log(param);
return (
param[0].marker +
param[0].name +
"<br />" +
"固投资金到位:" +
param[0].value +
"亿元"
);
return param[0].marker + param[0].name + "<br />" + "固投资金到位:" + param[0].value + "亿元";
},
},
xAxis: {
......
......@@ -83,10 +83,7 @@ export default {
methods: {
async getData() {
let res = await api.StatisticJcData({
data_time:
this.time1 == "" || this.time2 == ""
? ""
: [String(this.time1), ...this.time2.split("-"), ""],
data_time: this.time1 == "" || this.time2 == "" ? "" : [String(this.time1), ...this.time2.split("-"), ""],
});
if (res.success) {
} else {
......@@ -761,14 +758,7 @@ export default {
show: "true",
trigger: "axis",
formatter: function(param) {
return (
param[0].marker +
" " +
param[0].data.name +
"<br />综合得分:" +
param[0].data.value +
"分"
);
return param[0].marker + " " + param[0].data.name + "<br />综合得分:" + param[0].data.value + "分";
},
},
xAxis: {
......
......@@ -454,14 +454,14 @@
{{ per_page * (page - 1) + scope.row.index }}
</template>
</el-table-column>
<el-table-column
<!-- <el-table-column
:show-overflow-tooltip="true"
prop="distribute_condition"
label="分发情况"
v-if="activeName == 'plan'"
fixed
>
</el-table-column>
</el-table-column> -->
<el-table-column :show-overflow-tooltip="true" prop="project_name" label="项目名称" fixed>
<template slot-scope="scope">
<!-- <div @click="goArchives(scope.row)" style="cursor:pointer"> -->
......@@ -582,13 +582,13 @@
width="140"
>
</el-table-column>
<el-table-column
<!-- <el-table-column
:show-overflow-tooltip="true"
prop="project_to_area"
class-name="long-text"
:label="'拟落地' + '\r\n' + '区域'"
>
</el-table-column>
</el-table-column> -->
<el-table-column :show-overflow-tooltip="true" prop="development_area" label="开发区"> </el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="project_year" label="项目年份"> </el-table-column>
<el-table-column
......
......@@ -13,9 +13,9 @@
<div class="archives" ref="archives">
<div class="title-weight">基本信息</div>
<div class="flex-box flex-box-3">
<p>
<!-- <p>
<span class="label">上传部门:{{ editInfo.upload_unity }}</span>
</p>
</p> -->
<p>
<span class="label">上传人:{{ editInfo.upload_people }}</span>
</p>
......
......@@ -281,19 +281,35 @@ export default {
return {
activeName: "track",
stalker: {
end_num: 0,
job_num: 0,
new_value_num: 0,
revenue_num: 0,
sign_num: 0,
stalker_num1: 0,
stalker_num2: 0,
stalker_num3: 0,
start_num: 0,
end_num: 2,
job_num: 3,
new_value_num: 3,
revenue_num: 3,
sign_num: 1,
stalker_num1: 2,
stalker_num2: 3,
stalker_num3: 1,
start_num: 2,
},
selectListId: [],
showExport: false,
list: [],
list: [
{
project_name: "造纸项目",
district: "满城镇",
development_area: "满城镇",
attract_name: "商务局",
investor_name: "XXX有限公司",
investor_district: "北京",
industry: "生活用纸",
investment_volume: "100",
construction_content: "XXXX",
project_address: "满城镇",
project_progress: "对接中",
project_problem: "无",
project_year: "XXXX",
},
],
page: 1,
per_page: 8,
total: 0,
......@@ -313,8 +329,8 @@ export default {
this.permission = localStorage.getItem("jc_funcList").split(",");
this.$bus.$emit("setActive", "resources");
this.district = this.$route.query.district;
this.getProjectStalker();
this.getList();
// this.getProjectStalker();
// this.getList();
});
},
mounted() {},
......@@ -346,17 +362,17 @@ export default {
per_page: this.per_page,
});
console.log(res);
if (res.success == 0) {
this.list = [];
this.total = 0;
this.page = 1;
} else {
this.list = res.data.map((item, index) => {
item.index = index + 1;
return item;
});
this.total = res.size;
}
// if (res.success == 0) {
// this.list = [];
// this.total = 0;
// this.page = 1;
// } else {
// this.list = res.data.map((item, index) => {
// item.index = index + 1;
// return item;
// });
// this.total = res.size;
// }
},
async getProjectStalker() {
let res = await api.ProjectStalker({ district: this.district });
......
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