diff --git a/src/views/copilot/efficiency/options/chipOptions.js b/src/views/copilot/efficiency/options/chipOptions.js index 5642da1..9ef3b4f 100644 --- a/src/views/copilot/efficiency/options/chipOptions.js +++ b/src/views/copilot/efficiency/options/chipOptions.js @@ -1,4 +1,4 @@ -export default ({ + export default ({ titleValue, subtitle, previousSum, @@ -15,7 +15,12 @@ export default ({ top: 0, containLabel: true, }, - tooltip: {}, + tooltip: { + trigger: "item", + extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);', + backgroundColor: '#001829', + borderColor: '#001829', + }, title: { text: titleValue, left: "48%", @@ -62,7 +67,8 @@ export default ({ value: currentSum, name: currentName, tooltip: { - formatter: `${currentName} : ${currentSum}` + formatter: `${currentName}` + + `${currentSum}` }, selected: false, itemStyle: { @@ -87,7 +93,8 @@ export default ({ value:(targetSum - currentSum) === 0 ? 1 : (targetSum - currentSum), name: currentName, tooltip: { - formatter: `${currentName} : ${currentSum}` + formatter: `${currentName}` + + `${currentSum}` }, itemStyle: { color: "transparent" }, label: { show: false }, @@ -111,7 +118,8 @@ export default ({ value: previousSum, name: preName, tooltip: { - formatter: `${preName} : ${previousSum}` + formatter: `${preName}` + + `${previousSum}` }, selected: false, itemStyle: { @@ -136,7 +144,8 @@ export default ({ value:previousSum === 0 ? 1 : 0, name: preName, tooltip: { - formatter: `${preName} : ${previousSum}` + formatter: `${preName}` + + `${previousSum}` }, itemStyle: { color: "transparent" }, label: { show: false }, diff --git a/src/views/copilot/yield/options/double-ring-chart-options.js b/src/views/copilot/yield/options/double-ring-chart-options.js index 617d24d..09432b0 100644 --- a/src/views/copilot/yield/options/double-ring-chart-options.js +++ b/src/views/copilot/yield/options/double-ring-chart-options.js @@ -14,7 +14,12 @@ export default ({ top: 0, containLabel: true, }, - tooltip: {}, + tooltip: { + trigger: "item", + extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);', + backgroundColor: '#001829', + borderColor: '#001829', + }, title: { text: titleValue, left: "48.5%", @@ -62,7 +67,8 @@ export default ({ name: currentName, selected: false, tooltip: { - formatter: `${currentName} : ${currentSum}` + formatter: `${currentName}` + + `${currentSum}` }, itemStyle: { borderJoin: "round", @@ -86,7 +92,8 @@ export default ({ value:(targetSum - currentSum) === 0 ? 1 : (targetSum - currentSum), name: currentName, tooltip: { - formatter: `${currentName} : ${currentSum}` + formatter: `${currentName}` + + `${currentSum}` }, itemStyle: { color: "transparent" }, label: { show: false }, @@ -111,7 +118,8 @@ export default ({ name: preName, selected: false, tooltip: { - formatter: `${preName} : ${previousSum}` + formatter: `${preName}` + + `${previousSum}` }, itemStyle: { borderJoin: "round", @@ -136,7 +144,8 @@ export default ({ value:previousSum === 0 ? 1 : 0, name: preName, tooltip: { - formatter: `${preName} : ${previousSum}` + formatter: `${preName}` + + `${previousSum}` }, itemStyle: { color: "transparent" }, label: { show: false }, diff --git a/src/views/dashboard/charts/ChipYieldChart.vue b/src/views/dashboard/charts/ChipYieldChart.vue index 2b900e5..543d4a6 100644 --- a/src/views/dashboard/charts/ChipYieldChart.vue +++ b/src/views/dashboard/charts/ChipYieldChart.vue @@ -1,7 +1,7 @@ @@ -64,20 +64,20 @@ export default { extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);', backgroundColor: '#001829', borderColor: '#001829', - formatter: params => { - console.log('params', params) - var res = ``; - for (var i = 0, l = params.length; i < l; i++) { - let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : '' - // console.log(item.color, color); - res += - // `` + - `${params[0].axisValueLabel}` + - `${params[i].value ? params[i].value + '片' : 0 + '片'}`; - } - console.log('res',res) - return res; - }, + // formatter: params => { + // console.log('params', params) + // var res = ``; + // for (var i = 0, l = params.length; i < l; i++) { + // let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : '' + // // console.log(item.color, color); + // res += + // // `` + + // `${params[0].axisValueLabel}` + + // `${params[i].value ? params[i].value + '片' : 0 + '片'}`; + // } + // console.log('res',res) + // return res; + // }, }, title: { text: "0%", diff --git a/src/views/produce/data/index.vue b/src/views/produce/data/index.vue index 4b08ea8..63137fd 100644 --- a/src/views/produce/data/index.vue +++ b/src/views/produce/data/index.vue @@ -1,8 +1,8 @@