From f8fd1bd1df45a1aa7b6717562722e61c7ee8b4c3 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期三, 15 十月 2025 10:20:31 +0800
Subject: [PATCH] 显示调整

---
 seller/src/views/template/goodsCustomizeTemplate.vue |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/seller/src/views/template/goodsCustomizeTemplate.vue b/seller/src/views/template/goodsCustomizeTemplate.vue
index 7ad97b1..391465c 100644
--- a/seller/src/views/template/goodsCustomizeTemplate.vue
+++ b/seller/src/views/template/goodsCustomizeTemplate.vue
@@ -126,7 +126,11 @@
             <!-- 宸叉坊鍔犵殑鏍囬鍒楄〃 -->
             <div v-for="(title, index) in form.titles" :key="index" class="title-item">
               <card class="title-text">
-                <Input v-model="title.templateTitle" placeholder="璇疯緭鍏ユ枃鏈爣棰�" style="width: 300px; margin-top: 8px;"/>
+                <div style="display: flex; align-items: center; gap: 8px;">
+                  <span>{{ title.contentType ==='TEXT' ? '鏂囨湰鏍囬': '鍥剧墖鏍囬'}} :</span>
+                  <Input v-model="title.templateTitle" placeholder="璇疯緭鍏ユ爣棰�" style="width: 300px; margin-top: 8px;"/>
+                </div>
+
                 <Button  class="delete-btn" type="text" @click="removeTitle(index)" style="color: #ff4d4f;">鍒犻櫎</Button>
               </card>
 <!--              <card v-if="title.contentType === 'IMAGE'" class="title-image">-->
@@ -349,12 +353,19 @@
 
     },
     delTemplate(row){
-      del(row.id).then(res =>{
-        if (res.code === 200){
-          this.$Message.success(res.msg)
+      this.$Modal.confirm({
+        title: "鎿嶄綔纭",
+        content: "鎮ㄧ‘璁よ鍒犻櫎銆� " + row.templateName + "銆戝悧?",
+        onOk: () => {
+          del(row.id).then(res =>{
+            if (res.code === 200){
+              this.$Message.success(res.msg)
+            }
+            this.getList()
+          })
         }
-        this.getList()
-      })
+      });
+
     },
     async upLoadImg(file) {
       console.log("鎵撳嵃涓婁紶1")
@@ -505,6 +516,7 @@
             if (res.code === 200) {
               this.$Message.success(res.msg);
               this.modelShow = false;
+              this.showModal = false;
               this.getList();
             } else {
               this.$Message.error(res.msg);
@@ -514,7 +526,6 @@
             console.error(error);
           } finally {
             this.submitLoading = false;
-            this.showModal = false;
           }
         }
       });

--
Gitblit v1.8.0