166 lines
4.9 KiB
JavaScript
166 lines
4.9 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const common_assets = require("../../../common/assets.js");
|
|
const echarts = require("../../../uni_modules/lime-echart/static/echarts.min.js");
|
|
const _sfc_main = {
|
|
name: "zlfx-view",
|
|
data() {
|
|
return {
|
|
option: {
|
|
title: {
|
|
show: false
|
|
},
|
|
legend: {
|
|
show: false
|
|
},
|
|
tooltip: {
|
|
show: true,
|
|
triggerOn: "mousemove"
|
|
},
|
|
radar: {
|
|
indicator: [
|
|
{ name: "市场地位", max: 100 },
|
|
{ name: "技术实力", max: 100 },
|
|
{ name: "品牌价值", max: 100 },
|
|
{ name: "运营效率", max: 100 },
|
|
{ name: "财务健康", max: 100 },
|
|
{ name: "创新能力", max: 100 },
|
|
{ name: "风险控制", max: 100 },
|
|
{ name: "成长潜力", max: 100 }
|
|
],
|
|
shape: "polygon",
|
|
splitNumber: 5,
|
|
axisName: {
|
|
color: "#54555A"
|
|
},
|
|
splitLine: {
|
|
lineStyle: {
|
|
color: ["#CFD2D7"]
|
|
}
|
|
},
|
|
splitArea: {
|
|
areaStyle: {
|
|
color: ["#F4F6FA", "white"]
|
|
}
|
|
},
|
|
axisLine: {
|
|
lineStyle: {
|
|
color: "#CFD2D7"
|
|
}
|
|
}
|
|
},
|
|
series: [
|
|
{
|
|
name: "Beijing",
|
|
type: "radar",
|
|
lineStyle: {
|
|
width: 1
|
|
},
|
|
data: [],
|
|
symbol: "circle",
|
|
symbolSize: 4,
|
|
label: {
|
|
show: true
|
|
},
|
|
itemStyle: {
|
|
color: "#5070DD"
|
|
},
|
|
areaStyle: {
|
|
opacity: 0.1
|
|
}
|
|
}
|
|
]
|
|
}
|
|
};
|
|
},
|
|
props: {
|
|
qualitativeAnalysisInfo: Object,
|
|
//定性分析
|
|
competitivePositionInfo: Object,
|
|
//竞争地位信息
|
|
mainCompetitorsList: Array,
|
|
//主要竞争对手
|
|
industryRankInfo: Object,
|
|
//行业排名数据
|
|
scoreList: Array,
|
|
//
|
|
data: Array
|
|
},
|
|
watch: {
|
|
data(newValue) {
|
|
this.option.series[0].data = newValue;
|
|
this.init();
|
|
}
|
|
},
|
|
methods: {
|
|
async init() {
|
|
const chart = await this.$refs.chartRef.init(echarts);
|
|
common_vendor.index.__f__("log", "at pagesStock/components/zlfx-view/zlfx-view.vue:183", chart);
|
|
chart.setOption(this.option);
|
|
},
|
|
clickIndustryRank() {
|
|
this.$emit("rank");
|
|
}
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_l_echart2 = common_vendor.resolveComponent("l-echart");
|
|
_easycom_l_echart2();
|
|
}
|
|
const _easycom_l_echart = () => "../../../uni_modules/lime-echart/components/l-echart/l-echart.js";
|
|
if (!Math) {
|
|
_easycom_l_echart();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: $props.qualitativeAnalysisInfo
|
|
}, $props.qualitativeAnalysisInfo ? {
|
|
b: common_vendor.t($props.qualitativeAnalysisInfo.core_positioning.one_line_intro)
|
|
} : {}, {
|
|
c: $props.qualitativeAnalysisInfo
|
|
}, $props.qualitativeAnalysisInfo ? {
|
|
d: common_vendor.t($props.qualitativeAnalysisInfo.core_positioning.investment_highlights)
|
|
} : {}, {
|
|
e: $props.qualitativeAnalysisInfo
|
|
}, $props.qualitativeAnalysisInfo ? {
|
|
f: common_vendor.t($props.qualitativeAnalysisInfo.core_positioning.business_model_desc)
|
|
} : {}, {
|
|
g: common_assets._imports_0$10,
|
|
h: $props.industryRankInfo
|
|
}, $props.industryRankInfo ? {
|
|
i: common_vendor.t($props.industryRankInfo.industry_rank),
|
|
j: common_vendor.t($props.industryRankInfo.total_companies)
|
|
} : {}, {
|
|
k: common_vendor.o(($event) => $options.clickIndustryRank()),
|
|
l: common_vendor.f($props.mainCompetitorsList, (item, index, i0) => {
|
|
return {
|
|
a: common_vendor.t(item),
|
|
b: index
|
|
};
|
|
}),
|
|
m: common_assets._imports_1$11,
|
|
n: common_vendor.f($props.scoreList, (item, index, i0) => {
|
|
return {
|
|
a: item.icon,
|
|
b: common_vendor.t(item.title),
|
|
c: common_vendor.n("progress absolute " + item.color),
|
|
d: common_vendor.s("width: " + item.score + "%;"),
|
|
e: common_vendor.t(item.score),
|
|
f: common_vendor.n("item flex " + item.color),
|
|
g: index
|
|
};
|
|
}),
|
|
o: common_vendor.sr("chartRef", "30f547db-0"),
|
|
p: $props.competitivePositionInfo
|
|
}, $props.competitivePositionInfo ? {
|
|
q: common_vendor.t($props.competitivePositionInfo.analysis.competitive_advantages)
|
|
} : {}, {
|
|
r: $props.competitivePositionInfo
|
|
}, $props.competitivePositionInfo ? {
|
|
s: common_vendor.t($props.competitivePositionInfo.analysis.competitive_disadvantages)
|
|
} : {});
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pagesStock/components/zlfx-view/zlfx-view.js.map
|