wangfumin пре 1 месец
родитељ
комит
34ba3eda76
2 измењених фајлова са 23 додато и 10 уклоњено
  1. 3 3
      src/view/case/drawMap/creatMap.vue
  2. 20 7
      src/view/case/newCaseFile.vue

+ 3 - 3
src/view/case/drawMap/creatMap.vue

@@ -15,8 +15,8 @@
                   <el-option label="地址" value="1"></el-option>
                   <el-option label="经纬度" value="2"></el-option>
                 </el-select>
-                <input class="search-input-latlng" v-if="selectedSearchAdress === '2'" @input="handleSearch" autocomplete="off" @keydown="handleKeyDown" placeholder="39.908739,116.397513" />
-                <input class="search-input-address" v-else id="searchInput" @input="handleSearch" autocomplete="off" placeholder="输入地址" />
+                <input class="search-input-latlng" v-if="selectedSearchAdress === '2'" @input="handleSearch" autocomplete="off" @keydown="handleKeyDown" placeholder="23.117661,113.281272" />
+                <input class="search-input-address" v-else id="searchInput" @input="handleSearch" autocomplete="off" placeholder="输入地址搜索" />
                 <!-- <input id="searchInput" @input="handleSearch" autocomplete="off" @keydown="handleKeyDown" :placeholder="selectedSearchAdress === '1' ? '输入地址' : '输入经纬度'" /> -->
             </div>
             <div id="searchResults">暂无数据</div>
@@ -605,7 +605,7 @@ onUnmounted(() => {
     }
     .search-select{
         width: 100px;
-        height: 40px;
+        height: 40px!important;
         
         :deep(.el-select__wrapper){
           border-radius: 4px 0 0 4px;

+ 20 - 7
src/view/case/newCaseFile.vue

@@ -128,7 +128,7 @@
                   @click.stop="previewImage(index)"
                   title="查看"
                 >
-                  <el-icon :size="20"><View /></el-icon>
+                  <el-icon :size="20"><ZoomIn /></el-icon>
                 </el-button>
                 <!-- 编辑按钮:old 类型不显示,其他类型显示 -->
                 <el-button 
@@ -139,7 +139,7 @@
                   v-if="file.type !== 'old'"
                   title="编辑"
                 >
-                  <el-icon :size="20"><Edit /></el-icon>
+                <el-icon :size="20"><EditPen /></el-icon>
                 </el-button>
                 <!-- 对于 old 类型,保留原来的编辑逻辑 -->
                 <!-- <el-button 
@@ -168,7 +168,7 @@
           <!-- 卡片底部:文件名 -->
           <div class="card-footer">
             <div class="file-title">
-              <span v-if="!inputCaseTitles.includes(file)" class="title-text">
+              <span v-if="!inputCaseTitles.includes(file)" :title="file.type === 'old' ? file.filesTitle : file.title" class="title-text">
                 {{ file.type === 'old' ? file.filesTitle : file.title }}
                 <el-icon class="edit-title" @click="inputCaseTitles.push(file)">
                   <EditPen />
@@ -720,6 +720,7 @@ onUnmounted(() => {
   display: flex;
   gap: 12px;
   .card-overlay-btn{
+    width: 20px;
     background: transparent;
     border: none;
     color: #F2F2F2;
@@ -733,17 +734,29 @@ onUnmounted(() => {
 }
 
 .file-title {
+  position: relative;
+  width: 100%;
+  text-align: left;
   .title-text {
+    display: inline-block;
+    width: 90%;
     font-size: 14px;
     font-weight: 500;
     color: #303133;
-    display: flex;
-    justify-content: space-between;
-    align-items: center;
+    text-align: left;
+    // display: flex;
+    // justify-content: space-between;
+    // align-items: center;
     word-break: break-all;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
     line-height: 1.4;
   }
-  
+  .edit-title{
+    position: absolute;
+    right: 0;
+  }
   .edit-input {
     :deep(.el-input__wrapper) {
       height: 30px;