From a8230f1ab02069431738bd72f36ab95a0ace01ae Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 06 八月 2024 15:22:22 +0800
Subject: [PATCH] 修改仿真后台
---
web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue b/web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue
index bfb24e0..dbaf9aa 100644
--- a/web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue
+++ b/web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue
@@ -13,6 +13,9 @@
<zt-form-item label="妫�绱㈠叧閿瓧" prop="contentType">
<el-input v-model="dataForm.contentType"></el-input>
</zt-form-item>
+ <zt-form-item label="澶囨敞" prop="remark">
+ <el-input v-model="dataForm.remark"></el-input>
+ </zt-form-item>
<input type="hidden" id="svgContentId" :value="dataForm.svgContent"/>
<zt-form-item>
<!-- <el-upload action="*" :on-change="uploadSvgContent">-->
@@ -56,12 +59,12 @@
}
},
methods: {
- async init() {
- if (this.dataForm.id) {
- let res = await this.$http.get(`/sysPictureBase/${this.dataForm.id}`)
+ async init(id,row) {
+ if (id) {
+ //let res = await this.$http.get(`/sysPictureBase/${this.dataForm.id}`)
this.dataForm = {
...this.dataForm,
- ...res.data
+ ...row
}
console.log(this.dataForm, 'this.dataForm this.dataForm')
}
--
Gitblit v1.9.1