|
@@ -57,14 +57,17 @@ const getPersonDimensionChartsListApiDimList = async () => {
|
|
|
dataList.dimName = [];
|
|
|
if (data && data.length > 0) {
|
|
|
data.map(it => {
|
|
|
- it.dimensionList.map((item, index) => {
|
|
|
- dataList.dimName.push({
|
|
|
- name: item.dimName,
|
|
|
- id: item.dimId
|
|
|
+ if (it.dimensionList.length > 0) {
|
|
|
+ it.dimensionList.map((item, index) => {
|
|
|
+ dataList.dimName.push({
|
|
|
+ name: item.dimName,
|
|
|
+ id: item.dimId
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
+ console.log(dataList.dimName, "====");
|
|
|
}
|
|
|
};
|
|
|
const radarRefList = ref([]);
|
|
@@ -82,6 +85,7 @@ const getPersonDimensionChartsListApi = async (
|
|
|
let tabIndex = Number(index);
|
|
|
if (code == 200) {
|
|
|
if (data && data.length > 0) {
|
|
|
+ console.log(data);
|
|
|
if (dimensionName && dimId) {
|
|
|
setTimeout(() => {
|
|
|
nextTick(() => {
|
|
@@ -129,10 +133,11 @@ const init = (item, type) => {
|
|
|
barDimEchartsList.type = null;
|
|
|
if (Number(type)) {
|
|
|
nextTick(() => {
|
|
|
+ console.log(item, type, "=====");
|
|
|
radarRefList.value = { ...seachParams.value, type: 1 };
|
|
|
barDimEchartsList.data = item;
|
|
|
barDimEchartsList.type = 1;
|
|
|
- getPersonDimensionChartsListApi();
|
|
|
+ // getPersonDimensionChartsListApi();
|
|
|
getPersonDimensionChartsListApiDimList();
|
|
|
getPersonDimensionChartsRankingApi();
|
|
|
getChartsListApi();
|