perf: 删除无用依赖

This commit is contained in:
chenjinsong
2022-06-09 18:20:28 +08:00
parent 5f63e278ff
commit 4ad4ed53f0
4 changed files with 20 additions and 17 deletions

View File

@@ -16,10 +16,8 @@
"codemirror": "^5.65.1",
"core-js": "^3.6.5",
"dayjs": "^1.10.5",
"dt-sql-parser": "^4.0.0-beta.2.2",
"echarts": "^5.1.1",
"element-plus": "^1.0.2-beta.44",
"leaflet": "^1.7.1",
"lib-flexible": "^0.3.2",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.33",

View File

@@ -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 { riskLevelMapping } from '@/utils/constants'
import _ from 'lodash'
// 补全语句,用于解析
const sqlPrev = 'select a from b where '
export default class SqlParser extends SqlParserVisitor {
export default class SqlParser/* extends SqlParserVisitor*/ {
constructor (init, columnList) {
super()
// super()
this.tempMeta = null
this.originalSql = ''
this.metaList = []

View File

@@ -16,21 +16,21 @@
<el-descriptions-item :label="$t('overall.dnsServerInfo.protocol') + ':'">{{detectionIpSupporting(detectionsData)}}</el-descriptions-item>
</el-descriptions>
</div>
<div class="chart-location">
<!-- <div class="chart-location">
<el-descriptions :column="1">
<el-descriptions-item :label="$t('overall.location') + ':'">{{location}}</el-descriptions-item>
</el-descriptions>
<div class="chart-drawing" style="padding: 0 36px 30px 0;" :id="`chart${chartInfo.id}`"></div>
</div>
</div>-->
</div>
</template>
<script>
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 iconShadow from 'leaflet/dist/images/marker-shadow.png'
import 'leaflet/dist/leaflet.css'
import 'leaflet/dist/leaflet.css'*/
import { get } from '@/utils/http'
import { api } from '@/utils/api'
export default {
@@ -46,7 +46,6 @@ export default {
},
computed: {
location () {
this.$_.get()
let location = ''
if (this.chartInfo) {
if (this.chartInfo.country) {
@@ -92,7 +91,7 @@ export default {
}
},
methods: {
initMap (id) {
/*initMap (id) {
L.Marker.prototype.options.icon = L.icon({
iconUrl: icon,
shadowUrl: iconShadow
@@ -114,13 +113,13 @@ export default {
attribution.addAttribution(' © OpenStreetMap contributors')
attribution.addTo(map)
/* L.control.zoom({
/!* L.control.zoom({
position: 'bottomright',
zoomInText: '<i class="nz-icon nz-icon-enlarge"></i>',
zoomOutText: '<i class="nz-icon nz-icon-narrow"></i>',
zoomInTitle: '',
zoomOutTitle: ''
}).addTo(map) */
}).addTo(map) *!/
this.myChart = map
this.loadLeafletMap()
@@ -133,7 +132,7 @@ export default {
})
L.marker([this.chartData.latitude, this.chartData.longitude], { icon: myIcon }).addTo(this.myChart)
}
},
},*/
queryDetection () {
get(this.entityDetectionsIpUrl, this.queryParams).then(response => {
if (response.code === 200) {
@@ -147,13 +146,13 @@ export default {
this.queryDetection()
})
},
watch: {
/*watch: {
chartData: {
deep: true,
handler (n) {
this.initMap(`chart${this.chartInfo.id}`)
}
}
}
}*/
}
</script>

View File

@@ -408,7 +408,13 @@ export default {
})
return result
},
search ({ q, metaList }) {
search (param) {
let q
let metaList
if (param) {
q = param.q
metaList = param.metaList
}
if (q) {
this.q = this.specialColumnHandle(q)
this.metaList = metaList