From e5454b769d44a34af423bf87ac8a740bf8c20341 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 29 四月 2025 13:25:29 +0800
Subject: [PATCH] Merge branch 'dev' into dev_tides

---
 src/views/standard/model/index.vue |   84 ++++++++++++++++-------------------------
 1 files changed, 33 insertions(+), 51 deletions(-)

diff --git a/src/views/standard/model/index.vue b/src/views/standard/model/index.vue
index ab46ae4..6d3ce8f 100644
--- a/src/views/standard/model/index.vue
+++ b/src/views/standard/model/index.vue
@@ -1,29 +1,23 @@
 <template>
-  <div class="standard-template">
+  <div class="capacity-scope">
     <div class="search">
-      <div class="search_thing">
-        <div class="search_label">妯℃澘鍚嶇О锛�</div>
-        <div class="search_input">
+      <div class="search_box">
+        <div class="search_item">
+          <span class="search_label">妯℃澘鍚嶇О</span>
           <el-input v-model="queryParams.name" clearable placeholder="璇疯緭鍏�" size="small"
-            @keyup.enter.native="refreshTable()"></el-input>
+                    @keyup.enter.native="refreshTable()"></el-input>
+        </div>
+        <div class="search_button">
+          <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
+          <el-button size="mini" @click="refresh">閲嶇疆</el-button>
         </div>
       </div>
-      <div class="search_thing" style="padding-left: 30px">
-        <el-button size="small" @click="refresh()">閲� 缃�</el-button>
-        <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
-      </div>
-      <div class="btn">
+      <div>
         <el-button v-if="checkPermi(['standard:model:add'])" size="small" type="primary" @click="openAdd">鏂板</el-button>
-        <!-- <el-button
-          v-if="checkPermi(['standard:model:copy'])"
-          size="small"
-          @click="copyTemplate"
-          >澶嶅埗妯$増</el-button
-        > -->
       </div>
     </div>
     <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"
-      :height="'calc(100vh - 250px)'" style="padding: 20px; padding-top: 0" @pagination="pagination"></lims-table>
+      :height="'calc(100vh - 250px)'" @pagination="pagination"></lims-table>
     <el-dialog :before-close="isClose" :close-on-click-modal="false" :close-on-press-escape="false"
       :visible.sync="isShow" title="妯℃澘缂栧埗" width="85%">
       <div v-if="isShow" style="width: 100%; height: 82vh; overflow: auto">
@@ -99,12 +93,11 @@
         { label: "妯℃澘鍚嶇О", prop: "name" },
         { label: "澶囨敞", prop: "remark" },
         { label: "鍒涘缓鐢ㄦ埛", prop: "createUserName" },
-        { label: "鍒涘缓鏃堕棿", prop: "createTime" },
+        { label: "鍒涘缓鏃堕棿", prop: "createTime", width: "160" },
         { label: "鏇存柊鐢ㄦ埛", prop: "updateUserName" },
-        { label: "淇敼鏃堕棿", prop: "updateTime" },
+        { label: "淇敼鏃堕棿", prop: "updateTime", width: "160" },
         {
           dataType: "action",
-          fixed: "right",
           label: "鎿嶄綔",
           operation: [
             {
@@ -190,7 +183,10 @@
       this.page.size = limit;
       this.getList();
     },
-    refreshTable(e) {
+    refreshTable(event) {
+      if (event && typeof event.preventDefault === 'function') {
+        event.preventDefault(); // 闃绘榛樿琛屼负
+      }
       this.page.current = 1;
       this.getList();
     },
@@ -226,7 +222,6 @@
               delete params.id;
               addStandardTemplate(params)
                 .then((res) => {
-                  if (res.code == 201) return;
                   this.isShowCopyTem = false;
                   this.submitCopyInfoLoading = false;
                   this.$message.success("鏂板鎴愬姛");
@@ -241,7 +236,6 @@
               params.thing = this.copyForm.thing ? this.copyForm.thing : "";
               upStandardTemplate(params)
                 .then((res) => {
-                  if (res.code == 201) return;
                   this.isShowCopyTem = false;
                   this.submitCopyInfoLoading = false;
                   this.$message.success("淇敼鎴愬姛");
@@ -255,7 +249,6 @@
             case "澶嶅埗妯$増":
               copyStandardTemplate(params)
                 .then((res) => {
-                  if (res.code == 201) return;
                   this.isShowCopyTem = false;
                   this.submitCopyInfoLoading = false;
                   this.$message.success("澶嶅埗鎴愬姛");
@@ -286,7 +279,6 @@
       })
         .then(() => {
           delStandardTemplate({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refreshTable("page");
           });
@@ -360,7 +352,6 @@
         thing: JSON.stringify(data),
         name: luckysheet.getWorkbookName(["name"]),
       }).then((res) => {
-        if (res.code == 201) return;
         this.loading = false;
         this.$message.success("宸蹭繚瀛�");
         this.isShow = false;
@@ -384,37 +375,28 @@
 </script>
 
 <style scoped>
-/* >>>.el-dialog__wrapper {
-  z-index: 100 !important;
-} */
-
 .search {
-  background-color: #fff;
-  height: 80px;
+  height: 46px;
+  display: flex;
+  justify-content: space-between;
+}
+.search_box {
+  display: flex;
+}
+.search_item {
+  margin-bottom: 18px;
+  margin-right: 10px;
   display: flex;
   align-items: center;
-  position: relative;
+  line-height: 32px;
 }
-
-.search_thing {
-  width: 350px;
-  display: flex;
-  align-items: center;
-}
-
 .search_label {
-  width: 90px;
+  width: 88px;
   font-size: 14px;
-  text-align: right;
+  font-weight: 700;
+  color: #606266;
 }
-
-.search_input {
-  width: calc(100% - 110px);
-}
-
-.btn {
-  position: absolute;
-  right: 14px;
-  top: 20px;
+.search_button {
+  line-height: 26px;
 }
 </style>

--
Gitblit v1.9.3