优化查询

This commit is contained in:
wuxw 2020-11-27 23:58:17 +08:00
parent 5b14e78c8e
commit cfba6a6048
3 changed files with 8 additions and 5 deletions

4
app.js
View File

@ -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));

View File

@ -63,7 +63,7 @@
<!--<th>小区地址</th>-->
<th width="25%">附近地标</th>
<th>城市编码</th>
<th v-for="(item,index) in communityManageInfo.listColumns">{{item}}</th>
<th v-for="(item,index) in communityManageInfo.listColumns">{{item.itemName}}</th>
<th>状态</th>
<th class="text-right">操作</th>
</tr>

View File

@ -102,7 +102,7 @@
$that.communityManageInfo.listColumns.forEach(_value => {
let _tmpValue = '';
_communityAttrDtos.forEach(_attrItem => {
if (_value == _attrItem.specCdName) {
if (_value.specCd == _attrItem.specCd) {
_tmpValue = _attrItem.value;
}
})
@ -117,7 +117,10 @@
$that.communityManageInfo.listColumns = [];
data.forEach(item => {
if (item.listShow == 'Y') {
$that.communityManageInfo.listColumns.push(item.specName);
$that.communityManageInfo.listColumns.push({
specCd:item.specCd,
specName:item.specName
});
}
});
_call();