Browse Source

去除log

release_0.0.4
dengyinhuan 2 years ago
parent
commit
3802e85012
  1. 4
      web/client/src/sections/quanju/containers/footer/build/Leftbottom.js
  2. 4
      web/client/src/sections/quanju/containers/footer/build/Rightcenter.js
  3. 2
      web/client/src/sections/quanju/containers/footer/build/index.js
  4. 6
      web/client/src/sections/quanju/containers/footer/guanli/index.js

4
web/client/src/sections/quanju/containers/footer/build/Leftbottom.js

@ -24,8 +24,8 @@ function Leftbottom(props) {
const chartTitle = '道路总公里'; const chartTitle = '道路总公里';
const title = '基础设施安全监测版块'; const title = '基础设施安全监测版块';
let name = [], emptyName = [] let name = [], emptyName = []
console.log(data,'传入的值') // console.log(data,'传入的值')
console.log(emptyName,'第二个') // console.log(emptyName,'第二个')
// const name = data?.map(d) // const name = data?.map(d)
data?.forEach(d => { data?.forEach(d => {
name.push(d.name) name.push(d.name)

4
web/client/src/sections/quanju/containers/footer/build/Rightcenter.js

@ -27,7 +27,7 @@ const THIRD = "linear-gradient(360deg, rgba(148, 148, 255, 0.1) 0%, rgba(148, 14
const OTHER = "linear-gradient(360deg, rgba(28, 96, 253, 0) 0%, rgba(28, 96, 253, 0.2) 100%)" const OTHER = "linear-gradient(360deg, rgba(28, 96, 253, 0) 0%, rgba(28, 96, 253, 0.2) 100%)"
let TOTALS = data?.map(({ name, total }, index) => { let TOTALS = data?.map(({ name, total }, index) => {
let max = Math.max(...data.map(item=>item.total)) let max = Math.max(...data.map(item=>item.total))
console.log(data.map(item=>item.total),'好朋友吗') // console.log(data.map(item=>item.total),'好朋友吗')
return { return {
name, name,
value: total, value: total,
@ -38,7 +38,7 @@ let new_TOTALS = TOTALS && TOTALS.length > 10 ? TOTALS.slice(0, 10) : TOTALS
function Cell(props) { function Cell(props) {
const { name, rank, value, percent, style = {},cebg } = props const { name, rank, value, percent, style = {},cebg } = props
let bg = RNAKS[rank] || OTHER let bg = RNAKS[rank] || OTHER
console.log(percent,'百分比') // console.log(percent,'百分比')
return <div style={{ return <div style={{
width: "100%", height: 34, display: "flex", justifyContent: 'center', width: "100%", height: 34, display: "flex", justifyContent: 'center',
alignItems: "center", marginTop: 7, marginBottom: 7, alignItems: "center", marginTop: 7, marginBottom: 7,

2
web/client/src/sections/quanju/containers/footer/build/index.js

@ -49,7 +49,7 @@ const Build = (props) => {
// setdata(alltype.filter(item=>item.name!=='null')) // setdata(alltype.filter(item=>item.name!=='null'))
setxuandata(res.payload.data) setxuandata(res.payload.data)
console.log(res.payload.data,'宣传栏数据') // console.log(res.payload.data,'宣传栏数据')
} }
let t1 = Object.values(buildingnumber?.townRoad || {}) let t1 = Object.values(buildingnumber?.townRoad || {})

6
web/client/src/sections/quanju/containers/footer/guanli/index.js

@ -39,14 +39,14 @@ const Guanli = (props) => {
return item.processingTime = `${(item.processingTime.match(/^([^.]*)(.[^.]*)/)[0])}.0${parseInt(item.processingTime.match(/([^.]*)$/)[0])}` return item.processingTime = `${(item.processingTime.match(/^([^.]*)(.[^.]*)/)[0])}.0${parseInt(item.processingTime.match(/([^.]*)$/)[0])}`
} }
// console.log(d3,'好评') // console.log(d3,'好评')
console.log(item.processingTime.match(/([^.]*)$/)[0],'kk') // console.log(item.processingTime.match(/([^.]*)$/)[0],'kk')
}) })
d.sort((a, b) => b.processingTime.localeCompare(a.processingTime)) d.sort((a, b) => b.processingTime.localeCompare(a.processingTime))
setrightDatas(res.payload.data) setrightDatas(res.payload.data)
setrightitemlist(d) setrightitemlist(d)
console.log(d,'对比的数据') // console.log(d,'对比的数据')
// console.log(d2,'完美') // console.log(d2,'完美')
console.log(res.payload.data,'嘿嘿嘿') // console.log(res.payload.data,'嘿嘿嘿')
} }
useEffect(()=>{ useEffect(()=>{
requestleftDatas(); requestleftDatas();

Loading…
Cancel
Save