|
@@ -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>
|
|
@@ -22,7 +22,7 @@
|
|
|
<i class="icon3" />
|
|
|
显示标注
|
|
|
</div>
|
|
|
- <div class="btn1" style="margin-left: 10px">
|
|
|
+ <div class="btn1" style="margin-left: 10px" @click="handleShowImportLayer">
|
|
|
<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" />
|
|
|
+ <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
|
|
@@ -91,11 +96,40 @@ const handleAddGroup = () => {
|
|
|
const obj = {
|
|
|
group_name: groupForm.value.name,
|
|
|
pattern_id: props.patternId
|
|
|
- }
|
|
|
- addGroup(groupForm.value).then((res) => {
|
|
|
+ };
|
|
|
+ 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;
|