Browse Source

重复房屋的问题

v4.3.1_xiaowang_bug
mk 1 year ago
parent
commit
abaa0e357d
  1. 3
      subpages/house/pages/housePortrait/component/graph/graph.js
  2. 4
      utils/config.js

3
subpages/house/pages/housePortrait/component/graph/graph.js

@ -61,6 +61,7 @@ Component({
getFamilyRelationshipListByHouseId(params).then(({
data
}) => {
data = data.filter(item=>item.id!=this.data.houseId);
const rootNode = {};
rootNode["id"] = this.data.houseId;
rootNode["name"] = this.data.houseName;
@ -107,7 +108,6 @@ Component({
},
};
});
let links = data.map((item, index) => ({
"source": 0,
"target": index,
@ -121,7 +121,6 @@ Component({
"color": "#9cbbf9"
}
}))
// links.splice(links.length-1,1)
let categories = data.map((item, index) => ({
"name":item.houseHolderRel||'未知',
"id":index+1,

4
utils/config.js

@ -5,8 +5,8 @@ module.exports = {
};
function BASEURL() {
// return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
return 'http://192.168.1.144/api/' //测试环境
return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
// return 'http://192.168.1.144/api/' //测试环境
// return 'http://219.146.91.110:30801/api/'
// return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
// return 'http://192.168.1.144/api/' //测试环境

Loading…
Cancel
Save