|
@ -5,7 +5,7 @@ |
|
|
资源目录管理 |
|
|
资源目录管理 |
|
|
<span>/详情</span> |
|
|
<span>/详情</span> |
|
|
</el-header> |
|
|
</el-header> |
|
|
<el-container> |
|
|
<el-container v-if="directoryInfo"> |
|
|
<div class="top"> |
|
|
<div class="top"> |
|
|
<span class="title">图层资源目录详情</span> |
|
|
<span class="title">图层资源目录详情</span> |
|
|
<div class="directoryInfo"> |
|
|
<div class="directoryInfo"> |
|
@ -96,13 +96,18 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import debounce from 'lodash/debounce'; |
|
|
import debounce from 'lodash/debounce'; |
|
|
import { saveOrUpdateLayerApi, getLayerListApi, deleteLayerApi } from '@/api/aiSupervision/layerConfigApi.js'; |
|
|
import { |
|
|
|
|
|
saveOrUpdateLayerApi, |
|
|
|
|
|
getLayerListApi, |
|
|
|
|
|
deleteLayerApi, |
|
|
|
|
|
getDirectoryByIdApi |
|
|
|
|
|
} from '@/api/aiSupervision/layerConfigApi.js'; |
|
|
export default { |
|
|
export default { |
|
|
props: ['directoryInfo'], |
|
|
|
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
editDataInfoForm: { |
|
|
editDataInfoForm: { |
|
|
|
|
|
id: '', |
|
|
serviceType: '', //服务类型,wms/wmts/wfs/3d tiles/terrain |
|
|
serviceType: '', //服务类型,wms/wmts/wfs/3d tiles/terrain |
|
|
serviceUrl: '', //服务地址 |
|
|
serviceUrl: '', //服务地址 |
|
|
serviceName: '', //服务名称 |
|
|
serviceName: '', //服务名称 |
|
@ -112,6 +117,7 @@ export default { |
|
|
dirNames: '', |
|
|
dirNames: '', |
|
|
tileSize: '256' |
|
|
tileSize: '256' |
|
|
}, |
|
|
}, |
|
|
|
|
|
directoryInfo: null, // 目录信息 |
|
|
dialogTitle: '添加图层', |
|
|
dialogTitle: '添加图层', |
|
|
serviceTypeOptions: [ |
|
|
serviceTypeOptions: [ |
|
|
{ |
|
|
{ |
|
@ -140,13 +146,9 @@ export default { |
|
|
keyword: '' |
|
|
keyword: '' |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
|
|
|
this.initData(); |
|
|
|
|
|
this.getLayerList(); |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
goBack() { |
|
|
goBack() { |
|
|
this.$emit('goback'); |
|
|
this.$router.go(-1); |
|
|
}, |
|
|
}, |
|
|
handleEdit(index, row) { |
|
|
handleEdit(index, row) { |
|
|
this.editDataInfoForm.id = row.id; |
|
|
this.editDataInfoForm.id = row.id; |
|
@ -231,6 +233,12 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
// 使用 lodash 的 debounce 函数创建防抖版本 |
|
|
// 使用 lodash 的 debounce 函数创建防抖版本 |
|
|
this.debouncedGetLayerList = debounce(this.getLayerList, 500); |
|
|
this.debouncedGetLayerList = debounce(this.getLayerList, 500); |
|
|
|
|
|
|
|
|
|
|
|
getDirectoryByIdApi(this.$route.query.id).then((res) => { |
|
|
|
|
|
this.directoryInfo = res.data.children[0]; |
|
|
|
|
|
this.initData(); |
|
|
|
|
|
this.getLayerList(); |
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
keyword() { |
|
|
keyword() { |
|
|