瀏覽代碼

弹窗可拖拽

Hwf 4 月之前
父節點
當前提交
10330ce3ed

+ 1 - 1
src/components/Contact/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <Dialog custom-show type="lg" title="通讯录" @close="handleClose" @confirm="handleConfirm">
+  <Dialog draggable custom-show type="lg" title="通讯录" @close="handleClose" @confirm="handleConfirm">
     <div class="content">
       <div class="left-content">
         <el-input v-model="queryParams1.deptName" class="custom-input" placeholder="组织架构搜索">

+ 1 - 1
src/components/Dialog/index.vue

@@ -5,7 +5,7 @@
       draggable: draggable,
       position: 'fixed',
       scale: containerScale,
-      handle: headerType === 'header2' ? '.dialog-header2' : '.dialog-header'
+      handle: type === 'xs' || headerType === 'header2' ? '.dialog-header2' : '.dialog-header'
     }"
     class="common-dialog"
     :style="{ width: computedWidth, height: computedHeight, zIndex: zIndex }"

+ 1 - 1
src/views/globalMap/RightMenu/OnlinePlotting/CollaborativeUser.vue

@@ -1,5 +1,5 @@
 <template>
-  <Dialog custom-show title="协同用户" type="sm" hide-footer @close="handleClose">
+  <Dialog draggable custom-show title="协同用户" type="sm" hide-footer @close="handleClose">
     <div class="common-table">
       <div class="table-header">
 <!--        <div class="td">-->

+ 1 - 1
src/views/globalMap/RightMenu/OnlinePlotting/EditGroup.vue

@@ -1,5 +1,5 @@
 <template>
-  <Dialog custom-show :title="groupForm.group_id ? '编辑分组' : '添加分组'" type="xs" height="auto" hide-footer @close="handleClose">
+  <Dialog draggable custom-show :title="groupForm.group_id ? '编辑分组' : '添加分组'" type="xs" height="auto" hide-footer @close="handleClose">
     <div class="form-item">
       <div class="text1">分组名称</div>
       <el-input v-model="groupForm.group_name" class="custom-input" placeholder="请输入" />

+ 1 - 1
src/views/globalMap/RightMenu/OnlinePlotting/ImportLayer.vue

@@ -1,5 +1,5 @@
 <template>
-  <Dialog custom-show title="导入图层" type="sm" hide-footer @close="handleClose">
+  <Dialog draggable custom-show title="导入图层" type="sm" hide-footer @close="handleClose">
     <div class="box1">
       <div :class="activeIndex === '0' ? 'btn1' : 'btn2'" @click="handleClick('0')">
         <i class="icon1" />