Merge branch 'dev'
This commit is contained in:
commit
ec572f8f04
@ -53,7 +53,6 @@ import {
|
|||||||
ArrowForward as ArrowForwardIcon,
|
ArrowForward as ArrowForwardIcon,
|
||||||
Planet as PawIcon,
|
Planet as PawIcon,
|
||||||
Search as SearchIcon,
|
Search as SearchIcon,
|
||||||
Filter as FilterIcon
|
|
||||||
} from '@vicons/ionicons5'
|
} from '@vicons/ionicons5'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -81,7 +80,9 @@ import {
|
|||||||
Scale as ScaleIcon,
|
Scale as ScaleIcon,
|
||||||
FitToScreen as FitToScreenIcon,
|
FitToScreen as FitToScreenIcon,
|
||||||
FitToHeight as FitToHeightIcon,
|
FitToHeight as FitToHeightIcon,
|
||||||
FitToWidth as FitToWidthIcon
|
FitToWidth as FitToWidthIcon,
|
||||||
|
Filter as FilterIcon,
|
||||||
|
FilterEdit as FilterEditIcon
|
||||||
} from '@vicons/carbon'
|
} from '@vicons/carbon'
|
||||||
|
|
||||||
const ionicons5 = {
|
const ionicons5 = {
|
||||||
@ -237,7 +238,10 @@ const carbon = {
|
|||||||
ScaleIcon,
|
ScaleIcon,
|
||||||
FitToScreenIcon,
|
FitToScreenIcon,
|
||||||
FitToHeightIcon,
|
FitToHeightIcon,
|
||||||
FitToWidthIcon
|
FitToWidthIcon,
|
||||||
|
// 过滤器
|
||||||
|
FilterIcon,
|
||||||
|
FilterEditIcon
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://www.xicons.org/#/ 还有很多
|
// https://www.xicons.org/#/ 还有很多
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
</n-table>
|
</n-table>
|
||||||
</n-timeline-item>
|
</n-timeline-item>
|
||||||
<n-timeline-item v-show="filterShow" color="#97846c" :title="TimelineTitleEnum.FILTER">
|
<n-timeline-item v-show="filterShow" color="#97846c" :title="TimelineTitleEnum.FILTER">
|
||||||
<n-space vertical>
|
<n-space :size="18" vertical>
|
||||||
<n-text depth="3">点击{{ targetData.filter ? '「编辑」' : '「新增」' }}查看过滤规则</n-text>
|
<n-text depth="3">过滤器将处理接口返回值的「data」字段</n-text>
|
||||||
<chart-data-monaco-editor></chart-data-monaco-editor>
|
<chart-data-monaco-editor></chart-data-monaco-editor>
|
||||||
</n-space>
|
</n-space>
|
||||||
</n-timeline-item>
|
</n-timeline-item>
|
||||||
|
@ -9,22 +9,17 @@
|
|||||||
<p>}</p>
|
<p>}</p>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<n-space justify="end">
|
<n-space justify="end">
|
||||||
<n-button tertiary size="small" @click="delFilter">
|
<n-button type="primary" tertiary size="small" @click="addFilter">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<n-icon>
|
<n-icon>
|
||||||
<trash-icon />
|
<filter-edit-icon />
|
||||||
</n-icon>
|
|
||||||
</template>
|
|
||||||
删除
|
|
||||||
</n-button>
|
|
||||||
<n-button type="info" tertiary size="small" @click="addFilter">
|
|
||||||
<template #icon>
|
|
||||||
<n-icon>
|
|
||||||
<pencil-icon />
|
|
||||||
</n-icon>
|
</n-icon>
|
||||||
</template>
|
</template>
|
||||||
编辑
|
编辑
|
||||||
</n-button>
|
</n-button>
|
||||||
|
<n-button tertiary size="small" @click="delFilter">
|
||||||
|
删除
|
||||||
|
</n-button>
|
||||||
</n-space>
|
</n-space>
|
||||||
</template>
|
</template>
|
||||||
</n-card>
|
</n-card>
|
||||||
@ -82,13 +77,13 @@
|
|||||||
<template #action>
|
<template #action>
|
||||||
<n-space justify="space-between">
|
<n-space justify="space-between">
|
||||||
<div class="go-flex-items-center">
|
<div class="go-flex-items-center">
|
||||||
<n-tag :bordered="false" type="success">
|
<n-tag :bordered="false" type="primary">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<n-icon :component="DocumentTextIcon" />
|
<n-icon :component="DocumentTextIcon" />
|
||||||
</template>
|
</template>
|
||||||
规则
|
规则
|
||||||
</n-tag>
|
</n-tag>
|
||||||
<n-text class="go-ml-2" depth="2">过滤器将对接口返回值的「data」字段进行处理</n-text>
|
<n-text class="go-ml-2" depth="2">过滤器将处理接口返回值的「data」字段</n-text>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<n-space>
|
<n-space>
|
||||||
@ -111,7 +106,8 @@ import { goDialog, toString } from '@/utils'
|
|||||||
import { http } from '@/api/http'
|
import { http } from '@/api/http'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
|
|
||||||
const { PencilIcon, TrashIcon, FilterIcon, DocumentTextIcon } = icon.ionicons5
|
const { DocumentTextIcon } = icon.ionicons5
|
||||||
|
const { FilterIcon, FilterEditIcon } = icon.carbon
|
||||||
const { targetData, chartEditStore } = useTargetData()
|
const { targetData, chartEditStore } = useTargetData()
|
||||||
const { requestDataType } = toRefs(targetData.value.data)
|
const { requestDataType } = toRefs(targetData.value.data)
|
||||||
const { requestOriginUrl } = toRefs(chartEditStore.getRequestGlobalConfig)
|
const { requestOriginUrl } = toRefs(chartEditStore.getRequestGlobalConfig)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user