Browse Source

#bug292居民标签配置新增

feature
mk 3 years ago
parent
commit
9a79adea1a
  1. 10
      src/views/modules/communityService/labelConfig/addForm.vue
  2. 6
      src/views/modules/communityService/labelConfig/index.vue

10
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");

6
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

Loading…
Cancel
Save