From ef9eb48046f8dfbb3c18b0f45befcbeddbdf6899 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期三, 29 五月 2024 03:56:23 +0800
Subject: [PATCH] 光纤配置数据回显和保存
---
src/components/view/b2-standard-template.vue | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/components/view/b2-standard-template.vue b/src/components/view/b2-standard-template.vue
index 60cd463..dcc22f9 100644
--- a/src/components/view/b2-standard-template.vue
+++ b/src/components/view/b2-standard-template.vue
@@ -62,8 +62,8 @@
:upUrl="$api.StandardTemplate.upStandardTemplate" :delUrl="$api.StandardTemplate.delStandardTemplate"
:componentData="componentData" :key="upIndex" />
</div>
- <el-dialog title="妯℃澘缂栧埗" :visible.sync="isShow" width="80%" :before-close="isClose">
- <div style="width: 100%;height: 80vh;overflow: auto;" v-if="isShow">
+ <el-dialog title="妯℃澘缂栧埗" :visible.sync="isShow" width="85%" :before-close="isClose">
+ <div style="width: 100%;height: 82vh;overflow: auto;" v-if="isShow">
<Excel :data="row.thing" :execlTitle="row.name" v-loading="loading"></Excel>
</div>
</el-dialog>
@@ -162,13 +162,20 @@
this.componentData.do.splice(1, 1)
}
if (!up) {
+ this.componentData.do.splice(2, 1)
this.componentData.do.splice(0, 1)
}
this.addPower = add
},
templateWrite(row) {
- this.isShow = true
- this.row = row
+ this.$axios.get(this.$api.StandardTemplate.getEditTemplatePreparation + '?id=' + row.id).then(res => {
+ if(res.code != 200){
+ return
+ }
+ this.row = row
+ this.row.thing = res.data
+ this.isShow = true
+ })
},
closed() {
this.loading = true
--
Gitblit v1.9.3