diff --git a/src/views/modules/communityService/labelConfig/addForm.vue b/src/views/modules/communityService/labelConfig/addForm.vue index 44e611073..74b8578b7 100644 --- a/src/views/modules/communityService/labelConfig/addForm.vue +++ b/src/views/modules/communityService/labelConfig/addForm.vue @@ -313,8 +313,9 @@ export default { this.formType = type; if(type == 'info'){ this.infoType = true + }else if(type == 'edit'){ + await this.getFormEdit(row.tagId); } - await this.getFormEdit(row.tagId); this.tagId = row.tagId; this.tagObj = row for (let i in this.tableData) { @@ -587,8 +588,8 @@ export default { } }, async addSubmit() { - let url = ""; - let params = {}; + var url = ""; + var params = {}; if (this.formType == "edit") { url = "/governance/resiSearchTag/updateResiSearchTag"; params = { @@ -603,7 +604,8 @@ export default { rules: this.tableData, }; } - let { data, msg, code } = await requestPost(url, params); + console.log(url); + const { data, msg, code } = await requestPost(url, params); if (code == 0) { this.$message.success("操作成功"); this.$emit("dialogOk"); diff --git a/src/views/modules/communityService/labelConfig/index.vue b/src/views/modules/communityService/labelConfig/index.vue index b7c7c5ec0..3ee86c8ac 100644 --- a/src/views/modules/communityService/labelConfig/index.vue +++ b/src/views/modules/communityService/labelConfig/index.vue @@ -173,9 +173,9 @@ export default { if(type=="add"){ this.formTitle = '新增标签' this.formShow = true - // this.$nextTick(() => { - // this.$refs.Config_form.initForm(type, row) - // }) + this.$nextTick(() => { + this.$refs.Config_form.initForm(type, row) + }) }else { this.formTitle = '修改标签' this.formShow = true