mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化巡检
This commit is contained in:
parent
0e8a2ef544
commit
536c54aff1
8
app.js
8
app.js
@ -34,10 +34,10 @@ let opts = {
|
|||||||
//app.use('/callComponent',proxy('https://app.demo.winqi.cn/',opts));
|
//app.use('/callComponent',proxy('https://app.demo.winqi.cn/',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('/callComponent',proxy('http://api.demo.winqi.cn:8012',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('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||||
//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||||
app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
|
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
|
||||||
app.use('/app',proxy('http://192.168.1.16:8012',opts));
|
//app.use('/app',proxy('http://192.168.1.16:8012',opts));
|
||||||
|
|
||||||
//app.listen(3000);
|
//app.listen(3000);
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|||||||
@ -96,15 +96,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="title m-20">今日巡检</div>
|
<div class="title m-20">今日巡检</div>
|
||||||
<div class="box5_con_bot">
|
<div class="box5_con_bot">
|
||||||
<ul>
|
<ul id="todayInpection">
|
||||||
<li>1、列表类信息标题测试列表类信息标题测试列表类信息标题测试</li>
|
|
||||||
<li>2、列表类信息标题测试列表类信息标题测试列表闻标题测试</li>
|
|
||||||
<li>3、列表类信息标题测试列表类信息标题测试信息标题测试</li>
|
|
||||||
<li>4、列表类信息标题测试标题测试列表类信息标题测试</li>
|
|
||||||
<li>5、列表类信息标题测试列表类信息标题测列表类信息标题测试</li>
|
|
||||||
<li>6、列表类信息标题测试列表类信息标题测试列表测试</li>
|
|
||||||
<li>7、列表类信息标题测试列表类信息标题测试列表类信息标题测试</li>
|
|
||||||
<li>8、列表类信息标题测试列表类信息标题测试列表类标题测试</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -0,0 +1,45 @@
|
|||||||
|
(function () {
|
||||||
|
|
||||||
|
function _loadAssetInspection() {
|
||||||
|
|
||||||
|
let param = {
|
||||||
|
params: {
|
||||||
|
communityId: vc.getCurrentCommunity().communityId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
vc.http.apiGet(
|
||||||
|
'/bigScreen/getAssetInspection',
|
||||||
|
param,
|
||||||
|
function (json, res) {
|
||||||
|
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||||
|
let _json = JSON.parse(json);
|
||||||
|
if (_json.code == 0) {
|
||||||
|
let _data = _json.data;
|
||||||
|
initInspeciton(_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
function (errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
|
||||||
|
vc.toast(errInfo);
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function initInspeciton(_dataArr) {
|
||||||
|
let _todayInpection = document.getElementById("todayInpection");
|
||||||
|
let _li = "";
|
||||||
|
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
|
||||||
|
_li += "<li>" + (_inIndex + 1) + ".0、" + _dataArr[_inIndex].msg + "</li>";
|
||||||
|
|
||||||
|
if(_inIndex >=7){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_todayInpection.innerHTML = _li;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
_loadAssetInspection();
|
||||||
|
})()
|
||||||
Loading…
Reference in New Issue
Block a user