|
@@ -157,12 +157,12 @@
|
|
|
</div>
|
|
|
<div class="footer">
|
|
|
<el-pagination
|
|
|
+ v-model:current-page="queryParams.page"
|
|
|
+ v-model:page-size="queryParams.pageSize"
|
|
|
background
|
|
|
:hide-on-single-page="true"
|
|
|
layout="total, prev, pager, next"
|
|
|
:total="total"
|
|
|
- :page-size="queryParams.pageSize"
|
|
|
- :current-page="queryParams.page"
|
|
|
@current-change="getList"
|
|
|
/>
|
|
|
</div>
|
|
@@ -186,7 +186,7 @@
|
|
|
<Contact v-if="shareState.showShare" v-model="shareState.showShare" @close="handleCloseShare" @confirm="handleShareConfirm" />
|
|
|
<Dialog v-if="showForm" v-model="showForm" custom-show title="协同标绘" height="auto" type="xs" @close="showForm = false" @confirm="handleSendForm">
|
|
|
<div style="display: flex; align-items: center">
|
|
|
- <div style="font-size: 36px">预案名称</div>
|
|
|
+ <div style="font-size: 36px">预案名称:</div>
|
|
|
<el-input v-model="form.pattern_name" class="custom-input" placeholder="请输入" style="flex: 1" />
|
|
|
</div>
|
|
|
</Dialog>
|
|
@@ -214,6 +214,7 @@ import { Search } from '@element-plus/icons-vue';
|
|
|
import html2canvas from 'html2canvas';
|
|
|
import LayerDetail from './LayerDetail.vue';
|
|
|
import { createWebSocket } from '@/utils/websocket';
|
|
|
+import { showSuccessMsg } from '@/utils/notification';
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const getMapUtils = inject('getMapUtils');
|
|
@@ -295,7 +296,7 @@ const tipTitle = computed(() => {
|
|
|
|
|
|
// 获取模板分类树
|
|
|
const getTemplateTreeData = () => {
|
|
|
- getTemplateTree({ visible: showSetting.value ? '' : '1'}).then((res) => {
|
|
|
+ getTemplateTree({ visible: showSetting.value ? '' : '1' }).then((res) => {
|
|
|
menu.value[0].children = res.data;
|
|
|
});
|
|
|
};
|
|
@@ -316,13 +317,16 @@ const handleShowSwitch = (item) => {
|
|
|
};
|
|
|
const handleMenuItemHide = (item) => {
|
|
|
item.showSetting = false;
|
|
|
- changeVisibleClassification({ classification_id: item.classification_id, visible: item.visible === '0' ? '1' : '0' }).then(() => {
|
|
|
+ const newVisible = item.visible === '0' ? '1' : '0';
|
|
|
+ changeVisibleClassification({ classification_id: item.classification_id, visible: newVisible }).then(() => {
|
|
|
+ showSuccessMsg(newVisible === '0' ? '隐藏成功' : '显示成功');
|
|
|
getTemplateTreeData();
|
|
|
});
|
|
|
};
|
|
|
const handleMenuItemDelete = (item) => {
|
|
|
item.showSetting = false;
|
|
|
deleteClassificationCreate(item.classification_id).then(() => {
|
|
|
+ showSuccessMsg('删除成功');
|
|
|
getTemplateTreeData();
|
|
|
});
|
|
|
};
|
|
@@ -806,13 +810,14 @@ const handleSendForm = () => {
|
|
|
if (!form.value.pattern_name) {
|
|
|
return proxy?.$modal.msgWarning('请填写预案名称');
|
|
|
}
|
|
|
- // webSock = createWebSocket('ZEaBf-NZ4Fi29kSYGdNeJ', getWebSocketData);
|
|
|
- // patternId.value = 'ZEaBf-NZ4Fi29kSYGdNeJ';
|
|
|
+ // webSock = createWebSocket('NgIip9fMfoAknntOY-hXR', getWebSocketData);
|
|
|
+ // patternId.value = 'NgIip9fMfoAknntOY-hXR';
|
|
|
createCollaboration(form.value).then(() => {
|
|
|
patternId.value = form.value.pattern_id;
|
|
|
webSock = createWebSocket(form.value.pattern_id, getWebSocketData);
|
|
|
showForm.value = false;
|
|
|
collaboration.value = true;
|
|
|
+ proxy?.$modal.msgSuccess('开启协同标绘成功');
|
|
|
});
|
|
|
};
|
|
|
const handleShowDialog = () => {
|