diff --git a/app.js b/app.js
index 41e5876c7..d9e5390b0 100644
--- a/app.js
+++ b/app.js
@@ -36,8 +36,8 @@ let opts = {
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
-//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
-//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
+app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
+app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
app.use('/callComponent',proxy('http://127.0.0.1:8012',opts));
app.use('/app',proxy('http://127.0.0.1:8012',opts));
diff --git a/public/pages/common/communityManage/communityManage.html b/public/pages/common/communityManage/communityManage.html
index 6667b4c14..02def5047 100644
--- a/public/pages/common/communityManage/communityManage.html
+++ b/public/pages/common/communityManage/communityManage.html
@@ -63,6 +63,7 @@
附近地标 |
城市编码 |
+ {{item}} |
状态 |
操作 |
@@ -74,6 +75,9 @@
{{community.nearbyLandmarks}} |
{{community.cityName}} |
+
+ {{item}}
+ |
{{community.stateName}} |
{
+ $that._getColumnsValue(item);
+ });
+ },
+ _getColumnsValue: function (_community) {
+ _community.listValues = [];
+ if (!_community.hasOwnProperty('communityAttrDtos') || _community.communityAttrDtos.length < 1) {
+ $that.communityManageInfo.listColumns.forEach(_value => {
+ _community.listValues.push('');
+ })
+ return;
+ }
+
+ let _communityAttrDtos = _community.communityAttrDtos;
+
+
+
+ $that.communityManageInfo.listColumns.forEach(_value => {
+ let _tmpValue = '';
+ _communityAttrDtos.forEach(_attrItem => {
+ if (_value == _attrItem.specCdName) {
+ _tmpValue = _attrItem.value;
+ }
+ })
+ _community.listValues.push(_tmpValue);
+ })
+
+ },
+ _getColumns: function (_call) {
+ console.log('_getColumns');
+ $that.communityManageInfo.listColumns = [];
+ vc.getAttrSpec('building_community_attr', function (data) {
+ $that.communityManageInfo.listColumns = [];
+ data.forEach(item => {
+ if (item.listShow == 'Y') {
+ $that.communityManageInfo.listColumns.push(item.specName);
+ }
+ });
+ _call();
+ });
}
-
}
});
})(window.vc);
\ No newline at end of file
|