perf: 删除无用依赖
This commit is contained in:
@@ -16,10 +16,8 @@
|
|||||||
"codemirror": "^5.65.1",
|
"codemirror": "^5.65.1",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
"dayjs": "^1.10.5",
|
"dayjs": "^1.10.5",
|
||||||
"dt-sql-parser": "^4.0.0-beta.2.2",
|
|
||||||
"echarts": "^5.1.1",
|
"echarts": "^5.1.1",
|
||||||
"element-plus": "^1.0.2-beta.44",
|
"element-plus": "^1.0.2-beta.44",
|
||||||
"leaflet": "^1.7.1",
|
|
||||||
"lib-flexible": "^0.3.2",
|
"lib-flexible": "^0.3.2",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"moment-timezone": "^0.5.33",
|
"moment-timezone": "^0.5.33",
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { GenericSQL, SqlParserVisitor } from 'dt-sql-parser'
|
// import { GenericSQL, SqlParserVisitor } from 'dt-sql-parser'
|
||||||
import Meta, { connection, condition, columnType, cloneMeta } from '@/components/advancedSearch/meta/meta'
|
import Meta, { connection, condition, columnType, cloneMeta } from '@/components/advancedSearch/meta/meta'
|
||||||
import { riskLevelMapping } from '@/utils/constants'
|
import { riskLevelMapping } from '@/utils/constants'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
// 补全语句,用于解析
|
// 补全语句,用于解析
|
||||||
const sqlPrev = 'select a from b where '
|
const sqlPrev = 'select a from b where '
|
||||||
export default class SqlParser extends SqlParserVisitor {
|
export default class SqlParser/* extends SqlParserVisitor*/ {
|
||||||
constructor (init, columnList) {
|
constructor (init, columnList) {
|
||||||
super()
|
// super()
|
||||||
this.tempMeta = null
|
this.tempMeta = null
|
||||||
this.originalSql = ''
|
this.originalSql = ''
|
||||||
this.metaList = []
|
this.metaList = []
|
||||||
|
|||||||
@@ -16,21 +16,21 @@
|
|||||||
<el-descriptions-item :label="$t('overall.dnsServerInfo.protocol') + ':'">{{detectionIpSupporting(detectionsData)}}</el-descriptions-item>
|
<el-descriptions-item :label="$t('overall.dnsServerInfo.protocol') + ':'">{{detectionIpSupporting(detectionsData)}}</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart-location">
|
<!-- <div class="chart-location">
|
||||||
<el-descriptions :column="1">
|
<el-descriptions :column="1">
|
||||||
<el-descriptions-item :label="$t('overall.location') + ':'">{{location}}</el-descriptions-item>
|
<el-descriptions-item :label="$t('overall.location') + ':'">{{location}}</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<div class="chart-drawing" style="padding: 0 36px 30px 0;" :id="`chart${chartInfo.id}`"></div>
|
<div class="chart-drawing" style="padding: 0 36px 30px 0;" :id="`chart${chartInfo.id}`"></div>
|
||||||
</div>
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import chartMixin from '@/views/charts/charts/chart-mixin'
|
import chartMixin from '@/views/charts/charts/chart-mixin'
|
||||||
import * as L from 'leaflet'
|
/*import * as L from 'leaflet'
|
||||||
import icon from 'leaflet/dist/images/marker-icon.png'
|
import icon from 'leaflet/dist/images/marker-icon.png'
|
||||||
import iconShadow from 'leaflet/dist/images/marker-shadow.png'
|
import iconShadow from 'leaflet/dist/images/marker-shadow.png'
|
||||||
import 'leaflet/dist/leaflet.css'
|
import 'leaflet/dist/leaflet.css'*/
|
||||||
import { get } from '@/utils/http'
|
import { get } from '@/utils/http'
|
||||||
import { api } from '@/utils/api'
|
import { api } from '@/utils/api'
|
||||||
export default {
|
export default {
|
||||||
@@ -46,7 +46,6 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
location () {
|
location () {
|
||||||
this.$_.get()
|
|
||||||
let location = ''
|
let location = ''
|
||||||
if (this.chartInfo) {
|
if (this.chartInfo) {
|
||||||
if (this.chartInfo.country) {
|
if (this.chartInfo.country) {
|
||||||
@@ -92,7 +91,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initMap (id) {
|
/*initMap (id) {
|
||||||
L.Marker.prototype.options.icon = L.icon({
|
L.Marker.prototype.options.icon = L.icon({
|
||||||
iconUrl: icon,
|
iconUrl: icon,
|
||||||
shadowUrl: iconShadow
|
shadowUrl: iconShadow
|
||||||
@@ -114,13 +113,13 @@ export default {
|
|||||||
attribution.addAttribution(' © OpenStreetMap contributors')
|
attribution.addAttribution(' © OpenStreetMap contributors')
|
||||||
attribution.addTo(map)
|
attribution.addTo(map)
|
||||||
|
|
||||||
/* L.control.zoom({
|
/!* L.control.zoom({
|
||||||
position: 'bottomright',
|
position: 'bottomright',
|
||||||
zoomInText: '<i class="nz-icon nz-icon-enlarge"></i>',
|
zoomInText: '<i class="nz-icon nz-icon-enlarge"></i>',
|
||||||
zoomOutText: '<i class="nz-icon nz-icon-narrow"></i>',
|
zoomOutText: '<i class="nz-icon nz-icon-narrow"></i>',
|
||||||
zoomInTitle: '',
|
zoomInTitle: '',
|
||||||
zoomOutTitle: ''
|
zoomOutTitle: ''
|
||||||
}).addTo(map) */
|
}).addTo(map) *!/
|
||||||
|
|
||||||
this.myChart = map
|
this.myChart = map
|
||||||
this.loadLeafletMap()
|
this.loadLeafletMap()
|
||||||
@@ -133,7 +132,7 @@ export default {
|
|||||||
})
|
})
|
||||||
L.marker([this.chartData.latitude, this.chartData.longitude], { icon: myIcon }).addTo(this.myChart)
|
L.marker([this.chartData.latitude, this.chartData.longitude], { icon: myIcon }).addTo(this.myChart)
|
||||||
}
|
}
|
||||||
},
|
},*/
|
||||||
queryDetection () {
|
queryDetection () {
|
||||||
get(this.entityDetectionsIpUrl, this.queryParams).then(response => {
|
get(this.entityDetectionsIpUrl, this.queryParams).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
@@ -147,13 +146,13 @@ export default {
|
|||||||
this.queryDetection()
|
this.queryDetection()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
watch: {
|
/*watch: {
|
||||||
chartData: {
|
chartData: {
|
||||||
deep: true,
|
deep: true,
|
||||||
handler (n) {
|
handler (n) {
|
||||||
this.initMap(`chart${this.chartInfo.id}`)
|
this.initMap(`chart${this.chartInfo.id}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -408,7 +408,13 @@ export default {
|
|||||||
})
|
})
|
||||||
return result
|
return result
|
||||||
},
|
},
|
||||||
search ({ q, metaList }) {
|
search (param) {
|
||||||
|
let q
|
||||||
|
let metaList
|
||||||
|
if (param) {
|
||||||
|
q = param.q
|
||||||
|
metaList = param.metaList
|
||||||
|
}
|
||||||
if (q) {
|
if (q) {
|
||||||
this.q = this.specialColumnHandle(q)
|
this.q = this.specialColumnHandle(q)
|
||||||
this.metaList = metaList
|
this.metaList = metaList
|
||||||
|
|||||||
Reference in New Issue
Block a user