From f2debf4b57a970e3c9111731f878f094fb2d31af Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 19 Sep 2025 09:05:38 +0800
Subject: [PATCH] feat:vue3 更新统一弹窗和列表 搜索样式

---
 src/views/tickets/ticket.vue                      |   23 ++++-
 src/views/license/license.vue                     |    4 
 src/views/tickets/orderLog.vue                    |  139 ++++++++++++++++++----------------
 src/views/system/param.vue                        |    1 
 src/views/device/components/DockControlPanel.vue  |    1 
 src/views/dataCenter/dataCenter.vue               |    2 
 src/views/dataCenter/components/dataCenterMap.vue |    3 
 src/views/device/addDevice.vue                    |    2 
 src/views/device/components/firmwareManage.vue    |   14 ++-
 9 files changed, 107 insertions(+), 82 deletions(-)

diff --git a/src/views/dataCenter/components/dataCenterMap.vue b/src/views/dataCenter/components/dataCenterMap.vue
index 48932cd..3dd006b 100644
--- a/src/views/dataCenter/components/dataCenterMap.vue
+++ b/src/views/dataCenter/components/dataCenterMap.vue
@@ -1,5 +1,5 @@
 <template>
-  <el-dialog modal-class="mapDialog"  v-model="isShow" width="80%">
+  <el-dialog modal-class="mapDialog"  v-model="isShow" width="80%" class="ztzf-dialog-mange">
      <template #header="{ titleId, titleClass }">
           <div class="my-header">
             <h4 :id="titleId" :class="titleClass">定位</h4>
