web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
web/src/views/modules/sysPictureBase/SysPictureBase.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
web/src/views/modules/sysPictureBase/SysPictureBase-AddOrUpdate.vue
@@ -56,12 +56,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') } web/src/views/modules/sysPictureBase/SysPictureBase.vue
@@ -30,8 +30,13 @@ </el-table-column> <el-table-column prop="contentType" label="检索关键字"/> <zt-table-column-dict prop="productType" label="产品类型" dict="product" :additional=additional /> <zt-table-column-handle :table="table" delete-perm="sysPictureBase::delete"/> <zt-table-column-handle :table="table" edit-perm="sysPictureBase::delete" delete-perm="sysPictureBase::delete"> <template slot-scope="scope"> <zt-table-button size="small" type="primary" @click="edit(scope.row)">修改 </zt-table-button> </template> </zt-table-column-handle> </el-table> <!-- 弹窗, 新增 / 修改 --> <add-or-update ref="addOrUpdate" @refreshDataList="table.query"/> @@ -72,6 +77,9 @@ await this.$tip.success() this.$refs.tableObj.query() } }, edit(row){ this.$refs.addOrUpdate.$refs.dialog.init(row.id,row) } } }