diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/src/router/modules/map.js b/src/router/modules/map.js index 3c5b429..5c026bd 100644 --- a/src/router/modules/map.js +++ b/src/router/modules/map.js @@ -34,7 +34,7 @@ { path: '/partsEdit', name: 'PartsEdit', - component: () => import('@/views/example/tableExample'), + component: () => import('@/views/overview/compEdit'), meta: { title: '部件编辑', icon: '', permission: ['/partsEdit'], keepAlive: true } }, { path: '/shopEdit', diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/src/router/modules/map.js b/src/router/modules/map.js index 3c5b429..5c026bd 100644 --- a/src/router/modules/map.js +++ b/src/router/modules/map.js @@ -34,7 +34,7 @@ { path: '/partsEdit', name: 'PartsEdit', - component: () => import('@/views/example/tableExample'), + component: () => import('@/views/overview/compEdit'), meta: { title: '部件编辑', icon: '', permission: ['/partsEdit'], keepAlive: true } }, { path: '/shopEdit', diff --git a/src/store/getters.js b/src/store/getters.js index 526de90..33b9d3f 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -26,6 +26,7 @@ urls: state => state.map.urls, // 地图服务地址列表 baseUrl: state => state.map.baseUrl, // 地图服务地址 partsUrl: state => state.map.partsUrl, // 部件分层地址 + partsEditUrl: state => state.map.partsEditUrl, // 部件分层地址 partsAllUrl: state => state.map.partsAllUrl, // 部件不分层地址 mapUrl: state => state.map.mapUrl, // 底图地址 editUrl: state => state.map.editUrl // 编辑地图地址 diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/src/router/modules/map.js b/src/router/modules/map.js index 3c5b429..5c026bd 100644 --- a/src/router/modules/map.js +++ b/src/router/modules/map.js @@ -34,7 +34,7 @@ { path: '/partsEdit', name: 'PartsEdit', - component: () => import('@/views/example/tableExample'), + component: () => import('@/views/overview/compEdit'), meta: { title: '部件编辑', icon: '', permission: ['/partsEdit'], keepAlive: true } }, { path: '/shopEdit', diff --git a/src/store/getters.js b/src/store/getters.js index 526de90..33b9d3f 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -26,6 +26,7 @@ urls: state => state.map.urls, // 地图服务地址列表 baseUrl: state => state.map.baseUrl, // 地图服务地址 partsUrl: state => state.map.partsUrl, // 部件分层地址 + partsEditUrl: state => state.map.partsEditUrl, // 部件分层地址 partsAllUrl: state => state.map.partsAllUrl, // 部件不分层地址 mapUrl: state => state.map.mapUrl, // 底图地址 editUrl: state => state.map.editUrl // 编辑地图地址 diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 49e6167..855cca8 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -18,6 +18,9 @@ SET_PARTS_URL: (state, url) => { state.partsUrl = url }, + SET_PARTS_EDIT_URL: (state, url) => { + state.partsEditUrl = url + }, SET_PARTS_ALL_URL: (state, url) => { state.partsAllUrl = url }, @@ -45,6 +48,8 @@ commit('SET_BASE_URL', item.url) } else if (item.name === '部件分层URL') { commit('SET_PARTS_URL', item.url) + const editUrl = item.url.replace(/MapServer/, 'FeatureServer') + commit('SET_PARTS_EDIT_URL', editUrl) } else if (item.name === '部件地图URL') { commit('SET_PARTS_ALL_URL', item.url) } else if (item.name === '二维地图URL') { diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/src/router/modules/map.js b/src/router/modules/map.js index 3c5b429..5c026bd 100644 --- a/src/router/modules/map.js +++ b/src/router/modules/map.js @@ -34,7 +34,7 @@ { path: '/partsEdit', name: 'PartsEdit', - component: () => import('@/views/example/tableExample'), + component: () => import('@/views/overview/compEdit'), meta: { title: '部件编辑', icon: '', permission: ['/partsEdit'], keepAlive: true } }, { path: '/shopEdit', diff --git a/src/store/getters.js b/src/store/getters.js index 526de90..33b9d3f 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -26,6 +26,7 @@ urls: state => state.map.urls, // 地图服务地址列表 baseUrl: state => state.map.baseUrl, // 地图服务地址 partsUrl: state => state.map.partsUrl, // 部件分层地址 + partsEditUrl: state => state.map.partsEditUrl, // 部件分层地址 partsAllUrl: state => state.map.partsAllUrl, // 部件不分层地址 mapUrl: state => state.map.mapUrl, // 底图地址 editUrl: state => state.map.editUrl // 编辑地图地址 diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 49e6167..855cca8 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -18,6 +18,9 @@ SET_PARTS_URL: (state, url) => { state.partsUrl = url }, + SET_PARTS_EDIT_URL: (state, url) => { + state.partsEditUrl = url + }, SET_PARTS_ALL_URL: (state, url) => { state.partsAllUrl = url }, @@ -45,6 +48,8 @@ commit('SET_BASE_URL', item.url) } else if (item.name === '部件分层URL') { commit('SET_PARTS_URL', item.url) + const editUrl = item.url.replace(/MapServer/, 'FeatureServer') + commit('SET_PARTS_EDIT_URL', editUrl) } else if (item.name === '部件地图URL') { commit('SET_PARTS_ALL_URL', item.url) } else if (item.name === '二维地图URL') { diff --git a/src/views/overview/compEdit.vue b/src/views/overview/compEdit.vue new file mode 100644 index 0000000..c4acb21 --- /dev/null +++ b/src/views/overview/compEdit.vue @@ -0,0 +1,391 @@ + + + + + diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/src/router/modules/map.js b/src/router/modules/map.js index 3c5b429..5c026bd 100644 --- a/src/router/modules/map.js +++ b/src/router/modules/map.js @@ -34,7 +34,7 @@ { path: '/partsEdit', name: 'PartsEdit', - component: () => import('@/views/example/tableExample'), + component: () => import('@/views/overview/compEdit'), meta: { title: '部件编辑', icon: '', permission: ['/partsEdit'], keepAlive: true } }, { path: '/shopEdit', diff --git a/src/store/getters.js b/src/store/getters.js index 526de90..33b9d3f 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -26,6 +26,7 @@ urls: state => state.map.urls, // 地图服务地址列表 baseUrl: state => state.map.baseUrl, // 地图服务地址 partsUrl: state => state.map.partsUrl, // 部件分层地址 + partsEditUrl: state => state.map.partsEditUrl, // 部件分层地址 partsAllUrl: state => state.map.partsAllUrl, // 部件不分层地址 mapUrl: state => state.map.mapUrl, // 底图地址 editUrl: state => state.map.editUrl // 编辑地图地址 diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 49e6167..855cca8 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -18,6 +18,9 @@ SET_PARTS_URL: (state, url) => { state.partsUrl = url }, + SET_PARTS_EDIT_URL: (state, url) => { + state.partsEditUrl = url + }, SET_PARTS_ALL_URL: (state, url) => { state.partsAllUrl = url }, @@ -45,6 +48,8 @@ commit('SET_BASE_URL', item.url) } else if (item.name === '部件分层URL') { commit('SET_PARTS_URL', item.url) + const editUrl = item.url.replace(/MapServer/, 'FeatureServer') + commit('SET_PARTS_EDIT_URL', editUrl) } else if (item.name === '部件地图URL') { commit('SET_PARTS_ALL_URL', item.url) } else if (item.name === '二维地图URL') { diff --git a/src/views/overview/compEdit.vue b/src/views/overview/compEdit.vue new file mode 100644 index 0000000..c4acb21 --- /dev/null +++ b/src/views/overview/compEdit.vue @@ -0,0 +1,391 @@ + + + + + diff --git a/src/views/overview/components/editPartsDialog.vue b/src/views/overview/components/editPartsDialog.vue new file mode 100644 index 0000000..1e2ebe8 --- /dev/null +++ b/src/views/overview/components/editPartsDialog.vue @@ -0,0 +1,124 @@ + + + + + +