|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
|
- <Dialog title="预案名称" custom-show hide-footer>
|
|
|
+ <Dialog title="预案名称" custom-show hide-footer @close="handleClose1">
|
|
|
<div class="btn-box1">
|
|
|
- <div class="btn1">
|
|
|
+ <div class="btn1" @click="handleShowCooperate">
|
|
|
<i class="icon1" />
|
|
|
邀请协同
|
|
|
</div>
|
|
|
- <div class="btn1" style="margin-left: 10px">
|
|
|
+ <div class="btn1" style="margin-left: 10px" @click="handleShowUser">
|
|
|
<i class="icon2" />
|
|
|
协同用户
|
|
|
</div>
|
|
@@ -13,7 +13,7 @@
|
|
|
<div class="btn-box2">
|
|
|
<div class="box-left">
|
|
|
<div class="text1">分类</div>
|
|
|
- <el-select v-model="type" :teleported="false" class="custom-select" popper-class="custom-select-popper" style="width: 140px">
|
|
|
+ <el-select v-model="type" :teleported="false" class="custom-select" popper-class="custom-select-popper" style="width: 460px">
|
|
|
<el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
<i class="icon3" />
|
|
|
显示标注
|
|
|
</div>
|
|
|
- <div class="btn1" style="margin-left: 10px">
|
|
|
+ <div class="btn1" style="margin-left: 10px" @click="showImportLayer">
|
|
|
<i class="icon4" />
|
|
|
导入图层
|
|
|
</div>
|
|
@@ -53,14 +53,19 @@
|
|
|
</div>
|
|
|
<div class="form-action">
|
|
|
<div class="common-btn-primary" @click="handleAddGroup">保存</div>
|
|
|
- <div class="common-btn-primary" @click="handleDeleteGroup">删除</div>
|
|
|
- <div class="common-btn" @click="handleCanle">取消</div>
|
|
|
+ <div v-if="groupForm.groupId" class="common-btn-primary" @click="handleDeleteGroup">删除</div>
|
|
|
+ <div class="common-btn" @click="handleClose2">取消</div>
|
|
|
</div>
|
|
|
</Dialog>
|
|
|
+ <Contact v-if="showCooperate" v-model="showCooperate" @close="handleClose3" @confirm="handleConfirm" />
|
|
|
+ <CollaborativeUser v-if="showUser" v-model="showUser" :patternId="patternId" />
|
|
|
+ <ImportLayer v-if="showImportLayer" v-model="showImportLayer" />
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup name="LayerDetail">
|
|
|
import { addGroup, getBzList } from '@/api/globalMap/onlinePlotting';
|
|
|
+import ImportLayer from './ImportLayer.vue';
|
|
|
+import CollaborativeUser from './CollaborativeUser.vue';
|
|
|
const props = defineProps({
|
|
|
modelValue: Boolean,
|
|
|
patternId: String
|
|
@@ -88,10 +93,43 @@ const handleShowGroup = () => {
|
|
|
showGroup.value = true;
|
|
|
};
|
|
|
const handleAddGroup = () => {
|
|
|
- addGroup(groupForm.value).then((res) => {
|
|
|
+ const obj = {
|
|
|
+ group_name: groupForm.value.name,
|
|
|
+ pattern_id: props.patternId
|
|
|
+ };
|
|
|
+ addGroup(obj).then((res) => {
|
|
|
emits('update:modelValue', false);
|
|
|
});
|
|
|
};
|
|
|
+const handleClose1 = () => {
|
|
|
+ emits('update:modelValue', false);
|
|
|
+};
|
|
|
+const handleDeleteGroup = () => {
|
|
|
+ showGroup.value = false;
|
|
|
+};
|
|
|
+const handleClose2 = () => {
|
|
|
+ showGroup.value = false;
|
|
|
+};
|
|
|
+let showCooperate = ref(false);
|
|
|
+const handleShowCooperate = () => {
|
|
|
+ showCooperate.value = true;
|
|
|
+};
|
|
|
+const handleClose3 = () => {
|
|
|
+ showCooperate.value = false;
|
|
|
+};
|
|
|
+const handleConfirm = (data) => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+let showUser = ref(false);
|
|
|
+const handleShowUser = () => {
|
|
|
+ showUser.value = true;
|
|
|
+};
|
|
|
+
|
|
|
+let showImportLayer = ref(false);
|
|
|
+const handleShowImportLayer = () => {
|
|
|
+ showImportLayer.value = true;
|
|
|
+};
|
|
|
onMounted(() => {
|
|
|
getBzList(queryParams).then((res) => {
|
|
|
dataList.value = res.data;
|
|
@@ -105,8 +143,8 @@ onMounted(() => {
|
|
|
justify-content: flex-end;
|
|
|
align-items: center;
|
|
|
position: absolute;
|
|
|
- top: 30px;
|
|
|
- right: 22px;
|
|
|
+ top: 95px;
|
|
|
+ right: 41px;
|
|
|
}
|
|
|
.btn-box2 {
|
|
|
display: flex;
|
|
@@ -118,8 +156,8 @@ onMounted(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
.text1 {
|
|
|
- font-size: 14px;
|
|
|
- margin-right: 5px;
|
|
|
+ font-size: 38px;
|
|
|
+ margin-right: 15px;
|
|
|
}
|
|
|
}
|
|
|
.box-right {
|
|
@@ -128,8 +166,8 @@ onMounted(() => {
|
|
|
}
|
|
|
}
|
|
|
.btn1 {
|
|
|
- width: 104px;
|
|
|
- height: 29px;
|
|
|
+ width: 278px;
|
|
|
+ height: 78px;
|
|
|
background: url('@/assets/images/map/rightMenu/btn.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
padding: 0 5px;
|
|
@@ -137,32 +175,32 @@ onMounted(() => {
|
|
|
align-items: center;
|
|
|
cursor: pointer;
|
|
|
.icon1 {
|
|
|
- width: 28px;
|
|
|
- height: 25px;
|
|
|
+ width: 58px;
|
|
|
+ height: 50px;
|
|
|
background: url('@/assets/images/map/rightMenu/layerDetail/icon1.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.icon2 {
|
|
|
- width: 23px;
|
|
|
- height: 24px;
|
|
|
+ width: 47px;
|
|
|
+ height: 49px;
|
|
|
background: url('@/assets/images/map/rightMenu/layerDetail/icon2.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.icon3 {
|
|
|
- width: 22px;
|
|
|
- height: 22px;
|
|
|
+ width: 42px;
|
|
|
+ height: 42px;
|
|
|
background: url('@/assets/images/map/rightMenu/layerDetail/icon3.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.icon4 {
|
|
|
- width: 26px;
|
|
|
- height: 26px;
|
|
|
+ width: 52px;
|
|
|
+ height: 52px;
|
|
|
background: url('@/assets/images/map/rightMenu/layerDetail/icon4.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.icon5 {
|
|
|
- width: 23px;
|
|
|
- height: 23px;
|
|
|
+ width: 47px;
|
|
|
+ height: 43px;
|
|
|
background: url('@/assets/images/map/rightMenu/layerDetail/icon5.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|