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; this.formType = type;
if(type == 'info'){ if(type == 'info'){
this.infoType = true this.infoType = true
}else if(type == 'edit'){
await this.getFormEdit(row.tagId);
} }
await this.getFormEdit(row.tagId);
this.tagId = row.tagId; this.tagId = row.tagId;
this.tagObj = row this.tagObj = row
for (let i in this.tableData) { for (let i in this.tableData) {
@ -587,8 +588,8 @@ export default {
} }
}, },
async addSubmit() { async addSubmit() {
let url = ""; var url = "";
let params = {}; var params = {};
if (this.formType == "edit") { if (this.formType == "edit") {
url = "/governance/resiSearchTag/updateResiSearchTag"; url = "/governance/resiSearchTag/updateResiSearchTag";
params = { params = {
@ -603,7 +604,8 @@ export default {
rules: this.tableData, 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) { if (code == 0) {
this.$message.success("操作成功"); this.$message.success("操作成功");
this.$emit("dialogOk"); this.$emit("dialogOk");

6
src/views/modules/communityService/labelConfig/index.vue

@ -173,9 +173,9 @@ export default {
if(type=="add"){ if(type=="add"){
this.formTitle = '新增标签' this.formTitle = '新增标签'
this.formShow = true this.formShow = true
// this.$nextTick(() => { this.$nextTick(() => {
// this.$refs.Config_form.initForm(type, row) this.$refs.Config_form.initForm(type, row)
// }) })
}else { }else {
this.formTitle = '修改标签' this.formTitle = '修改标签'
this.formShow = true this.formShow = true

Loading…
Cancel
Save