Compare commits

...

2 Commits

6 changed files with 105 additions and 47 deletions

View File

@ -3,9 +3,9 @@
<cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true"> <cu-custom bgColor="bg-gradual-blueness" :isBack="true" :isRingt="true">
<block slot="backText">返回</block> <block slot="backText">返回</block>
<block slot="content">检查项目列表</block> <block slot="content">检查项目列表</block>
<block slot="right"> <!-- <block slot="right">
<view @tap.stop="openAuth('CAMERA')">扫描</view> <view @tap.stop="openAuth('CAMERA')">扫描</view>
</block> </block>-->
</cu-custom> </cu-custom>
<scroll-view scroll-y> <scroll-view scroll-y>
<view class="spot-list"> <view class="spot-list">

View File

@ -245,10 +245,12 @@
var content = res.data.varList; var content = res.data.varList;
for(var i=0;i<content.length;i++){ for(var i=0;i<content.length;i++){
if(content[i].checkCount==0){ /*if(content[i].checkCount==0){
this.list.push(content[i]); this.list.push(content[i]);
this.totalList.push(content[i]); this.totalList.push(content[i]);
} }*/
this.list.push(content[i]);
this.totalList.push(content[i]);
/*else{ /*else{
this.list1.push(content[i]); this.list1.push(content[i]);
this.totalList.push(content[i]); this.totalList.push(content[i]);

View File

@ -88,7 +88,7 @@ import {
if (res.data.pd) { if (res.data.pd) {
uni.hideLoading(); uni.hideLoading();
_this.form = res.data.pd; _this.form = res.data.pd;
console.log(_this.form) console.log("111",_this.form)
_this.$set(_this.form, 'REVIEW_RESULT', ''); _this.$set(_this.form, 'REVIEW_RESULT', '');
} }
} }

View File

@ -628,6 +628,7 @@ import {
triggered: false, triggered: false,
count: {}, count: {},
totalList: [], totalList: [],
hiddenList: [],
SURVEY_ID: '', SURVEY_ID: '',
IS_PUBLISH: '', IS_PUBLISH: '',
isGoodsEdit: false, // isGoodsEdit: false, //
@ -1283,6 +1284,52 @@ import {
}, 2000); }, 2000);
} }
}) })
uni.request({
url: basePath + '/app/hiddenDangerCheckStandardCustom/checkList',
method: 'POST',
dataType: 'json',
header: {
'Content-type': 'application/x-www-form-urlencoded'
},
data: {
USER_NAME: loginUser.NAME,
CHECK_DEPARTMENT_ID: loginUser.DEPARTMENT_ID,
IS_MAIN: loginUser.ISMAIN,
CORPINFO_ID: loginUser.CORPINFO_ID,
USER_ID: loginUser.USER_ID,
},
success: (res) => {
if ("success" == res.data.result) {
uni.hideLoading();
var content = res.data.varList;
for (var i = 0; i < content.length; i++) {
if (content[i].checkCount == 0) {
this.totalList.push(content[i]);
} else {
this.totalList.push(content[i]);
}
}
} else {
uni.showToast({
icon: 'none',
title: '系统异常',
duration: 2000
});
}
},
fail: (res) => {
uni.showToast({
icon: 'none',
title: "服务器正在升级,请稍后再试。",
duration: 2000
});
setTimeout(function () {
plus.runtime.quit();
}, 2000);
}
})
}, },
// //
getHiddenRoll() { getHiddenRoll() {
@ -1399,7 +1446,13 @@ import {
for (var i = 0; i < _this.totalList.length; i++) { for (var i = 0; i < _this.totalList.length; i++) {
if (_this.totalList[i].LISTMANAGER_ID == listId) { if (_this.totalList[i].LISTMANAGER_ID == listId) {
flag = true; flag = true;
_this.goToList({listId: _this.totalList[i].LISTMANAGER_ID, listName: _this.totalList[i].NAME}); if(_this.totalList[i].PERIOD) {
_this.goToList({listId: _this.totalList[i].LISTMANAGER_ID, listName: _this.totalList[i].NAME});
break;
}
} else if (_this.totalList[i].CUSTOM_ID == listId) {
flag = true;
_this.goTohidden({listId: _this.totalList[i].CUSTOM_ID, listName: _this.totalList[i].NAME});
break; break;
} }
} }
@ -1454,40 +1507,45 @@ import {
// }); // });
// // _this.goToList({listId:_this.totalList[i].LISTMANAGER_ID,listName:_this.totalList[i].NAME}); // // _this.goToList({listId:_this.totalList[i].LISTMANAGER_ID,listName:_this.totalList[i].NAME});
// } // }
// }); // });
// }, // },
// //
goToexclude(e) { goToexclude(e) {
this.$emit('setInit', true); this.$emit('setInit', true);
uni.navigateTo({ uni.navigateTo({
url: '/pages/basics/hidden-danger-exclude/exclude-list', url: '/pages/basics/hidden-danger-exclude/exclude-list',
}); });
}, },
goToDanger(e) { goToDanger(e) {
this.$emit('setInit', true); this.$emit('setInit', true);
uni.navigateTo({ uni.navigateTo({
url: '/pages/basics/danger-exclude/danger-exclude-list', url: '/pages/basics/danger-exclude/danger-exclude-list',
}); });
}, },
toSetinit(e) { toSetinit(e) {
this.$emit('setInit', true); this.$emit('setInit', true);
}, },
// //
goToList(e) { goToList(e) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/hidden-trouble-spot?listId=' + e.listId + '&listName=' + e.listName url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/hidden-trouble-spot?listId=' + e.listId + '&listName=' + e.listName
}); });
// uni.navigateTo({ // uni.navigateTo({
// url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/check-items-list?listId='+e.listId+'&listName='+e.listName // url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/check-items-list?listId='+e.listId+'&listName='+e.listName
// }); // });
}, },
goToFace(userId) { goTohidden(e) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/basics/recognitionFace/index?userId=' + userId url: '/pages/application/hidden-danger-check-standard/custom/list-item?listId=' + e.listId + '&listName=' + e.listName
}); });
},
goToFace(userId) {
uni.navigateTo({
url: '/pages/basics/recognitionFace/index?userId=' + userId
});
}
} }
} }
}
</script> </script>
<style> <style>
.status_bar { .status_bar {

View File

@ -81,7 +81,6 @@
</view> </view>
<view> <view>
<text>{{item.TITLE}}</text> <text>{{item.TITLE}}</text>
</view> </view>
</view> </view>
@ -175,8 +174,8 @@
tabCur :0, tabCur :0,
} }
}, },
mounted(e){
mounted(e){
this.getData(); this.getData();
let that=this; let that=this;
let CustomBar = this.CustomBar; let CustomBar = this.CustomBar;
@ -237,6 +236,8 @@
} }
}, },
getData() { getData() {
this.getPcData();
this.getTxData();
var _this = this; var _this = this;
uni.showLoading({ uni.showLoading({
title: '请稍候' title: '请稍候'
@ -269,7 +270,6 @@
} }
}); });
}, },
getPcData() { getPcData() {
var _this = this; var _this = this;
uni.showLoading({ uni.showLoading({
@ -337,16 +337,12 @@
}); });
}, },
// //
goToDetail(e) {
},
goToTxDetail(e){ goToTxDetail(e){
uni.navigateTo({ uni.navigateTo({
url: '/pages/news/notice-list-detail?id='+e+'&type=1', url: '/pages/news/notice-list-detail?id='+e+'&type=1',
}); });
}, },
goToPcDetail(e){ goToPcDetail(e){
console.log(e)
if(this.TabCur == 0) { if(this.TabCur == 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/news/notice-list-detail?id='+e+'&type=0', url: '/pages/news/notice-list-detail?id='+e+'&type=0',
@ -388,6 +384,7 @@
duration: 1500 duration: 1500
}); });
_this.getQuery() _this.getQuery()
this.getTxData();
}, },
fail: (err) => { fail: (err) => {
uni.hideLoading(); uni.hideLoading();

View File

@ -49,8 +49,10 @@
this.type =e.type; this.type =e.type;
this.id=e.id; this.id=e.id;
this.getData(); this.getData();
console.log(e)
}, },
onShow(){
this.getData();
},
methods: { methods: {
getData() { getData() {
var _this = this; var _this = this;
@ -61,7 +63,6 @@
if("1"==_this.type){ if("1"==_this.type){
url = basePath + '/app/notice/goEditForPc' url = basePath + '/app/notice/goEditForPc'
} }
console.log("1111",_this.id)
uni.request({ uni.request({
url:url, url:url,
method: 'POST', method: 'POST',