diff --git a/frontend/src/views/chart/components/drag-item/DrillItem.vue b/frontend/src/views/chart/components/drag-item/DrillItem.vue
new file mode 100644
index 0000000000..9aa7192cc3
--- /dev/null
+++ b/frontend/src/views/chart/components/drag-item/DrillItem.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ {{ $t('chart.delete') }}
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue
index 1c956bafff..f4ffa1f64d 100644
--- a/frontend/src/views/chart/view/ChartEdit.vue
+++ b/frontend/src/views/chart/view/ChartEdit.vue
@@ -246,10 +246,10 @@
animation="300"
:move="onMove"
class="drag-block-style"
- @add="addXaxis"
+ @add="addDrill"
>
-
+
@@ -555,6 +555,7 @@ import DimensionItem from '../components/drag-item/DimensionItem'
import QuotaItem from '../components/drag-item/QuotaItem'
import FilterItem from '../components/drag-item/FilterItem'
import ChartDragItem from '../components/drag-item/ChartDragItem'
+import DrillItem from '../components/drag-item/DrillItem'
import ResultFilterEditor from '../components/filter/ResultFilterEditor'
import ChartComponent from '../components/ChartComponent'
import bus from '@/utils/bus'
@@ -616,7 +617,8 @@ export default {
QuotaItem,
DimensionItem,
draggable,
- ChartDragItem
+ ChartDragItem,
+ DrillItem
},
props: {
param: {
@@ -1391,6 +1393,18 @@ export default {
stackItemRemove(item) {
this.view.extStack.splice(item.index, 1)
this.save(true)
+ },
+ dillItemChange(item) {
+ this.save(true)
+ },
+ drillItemRemove(item) {
+ this.view.drillFields.splice(item.index, 1)
+ this.save(true)
+ },
+ addDrill(e) {
+ this.dragCheckType(this.view.drillFields, 'd')
+ this.dragMoveDuplicate(this.view.drillFields, e)
+ this.save(true)
}
}
}