@@ -312,6 +312,7 @@
 
 <style scoped lang="scss">
 .mapBox {
+  margin-top: 10px;
   z-index: 2;
   height: 650px;
   width: 98%;
diff --git a/src/views/dataCenter/dataCenter.vue b/src/views/dataCenter/dataCenter.vue
index 7b77d2d..c631a7d 100644
--- a/src/views/dataCenter/dataCenter.vue
+++ b/src/views/dataCenter/dataCenter.vue
@@ -184,6 +184,7 @@
       <!-- 查看弹框 -->
       <el-dialog
         v-model="dialogVisible"
+        class="ztzf-dialog-mange"
         width="60%"
         append-to-body
         @close="dialogClose"
@@ -292,6 +293,7 @@
       <!-- 视频预览 -->
       <el-dialog
         :title="currentVideoTitle"
+        class="ztzf-dialog-mange"
         modal-class="videoDialog"
         append-to-body
         width="54%"
diff --git a/src/views/device/addDevice.vue b/src/views/device/addDevice.vue
index 4b0fcb1..3c32c25 100644
--- a/src/views/device/addDevice.vue
+++ b/src/views/device/addDevice.vue
@@ -11,7 +11,7 @@
                     @click.stop="copyInfo(scope.row, scope.index)" v-if="userInfo.role_name.includes('admin')">复制
                 </el-button>
             </template>
-        </avue-crud>
+        </avue-crud>F
     </basic-container>
 </template>
 
diff --git a/src/views/device/components/DockControlPanel.vue b/src/views/device/components/DockControlPanel.vue
index bc4a330..f45bae1 100644
--- a/src/views/device/components/DockControlPanel.vue
+++ b/src/views/device/components/DockControlPanel.vue
@@ -233,6 +233,7 @@
 watch(
   () => Store.getters.deviceState,
   value => {
+    console.log(value, '测试')
     // console.log('设备状态变化', value.deviceInfo[props.deviceInfo.child_sn])
     if (props.sn && (value.currentSn === props.deviceInfo.child_sn || value.currentSn === props.deviceInfo.device_sn)) {
       debugStatus.value = value.dockInfo[props.deviceInfo.device_sn]?.basic_osd?.mode_code === EDockModeCode.Remote_Debugging
diff --git a/src/views/device/components/firmwareManage.vue b/src/views/device/components/firmwareManage.vue
index 95e8534..d51c078 100644
--- a/src/views/device/components/firmwareManage.vue
+++ b/src/views/device/components/firmwareManage.vue
@@ -25,12 +25,12 @@
         </el-button>
       </template>
     </avue-crud>
-    <el-dialog title="固件上传" append-to-body v-model="firmwareUploadBox" width="40%" height="60%">
+    <el-dialog title="固件上传" class="ztzf-dialog-mange" append-to-body v-model="firmwareUploadBox" width="40%" height="60%">
       <el-form
         ref="form"
+        class="ztzf-form-mange"
         :model="importForm"
         v-loading="loadingForm"
-        label-width="80px"
         style="width: 80%; margin-left: 10%"
         :rules="rules"
       >
@@ -62,11 +62,13 @@
         <el-form-item label="说明" label-width="80px" prop="release_note">
           <el-input type="textarea" v-model="importForm.release_note" clearable></el-input>
         </el-form-item>
-        <el-form-item>
-          <el-button type="primary" @click="onConfirm">确定</el-button>
-          <el-button @click="onCancel">取消</el-button>
-        </el-form-item>
       </el-form>
+      <template #footer>
+        <div class="dialog-footer">
+        <el-button type="primary" @click="onConfirm">确定</el-button>
+        <el-button @click="onCancel">取消</el-button>
+        </div>
+      </template>
     </el-dialog>
   </basic-container>
 </template>
diff --git a/src/views/license/license.vue b/src/views/license/license.vue
index 16ab9ed..f8ca35d 100644
--- a/src/views/license/license.vue
+++ b/src/views/license/license.vue
@@ -41,7 +41,7 @@
         </avue-crud>
 
         <!-- 新增弹窗 -->
-        <el-dialog title="新增 License" v-model="addDialogVisible" width="70%" :close-on-click-modal="false"
+        <el-dialog class="ztzf-dialog-mange" title="新增 License" v-model="addDialogVisible" width="70%" :close-on-click-modal="false"
             @close="resetForm">
             <el-form :model="newLicense" ref="licenseForm" label-width="120px">
                 <el-form-item label="机构ID" prop="licenseId">
@@ -50,7 +50,7 @@
                 <el-form-item label="机构名称" prop="licenseName" required>
                     <el-input v-model="newLicense.licenseName" />
                 </el-form-item>
-                <el-form-item label="是否验证过期时间类型" prop="licenseType" required>
+                <el-form-item label="过期时间类型" prop="licenseType" required>
                     <el-select v-model="newLicense.licenseType" placeholder="请选择">
                         <el-option label="不验证过期时间" :value="1" />
                         <el-option label="验证过期时间" :value="2" />
diff --git a/src/views/system/param.vue b/src/views/system/param.vue
index ca255ec..3b157cc 100644
--- a/src/views/system/param.vue
+++ b/src/views/system/param.vue
@@ -125,6 +125,7 @@
       </el-row>
       <!-- 表单模块 -->
       <el-dialog
+        class="ztzf-dialog-mange"
         :title="title"
         v-model="box"
         width="50%"
diff --git a/src/views/tickets/orderLog.vue b/src/views/tickets/orderLog.vue
index 759bd5c..d37b21f 100644
--- a/src/views/tickets/orderLog.vue
+++ b/src/views/tickets/orderLog.vue
@@ -262,6 +262,7 @@
 
     <!-- 新建工单对话框 -->
     <el-dialog
+      class="ztzf-dialog-mange"
       v-model="dialogVisible"
       title="新建工单"
       width="70%"
@@ -384,18 +385,26 @@
           </el-col>
         </el-row>
 
-        <el-row>
-          <div class="add-box-btns">
-            <el-button type="danger" @click="submitForm(1)">发起</el-button>
-            <el-button type="primary" @click="submitForm(0)">存草稿</el-button>
-            <el-button @click="dialogVisible = false">取消</el-button>
-          </div>
-        </el-row>
+<!--        <el-row>-->
+<!--          <div class="add-box-btns">-->
+<!--            <el-button type="danger" @click="submitForm(1)">发起</el-button>-->
+<!--            <el-button type="primary" @click="submitForm(0)">存草稿</el-button>-->
+<!--            <el-button @click="dialogVisible = false">取消</el-button>-->
+<!--          </div>-->
+<!--        </el-row>-->
       </el-form>
+      <template #footer>
+        <div class="dialog-footer">
+          <el-button type="danger" @click="submitForm(1)">发起</el-button>
+          <el-button type="primary" @click="submitForm(0)">存草稿</el-button>
+          <el-button @click="dialogVisible = false">取消</el-button>
+        </div>
+      </template>
     </el-dialog>
 
     <!-- 工单详情对话框 -->
     <el-dialog
+      class="ztzf-dialog-mange"
       align-center
       v-model="detailVisible"
       :title="detailTitle"
@@ -573,43 +582,43 @@
             <map-container v-if="detailVisible" ref="MapContainer"></map-container>
           </el-col>
         </el-row>
-
-        <el-row>
-          <div class="add-box-btns">
-            <el-button
-              type="danger"
-              v-if="form.status == 0 || (form.status == 2 && userInfo.user_id == form.create_user)"
-              @click="submitForm(1)"
-              >发布</el-button
-            >
-            <el-button
-              type="primary"
-              v-if="form.status == 0 || (form.status == 2 && userInfo.user_id == form.create_user)"
-              @click="submitForm(0)"
-              >保存</el-button
-            >
-            <!-- <el-button type="primary" v-if="form.status == 0 || userInfo.user_id == form.create_user"
-                            @click="submitForm(0)">保存</el-button> -->
-
-            <el-button
-              type="primary"
-              v-if="form.status == 1 && hasPaddingBtnPermission()"
-              @click="orderLogPass(form.id)"
-              >通过</el-button
-            >
-            <el-button
-              type="danger"
-              v-if="form.status == 1 && hasRejectionBtnPermission()"
-              @click="orderLogReject(form.id)"
-              >驳回</el-button
-            >
-          </div>
-        </el-row>
       </el-form>
+      <template #footer>
+        <div class="dialog-footer">
+          <el-button
+            type="danger"
+            v-if="form.status == 0 || (form.status == 2 && userInfo.user_id == form.create_user)"
+            @click="submitForm(1)"
+          >发布</el-button
+          >
+          <el-button
+            type="primary"
+            v-if="form.status == 0 || (form.status == 2 && userInfo.user_id == form.create_user)"
+            @click="submitForm(0)"
+          >保存</el-button
+          >
+          <!-- <el-button type="primary" v-if="form.status == 0 || userInfo.user_id == form.create_user"
+                          @click="submitForm(0)">保存</el-button> -->
+
+          <el-button
+            type="primary"
+            v-if="form.status == 1 && hasPaddingBtnPermission()"
+            @click="orderLogPass(form.id)"
+          >通过</el-button
+          >
+          <el-button
+            type="danger"
+            v-if="form.status == 1 && hasRejectionBtnPermission()"
+            @click="orderLogReject(form.id)"
+          >驳回</el-button
+          >
+        </div>
+        </template>
     </el-dialog>
 
     <!-- 工单详情 -->
     <el-dialog
+      class="ztzf-dialog-mange"
       align-center
       v-model="detailVisibleCopy"
       title="工单详情"
@@ -778,33 +787,33 @@
           </el-col>
         </el-row>
 
-        <el-row>
-          <div class="add-box-btns">
-            <el-button
-              type="danger"
-              v-if="form.status == 0 || (form.status == 2 && userInfo.user_id == form.create_user)"
-              @click="submitForm(1)"
-              >发布</el-button
-            >
-            <!-- <el-button type="primary" v-if="form.status == 0 || userInfo.user_id == form.create_user"
-                            @click="submitForm(0)">保存</el-button> -->
-
-            <el-button
-              type="primary"
-              v-if="form.status == 1 && hasPaddingBtnPermission()"
-              @click="orderLogPass(form.id)"
-              >通过</el-button
-            >
-            <el-button
-              type="danger"
-              v-if="form.status == 1 && hasRejectionBtnPermission()"
-              @click="orderLogReject(form.id)"
-              >驳回</el-button
-            >
-            <el-button @click="detailVisibleCopy = false">取消</el-button>
-          </div>
-        </el-row>
       </el-form>
+      <template #footer>
+      <div class="dialog-footer">
+        <el-button
+          type="danger"
+          v-if="form.status == 0 || (form.status == 2 && userInfo.user_id == form.create_user)"
+          @click="submitForm(1)"
+        >发布</el-button
+        >
+        <!-- <el-button type="primary" v-if="form.status == 0 || userInfo.user_id == form.create_user"
+                        @click="submitForm(0)">保存</el-button> -->
+
+        <el-button
+          type="primary"
+          v-if="form.status == 1 && hasPaddingBtnPermission()"
+          @click="orderLogPass(form.id)"
+        >通过</el-button
+        >
+        <el-button
+          type="danger"
+          v-if="form.status == 1 && hasRejectionBtnPermission()"
+          @click="orderLogReject(form.id)"
+        >驳回</el-button
+        >
+        <el-button @click="detailVisibleCopy = false">取消</el-button>
+      </div>
+        </template>
     </el-dialog>
   </basic-container>
 </template>
diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 91c4cce..2fe7881 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -414,7 +414,7 @@
         </div>
       </el-form>
       <template #footer>
-        <div class="dialog-footer">
+        <div class="dialog-footer-new">
           <el-button type="danger" :loading="submitLoading" @click="submitForm">发布</el-button>
           <el-button type="infoprimary" plain :loading="draftLoading" @click="saveDraft"
             >存草稿</el-button
@@ -724,7 +724,7 @@
         </div>
 
         <!-- 操作按钮 -->
-        <div class="dialog-footer1">
+        <div class="dialog-footer1-new">
           <div class="leftBtn" :class="currentIndex === 0 ? 'disableds' : ''" @click="leftClick">
             上一页
           </div>
@@ -845,6 +845,7 @@
       title="批量审核"
       width="1100"
       append-to-body
+      class="ztzf-dialog-mange"
       custom-class="review-dialog"
       @close="cancleBatchReject"
     >
@@ -922,7 +923,7 @@
       title="工单复核"
       width="30%"
       append-to-body
-      custom-class="re-check-dialog"
+      class="ztzf-dialog-mange"
       @close="reCheckDialog = false"
     >
       <div class="dialog-footer">
@@ -3109,6 +3110,10 @@
 <style lang="scss">
 .custom-dialog {
   max-height: 96vh;
+  .el-dialog__body {
+
+    border-top: 0.1rem solid #f0f0f0;
+  }
 }
 .custom-qrcode-popover {
   min-width: 160px !important;
@@ -3337,9 +3342,11 @@
     width: 100%;
   }
 }
-
-.dialog-footer {
-  text-align: center;
+:deep(.el-dialog__body) {
+  border-top: 0.1rem solid #f0f0f0;
+}
+.dialog-footer-new {
+  text-align: right;
   padding-top: 16px;
   border-top: 1px solid #ebeef5;
 
@@ -3355,7 +3362,7 @@
     }
   }
 }
-.dialog-footer1 {
+.dialog-footer1-new {
   position: sticky;
   bottom: 28px;
   left: 0;
@@ -3752,6 +3759,7 @@
   :deep(.el-dialog__body) {
     padding: 0;
     background-color: #f5f7fa;
+    border-top: 0.1rem solid #f0f0f0;
   }
 }
 
@@ -3759,6 +3767,7 @@
   :deep(.el-dialog__body) {
     padding: 0;
     background-color: #f5f7fa;
+    border-top: 0.1rem solid #f0f0f0;
   }
 }
 

--
Gitblit v1.9.3