作者 徐强

Merge branch 'master' of http://114.215.101.231:8099/xuqiang/eej

... ... @@ -57,6 +57,38 @@
"appkey_android" : "cfa49866c1d6499af910390d0619d810"
}
}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
}
}
},
... ...
... ... @@ -110,6 +110,7 @@
onLoad(option){
this.param = JSON.parse(option.param)
this.companyId = option.companyid
console.log('当前code',this.param.code)
//基本情况
if(this.param.code == 'jbqk'){
this.checkList=[
... ... @@ -293,20 +294,10 @@
title:'一.有组织排口',
pdoType:'0',
organization:0,
selfmonitor:0,
show:false,
type:'waterpull',
subKeyList:[
{
title:'废水排放口1',
param:{code:'swrqk_pk'},
name:'DW001'
},
{
title:'废水排放口2',
param:{code:'swrqk_pk'},
name:'DW002'
}
]
subKeyList:[]
}
]
},
... ... @@ -544,38 +535,18 @@
show:false,
pdoType:'1',
organization:0,
selfmonitor:0,
type:'airpull',
subKeyList:[
{
title:'排口1',
param:{code:'dqwrqk_pc'},
name:'DA001'
},
{
title:'排口2',
param:{code:'dqwrqk_pc'},
name:'DA002'
}
]
subKeyList:[]
},
{
title:'二.无组织排口',
show:false,
pdoType:'1',
organization:1,
selfmonitor:0,
type:'airpull',
subKeyList:[
{
title:'厂界1',
param:{code:'dqwrqk_pc'},
name:'CJ001'
},
{
title:'厂界2',
param:{code:'dqwrqk_pc'},
name:'CJ002'
}
]
subKeyList:[]
}
]
},
... ... @@ -833,13 +804,7 @@
organization:0,
type:'solidpull',
show:true,
subKeyList:[
{
title:'委托处置',
param:{code:'wtcz'},
name:'WTCZ'
}
]
subKeyList:[]
}
]
}
... ... @@ -976,20 +941,10 @@
title:'一.有组织排口',
pdoType:'0',
organization:0,
selfmonitor:1,
show:false,
type:'waterpull',
subKeyList:[
{
title:'废水排放口1',
param:{code:'fs_pk'},
name:'DW001'
},
{
title:'废水排放口2',
param:{code:'fs_pk'},
name:'DW002'
}
]
subKeyList:[]
}
]
}
... ... @@ -1115,38 +1070,18 @@
show:false,
pdoType:'1',
organization:0,
selfmonitor:1,
type:'airpull',
subKeyList:[
{
title:'排口1',
param:{code:'fs_pk'},
name:'DA001'
},
{
title:'排口2',
param:{code:'fs_pk'},
name:'DA002'
}
]
subKeyList:[]
},
{
title:'二.无组织排口',
show:false,
pdoType:'1',
organization:1,
selfmonitor:1,
type:'airpull',
subKeyList:[
{
title:'厂界1',
param:{code:'fs_pk'},
name:'CJ001'
},
{
title:'厂界2',
param:{code:'fs_pk'},
name:'CJ002'
}
]
subKeyList:[]
}
]
}
... ... @@ -1789,24 +1724,63 @@
case 'fs' : code = 'fs_pk'; break;
default : code = 'fq_pc'; break;
}
uni.request({
url:this.apiUrl + 'license/pdos',
method:'get',
data:{companyId:this.companyId,pdoType:this.checkList[i].keyList[j].pdoType,organization:this.checkList[i].keyList[j].organization},
success: (res) => {
for(var k = 0; k < keyList.subKeyList.length; k ++){
for(var l = 0; l < res.data.data.length; l ++){
if(keyList.subKeyList[k].title == res.data.data[l].PDO_NM){
keyList.subKeyList[k].param = JSON.stringify({type:type,pdoCd:res.data.data[l].PDO_CD,code:code})
break
console.log('code',code)
this.getPkInfo(keyList,type,code)
}
}
if(this.checkList[i].tempType == 'radio' && this.param.code == 'swrqk'){
uni.request({
url:this.apiUrl + 'license/otherInfo',
method:'get',
data:{companyId:this.companyId,type:'21'},
success: (res) => {
console.log('产污环节-水污染',res)
}
})
/* for(var i = 0; i < this.checkList[k].keyList.length; i++){
for(var j = 0; j < res.data.data.base.length; j ++){
if(this.checkList[k].keyList[i].title == res.data.data.base[j].FIELDCN){
this.checkList[k].keyList[i].id = res.data.data.base[j].ID
if(this.checkList[k].keyList[i].title == '受纳自然水体'){
for(var l = 0;l < res.data.data.snst.length; l++){
if(res.data.data.snst[l].FILEDSTATICS){
res.data.data.snst[l].FILEDSTATICS = parseInt(res.data.data.snst[l].FILEDSTATICS)
}else{
res.data.data.snst[l].FILEDSTATICS = -1
}
}
this.checkList[k].keyList[i].subKeyList = res.data.data.snst
}
if(this.checkList[k].keyList[i].title == '污染物种类'){
for(var l = 0;l < res.data.data.wrw.length; l++){
if(res.data.data.wrw[l].FILEDSTATICS){
res.data.data.wrw[l].FILEDSTATICS = parseInt(res.data.data.wrw[l].FILEDSTATICS)
}else{
res.data.data.wrw[l].FILEDSTATICS = -1
}
}
this.checkList[k].keyList[i].subKeyList = res.data.data.wrw
}
if(res.data.data.base[j].FILEDSTATICS){
this.checkList[k].keyList[i].check = parseInt(res.data.data.base[j].FILEDSTATICS)
}else{
this.checkList[k].keyList[i].check = -1
}
if(res.data.data.base[j].IMGS){
this.checkList[k].keyList[i].moreInfo.IMGS = res.data.data.base[j].IMGS
}
if(res.data.data.base[j].NOTE){
this.checkList[k].keyList[i].moreInfo.NOTE = res.data.data.base[j].NOTE
}
if(res.data.data.base[j].LON){
this.checkList[k].keyList[i].moreInfo.LON = res.data.data.base[j].LON
this.checkList[k].keyList[i].moreInfo.LAT = res.data.data.base[j].LAT
}
break;
}
})
}
}
} */
}
}
}
... ... @@ -1816,8 +1790,9 @@
uni.request({
url:this.apiUrl + 'license/waterpull',
method:'get',
data:{companyId:this.companyId,pdoCd:this.param.pdoCd},
data:{companyId:this.companyId,pdoId:this.param.pdoId},
success: (res) => {
console.log('水污染情况-排口',res)
for(var k = 0; k < this.checkList.length; k ++){
if(this.checkList[k].tempType == 'radio'){
for(var i = 0; i < this.checkList[k].keyList.length; i++){
... ... @@ -1902,7 +1877,7 @@
uni.request({
url:this.apiUrl + 'license/airpull',
method:'get',
data:{companyId:this.companyId,pdoCd:this.param.pdoCd},
data:{companyId:this.companyId,pdoId:this.param.pdoId},
success: (res) => {
for(var k = 0; k < this.checkList.length; k ++){
if(this.checkList[k].tempType == 'radio'){
... ... @@ -2037,7 +2012,7 @@
uni.request({
url:this.apiUrl + 'license/solidpull',
method:'get',
data:{companyId:this.companyId,pdoCd:this.param.pdoCd},
data:{companyId:this.companyId,pdoId:this.param.pdoId},
success: (res) => {
for(var k = 0; k < this.checkList.length; k ++){
if(this.checkList[k].tempType == 'radio'){
... ... @@ -2099,13 +2074,15 @@
uni.request({
url:this.apiUrl + 'license/selfWater',
method:'get',
data:{companyId:this.companyId,pdoCd:this.param.pdoCd},
data:{companyId:this.companyId,pdoId:this.param.pdoId},
success: (res) => {
console.log('废水-排口',res)
for(var k = 0; k < this.checkList.length; k ++){
if(this.checkList[k].tempType == 'radio'){
for(var i = 0; i < this.checkList[k].keyList.length; i++){
for(var j = 0; j < res.data.data.length; j ++){
if(this.checkList[k].keyList[i].title == res.data.data[j].FIELDCN){
this.checkList[k].keyList[i].id = res.data.data[j].ID
if(res.data.data[j].FILEDSTATICS){
this.checkList[k].keyList[i].check = parseInt(res.data.data[j].FILEDSTATICS)
}else{
... ... @@ -2236,7 +2213,7 @@
uni.request({
url:this.apiUrl + 'license/selfGas',
method:'get',
data:{companyId:this.companyId,pdoCd:this.param.pdoCd},
data:{companyId:this.companyId,pdoId:this.param.pdoId},
success: (res) => {
for(var k = 0; k < this.checkList.length; k ++){
if(this.checkList[k].tempType == 'radio'){
... ... @@ -2292,6 +2269,37 @@
},
async getPkInfo(keyList,type,code){
var res = await this.reqPkInfo(keyList)
for(var l = 0; l < res.data.data.length; l ++){
console.log('参数',JSON.stringify({type:type,pdoId:res.data.data[l].ID,pdoCd:res.data.data[l].PDO_CD,code:code}))
keyList.subKeyList.push({
title:res.data.data[l].PDO_NM,
param:JSON.stringify({type:type,pdoId:res.data.data[l].ID,pdoCd:res.data.data[l].PDO_CD,code:code}),
name:res.data.data[l].PDO_CD
})
}
},
reqPkInfo(keyList,type,code){
return new Promise((reslove,reject) => {
uni.request({
url:this.apiUrl + 'license/pdos',
method:'get',
//pdoType:排口类型,0 水,1 空气,2 固体排放物
//selfmonitor:0.非自行监测排口,1.自行监测排口
//organization:0.有组织排口 1.无组织排口
data:{
companyId:this.companyId,
pdoType:keyList.pdoType,
organization:keyList.organization,
selfmonitor:keyList.selfmonitor
},
success: (res) => {
reslove(res)
}
})
})
},
confirmDescInp(){
if(this.desc == ''){
uni.showToast({
... ... @@ -2425,6 +2433,8 @@
uni.showLoading({
title:'保存中...'
})
//全部保存状态
var allSaveStatus = true
//废气-排口、厂界
if(this.param.code == 'fq_pc'){
var saveParam = []
... ... @@ -2496,6 +2506,7 @@
|| this.param.code == 'xglsqk'
|| this.param.code == 'qtxknr'
|| this.param.code == 'swrqk'
|| this.param.code == 'fs_pk'
){
var saveParam = []
//基础信息修改
... ... @@ -2517,6 +2528,8 @@
note:this.checkList[i].keyList[j].moreInfo.NOTE,
imgs:this.checkList[i].keyList[j].moreInfo.IMGS
})
}else{
allSaveStatus = false
}
}
}
... ... @@ -2542,6 +2555,22 @@
})
}
})
if(allSaveStatus){
var four = 'one'
switch(this.param.code){
case 'jbqk' : four = '1';break;
default:four = 'six';break;
}
uni.request({
url:this.apiUrl + 'license/updateStep',
data:{companyId:this.companyId,four:four},
method:'post',
success:(res)=>{
console.log('保存成功!',res)
}
})
}
uni.hideLoading()
}
... ...
... ... @@ -2,7 +2,7 @@
<view>
<view class="bgImg">
<view class="userInfo">
<image src="../../static/image/del/Ellipse-1@2x.png" mode=""></image>
<!-- <image src="../../static/image/del/Ellipse-1@2x.png" mode=""></image>
<view class="user">
<view class="userName">
李强
... ... @@ -10,7 +10,7 @@
<view class="userDept">
监管部
</view>
</view>
</view> -->
</view>
<view class="handle">
<view class="handleList">
... ...
<template>
<view class="us">
<image src="../../static/image/del/Rectangle.png" mode="widthFix"></image>
<!-- <image src="../../static/image/del/Rectangle.png" mode="widthFix"></image>
<view class="content">
经过上述讨论, 要想清楚,关于我们,到底是一种怎么样的存在。 现在,解决关于我们的问题,是非常非常重要的。 所以, 要想清楚,关于我们,到底是一种怎么样的存在。 每个人都不得不面对这些问题。 在面对这种问题时, 本人也是经过了深思熟虑,在每个日日夜夜思考这个问题。
... ... @@ -8,7 +8,7 @@
这似乎解答了我的疑惑。 现在,解决关于我们的问题,是非常非常重要的。 所以, 那么, 奥普拉·温弗瑞曾经提到过,你相信什么,你就成为什么样的人。这不禁令我深思。 关于我们,到底应该如何实现。 既然如何, 孔子在不经意间这样说过,知之者不如好之者,好之者不如乐之者。这似乎解答了我的疑惑。 从这个角度来看, 从这个角度来看, 这种事实对本人来说意义重大,相信对这个世界也是有一定意义的。 所谓关于我们,关键是关于我们需要如何写。
  爱迪生在不经意间这样说过,失败也是我需要的,它和成功对我一样有价值。带着这句话,我们还要更加慎重的审视这个问题: 既然如何, 关于我们,发生了会如何,不发生又会如何。 关于我们,发生了会如何,不发生又会如何。 一般来讲,我们都必须务必慎重的考虑考虑。 卢梭曾经说过,浪费时间是一桩大罪过。我希望诸位也能好好地体会这句话。 一般来讲,我们都必须务必慎重的考虑考虑。 要想清楚,关于我们,到底是一种怎么样的存在。 了解清楚关于我们到底是一种怎么样的存在,是解决一切问题的关键。 既然如何, 要想清楚,关于我们,到底是一种怎么样的存在。 关于我们,发生了会如何,不发生又会如何。 对我个人而言,关于我们不仅仅是一个重大的事件,还可能会改变我的人生。 关于我们的发生,到底需要如何做到,不关于我们的发生,又会如何产生。 既然如何, 俾斯麦在不经意间这样说过,失败是坚忍的最后考验。这不禁令我深思。 关于我们,发生了会如何,不发生又会如何。 德国在不经意间这样说过,只有在人群中间,才能认识自己。这启发了我, 对我个人而言,关于我们不仅仅是一个重大的事件,还可能会改变我的人生。 总结的来说, 可是,即使是这样,关于我们的出现仍然代表了一定的意义。 而这些并不是完全重要,更加重要的问题是, 一般来讲,我们都必须务必慎重的考虑考虑。 那么。
</view>
</view> -->
</view>
</template>
... ...
... ... @@ -24,7 +24,7 @@
export default {
data() {
return {
newsList:[1,2,3,4]
newsList:[]
}
},
methods: {
... ...