From 196c31f1f040c315de09a6808fc9cd63c63f9950 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期四, 23 五月 2024 18:04:33 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/view/b2-standard-template.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/components/view/b2-standard-template.vue b/src/components/view/b2-standard-template.vue
index da8c28e..d42a770 100644
--- a/src/components/view/b2-standard-template.vue
+++ b/src/components/view/b2-standard-template.vue
@@ -167,8 +167,11 @@
 				this.addPower = add
 			},
 			templateWrite(row) {
-				this.isShow = true
-				this.row = row
+				this.$axios.get(this.$api.StandardTemplate.getEditTemplatePreparation + '?id=' + row.id).then(res => {
+					this.row = row
+					this.row.thing = res.data
+					this.isShow = true
+				})
 			},
 			closed() {
 				this.loading = true
@@ -195,6 +198,13 @@
 						}
 					}
 				}
+        data.data[0].celldata.forEach(a=>{
+          if(a.v.ps!=undefined&&(a.v.ps.value==='妫�楠屽��' || a.v.ps.value==='璁惧鍚嶇О' || a.v.ps.value==='璁惧缂栫爜' || a.v.ps.value==='缁撹')){
+            if(a.v.v === undefined){
+              a.v.v = ""
+            }
+          }
+        })
 				this.$axios.post(this.$api.StandardTemplate.upStandardTemplate, {
 					id: this.row.id,
 					thing: JSON.stringify(data),

--
Gitblit v1.9.3