Browse Source

家庭类别,温暖找人bug

feature
mk 2 years ago
parent
commit
fe38742ce0
  1. 1
      src/views/modules/communityService/jinengzhaoren/addForm.vue
  2. 6
      src/views/modules/communityService/wennuanzhaoren/addForm.vue
  3. 32
      src/views/modules/portrayal/fangwu/cpts/leftTop.vue

1
src/views/modules/communityService/jinengzhaoren/addForm.vue

@ -722,7 +722,6 @@ export default {
this.formData.resiSearchTagName = "";
},
getLastItem(list, vals, key) {
console.log(list, vals, key);
let LIST = list || [];
for (let item of LIST) {
for (let i of vals) {

6
src/views/modules/communityService/wennuanzhaoren/addForm.vue

@ -454,6 +454,7 @@ export default {
principalContact: "", //
serviceTimeStart: "", //yyyy-MM-dd
serviceTimeEnd: "", //yyyy-MM-dd
dataCategoryCode:"warm",
remark: "", //
},
feedbackFormData: {
@ -721,7 +722,6 @@ export default {
this.formData.resiSearchTagName = "";
},
getLastItem(list, vals, key) {
console.log(list, vals, key);
let LIST = list || [];
for (let item of LIST) {
for (let i of vals) {
@ -962,14 +962,14 @@ export default {
...this.feedbackFormData,
};
const { data, code, msg } = await requestPost(url, params);
const { data, code, msg ,internalMsg} = await requestPost(url, params);
if (code === 0) {
this.$message.success("反馈成功");
this.resetData();
this.$emit("handleOk");
} else {
this.$message.error(msg);
this.$message.error(internalMsg);
}
},
async addFuwu() {

32
src/views/modules/portrayal/fangwu/cpts/leftTop.vue

@ -13,7 +13,7 @@
<span class="label gray">用途</span><span class="value">{{ houseInfo.purposeName || "--" }}</span>
</div>
<div class="item f-font14">
<span class="label gray">家庭类别</span><span class="value">{{ houseInfo.resideSituation || "--" }}</span>
<span class="label gray">家庭类别</span><span class="value">{{ familyTagsStr || "--" }}</span>
</div>
<div class="item f-font14">
<span class="label gray">房屋状态</span><span class="value">{{ houseInfo.rentName || "--" }}</span>
@ -31,11 +31,14 @@ export default {
//
data() {
return {
houseInfo: {}
houseInfo: {},
family_tag: [],
familyTagsStr:''
};
},
//
created() {
this.getDictOptions()
},
mounted() {
this.getPersonalFile()
@ -60,6 +63,31 @@ export default {
let { code, data, msg } = await requestPost(url)
if (code == 0) {
this.houseInfo = data
const valuesToMatch = this.houseInfo.familyTags;
console.log(valuesToMatch);
const result = this.family_tag
.filter(item => valuesToMatch.includes(item.value))
.map(item => item.label)
.join(',');
this.familyTagsStr = result
console.log(result);
} else {
this.$message.error(msg)
}
},
async getDictOptions() {
const url = "/sys/dict/data/dictlist"
let params = {
dictType: 'family_tag'
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.family_tag = data;
} else {
this.$message.error(msg)
}

Loading…
Cancel
Save