From e71d1fcf123dc6dcb8ac42ce0234690f0bb3b892 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 31 May 2022 18:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=8C=BA=E5=9D=97=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E8=B0=83=E6=95=B4=E5=AE=8C=E6=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/grid/AppGridBlock/AppGridBlock.vue | 49 +- project/grid/AppGridBlock/components/add.vue | 482 ++----------- project/grid/AppGridBlock/components/list.vue | 665 ++++++------------ .../AppGridBlock/components/mapPlotting.vue | 231 ++++++ project/grid/AppGridBlock/index.js | 6 - project/grid/components/AiUserPicker.vue | 160 +++++ vue.config.js | 7 +- 7 files changed, 693 insertions(+), 907 deletions(-) create mode 100644 project/grid/AppGridBlock/components/mapPlotting.vue delete mode 100644 project/grid/AppGridBlock/index.js create mode 100644 project/grid/components/AiUserPicker.vue diff --git a/project/grid/AppGridBlock/AppGridBlock.vue b/project/grid/AppGridBlock/AppGridBlock.vue index 5eb35620..68b62f5c 100644 --- a/project/grid/AppGridBlock/AppGridBlock.vue +++ b/project/grid/AppGridBlock/AppGridBlock.vue @@ -1,15 +1,7 @@ @@ -26,44 +18,17 @@ export default { instance: Function, dict: Object, }, - + computed: { + currentPage() { + return this.$route.hash == "#add" ? Add : List + } + }, data() { return { component: "List", - params: {}, - include: [], - isEdit: false }; }, - - components: { - Add, - List, - }, - - mounted() {}, - - methods: { - onChange(data) { - if (data.type === "Add") { - this.component = "Add"; - this.params = data.params; - this.isEdit = data.isEdit - } - - if (data.type === "list") { - this.component = "List"; - this.params = data.params; - - this.$nextTick(() => { - if (data.isRefresh) { - this.$refs.component.getList() - this.$refs.component.getTreeList() - } - }); - } - }, - }, + components: {Add, List}, }; diff --git a/project/grid/AppGridBlock/components/add.vue b/project/grid/AppGridBlock/components/add.vue index 7a7a15bc..3666d3da 100644 --- a/project/grid/AppGridBlock/components/add.vue +++ b/project/grid/AppGridBlock/components/add.vue @@ -3,151 +3,56 @@ - -
-
- -
-
-
- - 开始编辑 - - 结束编辑 - - - - 开始绘制多边形 - - - 清除绘制 - -
- -
@@ -585,11 +361,12 @@ export default { .app-grid-block { width: 100%; height: 100%; + ::v-deep .el-tree { background: transparent; .el-tree-node__expand-icon.is-leaf { - color: transparent!important; + color: transparent !important; } .el-tree-node__content > .el-tree-node__expand-icon { @@ -616,52 +393,60 @@ export default { } .is-current > .el-tree-node__content { + color: #fff !important; + &:hover { background: #2266FF; color: #fff; } background: #2266FF; - - span { + + .el-tooltip { color: #fff; } } } + .flex-box { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + word-break: break-all; + + & > div { + display: flex; + } + } + .mt10 { padding: 8px 0; } - .map { - width: 780px; - position: relative; - overflow: hidden; + ::v-deep.fullscreenMap { + .el-dialog { + display: flex; + flex-direction: column; - .container { - width: 760px; - height: 420px; - border-radius: 2px; - border: 1px solid #d0d4dc; - } + .el-dialog__body { + padding: 0; + flex: 1; + min-height: 0; - #panel { - position: absolute; - height: 400px; - right: 30px; - top: 20px; - width: 280px; - overflow: hidden; - z-index: 10000; - } + .ai-dialog__content { + max-height: unset !important; + padding-bottom: 0; + height: 100%; - .tipinput { - position: absolute; - width: 200px; - height: 38px; - left: 20px; - top: 20px; - z-index: 10000; + .ai-dialog__content--wrapper { + padding-right: 0 !important; + } + } + } } } diff --git a/project/grid/AppGridBlock/components/mapPlotting.vue b/project/grid/AppGridBlock/components/mapPlotting.vue new file mode 100644 index 00000000..2d40554a --- /dev/null +++ b/project/grid/AppGridBlock/components/mapPlotting.vue @@ -0,0 +1,231 @@ + + + + + diff --git a/project/grid/AppGridBlock/index.js b/project/grid/AppGridBlock/index.js deleted file mode 100644 index 99041895..00000000 --- a/project/grid/AppGridBlock/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import component from './AppGridBlock.vue' - -component.install = function (Vue) { - Vue.component(component.name, component) -} -export default component \ No newline at end of file diff --git a/project/grid/components/AiUserPicker.vue b/project/grid/components/AiUserPicker.vue new file mode 100644 index 00000000..60c4d1e6 --- /dev/null +++ b/project/grid/components/AiUserPicker.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/vue.config.js b/vue.config.js index c87ba5e5..a3bc5298 100644 --- a/vue.config.js +++ b/vue.config.js @@ -104,16 +104,15 @@ module.exports = { '^/xsjr': '/' } }, - '/grid': { - target: 'http://192.168.1.87:12307', + '/wg': { + target: 'http://192.168.1.34:10000', changeOrigin: true, pathRewrite: { //地址重写 - '^/grid': '/' + '^/wg': '/' } } }, disableHostCheck: true } }; -