|
@@ -244,12 +244,14 @@ export default {
|
|
value: 4
|
|
value: 4
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- mapList: []
|
|
|
|
|
|
+ mapList: [],
|
|
|
|
+ // 提示过了
|
|
|
|
+ tipped: false
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.init()
|
|
this.init()
|
|
-
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
@@ -258,6 +260,9 @@ export default {
|
|
mapList(this.searchForm).then(res => {
|
|
mapList(this.searchForm).then(res => {
|
|
this.mapList = res
|
|
this.mapList = res
|
|
this.searchLoading = false
|
|
this.searchLoading = false
|
|
|
|
+ if (!this.tipped && this.mapList.length === 0) {
|
|
|
|
+ this.tip()
|
|
|
|
+ }
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
this.searchLoading = false
|
|
this.searchLoading = false
|
|
})
|
|
})
|
|
@@ -310,6 +315,18 @@ export default {
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ tip() {
|
|
|
|
+ // 超链接跳转至
|
|
|
|
+ const htmlStr = `<span>大屏设计器提供了全国省市区县的地图数据,<a href="https://www.yuque.com/chuinixiongkou/bigscreen/kdrm8g3c8zfgaaq6#xjE8w" style="color: #00a0e9" target="_blank">点击查看</a></span>`
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '推荐',
|
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
|
+ message: htmlStr,
|
|
|
|
+ customClass: 'ds-el-notify',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ duration: 5000
|
|
|
|
+ })
|
|
|
|
+ },
|
|
deleteMapCascade(map) {
|
|
deleteMapCascade(map) {
|
|
this.$confirm('该地图存在子级,是否直接删除该地图以及其所有子级?', '提示', {
|
|
this.$confirm('该地图存在子级,是否直接删除该地图以及其所有子级?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -413,3 +430,19 @@ export default {
|
|
height: 150px;
|
|
height: 150px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
+<style lang="scss">
|
|
|
|
+//修改notify的样式
|
|
|
|
+.ds-el-notify {
|
|
|
|
+ background-color: var(--bs-el-background-1)!important;
|
|
|
|
+ border: var(--bs-el-border)!important;
|
|
|
|
+ .el-notification__title{
|
|
|
|
+ color: #fff!important;
|
|
|
|
+ }
|
|
|
|
+ .el-notification__content{
|
|
|
|
+ color: #fff!important;
|
|
|
|
+ }
|
|
|
|
+ .el-notification__closeBtn{
|
|
|
|
+ color: #fff!important;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|