fix: eslint fix
This commit is contained in:
parent
fbee1276c1
commit
1c2feafe79
@ -37,7 +37,7 @@ export function fetchEditRetryScene(data: Api.RetryScene.Scene) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** update retry scene status */
|
/** update retry scene status */
|
||||||
export function fetchUpdateSceneStatus(id: number, status: number) {
|
export function fetchUpdateSceneStatus(id: string, status: Api.Common.EnableStatusNumber) {
|
||||||
return request<boolean>({
|
return request<boolean>({
|
||||||
url: `/scene-config/${id}/status/${status}`,
|
url: `/scene-config/${id}/status/${status}`,
|
||||||
method: 'put'
|
method: 'put'
|
||||||
|
@ -89,6 +89,7 @@ interface CardData {
|
|||||||
bottom: { label: string; value: number }[];
|
bottom: { label: string; value: number }[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line complexity
|
||||||
const cardData = computed<CardData[]>(() => [
|
const cardData = computed<CardData[]>(() => [
|
||||||
{
|
{
|
||||||
key: 'retryTask',
|
key: 'retryTask',
|
||||||
|
@ -26,6 +26,7 @@ const { domRef, updateOptions } = useEcharts(() => ({
|
|||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-expect-error 忽略EChart
|
// @ts-expect-error 忽略EChart
|
||||||
axisLine: false,
|
axisLine: false,
|
||||||
type: 'category',
|
type: 'category',
|
||||||
@ -36,6 +37,7 @@ const { domRef, updateOptions } = useEcharts(() => ({
|
|||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-expect-error 忽略EChart
|
// @ts-expect-error 忽略EChart
|
||||||
axisLine: false,
|
axisLine: false,
|
||||||
scale: true,
|
scale: true,
|
||||||
@ -62,8 +64,10 @@ const getData = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateOptions(opts => {
|
updateOptions(opts => {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-expect-error 忽略EChart
|
// @ts-expect-error 忽略EChart
|
||||||
opts.xAxis.data = props.modelValue!.map(item => item.x);
|
opts.xAxis.data = props.modelValue!.map(item => item.x);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-expect-error 忽略EChart
|
// @ts-expect-error 忽略EChart
|
||||||
opts.series[0].data = props.modelValue!.map(item => item.taskTotal);
|
opts.series[0].data = props.modelValue!.map(item => item.taskTotal);
|
||||||
return opts;
|
return opts;
|
||||||
|
Loading…
Reference in New Issue
Block a user