diff --git a/yanzhu-bigscreen/src/api-old/attendance/index.js b/yanzhu-bigscreen/src/api-old/attendance/index.js deleted file mode 100644 index 687ef4b5..00000000 --- a/yanzhu-bigscreen/src/api-old/attendance/index.js +++ /dev/null @@ -1,98 +0,0 @@ -import request from '@/utils/request' -import { Date } from 'core-js' -// 查询劳务实名制管理列表 -const listAttendance=(query)=> { - return request({ - url: '/project/attendance/list', - method: 'get', - params: query - }) -} -const getDeptWorksList=(deptId,projectId)=> { - return request({ - url: `bgscreen/attendance/getDeptWorksList?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -const getWorkAttendanceList=(deptId,projectId)=> { - return request({ - url: `bgscreen/attendance/getWorkAttendanceList?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) - } - - -const groupByComany=(data)=> { - return request({ - url: `bgscreen/attendance/groupByComany`, - data:data, - method: 'post' - }) -} -const groupAllByComany=(data)=> { - return request({ - url: `bgscreen/attendance/groupAllByComany`, - data:data, - method: 'post' - }) -} -const todayAttendance=(data)=>{ - return request({ - url: `bgscreen/attendance/todayAttendance`, - data:data, - method: 'post' - }) -} - -const workerOnDuty=(data)=>{ - return request({ - url:"bgscreen/attendance/workerOnDuty", - method:"get", - params:data - }) -} -const queryWorkerByState=(data)=>{ - return request({ - url:"bgscreen/attendance/queryWorkerByState", - method:"get", - params:data - }) -} - -const groupByWorkerOnDuty=(data)=>{ - return request({ - url:"bgscreen/attendance/groupByWorkerOnDuty", - method:"get", - params:data - }) -} - -const groupByWorkerState=(data)=>{ - return request({ - url:"bgscreen/attendance/groupByWorkerState", - method:"get", - params:data - }) -} - -const selectList=(data,pageNum,pageSize)=>{ - return request({ - url: `bgscreen/attendance/selectList?pageNum=${pageNum}&pageSize=${pageSize}`, - data:data, - method: 'post' - }) -} -export default{ - getDeptWorksList, - getWorkAttendanceList, - groupByComany, - todayAttendance, - selectList, - groupAllByComany, - listAttendance, - workerOnDuty, - groupByWorkerOnDuty, - groupByWorkerState, - queryWorkerByState -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/buildNode/index.js b/yanzhu-bigscreen/src/api-old/buildNode/index.js deleted file mode 100644 index c197d440..00000000 --- a/yanzhu-bigscreen/src/api-old/buildNode/index.js +++ /dev/null @@ -1,320 +0,0 @@ -import request from "@/utils/request"; -import { tryToJson } from "../../utils/tools"; -import $dt from "dayjs"; - -const updateItemState = (it) => { - let dt0 = +$dt($dt(new Date()).format("YYYY-MM-DD")); //当时时间 - let dt1 = it.planStartDate ? +$dt(it.planStartDate) : 0; //计划开始 - let dt2 = it.planEndDate ? +$dt(it.planEndDate) : 0; //计划结束 - let dt3 = it.startDate ? +$dt(it.startDate) : 0; //实际开始 - let dt4 = it.endDate ? +$dt(it.endDate) : 0; //实际结束 - if (!it.planStartDate) { - return; - } - if (it.endDate) { - if (!it.planEndDate) { - it.finish = "正常完成"; - it.finishState = 3; - return; - } - if (dt4 > dt2) { - it.finish = "逾期完成"; - it.finishState = 1; - } else { - it.finish = "正常完成"; - it.finishState = 3; - } - return; - } - if (it.startDate) { - if (!it.planEndDate) { - it.finish = "进行中"; - it.finishState = 2; - return; - } - if (dt2 < dt0) { - it.finish = "逾期" + (dt0 - dt2) / 3600 / 1000 / 24 + "天"; - it.finishState = 1; - } else { - it.finish = "进行中"; - it.finishState = 2; - } - return; - } - - if (!it.startDate) { - it.finish = "未开始"; - it.finishState = 4; - } -}; - -// 节点计划预警 -const selectScheduledAlerts = (data) => { - return new Promise((resolve) => { - request({ - url: "bgscreen/projectBuildNode/selectScheduledAlerts", - method: "post", - data: data, - }).then((d) => { - let tmps = (d.data || []).map((it) => { - it.lvl = it.baseBuildNode.nodeLvl; - it.projectName = it.project?.projectName || ""; - it.parentLvl = it.lvl.substring(0, it.lvl.length - 2); - it.nodeText = it.baseBuildNode.nodeText; - it.file = tryToJson(it.files, []); - updateItemState(it); - return it; - }); - resolve(tmps); - }); - }); -}; - -// 获取当前节点及叶子节点 -const selectCurrent = (data) => { - return request({ - url: "bgscreen/projectBuildNode/selectCurrent", - method: "post", - data: data, - }); -}; - -const toTree = (nodes) => { - let tmps = nodes.map((it) => { - it.lvl = it.baseBuildNode.nodeLvl; - it.parentLvl = it.lvl.substring(0, it.lvl.length - 2); - it.nodeText = it.baseBuildNode.nodeText; - it.file = tryToJson(it.files, []); - it.expend = true; - updateItemState(it); - return it; - }); - let objs = tmps.filter((d) => d.parentLvl.length == 0); - objs.forEach((it) => { - it.children = tmps.filter((item) => item.parentLvl == it.lvl); - it.children.forEach((item) => { - item.children = tmps.filter( - (item3) => item3.planStartDate && item3.parentLvl == item.lvl - ); - }); - it.children = it.children.filter( - (item) => item.children.length > 0 || item.planStartDate - ); - }); - return objs; -}; - -const listByProject = (projectId) => { - return new Promise((resolve) => { - request({ - url: `bgscreen/projectBuildNode/listByProject?projectId=${projectId}`, - method: "get", - }).then((d) => { - let tmps = (d.data || []).map((it) => { - it.lvl = it.baseBuildNode.nodeLvl; - it.parentLvl = it.lvl.substring(0, it.lvl.length - 2); - it.nodeText = it.baseBuildNode.nodeText; - it.file = tryToJson(it.files, []); - it.expend = true; - updateItemState(it); - return it; - }); - let objs = tmps.filter((d) => d.parentLvl.length == 0); - objs.forEach((it) => { - it.children = tmps.filter((item) => item.parentLvl == it.lvl); - it.children.forEach((item) => { - item.children = tmps.filter( - (item3) => item3.planStartDate && item3.parentLvl == item.lvl - ); - }); - it.children = it.children.filter( - (item) => item.children.length > 0 || item.planStartDate - ); - }); - resolve(objs); - }); - }); -}; - -const covertData = (objs) => { - let tmps = objs.map((it) => { - it.lvl = it.baseBuildNode.nodeLvl; - it.parentLvl = it.lvl.substring(0, it.lvl.length - 2); - it.nodeText = it.baseBuildNode.nodeText; - it.file = tryToJson(it.files, []); - return it; - }); - return tmps.map((it) => { - updateItemState(it); - /* - let dt0 = +$dt($dt(new Date()).format("YYYY-MM-DD")); //当时时间 - let dt1 = it.planStartDate ? +$dt(it.planStartDate) : 0; //计划开始 - let dt2 = it.planEndDate ? +$dt(it.planEndDate) : 0; //计划结束 - let dt3 = it.startDate ? +$dt(it.startDate) : 0; //实际开始 - let dt4 = it.endDate ? +$dt(it.endDate) : 0; //实际结束 - if (it.lvl.length == 2) { - if (!it.planStartDate || !it.planEndDate) { - it.finish = ""; - it.finishState = -1; - return it; - } - if (it.endDate) { - if (dt4 > dt2) { - it.finishState = 1; - it.finish = "逾期" + (dt4 - dt2) / 3600 / 1000 / 24 + "天"; - } else { - it.finish = "正常完成"; - it.finishState = 3; - } - } else { - if (it.startDate) { - if (dt2 >= dt0) { - it.finish = "进行中"; - it.finishState = 2; - } else { - it.finishState = 1; - it.finish = "逾期" + (dt2 - dt0) / 3600 / 1000 / 24 + "天"; - } - } else { - it.finish = "未开始"; - it.finishState = 4; - } - } - } else { - if (!it.planStartDate &&!it.planEndDate &&!it.startDate &&!it.endDate) { - it.finish = ""; - it.finishState = -1; - return it; - } - if (it.planStartDate && !it.startDate) { - it.finish = "未开始"; - it.finishState = 4; - return it; - } - if (!it.endDate) { - it.finish = "进行中"; - it.finishState = 2; - } - if(it.endDate && !it.planEndDate){ - it.finish = "正常完成"; - it.finishState = 3; - return it; - } - if(it.endDate && it.planEndDate){ - if(dt4>dt2){ - it.finishState = 1; - it.finish = "逾期" + (dt4 - dt2) / 3600 / 1000 / 24 + "天"; - } else { - it.finish = "正常完成"; - it.finishState = 3; - } - } - } - */ - return it; - }); -}; - -/** - * 节点完成率统计 - * @param {*} data - * @returns - */ -const countCompletionRate = (data,prjs) => { - return new Promise((resolve) => { - if(!prjs || prjs.length==0){ - resolve([]); - return; - } - request({ - url: "bgscreen/projectBuildNode/countCompletionRate", - method: "post", - data: data, - }).then((d) => { - let tmps = (d.data || []).map((it) => { - it.lvl = it.baseBuildNode.nodeLvl; - it.projectName = it.project?.projectName || ""; - it.parentLvl = it.lvl.substring(0, it.lvl.length - 2); - it.nodeText = it.baseBuildNode.nodeText; - it.file = tryToJson(it.files, []); - it.percent = 0; - if (+it.id > 0) { - it.percent = (((it.nodeId * 100.0) / it.id) * 1.0).toFixed(2); - } - return it; - }).sort((a,b)=>a.projectId-b.projectId); - let retTmps=prjs.filter(it=>it.id>0).map(it=>{ - let o={...it}; - let finds=tmps.filter(item=>item.projectId==it.id); - if(finds.length>0){ - o={...it,...finds[0]}; - } - return o; - }); - - resolve(retTmps); - }); - }); -}; - -const queryByProjectType = (type) => { - return new Promise((resolve) => { - request({ - url: "bgscreen/projectBuildNode/queryByProjectType?type=" + type, - method: "get", - }).then((d) => { - resolve(toTree(d.data || [])); - }); - }); -}; - - -const queryByProjectTypeNoTree = (type) => { - return new Promise((resolve) => { - request({ - url: "bgscreen/projectBuildNode/queryByProjectType?type=" + type, - method: "get", - }).then((d) => { - let tmps = (d.data || []).map((it) => { - it.lvl = it.baseBuildNode.nodeLvl; - it.projectName = it.project?.projectName || ""; - it.parentLvl = it.lvl.substring(0, it.lvl.length - 2); - it.nodeText = it.baseBuildNode.nodeText; - updateItemState(it); - return it; - }); - resolve(tmps); - }); - }); -}; - -const queryFinishProject=projectId=>{ - return new Promise((resolve)=>{ - request({ - url: "bgscreen/projectBuildNode/queryFinishProject?projectId=" + projectId, - method: "get", - }).then(d=>{ - let tmps = (d.data || []).map((it) => { - it.lvl = it.baseBuildNode.nodeLvl; - it.projectName = it.project?.projectName || ""; - it.parentLvl = it.lvl.substring(0, it.lvl.length - 2); - it.nodeText = it.baseBuildNode.nodeText; - return it; - }); - resolve(tmps); - }) - }); -} - - -export default { - selectScheduledAlerts, - selectCurrent, - covertData, - listByProject, - countCompletionRate, - queryByProjectType, - queryByProjectTypeNoTree, - toTree, - queryFinishProject -}; diff --git a/yanzhu-bigscreen/src/api-old/checkDetection/index.js b/yanzhu-bigscreen/src/api-old/checkDetection/index.js deleted file mode 100644 index 31d018ea..00000000 --- a/yanzhu-bigscreen/src/api-old/checkDetection/index.js +++ /dev/null @@ -1,30 +0,0 @@ -import request from '@/utils/request' - -const groupByCheckType=(data)=> { - return request({ - url: `bgscreen/checkDetection/groupByCheckType`, - method: 'post', - data:data - }) -} - -const getList=(data,pageSize,pageNum)=>{ - return request({ - url: `bgscreen/checkDetection/getList?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) -} - -const groupCheckType=data=>{ - return request({ - url: `bgscreen/checkDetection/groupCheckType`, - method: 'post', - data:data - }) -} -export default{ - groupByCheckType, - getList, - groupCheckType -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/costOut/index.js b/yanzhu-bigscreen/src/api-old/costOut/index.js deleted file mode 100644 index 81ed38a3..00000000 --- a/yanzhu-bigscreen/src/api-old/costOut/index.js +++ /dev/null @@ -1,187 +0,0 @@ -import request from '@/utils/request' - -import {axios} from '@/utils/request' -const selectYearAndMonth=(data)=> { - return new Promise(reslove=>{ - let data2={...data}; - let y=data2.year; - let m=data2.month-1; - if(m==0){ - m=12; - y--; - } - data2.year=y; - data2.month=m; - var ajaxs=[request({ - url: `/bgscreen/costOut/selectYearAndMonth`, - method: 'post', - data:data - }), - request({ - url: `/bgscreen/costOut/selectYearAndMonth`, - method: 'post', - data:data2 - })]; - - axios.all(ajaxs).then(res=>{ - let d=res[0] - const getValue=(tmps,type)=>{ - let objs=tmps.filter(d=>d.costType==type); - return objs.length>0?objs[0]:{}; - } - let tmps=(d.data||[]).map(it=>{ - it.money=it.money?it.money/10000.0:0; - return it; - }); - let y=data.year; - let m=data.month-1; - if(m==0){ - m=12; - y--; - } - let tmps2=(res[1].data||[]).map(it=>{ - it.money=it.money?it.money/10000.0:0; - return it; - }); - let curM=tmps2.filter(it=>it.costType==9 && it.year==y && it.month==m); - curM=curM.length>0?curM[0]:{}; - - let totalObjs=tmps.filter(it=>it.costType==9); - let total=0; - totalObjs.forEach(it=>{ - if(it.money){ - total+=it.money; - } - }); - let yearObjs=tmps.filter(it=>it.costType==9 && it.year==y); - let totalY=0; - yearObjs.forEach(it=>{ - if(it.money){ - totalY+=it.money; - } - }); - let obj={ - totalInv:getValue(tmps,1).money||0,//总投资 - curYear:getValue(tmps,2).money||0,//年总投资 - contract1:getValue(tmps,3).money||0,//合同金额 - contract2:getValue(tmps,4).money||0,//合同支付金额 - contract3:getValue(tmps,5).money||0,//合同挂账金额 - safety1:getValue(tmps,6).money||0,//安措金额 - safety2:getValue(tmps,7).money||0,//安措支付金额 - safety3:getValue(tmps,8).money||0,//安措挂账金额 - curMonth:curM.money||0,//当月投资 - totalMonth:total,//开累投资 - totalYear:totalY,//本年完成 - } - reslove(obj); - }) - }) -} -const sumByDeptId=data=>{ - return new Promise(reslove=>{ - request({ - url: `/bgscreen/costOut/sumByDeptId`, - method: 'post', - data:data - }).then(d=>{ - let tmps=d.data||[]; - const getValue=(tmps,type)=>{ - let objs=tmps.filter(d=>d.costType==type); - return objs.length>0?objs[0]:{}; - } - let obj={ - totalMonth:(getValue(tmps,10).money||0)/10000.0, - curYear:(getValue(tmps,2).money||0)/10000.0, - curMonth:(getValue(tmps,9).money||0)/10000.0, - }; - reslove(obj); - }); - }); -} -const sumForBsEnginAuditing=data=>{ - return new Promise(reslove=>{ - request({ - url:'/bgscreen/costOut/sumForBsEnginAuditing', - method: 'post', - data:data - }).then(d=>{ - const getValue=(t)=>{ - let tmps=(d.data||[]).filter(it=>it.costType==t); - return tmps.length>0?tmps[0].money/10000.0:0; - } - let obj={ - data1:getValue(1), - data2:getValue(2), - data3:getValue(3), - data4:getValue(4), - data5:getValue(5), - data6:getValue(6), - data7:getValue(7), - }; - obj.percent=obj.data2==0?0:obj.data3*100.0/obj.data2; - if(obj.percent>100){ - obj.percent=100; - } - reslove(obj); - }) - }); -}; -const selectForBigEnginList=data=>{ - return new Promise(reslove=>{ - request({ - url:'/bgscreen/costOut/selectForBigEnginList', - method: 'post', - data:data - }).then(d=>{ - let data=d.data; - let names=[]; - for(let k in data){ - let v=data[k]; - names.push(k); - let sum1=0; - let sum2=0; - let sumTotal=0; - let sum3=0; - v.forEach(it=>{ - it.forEach(item=>{ - item.money=item.money||0; - item.money2=item.money2||0; - item.money3=item.money3||0; - item.money/=10000.0; - item.money2/=10000.0; - item.money3/=10000.0; - item.moneyTotal=item.money-item.money2; - sum1+=item.money; - sum2+=item.money2; - sum3+=item.money3; - sumTotal+=item.moneyTotal; - }) - }); - v.push({ - sum1:sum1, - sum2:sum2, - sum3:sum3, - sumTotal:sumTotal - }); - } - reslove({ - data:data, - names:names - }); - }); - }); -}; -const groupBYProject=data=>{ - return request({ - url:'/project/costOutput/groupBYProject', - method: 'post', - data:data - }) -} -export default{ - selectYearAndMonth, - sumByDeptId, - sumForBsEnginAuditing, - selectForBigEnginList, - groupBYProject -} diff --git a/yanzhu-bigscreen/src/api-old/dept/index.js b/yanzhu-bigscreen/src/api-old/dept/index.js deleted file mode 100644 index 75f4b503..00000000 --- a/yanzhu-bigscreen/src/api-old/dept/index.js +++ /dev/null @@ -1,14 +0,0 @@ - -import request from '@/utils/request' - -// 查询流程表单列表 -const list=()=> { - return request({ - url: 'bgscreen/dept/list', - method: 'get' - }) -} - -export default{ - list -} diff --git a/yanzhu-bigscreen/src/api-old/device/tower/index.js b/yanzhu-bigscreen/src/api-old/device/tower/index.js deleted file mode 100644 index 4cfe017b..00000000 --- a/yanzhu-bigscreen/src/api-old/device/tower/index.js +++ /dev/null @@ -1,48 +0,0 @@ -import request from '@/utils/request' -// 查询塔基配置列表 -const findTowerConfigGroupOnline=(deptId, projectId)=> { - return request({ - url: `bgscreen/tower/findTowerConfigGroupOnline?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -// 查询塔基配置列表 -const findTowerConfigListByProjectId=(deptId, projectId)=> { - return request({ - url: `bgscreen/tower/findTowerConfigListByProjectId?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -// 查询塔基运行统计 -const findTowerStatisticsView=(deviceSn)=> { - return request({ - url: `bgscreen/tower/findTowerStatisticsView?deviceKey=${deviceSn}`, - method: 'get' - }) -} - -// 查询塔基限位数据 -const selectDevTowerDataLimitList=(deviceSn)=> { - return request({ - url: `bgscreen/tower/selectDevTowerDataLimitList?deviceKey=${deviceSn}&pageNum=1&pageSize=10`, - method: 'get' - }) -} - -// 查询塔基实时数据 -const selectDevTowerDataRunList=(deviceSn)=> { - return request({ - url: `bgscreen/tower/selectDevTowerDataRunList?deviceKey=${deviceSn}&pageNum=1&pageSize=10`, - method: 'get' - }) -} - -export default{ - findTowerConfigGroupOnline, - findTowerConfigListByProjectId, - findTowerStatisticsView, - selectDevTowerDataLimitList, - selectDevTowerDataRunList -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/dict/index.js b/yanzhu-bigscreen/src/api-old/dict/index.js deleted file mode 100644 index 96180b13..00000000 --- a/yanzhu-bigscreen/src/api-old/dict/index.js +++ /dev/null @@ -1,25 +0,0 @@ -import request from '@/utils/request' - -const getDict=(dictName)=> { - let key='dict_'+dictName; - let obj=window.xdcaches[key]; - if(obj && obj.length>0){ - return new Promise((resolve)=>{ - resolve(obj); - }) - }else{ - return new Promise(async (resolve)=>{ - let data=await request({ - url: `system/dict/data/type/${dictName}`, - method: 'get' - }); - let obj=data.data||[]; - if(obj && obj.length>0){ - window.xdcaches[key]=obj; - } - resolve(obj); - }); - } -} - -export default getDict; diff --git a/yanzhu-bigscreen/src/api-old/engin.js b/yanzhu-bigscreen/src/api-old/engin.js deleted file mode 100644 index dd8f7607..00000000 --- a/yanzhu-bigscreen/src/api-old/engin.js +++ /dev/null @@ -1,136 +0,0 @@ -import request from '@/utils/request' -import dayjs from 'dayjs' -const magList=()=>{ - return request({ - url:`base/mag/list?pageSize=1000&pageNum=1`, - method:'get' - }) -} -const magDetailList=(data)=>{ - return request({ - url:'base/magDetail/list', - method:'get', - params:data - }) -} -const magGroupByTopic=()=>{ - return new Promise((resolve) => { - request({ - url: `base/magDetail/groupByTopic`, - method: 'get' - }).then(d=>{ - let total=0; - let tmps=(d.data||[]).map(it=>{ - total+=it.id||0; - return { - magid:it.magid, - mag:it.title, - magOrd:it.ord, - magDate:+dayjs(it.createTime).$d, - topicId:it.topic, - topic:it.authorName, - cnt:it.id - }; - }); - let datas=[]; - tmps.forEach(it=>{ - let objs=datas.filter(item=>item.mag==it.mag); - let obj={}; - if(objs.length==0){ - obj={ - magid:it.magid, - mag:it.mag, - ord:it.magOrd, - date:it.magDate, - list:[] - } - datas.push(obj); - }else{ - obj=objs[0]; - } - obj.list.push({id:it.topicId,topic:it.topic,cnt:it.cnt}) - }); - datas.sort((a,b)=>{ - if(a.ord==b.ord){ - return b.date-a.date; - } - return b.ord-a.ord; - }) - datas.forEach(item=>{ - item.list.sort((a,b)=>a.id-b.id); - }) - let titles=datas.length>0?datas[0].list.map(it=>it.topic):[]; - - resolve({ - titles:titles, - datas:datas, - total:total, - }) - }) - }); -} - -const groupByMag=(magId)=>{ - return new Promise((resolve) => { - request({ - url:'base/magDetail/groupByMag', - data:{ - magid:magId - }, - method: 'post', - }).then(d=>{ - let tmps=d.data||[]; - let max=0; - tmps.forEach(it=>{ - max=it.id>max?it.id:max; - }); - tmps.forEach(it=>{ - let t=(max-(it.id||0))*100.0/max+"%"; - it.ord=`width:calc((100% - ${t}) - 40px)`; - }); - resolve(tmps); - }) - }); -} -const committeeList=()=>{ - return request({ - url:`base/committee/list?pageSize=1000&pageNum=1`, - method:'get' - }) -} -const committeeSumGroupByType=(data)=>{ - return new Promise((resolve) => { - request({ - url:'project/projectCommittee/sumGroupByType', - data:data, - method: 'post', - }).then(d=>{ - let tmps=d.data||[]; - let sum=0; - tmps.forEach(it=>{ - sum+=(it.id||0)/10000.0; - it.id=(it.id||0)/10000.0; - }) - resolve({ - total:sum, - data:tmps - }) - }) - }); -} -const selectByWorkingType=(data)=>{ - return request({ - url:'project/projectCommittee/selectByWorkingType', - method:"post", - data:data - }) -} -export default { - magGroupByTopic, - magList, - groupByMag, - committeeList, - committeeSumGroupByType, - selectByWorkingType, - magDetailList -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/flow/index.js b/yanzhu-bigscreen/src/api-old/flow/index.js deleted file mode 100644 index 5933bced..00000000 --- a/yanzhu-bigscreen/src/api-old/flow/index.js +++ /dev/null @@ -1,133 +0,0 @@ -import request from '@/utils/request' - -const groupByCategory=(projectId,deptId)=> { - return request({ - url: `bgscreen/flow/groupByCategory?projectId=${projectId}&deptId=${deptId}`, - method: 'get' - }) -} - -const groupByUnit=(projectId,deptId)=> { - return request({ - url: `bgscreen/flow/groupByUnit?projectId=${projectId}&deptId=${deptId}`, - method: 'get' - }) - } - -const groupByUnitFinish=(projectId,deptId)=> { - return request({ - url: `bgscreen/flow/groupByUnitFinish?projectId=${projectId}&deptId=${deptId}`, - method: 'get' - }) -} - -const groupByUnitTotal=(projectId,deptId)=> { - return request({ - url: `bgscreen/flow/groupByUnitTotal?projectId=${projectId}&deptId=${deptId}`, - method: 'get' - }) -} - -const groupByProject=(deptId)=> { - return request({ - url: `bgscreen/flow/groupByProject?deptId=${deptId}`, - method: 'get' - }) -} - - -const listByUnit=(projectId,deptId,unit,pageNum,pageSize)=>{ - return request({ - url: `bgscreen/flow/listByUnit?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:{ - taskId:unit, - deptId:deptId, - projectId:projectId - } - }) -} -const listByCategory=(projectId,deptId,category,pageNum,pageSize)=>{ - return request({ - url: `bgscreen/flow/listByCategory?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:{ - category:category, - deptId:deptId, - projectId:projectId - } - }) -} -const listByState=(projectId,deptId,state,pageNum,pageSize)=>{ - return request({ - url: `bgscreen/flow/listByState?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:{ - taskId:state, - deptId:deptId, - projectId:projectId - } - }) -} - -const findSafetyWorkList=(deptId,projectId,flowType)=> { - return request({ - url: `bgscreen/flow/findSafetyWorkList?projectId=${projectId}&deptId=${deptId}&flowType=${flowType}`, - method: 'get' - }) -} - -const findFormDatasByProcInsId=(procInsId)=> { - return request({ - url: `bgscreen/flow/findFormDatasByProcInsId/${procInsId}`, - method: 'get' - }) -} - -const findFlowLabourList=(projId,nv,pageNum,pageSize)=> { - return request({ - url: `bgscreen/flow/findFlowLabourList?projectId=${projId}&activeName=${nv}&pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'get' - }) -} - -const findFlowLabourGroupCountByApprove=(deptId,projectId)=> { - return request({ - url: `bgscreen/flow/findFlowLabourGroupCountByApprove?projectId=${projectId}&deptId=${deptId}`, - method: 'get' - }) -} - -//工程管理-分包单位占比 -const groupFlowBySubDeptType=(data)=>{ - return request({ - url:'bgscreen/flow/groupFlowBySubDeptType', - method:'post', - data:data - }) -} - -const listFlowBySubDeptType=(data,pageNum,pageSize)=>{ - return request({ - url:`bgscreen/flow/listFlowBySubDeptType?pageNum=${pageNum}&pageSize=${pageSize}`, - method:'post', - data:data - }) -} - -export default{ - groupByCategory, - groupByUnit, - groupByUnitFinish, - groupByUnitTotal, - listByUnit, - listByState, - groupByProject, - findSafetyWorkList, - findFormDatasByProcInsId, - listByCategory, - findFlowLabourList, - findFlowLabourGroupCountByApprove, - groupFlowBySubDeptType, - listFlowBySubDeptType -} diff --git a/yanzhu-bigscreen/src/api-old/gzaiBox/dict.js b/yanzhu-bigscreen/src/api-old/gzaiBox/dict.js deleted file mode 100644 index 4ab4e569..00000000 --- a/yanzhu-bigscreen/src/api-old/gzaiBox/dict.js +++ /dev/null @@ -1,25 +0,0 @@ -import request from '@/utils/requestOthers' - -const getDict = (dictName) => { - let key = 'dict_' + dictName; - let obj = window.xdcaches[key]; - if (obj && obj.length > 0) { - return new Promise((resolve) => { - resolve(obj); - }) - } else { - return new Promise(async (resolve) => { - let data = await request({ - url: `/publics/aiBox/dicts`, - method: 'get' - }); - let obj = data.data || []; - if (obj && obj.length > 0) { - window.xdcaches[key] = obj; - } - resolve(obj); - }); - } -} - -export default getDict; \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/gzaiBox/index.js b/yanzhu-bigscreen/src/api-old/gzaiBox/index.js deleted file mode 100644 index 6391775b..00000000 --- a/yanzhu-bigscreen/src/api-old/gzaiBox/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import request from '@/utils/requestOthers' - -const listView=(deptId,projectId)=> { - return request({ - url: `/publics/aiBox/v1/listView?deptId=${deptId||0}&projectId=${projectId||0}&pageSize=20&pageNum=1`, - method: 'get' - }) -} - -const list=(data,pageNum,pageSize)=> { - return request({ - url: `/publics/aiBox/list?pageNum=${pageNum}&pageSize=${pageSize}`, - data:data, - method: 'post' - }) -} - -const groupCountByAlarmType=(deptId,projectId,now)=> { - return request({ - url: `/publics/aiBox/groupCountByAlarmType?deptId=${deptId||0}&projectId=${projectId||0}&now=${now}`, - method: 'get' - }) -} - -export default{ - list, - listView, - groupCountByAlarmType -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/index.js b/yanzhu-bigscreen/src/api-old/index.js deleted file mode 100644 index 5f092745..00000000 --- a/yanzhu-bigscreen/src/api-old/index.js +++ /dev/null @@ -1,65 +0,0 @@ -import project from './project/index' -import dept from './dept/index' -import schedule from './schedule/index' -import quarterlyAssess from './quarterlyAssess/index' -import problemmodify from './problemmodify/index' -import workFile from './workFile/index' -import workTrain from './workTrain/index' -import special from './special/index' -import dict from './dict/index' -import attendance from './attendance/index' -import insurance from './insurance/index' -import journalism from './journalism/index' -import buildNode from './buildNode' -import projectChecking from './projectChecking/index' -import measure from './measure/index' -import materialSeal from './materialSeal/index' -import costOut from './costOut/index' -import checkDetection from './checkDetection/index' -import standard from './standard/index' -import flow from './flow/index' -import video from './video/index' -import aiBoxVideo from './video/aiBoxVideo' -import gzAiBoxVideo from './gzaiBox/index' -import gzDict from './gzaiBox/dict' -import plan from './plan/index' -import periodical from './periodical/index' -import engin from './engin' -import tower from './device/tower/index' -import quality from './quality' -import pitmonit from './pitmonit' -import {axios,download} from '@/utils/request' -export default { - project, - dept, - schedule, - quarterlyAssess, - problemmodify, - workFile, - workTrain, - special, - dict, - periodical, - costOut, - attendance, - insurance, - journalism, - buildNode, - projectChecking, - measure, - materialSeal, - checkDetection, - http:axios, - video, - aiBoxVideo, - standard, - flow, - plan, - downFile:download, - engin, - gzAiBoxVideo, - gzDict, - tower, - quality, - pitmonit -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/insurance/index.js b/yanzhu-bigscreen/src/api-old/insurance/index.js deleted file mode 100644 index 96665b0f..00000000 --- a/yanzhu-bigscreen/src/api-old/insurance/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import request from '@/utils/request' - -const getProjectInsuranceList=(deptId,projectId)=> { - return request({ - url: `bgscreen/insurance/getProjectInsuranceList?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) - } - -const getProjectInsurance=id=>{ - return request({ - url: `bgscreen/insurance/getProjectInsurance?id=${id}`, - method: 'get' - }) -} -export default{ - getProjectInsuranceList, - getProjectInsurance -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/journalism/index.js b/yanzhu-bigscreen/src/api-old/journalism/index.js deleted file mode 100644 index 507b9a4e..00000000 --- a/yanzhu-bigscreen/src/api-old/journalism/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import request from '@/utils/request' - -const getJournalismList=()=> { - return request({ - url: `bgscreen/journalism/getJournalismList`, - method: 'get' - }) - } - - const getJournalismInfo=(id)=> { - return request({ - url: `bgscreen/journalism/getJournalismInfo?id=${id}`, - method: 'get' - }) - } -export default{ - getJournalismList, - getJournalismInfo -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/login/index.js b/yanzhu-bigscreen/src/api-old/login/index.js deleted file mode 100644 index 94ad76f5..00000000 --- a/yanzhu-bigscreen/src/api-old/login/index.js +++ /dev/null @@ -1,47 +0,0 @@ -import request from '@/utils/request' - -// 登录方法 -function login(username, password, code, uuid) { - const data = { - username, - password, - code, - uuid - } - return request({ - url: '/login', - headers: { - isToken: false - }, - method: 'post', - data: data - }) -} - - -// 获取用户详细信息 -function getInfo() { - return request({ - url: '/system/user/getInfo', - method: 'get' - }) - } - -// 退出方法 -function logout() { - return request({ - url: '/auth/logout', - method: 'post' - }) - } - -export { - login, - logout, - getInfo -} -export default { - login, - logout, - getInfo -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/materialSeal/index.js b/yanzhu-bigscreen/src/api-old/materialSeal/index.js deleted file mode 100644 index 039b72b6..00000000 --- a/yanzhu-bigscreen/src/api-old/materialSeal/index.js +++ /dev/null @@ -1,88 +0,0 @@ -import request from '@/utils/request' - -const selectTop20=(data)=> { - return request({ - url: `bgscreen/materialSeal/selectTop20`, - method: 'post', - data:data - }) - } -const groupTop12Month=data=>{ - return new Promise(resolve=>{ - return request({ - url: `bgscreen/materialSeal/groupTop12Month`, - method: 'post', - data:data - }).then(d=>{ - let m=new Date().getMonth()+1; - let y=new Date().getFullYear(); - let objs=[]; - if(m<12){ - for(let i=(12-(12-m-1));i<=12;i++){ - objs.push({y:y-1,m:i,cnt:0}); - } - } - for(let i=1;i<=m;i++){ - objs.push({y:y,m:i,cnt:0}); - } - let tmps=d.data||[]; - objs.forEach(it=>{ - let find=tmps.find(item=>item.projectId==it.y && item.deptId==it.m); - if(find){ - it.cnt=find.id||0; - } - }); - resolve(objs); - }); - }); -} -const groupByApprove=data=>{ - return new Promise(resolve=>{ - return request({ - url: `bgscreen/materialSeal/groupByApprove`, - method: 'post', - data:data - }).then(d=>{ - let sum1=0;//审批中 非4 - let sum2=0;//审批通过 4 - let sum3=0;//合计 - (d.data||[]).forEach(it=>{ - let cnt=(it.id||0); - sum3+=cnt; - if(it.projectId==4){ - sum2+=cnt; - }else{ - sum1+=cnt; - } - }); - resolve( { - sum:sum3, - data:[ - {name:"审批中",value:sum1}, - {name:"审批通过",value:sum2}, - ] - }); - }); - }); -} -const selectTop12Month=(data,pageNum,pageSize)=>{ - return request({ - url: `bgscreen/materialSeal/selectTop12Month?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) -} -const selectByApprove=(data,pageNum,pageSize)=>{ - return request({ - url: `bgscreen/materialSeal/selectByApprove?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) -} -export default{ - selectTop20, - groupTop12Month, - selectTop12Month, - groupByApprove, - selectByApprove -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/measure/index.js b/yanzhu-bigscreen/src/api-old/measure/index.js deleted file mode 100644 index 4ad063a6..00000000 --- a/yanzhu-bigscreen/src/api-old/measure/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import request from '@/utils/request' - -const groupMeasureInfo=(data)=> { - return request({ - url: `bgscreen/measure/groupMeasureInfo`, - method: 'post', - data:data - }) - } -const getList=(data,pageSize,pageNum)=>{ - return request({ - url: `bgscreen/measure/getList?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) -} -const groupMeasureType=data=>{ - return request({ - url: `bgscreen/measure/groupMeasureType`, - method: 'post', - data:data - }) -}; - -export default{ - groupMeasureInfo, - getList, - groupMeasureType -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/periodical/index.js b/yanzhu-bigscreen/src/api-old/periodical/index.js deleted file mode 100644 index 84cab831..00000000 --- a/yanzhu-bigscreen/src/api-old/periodical/index.js +++ /dev/null @@ -1,12 +0,0 @@ -import request from '@/utils/request' - -const getList=()=> { - return request({ - url: `bgscreen/periodical/getList`, - method: 'get' - }) -} - -export default{ - getList -} diff --git a/yanzhu-bigscreen/src/api-old/pitmonit/index.js b/yanzhu-bigscreen/src/api-old/pitmonit/index.js deleted file mode 100644 index f58c6ed3..00000000 --- a/yanzhu-bigscreen/src/api-old/pitmonit/index.js +++ /dev/null @@ -1,45 +0,0 @@ -import request from '@/utils/request' - -const totalCount=(prjId)=>{ - return request({ - url: `bgscreen/pitmonit/totalCount?prjId=${prjId}`, - method: 'get' - }) -} - -const alarmList=(prjId)=>{ - return request({ - url: `bgscreen/pitmonit/alarm?prjId=${prjId}`, - method: 'get' - }) -} - -const getLastDataForElement=(prjId)=>{ - return request({ - url: `bgscreen/pitmonit/getLastDataForElement?prjId=${prjId}`, - method: 'get' - }) -} - -const selectByDate=data=>{ - return request({ - url: `bgscreen/pitmonit/selectByDate`, - method: 'post', - data:data - }) -} - -const monitDays=(prjId)=>{ - return request({ - url: `bgscreen/pitmonit/monitDays?prjId=${prjId}`, - method: 'get' - }) -} - -export default{ - totalCount, - alarmList, - getLastDataForElement, - selectByDate, - monitDays -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/plan/index.js b/yanzhu-bigscreen/src/api-old/plan/index.js deleted file mode 100644 index f1ae0c89..00000000 --- a/yanzhu-bigscreen/src/api-old/plan/index.js +++ /dev/null @@ -1,21 +0,0 @@ - -import request from '@/utils/request' - -const listAllTop3=()=>{ - return request({ - url: `bgscreen/projectPlan/listAllTop3`, - method: 'get' - }) -} - -const listAll=(type)=>{ - return request({ - url: `bgscreen/projectPlan/listAll/${type}`, - method: 'get' - }) -} - -export default{ - listAllTop3, - listAll -} diff --git a/yanzhu-bigscreen/src/api-old/problemmodify/index.js b/yanzhu-bigscreen/src/api-old/problemmodify/index.js deleted file mode 100644 index 728615e9..00000000 --- a/yanzhu-bigscreen/src/api-old/problemmodify/index.js +++ /dev/null @@ -1,70 +0,0 @@ - -import request from '@/utils/request' - - -//质量整改-安全分类汇总(按分类) -const safetySummary=(data)=>{ - return request({ - url: `bgscreen/problemmodify/safetySummary`, - method: 'post', - data:data - }) -} - -//质量整改-质量分类汇总(按分类) -const qualitySummary=(data)=>{ - return request({ - url: `bgscreen/problemmodify/qualitySummary`, - method: 'post', - data:data - }) -} - - -//质量整改-安全分类汇总(按项目) -const safetySummaryByProject=(data)=>{ - return request({ - url: `bgscreen/problemmodify/safetySummaryByProject`, - method: 'post', - data:data - }) -} - -//质量整改-安全分类汇总(按项目) -const qualitySummaryByProject=(data)=>{ - return request({ - url: `bgscreen/problemmodify/qualitySummaryByProject`, - method: 'post', - data:data - }) -} - -//项目监测预警查询,用于大屏项目概况 -const getMonitAndWarning=(deptId,projectId=0)=>{ - return request({ - url: `bgscreen/problemmodify/getMonitAndWarning?deptId=${deptId}&projectId=${projectId}`, - method: 'get' - }) -} - - -const listSspProblemmodify=(data,pageSize,pageNum)=>{ - return request({ - url: `bgscreen/problemmodify/listSspProblemmodify?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) -} - -const groupByInfotypeCheckState=data=>{ - return request({ - url: `bgscreen/problemmodify/groupByInfotypeCheckState`, - method: 'post', - data:data - }) -} - - -export default{ - safetySummary,qualitySummary,safetySummaryByProject,qualitySummaryByProject,getMonitAndWarning,listSspProblemmodify,groupByInfotypeCheckState -} diff --git a/yanzhu-bigscreen/src/api-old/project/index.js b/yanzhu-bigscreen/src/api-old/project/index.js deleted file mode 100644 index 7c4f3512..00000000 --- a/yanzhu-bigscreen/src/api-old/project/index.js +++ /dev/null @@ -1,122 +0,0 @@ -import request from '@/utils/request' - -const findProjectByDept=(deptId)=> { - return request({ - url: `bgscreen/project/findProjectByDept?deptId=${deptId||0}`, - method: 'get' - }) -} - -const getProjectBuildNode=projectId=>{ - return request({ - url: `bgscreen/project/getProjectBuildNode?projectId=${projectId}`, - method: 'get' - }) -} -const getProgressProjects=()=>{ - return request({ - url:`bgscreen/project/getProgressProjects`, - method: 'get' - }) -}; - -const groupByProjectCategory=(deptId,cb)=>{ - request({ - url:`bgscreen/project/groupByProjectCategory?deptId=${deptId||0}`, - method: 'get' - }).then(res=>{ - let objs=(res.data||[]).map(it=>{ - return { - id:it.deptName, - label:it.projectName, - schedule:it.projectSchedule, - cnt:it.deptId - } - }); - const getItems=(id,schedule)=>{ - let tmps=objs.filter(d=>d.id==id && d.schedule==schedule); - if(tmps.length>0){ - return tmps[0]; - } - return { - id:id,schedule:schedule,cnt:0 - } - } - let ret1= [getItems(1,1),getItems(1,2)]; - let ret2= [getItems(2,1),getItems(2,2)]; - let ret3= [getItems(3,1),getItems(3,2)]; - let ret4= [getItems(4,1),getItems(4,2)]; - let rets= [ - ret1,ret2,ret3,ret4 - ]; - if(cb){ - cb(rets); - } - }); -}; - -const groupByCategory=(deptId,type,year)=>{ - return request({ - url: `bgscreen/project/groupByCategory`, - method: 'post', - data:{ - deptId:deptId, - id:type, - isDel:year - } - }) -} - -const groupByLevel=(deptId,type,year)=>{ - return request({ - url: `bgscreen/project/groupByLevel`, - method: 'post', - data:{ - deptId:deptId, - id:type, - isDel:year - } - }) -} - -const getProjectUser=(projectId)=>{ - return request({ - url: `bgscreen/project/getProjectUser?projectId=${projectId}`, - method: 'get' - }); -} - -const getInfo=()=>{ - return request({ - url:'getInfo', - method:'get' - }) -} -const listPhotography=(id,deptId)=>{ - return request({ - url: `bgscreen/photography/listPhotography?projectId=${id}&deptId=${deptId}`, - method: 'get' - }); -} - -const selectLastPhotography=id=>{ - return request({ - url: `bgscreen/photography/selectLastPhotography?projectId=${id}`, - method: 'get' - }); -} - -export default{ - findProjectByDept, - getProjectBuildNode, - getProgressProjects, - groupByProjectCategory, - groupByCategory, - groupByLevel, - getProjectUser, - getInfo, - listPhotography, - selectLastPhotography -} - - diff --git a/yanzhu-bigscreen/src/api-old/projectChecking/index.js b/yanzhu-bigscreen/src/api-old/projectChecking/index.js deleted file mode 100644 index 849734b1..00000000 --- a/yanzhu-bigscreen/src/api-old/projectChecking/index.js +++ /dev/null @@ -1,45 +0,0 @@ -import request from '@/utils/request' - -const getProjectCheckingList=(deptId,projectId)=> { - return request({ - url: `bgscreen/projectChecking/getProjectCheckingList?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) - } - - const getProjectCheckingView=(deptId,projectId)=> { - return request({ - url: `bgscreen/projectChecking/getProjectCheckingView?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) - } - - const getProjectCheckingGroupFoChart=(deptId,projectId)=> { - return request({ - url: `bgscreen/projectChecking/getProjectCheckingGroupFoChart?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) - } - - const groupCheckingByProjectId=(lvl,deptId,projectId)=> { - return request({ - url: `bgscreen/projectChecking/groupCheckingByProjectId?lvl=${lvl}&deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) - } - const queryProjectCheckingList=(pageNum,pageSize,data)=> { - return request({ - url: `bgscreen/projectChecking/queryProjectCheckingList??pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) - } - - -export default{ - getProjectCheckingList, - getProjectCheckingView, - getProjectCheckingGroupFoChart, - groupCheckingByProjectId, - queryProjectCheckingList -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/quality/index.js b/yanzhu-bigscreen/src/api-old/quality/index.js deleted file mode 100644 index e6bef60e..00000000 --- a/yanzhu-bigscreen/src/api-old/quality/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import request from '@/utils/request' - -const projectFunVerifyGroupByCheckType=(deptId,projectId)=>{ - return request({ - url: `/project/projectFunVerify/groupByCheckType?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -const listFunVerify=data=>{ - return request({ - url: `/project/projectFunVerify/list`, - method: 'get', - params:data - }) -} -export default{ - projectFunVerifyGroupByCheckType, - listFunVerify -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/quarterlyAssess/index.js b/yanzhu-bigscreen/src/api-old/quarterlyAssess/index.js deleted file mode 100644 index f66d2754..00000000 --- a/yanzhu-bigscreen/src/api-old/quarterlyAssess/index.js +++ /dev/null @@ -1,23 +0,0 @@ - -import request from '@/utils/request' - -// 查询流程表单列表 -const currentListByDept=(deptId)=> { - return request({ - url: `bgscreen/asscess/currentListByDept?deptId=${deptId}`, - method: 'get' - }) -} - -const queryByProjectType=data=>{ - return request({ - url: `bgscreen/asscess/queryByProjectType`, - method: 'post', - data:data - }) -}; - -export default{ - currentListByDept, - queryByProjectType -} diff --git a/yanzhu-bigscreen/src/api-old/schedule/index.js b/yanzhu-bigscreen/src/api-old/schedule/index.js deleted file mode 100644 index 024559db..00000000 --- a/yanzhu-bigscreen/src/api-old/schedule/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import request from '@/utils/request' - -const projectConstructionProgress=(projectId)=> { - return request({ - url: `bgscreen/schedule/projectConstructionProgress?projectId=${projectId}`, - method: 'get' - }) -} - - -const selectByProjectType=(type,deptId)=>{ - return request({ - url: `bgscreen/schedule/selectByProjectType?type=${type}&deptId=${deptId}`, - method: 'get' - }) -} - -const constructionProgressByDept=deptId=>{ - return request({ - url: `bgscreen/schedule/constructionProgressByDept?deptId=${deptId}`, - method: 'get' - }) -} - -export default{ - projectConstructionProgress, - selectByProjectType, - constructionProgressByDept -} diff --git a/yanzhu-bigscreen/src/api-old/special/index.js b/yanzhu-bigscreen/src/api-old/special/index.js deleted file mode 100644 index 52733a6f..00000000 --- a/yanzhu-bigscreen/src/api-old/special/index.js +++ /dev/null @@ -1,28 +0,0 @@ -import request from '@/utils/request' - -const getProjectSpecialView=(deptId,projectId)=> { - return request({ - url: `bgscreen/projectspecial/getProjectSpecialView?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -const getProjectSpecialList=(projectId,activeName,specialType)=> { - return request({ - url: `bgscreen/projectspecial/getProjectSpecialList?projectId=${projectId||0}&activeName=${activeName||''}&specialType=${specialType||0}`, - method: 'get' - }) - } - -const findWorkSpecialCount=(projectId,specialType)=> { - return request({ - url: `bgscreen/projectspecial/findWorkSpecialCount?projectId=${projectId||0}&specialType=${specialType||0}`, - method: 'get' - }) -} - -export default{ - getProjectSpecialView, - getProjectSpecialList, - findWorkSpecialCount -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/standard/index.js b/yanzhu-bigscreen/src/api-old/standard/index.js deleted file mode 100644 index 9d2ff1b3..00000000 --- a/yanzhu-bigscreen/src/api-old/standard/index.js +++ /dev/null @@ -1,39 +0,0 @@ -import request from '@/utils/request' - -const getList=(projectId,deptId)=> { - return request({ - url: `bgscreen/standard/getList?projectId=${projectId}&deptId=${deptId}`, - method: 'get' - }) -} - -const groupByType=data=>{ - return request({ - url:'bgscreen/standard/groupByType', - method:'post', - data:data - }) -} - -const selectList=(pageNum,pageSize,data)=> { - return request({ - url: `bgscreen/standard/selectList?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) -} - -const groupByProject=()=>{ - return request({ - url:'bgscreen/standard/groupByProject', - method:'get' - }) -} - - -export default{ - getList, - groupByType, - groupByProject, - selectList -} diff --git a/yanzhu-bigscreen/src/api-old/video/aiBoxVideo.js b/yanzhu-bigscreen/src/api-old/video/aiBoxVideo.js deleted file mode 100644 index 33389fea..00000000 --- a/yanzhu-bigscreen/src/api-old/video/aiBoxVideo.js +++ /dev/null @@ -1,55 +0,0 @@ -import request from '@/utils/request' - -const listView=(deptId,projectId)=> { - return request({ - url: `/bgscreen/aiBoxVideo/listView?deptId=${deptId||0}&projectId=${projectId||0}&pageSize=20&pageNum=1`, - method: 'get' - }) -} - -const list=(data,pageNum,pageSize)=> { - return request({ - url: `/bgscreen/aiBoxVideo/list?pageNum=${pageNum}&pageSize=${pageSize}`, - data:data, - method: 'post' - }) -} - -const getVideoPassage=(deptId,projectId,passageType,importance)=> { - return request({ - url: `/bgscreen/aiBoxVideo/getVideoPassage?deptId=${deptId||0}&projectId=${projectId||0}&passageType=${passageType}&importance=${importance}`, - method: 'get' - }) -} - -const groupCountByAlarmType=(deptId,projectId,now)=> { - return request({ - url: `/bgscreen/aiBoxVideo/groupCountByAlarmType?deptId=${deptId||0}&projectId=${projectId||0}&now=${now}`, - method: 'get' - }) -} - -const groupCountByProject=(deptId,projectId)=> { - return request({ - url: `/bgscreen/aiBoxVideo/groupCountByProject?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -// 查询视频分布汇总 -const selectGroupCountVideoConfig=(deptId,projectId)=> { - return request({ - url: `/bgscreen/aiBoxVideo/selectGroupCountVideoConfig?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - - -export default{ - list, - listView, - getVideoPassage, - groupCountByAlarmType, - selectGroupCountVideoConfig, - groupCountByProject -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/video/index.js b/yanzhu-bigscreen/src/api-old/video/index.js deleted file mode 100644 index 84b5aba8..00000000 --- a/yanzhu-bigscreen/src/api-old/video/index.js +++ /dev/null @@ -1,28 +0,0 @@ -import request from '@/utils/request' - -const listView=(deptId,projectId)=> { - return request({ - url: `/bgscreen/video/listView?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -const getVideoPassage=(videoDvrNumberd)=> { - return request({ - url: `/bgscreen/video/getVideoPassage?videoDvrNumberd=${videoDvrNumberd}`, - method: 'get' - }) - } - -const editPassageState=(id,videoDvrNumber,passageState)=> { - return request({ - url: `/bgscreen/video/editPassageState?iid=${id||0}&videoDvrNumber=${videoDvrNumber}&passageState=${passageState}`, - method: 'get' - }) -} - -export default{ - listView, - getVideoPassage, - editPassageState -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/workFile/index.js b/yanzhu-bigscreen/src/api-old/workFile/index.js deleted file mode 100644 index e4cfad69..00000000 --- a/yanzhu-bigscreen/src/api-old/workFile/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import request from '@/utils/request' - -const getWorkFileList=(fileBelong,deptId)=> { - return request({ - url: `bgscreen/workfile/getWorkFileList?fileBelong=${fileBelong}&deptId=${deptId||0}`, - method: 'get' - }) -} - -const workFileRead=(fileId)=> { - return request({ - url: `bgscreen/workfile/workFileRead?fileId=${fileId}`, - method: 'get' - }) -} - -export default{ - getWorkFileList, - workFileRead -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api-old/workTrain/index.js b/yanzhu-bigscreen/src/api-old/workTrain/index.js deleted file mode 100644 index c18e4942..00000000 --- a/yanzhu-bigscreen/src/api-old/workTrain/index.js +++ /dev/null @@ -1,28 +0,0 @@ -import request from '@/utils/request' - -const getWorkTrainList=(trainType,deptId,projectId)=> { - return request({ - url: `bgscreen/workTrain/getWorkTrainList?trainType=${trainType}&deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} -const getGroupByDataType=(deptId,projectId)=> { - return request({ - url: `bgscreen/workTrain/getGroupByDataType?deptId=${deptId||0}&projectId=${projectId||0}`, - method: 'get' - }) -} - -const queryWorkTrainList=(pageNum,pageSize,data)=> { - return request({ - url: `bgscreen/workTrain/queryWorkTrainList?pageNum=${pageNum}&pageSize=${pageSize}`, - method: 'post', - data:data - }) -} - -export default{ - getWorkTrainList, - getGroupByDataType, - queryWorkTrainList -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/api/bim.js b/yanzhu-bigscreen/src/api/bim.js index e21076d8..ea765283 100644 --- a/yanzhu-bigscreen/src/api/bim.js +++ b/yanzhu-bigscreen/src/api/bim.js @@ -114,6 +114,12 @@ const getPlanList=projectId=>{ method: "get" }); } +const getDefaultViewPoint=(projectId,viewType)=>{ + return request({ + url: `/manage/api/bim/viewpoint/getDefaultViewPoint?projectId=${projectId}&viewType=${viewType||1}`, + method: "get" + }); +} export default { listBimModel, @@ -129,5 +135,6 @@ export default { getTreeAllLeafChild, viewpointGet, roamingGet, - getPlanList + getPlanList, + getDefaultViewPoint }; diff --git a/yanzhu-bigscreen/src/components-old/amplify/huanjingguanli/amplify-cbcsfb.js b/yanzhu-bigscreen/src/components-old/amplify/huanjingguanli/amplify-cbcsfb.js deleted file mode 100644 index 1ce2f359..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/huanjingguanli/amplify-cbcsfb.js +++ /dev/null @@ -1,336 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-cbcsfb", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - infoNav:0, - dayStartTime:'', - dayEndTime:'', - weekStartTime:'', - weekEndTime:'', - monthStartTime:'', - monthEndTime:'', - typeDistributionData:[], - text:'累计超标', - height:401 - } - }, - created(){ - this.getTime() - }, - mounted(){ - - }, - methods: { - openAmplify() { - this.show = true - this.getTypeDistributionData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - getTime() { - var that = this - this.uploadTime = that.dateFormat("yyyy-MM-dd HH:mm:ss",new Date()); - //今日 - that.dayStartTime = that.dateFormat("yyyy-MM-dd HH:mm:ss",new Date(new Date().setHours(0,0,0))); - that.dayEndTime = that.dateFormat("yyyy-MM-dd HH:mm:ss",new Date(new Date().setHours(23,59,59))); - // //本周 - let now = new Date(); - let day = now.getDay() || 7; - that.weekStartTime = that.dateFormat("yyyy-MM-dd HH:mm:ss",new Date(new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1 - day).setHours(0,0,0))) - that.weekEndTime = that.dateFormat("yyyy-MM-dd HH:mm:ss",new Date(new Date(now.getFullYear(), now.getMonth(), now.getDate() + 7 - day).setHours(23,59,59))) - // //本月 - let now2 = new Date(); - let day1 = new Date(now2.getFullYear(),now2.getMonth()+1,0).getDate(); - that.monthStartTime= that.dateFormat("yyyy-MM-dd HH:mm:ss",new Date(new Date(now2.getFullYear(), now2.getMonth(), 1).setHours(0,0,0))) - that.monthEndTime= that.dateFormat("yyyy-MM-dd HH:mm:ss",new Date(new Date(now2.getFullYear(),now2.getMonth(),day1).setHours(23,59,59))) - }, - dateFormat(fmt, date) { - let ret; - const opt = { - "y+": date.getFullYear().toString(), // 年 - "M+": (date.getMonth() + 1).toString(), // 月 - "d+": date.getDate().toString(), // 日 - "H+": date.getHours().toString(), // 时 - "m+": date.getMinutes().toString(), // 分 - "s+": date.getSeconds().toString() // 秒 - // 有其他格式化字符需求可以继续添加,必须转化成字符串 - }; - for (let k in opt) { - ret = new RegExp("(" + k + ")").exec(fmt); - if (ret) { - fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0"))) - }; - }; - return fmt; - }, - //当日预警信息 - onWarningInfoNav(n) { - this.infoNav = n - this.getTypeDistributionData() - }, - //超标次数分布 - getTypeDistributionData() { - var startTime = this.dayStartTime; - var endTime = this.dayEndTime; - if (this.infoNav == 0) { - startTime = this.dayStartTime; - endTime = this.dayEndTime; - } else if (this.infoNav == 1) { - startTime = this.weekStartTime; - endTime = this.weekEndTime; - } else if (this.infoNav == 2) { - startTime = this.monthStartTime; - endTime = this.monthEndTime; - } - //今日超标次数分布 - axios.get("/mkl/api/getEnvironmentWaringNumber", { - params: { - projectId: JSON.parse(localStorage.getItem("data1")).id, - startTime: startTime, - endTime: endTime - } - }).then(res => { - if (res.data.code == "200") { - var tempData = [ - // { name:'PM2.5', value:'30' }, - {name: 'PM10', value: '20'}, - {name: '噪音', value: '20'}, - // { name:'风速', value:'10' }, - {name: '温度', value: '10'}, - {name: '湿度', value: '20'} - ] - tempData.map(x => { - if (x.name == "PM2.5") { - x.value = res.data.data.PM25WaringNumber - } else if (x.name == "PM10") { - x.value = res.data.data.PM10WaringNumber - } else if (x.name == "噪音") { - x.value = res.data.data.noiseNumber - } else if (x.name == "风速") { - x.value = res.data.data.windSpeedNumber - } else if (x.name == "温度") { - x.value = res.data.data.temperatureWaringNumber - } else if (x.name == "湿度") { - x.value = res.data.data.humidityNumber - } - }) - this.typeDistributionData = tempData - this.getChartData() - } - }).catch(err => { - - }) - }, - //数据图渲染接口 - getChartData() { - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.warningPieChart); - this.echartPie(chChartPie, this.typeDistributionData) - }, - echartPie(chChart, chartData) { - var that = this - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var total_datas = 0; - var data = []; - var legendData = []; - var color = ['#4974ff', '#52aef7', '#6863d7', '#1d5d89', '#20e6ff', '#67feef'] - for (let i = 0; i < chartData.length; i++) { - total_datas += Number(chartData[i].value); - legendData.push(chartData[i].name) - data.push( - { - value: chartData[i].value, - name: chartData[i].name, - itemStyle: { - normal: { - //颜色渐变 - color: color[i] - }, - }, - }, - ) - } - /* let total = chartData.reduce((a, b) => { - return a + b.value; - }, 0);*/ - - let legendOption = { - top: "center", - orient: "vertical", - icon: "circle", - itemWidth: 25, - itemGap: 16, - textStyle: { - fontSize: 25, - rich: { - name: { - color: "#c3dbfd", - padding: [25, 10, 40, 10], - // align: 'right' - // width: '300px' - fontSize: 25, - }, - percent: { - color: "#18DB9F", - fontSize: 25, - padding: [0, 10, 0, 10], - // align: 'right' - }, - }, - }, - formatter: function (name) { - let res = chartData.filter((v) => v.name === name); - let percent = total_datas == 0 ? 0 : (((res[0].value * 100) / total_datas).toFixed(1)); - return "{name| " + name + "}\n{percent|" + res[0].value + "}{percent|" + percent + "%}"; - }, - }; - this.option = { - title: { - text: total_datas, - subtext: this.text, - x: "180", - y: "150", - textStyle: { - color: "#0dd2fd", - fontSize: 48, - fontWeight: "bold", - align: "center", - width: "200px", - }, - subtextStyle: { - color: "#a5b5f0", - fontSize: 25, - align: "center", - }, - }, - tooltip: { - show: false, - trigger: 'item', - formatter: "{b}
{c} ({d}%)" - }, - legend: [ - { - right: 20, - data: legendData, - align: "left", - ...legendOption, - }, - ], - - series: [ - { - name: "品类金额占比", - type: "pie", - center: ["25%", "50%"], - radius: ["46%", "63%"], - data: data, - label: { - show: false, - }, - itemStyle: { - normal: { - borderWidth: 10, - borderColor: "#051a36" - } - }, - - }, - { - name: "外边框", - type: "pie", - clockWise: false, //顺时加载 - hoverAnimation: false, //鼠标移入变大 - center: ["25%", "50%"], - radius: ["70%", "70%"], - label: { - normal: { - show: false, - }, - }, - data: [ - { - value: 9, - name: "", - itemStyle: { - normal: { - borderWidth: 6, - borderColor: "#152c65", - }, - }, - }, - ], - }, - ], - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - - chChart.off('click') - - chChart.on('click', function (params) { - for (let i = 0; i < chartData.length; i++) { - if (params.name == chartData[i].name) { - that.$emit('ledger', chartData[i]); - break - } - } - }) - }) - }, - - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/huanjingguanli/amplify-sbqd.js b/yanzhu-bigscreen/src/components-old/amplify/huanjingguanli/amplify-sbqd.js deleted file mode 100644 index c7801765..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/huanjingguanli/amplify-sbqd.js +++ /dev/null @@ -1,128 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-sbqd", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - //设备清单 - deviceNum:0, - onlineNum:0, - warnNum:0, - offlineNum:0, - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - this.getDeviceInfo() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - //设备清单 - getDeviceInfo() { - var projectId = JSON.parse(localStorage.getItem("data1")).id - if(projectId == 98 || projectId == 132) { - this.deviceNum = 1, - this.onlineNum = 1, - this.warnNum = 0, - this.offlineNum = 0 - this.showDevice = true; - this.selectData = [{text:'扬尘监测设备#1',id:1},] - } else { - this.deviceNum = 0, - this.onlineNum = 0, - this.warnNum = 0, - this.offlineNum = 0 - this.showDevice = false - this.selectData = [{text:'暂无数据',id:1}] - - } - }, - - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jinduguanli/amplify-gqgk.js b/yanzhu-bigscreen/src/components-old/amplify/jinduguanli/amplify-gqgk.js deleted file mode 100644 index e12573ea..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jinduguanli/amplify-gqgk.js +++ /dev/null @@ -1,349 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-gqgk", { - template: ` -
-
- -
- - - -
- `, - props: {}, - data() { - return { - show: false, - people: [], - number: 720, - unit: '天', - shiJiPro:0, - timePro:0, - text:'时间进度', - text1:'实际产值进度', - projectId:JSON.parse(localStorage.getItem("data1")).id, - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.setData() - this.gainProBase() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - setData() { - var people = this.number != undefined ? this.number.toString().split('') : 0; - this.people = people - }, - //数据接口 - gainProBase() { - axios.post("/api/building/proBaseInfo?projectId=" + this.projectId).then(res => { - if(res.data.code == "200") { - this.shiJiPro = parseInt((res.data.data.kailei_money / 67640 * 100).toFixed(0)) - this.timePro = parseInt(((moment().diff(moment(res.data.data.actual_start_date), 'days') / 720) * 100).toFixed(0)) - } - this.getChartData() - this.getChartData1() - }).catch(err => { - - }) - }, - //数据展示图1 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart1); - this.echartBar(chChartBar,this.timePro,this.text) - }, - echartBar(chChart,value,text){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var placeHolderStyle = { - normal: { - label: { - show: false, - }, - labelLine: { - show: false, - }, - color: "rgba(0,0,0,0)", - borderWidth: 0, - }, - emphasis: { - color: "rgba(0,0,0,0)", - borderWidth: 0, - }, - }; - - var dataStyle = { - - }; - this.option ={ - title: [ - { - text: value+'%', - textAlign: "center", - left: "48%", - top: "30%", - textStyle: { - color: "#67abf2", - fontSize: 23, - }, - }, - { - text: text, - left: "48%", - top: "80%", - textAlign: "center", - textStyle: { - color: "#cdd7fa", - fontWeight: "normal", - fontSize: "16", - textAlign: "center", - }, - }, - ], - series: [ - { - type: "pie", - hoverAnimation: false, - radius: ["60%", "59%"], - center: ["50%", "40%"], - labelLine: { - normal: { - show: false, - }, - }, - label: { - normal: { - position: "center", - }, - }, - data: [ - { - value: 100, - itemStyle: { - normal: { - color: "#255788", - }, - }, - }, - - ], - }, - { - type: "pie", - hoverAnimation: false, - radius: ["53%", "60%"], - center: ["50%", "40%"], - labelLine: { - normal: { - show: false, - }, - }, - label: { - normal: { - position: "center", - }, - }, - data: [ - { - value: value, - itemStyle: { - normal: { - color: "#68a8f2", - }, - }, - normal: { - show: false, - }, - }, - { - value: 100-value, - itemStyle: placeHolderStyle, - }, - ], - }, - ], - }; - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - //数据展示图2 - getChartData1(){ - var chChartBar = echarts.init(this.$refs.chart2); - this.echartBar(chChartBar,this.shiJiPro,this.text1) - }, - echartBar(chChart,value,text){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var placeHolderStyle = { - normal: { - label: { - show: false, - }, - labelLine: { - show: false, - }, - color: "rgba(0,0,0,0)", - borderWidth: 0, - }, - emphasis: { - color: "rgba(0,0,0,0)", - borderWidth: 0, - }, - }; - - var dataStyle = { - - }; - this.option ={ - title: [ - { - text: value+'%', - textAlign: "center", - left: "48%", - top: "30%", - textStyle: { - color: "#67abf2", - fontSize: 23, - }, - }, - { - text: text, - left: "48%", - top: "80%", - textAlign: "center", - textStyle: { - color: "#cdd7fa", - fontWeight: "normal", - fontSize: "16", - textAlign: "center", - }, - }, - ], - series: [ - { - type: "pie", - hoverAnimation: false, - radius: ["60%", "59%"], - center: ["50%", "40%"], - labelLine: { - normal: { - show: false, - }, - }, - label: { - normal: { - position: "center", - }, - }, - data: [ - { - value: 100, - itemStyle: { - normal: { - color: "#255788", - }, - }, - }, - - ], - }, - { - type: "pie", - hoverAnimation: false, - radius: ["53%", "60%"], - center: ["50%", "40%"], - labelLine: { - normal: { - show: false, - }, - }, - label: { - normal: { - position: "center", - }, - }, - data: [ - { - value: value, - itemStyle: { - normal: { - color: "#68a8f2", - }, - }, - normal: { - show: false, - }, - }, - { - value: 100-value, - itemStyle: placeHolderStyle, - }, - ], - }, - ], - }; - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - - }, - watch: {}, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-bgqr.js b/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-bgqr.js deleted file mode 100644 index 6e5b4a41..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-bgqr.js +++ /dev/null @@ -1,255 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-bgqr", { - template: ` -
-
- -
- - - -
- `, - props: {}, - data() { - return { - show: false, - schemeNav: 1, - constructionNum: 0, - alterationNum: 0, - height: 395, - data: {}, - rowStyle:{ - fontSize:'25px', - height:'64px' - }, - headerStyle:{ - fontSize:'22px', - padding:'10px' - }, - } - }, - mounted() { - this.interval = setInterval(this.scroll, 50); - }, - methods: { - openAmplify() { - this.show = true - this.getSchemeTableData('0') - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - //变更签认 - onSchemeBtn(n) { - this.schemeNav = n == 0 ? 1 : 2 - this.getSchemeTableData(n) - }, - getSchemeTableData(type){ - var data = null; - if(type == 0){ - data = { - label: [ - { - label: '序号', - width: '100', - color:'', - isShow:true, - type:'', - type_color:'', - data: 'sort', - }, - /* { - label: 'idStr', - width: '50', - color:'', - isShow:false, - type:'', - type_color:'', - data: 'id', - },*/ - { - label: '变更名称', - width: '', - color:'#50a2eb', - isShow:true, - type:'', - type_color:'', - data: 'name' - }, - { - label: '变更内容', - width: '', - color:'', - isShow:true, - type:'', - type_color:'', - data: 'content' - }, - { - label: '业主批复情况', - width: '', - color:'', - isShow:true, - type:'state', - type_color:'situation_color', - data: 'situation' - }, - - ], - data: [], - } - } else{ - data = { - label: [ - { - label: '序号', - width: '50', - color:'', - type:'', - type_color:'', - data: 'sort', - }, - { - label: '工程名称', - width: '', - color:'#50a2eb', - type:'', - type_color:'', - data: 'name' - }, - { - label: '工程内容', - width: '', - color:'', - type:'', - type_color:'', - data: 'content' - }, - { - label: '业主批复情况', - width: '', - color:'', - type:'state', - type_color:'situation_color', - data: 'situation' - }, - - ], - data: [], - } - } - axios.post("/system/alterationEndorseConfig/list1",{pageNum:1,pageSize:9999,projectId:this.projectId}).then(res=>{ - let result = res.data - if(result.code == 0){ - this.constructionNum = result.rows.filter(item=>item.alterationType == 0).length - this.alterationNum = result.rows.filter(item=>item.alterationType == 1).length - - data.data = result.rows.filter(item=>{ - if(item.alterationType == type){ - return item - } - }).map((item,index)=>{ - return { - sort: index + 1, - id:item.id, - name:item.alterationName, - content:item.alterationContext, - situation: item.alterationStatus == '0' ? "已通过":"未通过", - situation_color: item.alterationStatus == '0' ? "#39c30b":"#f73647" - } - }) - } - if(data.data.length > 3){ - for (let i = 0; i <3 ; i++) { - data.data.push(data.data[i]) - } - } - this.data = data - - }) - - - }, - - // 表格隔行变色 - - //左边信息表 - scroll() { - let maxHeight = this.$refs.pxjy.$el.querySelectorAll('.el-table__body')[0].offsetHeight; - let clientHeight = this.$refs.pxjy.bodyWrapper.clientHeight; - if (Math.abs(this.$refs.pxjy.bodyWrapper.scrollTop - (maxHeight - clientHeight)) < 5) { //预留5像素误差 - this.$refs.pxjy.bodyWrapper.scrollTop = 0; - } else { - this.$refs.pxjy.bodyWrapper.scrollTop += 1;//32是每一行表格的高度,每秒滚一行 - } - } - , - MouseEnter() {//鼠标移入停止滚动 - clearInterval(this.interval); - } - , - MouseLeave() {//鼠标离开继续滚动 - this.interval = setInterval(this.scroll, 50); - }, - onClickPoint(n) { - this.btnNav = n; - }, - }, - watch: { - data:function () { - clearInterval(this.interval); - this.interval = setInterval(this.scroll, 50); - }, - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-gczljdagl.js b/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-gczljdagl.js deleted file mode 100644 index 92a0d336..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-gczljdagl.js +++ /dev/null @@ -1,159 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-gczljdagl", { - template: ` -
-
- -
- - - -
- `, - props: { - projectId:{ - type:Number - }, - label:{ - type:String - } - }, - data() { - return { - projectId:JSON.parse(window.localStorage.getItem("data1")).id, - show:false, - height:515, - data:{ - label: [ - { - label: '序号', - width: '50', - color:'', - type:'', - type_color:'', - data: 'sort' - }, - { - label: '楼号名称', - width: '', - color:'#50a2eb', - type:'', - type_color:'', - data: 'dict_label' - }, - { - label: '检验批类型', - width: '', - color:'', - type:'', - type_color:'', - data: 'batchName' - }, - { - label: '检验次数', - width: '', - color:'', - type:'', - type_color:'', - data: 'num' - }, - ], - data: [{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13',type:''},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'},{GCsort:'1',GCName:'****名称',GCNum:'2023-05-13'}], - }, - } - }, - mounted(){ - this.interval = setInterval(this.scroll, 50); - }, - methods: { - openAmplify(){ - this.show = true - this.gainFloorCheck() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - gainFloorCheck() { - this.data.data = [] - axios.post("/api/building/gainFloorCheck",{projectId:this.projectId}).then(res=>{ - this.data.data = res.data.data - }) - }, - //左边信息表 - scroll() { - let maxHeight = this.$refs.pxjy.$el.querySelectorAll('.el-table__body')[0].offsetHeight; - let clientHeight = this.$refs.pxjy.bodyWrapper.clientHeight; - if (Math.abs(this.$refs.pxjy.bodyWrapper.scrollTop - (maxHeight - clientHeight)) < 5) { //预留5像素误差 - this.$refs.pxjy.bodyWrapper.scrollTop = 0; - } else { - this.$refs.pxjy.bodyWrapper.scrollTop += 1;//32是每一行表格的高度,每秒滚一行 - } - } - , - MouseEnter() {//鼠标移入停止滚动 - clearInterval(this.interval); - } - , - MouseLeave() {//鼠标离开继续滚动 - this.interval = setInterval(this.scroll, 50); - }, - onClickPoint(n) { - this.btnNav = n; - }, - // 表格隔行变色 - tableRowClassName({row, rowIndex}) { - if (rowIndex % 2 === 0) { - return 'warning-row' //这是类名 - } else { - return '' - } - }, - }, - watch:{ - projectId:function (n,o) { - this.openAmplify() - } - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-jsfh.js b/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-jsfh.js deleted file mode 100644 index 48cd5571..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-jsfh.js +++ /dev/null @@ -1,144 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-jsfh", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - costIndex:0, - imgRollInterval:undefined, - direction:'left', - list:[], - number:2, - projectId:JSON.parse(window.localStorage.getItem("data1")).id, - } - }, - mounted(){ - // 图片轮播 定时器 - this.imgRollInterval = setInterval(this.imgRoll,5000); - }, - methods: { - openAmplify(){ - this.show = true - this.getTypeSonListB("11","21") - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - getTypeSonListB(typeMain, typeId) { - this.list = [] - axios.post("/api/building/photoList?projectId=" + this.projectId + "&typeMain=" + typeMain + "&typeId=" + typeId).then(res => { - if(res.data.code == "200") { - var list = [] - res.data.data.forEach((item)=>{ - list.push(item.photo_url) - }) - this.list = list - } - }).catch(err => { - - }) - }, - - carouselLeft(){ - this.direction = 'left' - this.manufacturingCostRoll() - }, - carouselRight(){ - this.direction = 'right' - this.manufacturingCostRoll() - }, - manufacturingCostRoll(){ - var width = $(".bzh-content-img").innerWidth() - if(this.direction == 'right'){ - if(this.costIndex == this.list.length - this.number){ - this.costIndex = 0 - }else{ - this.costIndex = this.costIndex + 1 - } - }else{ - if(this.costIndex == 0){ - this.costIndex = this.list.length - this.number - }else{ - this.costIndex = this.costIndex - 1 - } - } - $(this.$refs.rollImgMax).animate({scrollLeft:(this.number*width*this.costIndex)+'px'}) - this.direction = 'right' - }, - - - imgRoll(){ - var width = $(".bzh-content-img").innerWidth() - if(this.costIndex == this.list.length - this.number){ - this.costIndex = 0 - }else{ - this.costIndex = this.costIndex + 1 - } - $(this.$refs.rollImgMax).animate({scrollLeft:(this.number*width*this.costIndex)+'px'}) - }, - costMouseover(){ - clearInterval(this.imgRollInterval); - }, - costMouseout(){ - this.imgRollInterval=setInterval(this.imgRoll,5000); - }, - - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-kjcx.js b/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-kjcx.js deleted file mode 100644 index 42199a6d..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-kjcx.js +++ /dev/null @@ -1,184 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-kjcx", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - //科技创新 - sciencelnnovateDataList:[], - craftVideoIndex:0, - craftInterval:'', - } - }, - mounted(){ - //科技创新 知道滚动 - this.rollCraftInterval = setInterval(this.rollCraftCarousel,5000); - }, - methods: { - openAmplify(){ - this.show = true - this.scienceInnovateData() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - //科技创新 - scienceInnovateData(){ - axios.post("/system/scienceInnovateConfig/list1",{pageNum:1,pageSize:9999,projectId:this.projectId}).then(res=>{ - let result = res.data - let tempData = [] - this.sciencelnnovateDataList = [] - let tmp = {} - if(result.code == 0){ - result.rows.forEach(item=>{ - if(!tmp[item.name]){ - tmp[item.name] = { - name:item.name, - context:[] - } - } - - if(item.type == '0'){ - name = '研究报告' - }else if(item.type == '1'){ - name = '知识产权' - }else if(item.type == '2'){ - name = '论文' - }else{ - name = '工法' - } - - if(item.status =='0'){ - status = '进行中' - }else if(item.status =='1'){ - status = '已完成' - }else if(item.status =='4'){ - status = '' - }else{ - status = '未开始' - } - tmp[item.name] .context.push({ - name, - status - }) - - }) - for(let k in tmp ){ - this.sciencelnnovateDataList.push(tmp[k]) - } - - } - }) - }, - craftCarouselLeft(){ - if(this.craftVideoIndex == 0){ - this.craftVideoIndex = this.sciencelnnovateDataList.length - 1 - }else { - this.craftVideoIndex = this.craftVideoIndex - 1 - } - $(this.$refs.craftVollVideo).animate({scrollLeft:(760*this.craftVideoIndex)+'px'}) - }, - craftCarouselRight(){ - if(this.craftVideoIndex == this.sciencelnnovateDataList.length - 1){ - this.craftVideoIndex = 0 - }else { - this.craftVideoIndex = this.craftVideoIndex + 1 - } - $(this.$refs.craftVollVideo).animate({scrollLeft:(760*this.craftVideoIndex)+'px'}) - }, - rollCraftCarousel(){ - if(this.craftDirection == 'right'){ - if(this.craftVideoIndex == this.sciencelnnovateDataList.length - 1){ - this.craftVideoIndex = 0 - }else { - this.craftVideoIndex = this.craftVideoIndex + 1 - } - }else{ - if(this.craftVideoIndex == 0){ - this.craftVideoIndex = this.sciencelnnovateDataList.length - 1 - }else { - this.craftVideoIndex = this.craftVideoIndex - 1 - } - this.craftDirection = 'right' - } - $(this.$refs.craftVollVideo).animate({scrollLeft:(760*this.craftVideoIndex)+'px'}) - }, - - craftCostMouseout(){ - clearInterval(this.rollCraftInterval); - }, - craftCostMouseover(){ - this.rollCraftInterval = setInterval(this.rollCraftCarousel,5000); - }, - - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-sgbzgf.js b/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-sgbzgf.js deleted file mode 100644 index ca5db1fd..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-sgbzgf.js +++ /dev/null @@ -1,164 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-sgbzgf", { - template: ` -
-
- -
- - - -
- `, - props: { - projectId:{ - type:Number - }, - label:{ - type:String - } - - }, - data() { - return { - show:false, - height:515, - data:{ - label: [ - { - label: '序号', - width: '50', - color:'', - type:'', - type_color:'', - data: 'sort' - }, - { - label: '标准名称', - width: '', - color:'#50a2eb', - type:'', - type_color:'', - data: 'bianName' - }, - { - label: '编号', - width: '', - color:'', - type:'', - type_color:'', - data: 'bianNum' - }, - ], - data: [], - }, - } - }, - mounted(){ - this.interval = setInterval(this.scroll, 50); - }, - methods: { - openAmplify(){ - this.show = true - this.getBiaoZhun() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - //施工标准规范 - getBiaoZhun() { - let that = this - axios.post("/system/standardinfo/list?projectId="+this.projectId, { - projectId:this.projectId - }).then(res => { - res = res.data.rows - let result = res.map((item,index)=>{ - return { - sort:(index + 1), - bianName:item.standardName, - bianNum:item.standardNum - } - }) - - that.data.data = result - }) - }, - //左边信息表 - scroll() { - let maxHeight = this.$refs.pxjy.$el.querySelectorAll('.el-table__body')[0].offsetHeight; - let clientHeight = this.$refs.pxjy.bodyWrapper.clientHeight; - if (Math.abs(this.$refs.pxjy.bodyWrapper.scrollTop - (maxHeight - clientHeight)) < 5) { //预留5像素误差 - this.$refs.pxjy.bodyWrapper.scrollTop = 0; - } else { - this.$refs.pxjy.bodyWrapper.scrollTop += 1;//32是每一行表格的高度,每秒滚一行 - } - } - , - MouseEnter() {//鼠标移入停止滚动 - clearInterval(this.interval); - } - , - MouseLeave() {//鼠标离开继续滚动 - this.interval = setInterval(this.scroll, 50); - }, - onClickPoint(n) { - this.btnNav = n; - }, - // 表格隔行变色 - tableRowClassName({row, rowIndex}) { - if (rowIndex % 2 === 0) { - return 'warning-row' //这是类名 - } else { - return '' - } - }, - }, - watch:{ - projectId:function (n,o) { - this.openAmplify() - } - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-sjgk.js b/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-sjgk.js deleted file mode 100644 index 20a48f0d..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jishuguanli/amplify-sjgk.js +++ /dev/null @@ -1,144 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-sjgk", { - template: ` -
-
- -
- - - -
- `, - props: { - label:{ - type:String - }, - projectId:{ - type:Number - } - }, - data() { - return { - show:false, - fourClarificaiton:{ - } - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - this.getFourData() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - //四级交底情况 - getFourData(){ - let that = this - axios.get("//api-tmp.makalu.cc/szhjzgkpt/four/clarificaiton").then(res => { - that.fourClarificaiton = res.data - axios.post("/api/project/selectTechnicalDisclosureInformationList",{ - projectId:this.projectId, - }).then(res => { - let zx = 0 - let js = 0 - that.fourDataList = res.data.data - for(let tmp of res.data.data){ - switch (tmp.type) { - case 1: - js++ - tmp.sort = js - break - case 2: - zx++ - tmp.sort = zx - break - } - } - that.fourClarificaiton.zxfajd = zx - that.fourClarificaiton.jsjd = js - }) - }) - }, - - }, - watch:{ - projectId:function (n,o) { - this.openAmplify() - } - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-czzqk.js b/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-czzqk.js deleted file mode 100644 index 94ec90e2..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-czzqk.js +++ /dev/null @@ -1,224 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-czzqk", { - template: ` -
-
- -
- - - -
- `, - props: {}, - data() { - return { - certInfoData:{}, - //操作证数据 - certificateData:[ - { - text:"职工", - value:0 - },{ - text:"劳务派遣", - value:0 - },{ - text:"其他", - value:0 - }, - ], - show: false, - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getCertInfoData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - //操作证情况统计 - getCertInfoData(){ - axios.post(requestUrl+"getCertInfoData?deptId="+deptId+"&projectId="+JSON.parse(localStorage.getItem("data1")).jzgj, { - }).then(res => { - this.certInfoData = res.data.data; - this.certificateData = [{text:"职工",value:res.data.data.zgCount},{text:"劳务派遣",value:res.data.data.lwCount},{text:"其他",value:res.data.data.qtCount}] - this.getChartData() - }).catch(err => { - }) - }, - //职工、劳务数据图 - getChartData() { - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.chart); - this.echart(chChart, this.certificateData) - }, - echart(chChart, chartData) { - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var value = [] - var text = [] - var total = 0 - var bgd = [] - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgd.push(100) - total += chartData[i].value - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - prop.push((value[j] / total * 100).toFixed(1)) - } - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "-10%", - top: "2%", - containLabel: true, - }, - xAxis: { - show: false, - type: "value", - }, - yAxis: [ - { - type: "category", - inverse: true, - axisLabel: { - show: true, - textStyle: { - color: "#cbdaff", - fontSize: "25", - }, - }, - splitLine: { - show: false, - }, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - data: text, - }, - { - type: "category", - inverse: true, - axisTick: "none", - axisLine: "none", - show: true, - axisLabel: { - textStyle: { - color: "#cbdaff", - fontSize: "25", - }, - formatter: function (params, i) { - var text = "{a|" + value[i] + "}{a| " + prop[i] + "%}"; - return text; - }, - rich: { - a: { - fontSize: '25px', - color: "#cbdaff", - }, - }, - }, - data: prop, - }, - ], - series: [ - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 20, - data: prop, - }, - { - type: "bar", - barWidth: 20, - barGap: "-100%", - data: bgd, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch: { - data: function (n, o) { - this.getChartData(this.data) - } - } - - - - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-dkgk.js b/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-dkgk.js deleted file mode 100644 index 4f4f4482..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-dkgk.js +++ /dev/null @@ -1,142 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-dkgk", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - //打卡管控提示 - abnormalNav:0, - //打卡管控提示 表格数据 - interval:'', - intervalOne:'', - rowStyle:{ - color:'#ffffff', - fontSize:'24px', - height:'64px' - }, - tableData:[], - tableTile:[], - showTableData:[], - showTableTile: [], - headerRow:{ - fontSize: '20px' - } - } - }, - mounted(){ - // //打卡管控提示 自动滚动 - this.interval = setInterval(this.scroll,50); - }, - methods: { - - openAmplify(){ - this.show = true - this.getClockInException() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - - //打卡管控提示 - onAbnormalNav(n){ - this.abnormalNav = n; - this.showTableData = this.tableData[n]; - this.showTableTile = this.tableTile[n]; - }, - //打卡管控提示 - getClockInException(){ - axios.post(requestUrl+"getClockInException?deptId="+deptId+"&projectId="+JSON.parse(localStorage.getItem("data1")).jzgj+"&pageSize=50", { - }).then(res => { - this.tableData = [ - res.data.data.signExceptionList, - res.data.data.workTimeExceptionList, - res.data.data.certExceptionList - ] - this.tableTile = [ - [{name:"项目名称",value:"projectName"},{name:"姓名",value:"userName"},{name:"打卡设备",value:"deviceName"},{name:"打卡时间",value:"dataTime"}], - [{name:"项目名称",value:"projectName"},{name:"设备名称",value:"deviceName"},{name:"异常原因",value:"errorReason"},{name:"打卡时间",value:"date"}], - [{name:"项目名称",value:"projectAbbreviation"},{name:"姓名",value:"certificateName"},{name:"过期天数",value:"date"},{name:"到期时间",value:"validityDate"}] - ]; - let num = 0; - if(res.data.data.signExceptionList.length > 0){ - num = 0; - }else if(res.data.data.workTimeExceptionList.length > 0){ - num = 1; - }else if(res.data.data.certExceptionList.length >0){ - num = 2 - }else{ - num = 0; - } - this.abnormalNav = num; - this.showTableData = this.tableData[num]; - this.showTableTile = this.tableTile[num]; - }).catch(err => { - }) - }, - // 表格滚动 方法 --------- 开始 - scroll(){ - let maxHeight=this.$refs.wgzp.$el.querySelectorAll ('.el-table__body')[0].offsetHeight; - let clientHeight=this.$refs.wgzp.bodyWrapper.clientHeight; - if(Math.abs(this.$refs.wgzp.bodyWrapper.scrollTop-(maxHeight-clientHeight))<5){ //预留5像素误差 - this.$refs.wgzp.bodyWrapper.scrollTop=0; - }else{ - this.$refs.wgzp.bodyWrapper.scrollTop+= 1;//32是每一行表格的高度,每秒滚一行 - } - }, - MouseEnter(){//鼠标移入停止滚动 - clearInterval(this.interval); - }, - MouseLeave(){//鼠标离开继续滚动 - this.interval=setInterval(this.scroll,30); - }, - // 表格滚动 方法 ------ 结束 - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-fljgs.js b/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-fljgs.js deleted file mode 100644 index af069e01..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-fljgs.js +++ /dev/null @@ -1,298 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-fljgs", { - template: ` -
-
- -
- - - -
- `, - props: {}, - data() { - return { - show: false, - infoNav: 0, - classifyBarData: [], - showClassifyBarData: [], - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getClassifyBarData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - - //分类及工时情况 - getClassifyBarData() { - axios.post(requestUrl + "getClassifyWorks?deptId=" + deptId + "&pageSize=4&projectId=" + JSON.parse(localStorage.getItem("data1")).jzgj, {}).then(res => { - this.classifyBarData = [res.data.data.num, res.data.data.dayWorkTime, res.data.data.monthWorkTime]; - this.showClassifyBarData = this.classifyBarData[0]; - this.getChartData() - }).catch(err => { - }) - }, - //数据图展示 - getChartData() { - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.chart); - this.echartPie(chChartPie, this.showClassifyBarData) - }, - echartPie(chChart, data) { - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - if (data.length > 0) { - var max = data[0].total - } else { - var max = 0 - } - var nameData = []; - var totalData = [] - var background = [] - var yesMonitor = [] - var notMonitor = [] - var yesProp = [] - var notProp = [] - var unitData = [] - - for (let i = data.length - 1; i >= 0; i--) { - nameData.push(data[i].name); - totalData.push(data[i].total) - unitData.push(data[i].unit) - background.push(100); - yesMonitor.push(data[i].yesMonitor); - notMonitor.push(data[i].notMonitor); - yesProp.push((data[i].yesMonitor / max) * 100) - notProp.push((data[i].notMonitor / max) * 100) - } - - var legend = ["已监控", "未监控"] - if (this.legend) { - legend = this.legend - } - - this.option = { - grid: { - //图表的位置 - top: "8%", - left: "3%", - right: "5%", - bottom: "-12%", - containLabel: true, - }, - legend: { - right: "0", - top: "0", - //icon: "circle", - itemWidth: 22, - itemHeight: 20, - itemGap: 16, - textStyle: { - fontSize: 25, - color: '#c6d9fa', - }, - data: legend, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: {}, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - }, { - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize: '25', - }, - unit: { - color: '#6c829a', - fontSize: '25', - }, - yes: { - color: '#55adf7', - fontSize: '25', - }, - not: { - color: '#4677fa', - fontSize: '25', - }, - index: { - color: '#fcbc02', - fontStyle: 'italic', - padding: [0, 0, 0, 5], - fontSize: '25', - }, - name: { - width: 480, - color: '#c6d9fa', - padding: [0, 0, 0, 10], - fontSize: '25', - }, - color: { - color: '#8ca2be', - fontSize: '20', - }, - arrow: { - width: 20, - height: 15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function (data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - return '{arrow|}{index|No.' + (nameData.length - data.dataIndex) + '}{name|' + nameData[data.dataIndex] + '}{prop|' + totalData[data.dataIndex] + '}{unit| ' + unitData[data.dataIndex] + '}{prop|(} {yes|' + yesMonitor[data.dataIndex] + '}{unit| ' + unitData[data.dataIndex] + '/}{not|' + notMonitor[data.dataIndex] + '}{unit| ' + unitData[data.dataIndex] + '}{prop|)} '; - }, - } - }, - data: background - }, - { - type: 'bar', - - silent: true, - yAxisIndex: 1, - barWidth: 20, - itemStyle: { - normal: { - color: 'rgba(0,82,198,0.3)' - }, - emphasis: { - color: 'rgba(0,82,198,0.3)' - } - }, - data: background - }, - { - type: 'bar', - name: legend[0], - - stack: '1', - legendHoverLink: false, - barWidth: 20, - itemStyle: { - normal: { - color: '#52adf4' - }, - emphasis: { - color: '#52adf4' - } - }, - data: yesProp - }, { - type: 'bar', - name: legend[1], - stack: '1', - legendHoverLink: false, - barWidth: 20, - itemStyle: { - normal: { - color: '#4677ff' - }, - emphasis: { - color: '#4677ff' - } - }, - data: notProp - }] - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - //头部切换 - onWarningInfoNav(n) { - this.infoNav = n - this.showClassifyBarData = this.classifyBarData[n]; - this.getChartData() - }, - }, - watch: {}, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-jkycyj.js b/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-jkycyj.js deleted file mode 100644 index 50d1bb33..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-jkycyj.js +++ /dev/null @@ -1,125 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-jkycyj", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - //监控异常预警 - showTableDataOne:[], - showTableTileOne: [], - rowStyleOne:{ - color:'#ffffff', - fontSize:'24px', - height:'64px' - }, - headerRowOne:{ - fontSize: '20px' - } - } - }, - mounted(){ - this.intervalOne = setInterval(this.scrollOne,50); - }, - methods: { - openAmplify(){ - this.show = true - this.getExceptionAlert() - this.getDeviceWarnData() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - getExceptionAlert(){ - axios.get(requestUrl+"getExceptionAlert?deptId="+deptId+"&projectId="+JSON.parse(localStorage.getItem("data1")).jzgj+"&size=10", { - }).then(res => { - this.showTableDataOne = res.data; - this.showTableTileOne = [{name:"归属项目",value:"project_abbreviation"},{name:"机械名称",value:"device_name"},{name:"预警类型",value:"alarm_type_name"},{name:"预警地址",value:"address"}]; - this.getDeviceWarnData(); - }).catch(err => { - }) - }, - getDeviceWarnData(){ - //安全预警 - axios.get("https://aqzg.makalu.cc/api/statistics/getDeviceWarnData",{params:{"deptId":131,"projectId":JSON.parse(localStorage.getItem("data1")).aqzg}} - ).then(res => { - if(res.data.length>0){ - let objArray = []; - for(let i = 0;i { - }); - }, - //表格滚动 - scrollOne(){ - let maxHeight=this.$refs.wgzpOne.$el.querySelectorAll ('.el-table__body')[0].offsetHeight; - let clientHeight=this.$refs.wgzpOne.bodyWrapper.clientHeight; - if(Math.abs(this.$refs.wgzpOne.bodyWrapper.scrollTop-(maxHeight-clientHeight))<5){ //预留5像素误差 - this.$refs.wgzpOne.bodyWrapper.scrollTop=0; - }else{ - this.$refs.wgzpOne.bodyWrapper.scrollTop+= 1;//32是每一行表格的高度,每秒滚一行 - } - }, - MouseEnterOne(){//鼠标移入停止滚动 - clearInterval(this.intervalOne); - }, - MouseLeaveOne(){//鼠标离开继续滚动 - this.intervalOne=setInterval(this.scrollOne,50); - } - - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-sbgk.js b/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-sbgk.js deleted file mode 100644 index 73eb4d17..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-sbgk.js +++ /dev/null @@ -1,166 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-sbgk", { - template: ` -
-
- -
- - - -
- - `, - props: { - - }, - data() { - return { - show:false, - overview: 0, - showOverviewLabel:'设备数量', - surveyUrlSb: '/images/survey_icon_1.png', - overviewInterval: '', - overviewData:[], - showOverviewData: {}, - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - //设备概况点击事件定时器 - this.overviewInterval = setInterval(this.overviewClick, 5000); - this.getOverviewData() - }, - closeAmplify(){ - this.show = false - this.overview = 0 - this.showOverviewLabel='设备数量' - this.surveyUrlSb= '/images/survey_icon_1.png' - clearInterval(this.overviewInterval); - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - this.overview = 0 - this.showOverviewLabel='设备数量' - this.surveyUrlSb= '/images/survey_icon_1.png' - clearInterval(this.overviewInterval); - } - }, - //设备概况点击事件定时器方法 - overviewClick() { - if (this.overview < 2) { - this.overview = this.overview + 1 - } else { - this.overview = 0 - } - this.showOverviewData = this.overviewData[this.overview]; - if (this.overview == 0) { - this.showOverviewLabel = '设备数量' - this.surveyUrlSb = '/images/survey_icon_1.png' - } else if (this.overview == 1) { - this.showOverviewLabel = '绑定数量' - this.surveyUrlSb = '/images/survey_icon_2.png' - } else { - this.showOverviewLabel = '监控数量' - this.surveyUrlSb = '/images/survey_icon_3.png' - } - }, - //设备概况点击事件 - onClickoOverview(n) { - this.overview = n - this.showOverviewData = this.overviewData[this.overview]; - if (this.overview == 0) { - this.showOverviewLabel = '设备数量' - this.surveyUrlSb = '/images/survey_icon_1.png' - } else if (this.overview == 1) { - this.showOverviewLabel = '绑定数量' - this.surveyUrlSb = '/images/survey_icon_2.png' - } else { - this.showOverviewLabel = '监控数量' - this.surveyUrlSb = '/images/survey_icon_3.png' - } - }, - //设备概况数据 - getOverviewData(){ - axios.post(requestUrl+"getEquipmentOverview?deptId="+deptId+"&projectId="+JSON.parse(localStorage.getItem("data1")).jzgj, { - }).then(res => { - this.overviewData = [res.data.data.count,res.data.data.bind,res.data.data.monitor]; - this.showOverviewData = this.overviewData[0]; - }).catch(err => { - }) - }, - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-sbyxzt.js b/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-sbyxzt.js deleted file mode 100644 index 50fd13a9..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/jixieguanli/amplify-sbyxzt.js +++ /dev/null @@ -1,324 +0,0 @@ -import Vue from 'vue' - -var vms = Vue.component("amplify-sbyxzt", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - typeDistributionData:[ - { - name:'运行', - value:'0' - }, - { - name:'静止 ', - value:'0' - } - ], - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - this.getDeviceInfoByProjectId() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - //设备信息 - getDeviceInfoByProjectId(){ - var that = this; - axios.post(requestUrl+"getDeviceInfoByProjectId?projectId="+JSON.parse(localStorage.getItem("data1")).jzgj, { - }).then(res => { - let runNumber = 0; - let notRunNumber = 0; - let deviceCount = 0; - for(let i = 0;i { - let deviceInfo = res.data.deviceInfo; - //监控设备 - if(smartTerminalNumber != ""){ - //运行、静止设备 - if(deviceInfo == undefined || deviceInfo.angleData == undefined){ - notRunNumber ++; - }else{ - runNumber ++; - } - } - if(deviceId == 71259 || smartTerminalNumber == "aqzg-415"){ - that.oneData={ - rentalAngleOne:deviceInfo== undefined?0:deviceInfo.angleData, - rentalRangeOne:deviceInfo== undefined?0:deviceInfo.ampData, - rentalBrachiumOne:deviceInfo== undefined?0:deviceInfo.foreArmLength, - deviceNumOne:deviceNum, - } - }else if(deviceId == 71258 || smartTerminalNumber == "aqzg-411"){ - that.twoData={ - rentalAngleTwo:deviceInfo== undefined?0:deviceInfo.angleData, - rentalRangeTwo:deviceInfo== undefined?0:deviceInfo.ampData, - rentalBrachiumTwo:deviceInfo== undefined?0:deviceInfo.foreArmLength, - deviceNumTwo:deviceNum, - } - }else if(deviceId == 71257 || smartTerminalNumber == "aqzg-412"){ - that.threeData={ - rentalAngleThree:deviceInfo== undefined?0:deviceInfo.angleData, - rentalRangeThree:deviceInfo== undefined?0:deviceInfo.ampData, - rentalBrachiumThree:deviceInfo== undefined?0:deviceInfo.foreArmLength, - deviceNumThree:deviceNum, - } - }else if(deviceId == 71804 || smartTerminalNumber == "aqzg-413"){ - that.fourData={ - rentalAngleFour:deviceInfo== undefined?0:deviceInfo.angleData, - rentalRangeFour:deviceInfo== undefined?0:deviceInfo.ampData, - rentalBrachiumFour:deviceInfo== undefined?0:deviceInfo.foreArmLength, - deviceNumFour:deviceNum, - } - }else if(deviceId == 71803 || smartTerminalNumber == "aqzg-414"){ - that.fiveData={ - rentalAngleFive:deviceInfo== undefined?0:deviceInfo.angleData, - rentalRangeFive:deviceInfo== undefined?0:deviceInfo.ampData, - rentalBrachiumFive:deviceInfo== undefined?0:deviceInfo.foreArmLength, - deviceNumFive:deviceNum, - } - }else if(deviceId == 71802 || smartTerminalNumber == "aqzg-410"){ - that.sixData={ - rentalAngleSix:deviceInfo== undefined?0:deviceInfo.angleData, - rentalRangeSix:deviceInfo== undefined?0:deviceInfo.ampData, - rentalBrachiumSix:deviceInfo== undefined?0:deviceInfo.foreArmLength, - deviceNumSix:deviceNum, - } - } - if(parseInt(runNumber)+parseInt(notRunNumber) == deviceCount){ - that.getTypeDistribution(runNumber,notRunNumber); - } - }).catch(err => { - }) - } - }).catch(err => { - //console.log(err); - }) - - }, - //设备运行状态数据接口 - getTypeDistribution(runNumber,notRunNumber){ - var that = this; - axios.post(requestUrl+"getRunningDynamics?deptId="+deptId+"&projectId="+JSON.parse(localStorage.getItem("data1")).jzgj, { - }).then(res => { - let data = res.data.data; - - let array = []; - if(data.length > 0) { - array = data; - } else { - array = [{ - name:'运行', - value:'0' - }, - { - name:'静止', - value:'0' - }]; - } - let dataArray = []; - for(let i = 0;i { - }) - }, - - //数据图 - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.warningPieChart); - this.echartPie(chChartPie,this.typeDistributionData) - }, - echartPie(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var total_datas = 0; - var data = []; - var legendData = []; - var color = ['#4474fa','#52aef7','#2075ae'] - for (let i = 0; i { - return a + b.value; - }, 0);*/ - this.option = { - title: { - text: total_datas, - subtext: "台", - x: "center", - y: "140", - textStyle: { - color: "#0dd2fd", - fontSize: 42, - fontWeight: "normal", - align: "center", - width: "300px", - }, - subtextStyle: { - color: "#a5b5f0", - fontSize: 25, - fontWeight: "normal", - align: "center", - }, - }, - tooltip: { - trigger: 'item', - formatter: "{b}
{c} ({d}%)" - }, - legend: { - width:'100%', - left: "center", - right: "0", - bottom: "5", - //icon: "circle", - itemWidth: 25, - itemGap:52, - textStyle: { - fontSize: 60, - rich: { - name: { - color: "#c3dbfd", - padding: [10, 5, 30, 5], - // align: 'right' - // width: 60 - fontSize: 25, - }, - percent: { - color: "#18DB9F", - fontSize: 16, - padding: [0, 5, 0, 5], - // align: 'right' - fontSize: 25, - }, - }, - }, - formatter: function (name) { - let res = chartData.filter((v) => v.name === name); - let percent = total_datas == 0?0:((res[0].value * 100) / total_datas).toFixed(2); - return "{name| " + name + "}\n{percent|" + res[0].value + "}{percent|" + percent + "%}"; - }, - }, - series: [ - { - name: "品类金额占比", - type: "pie", - center: ["50%", "40%"], - radius: ["42%", "60%"], - data: data, - label: { - show: false, - }, - itemStyle: { - normal: { - borderWidth: 10, - borderColor: "#051a36" - } - }, - - }, - { - name: "外边框", - type: "pie", - clockWise: false, //顺时加载 - hoverAnimation: false, //鼠标移入变大 - center: ["50%", "40%"], - radius: ["66%", "66%"], - label: { - normal: { - show: false, - }, - }, - data: [ - { - // value: 9, - // name: "", - // itemStyle: { - // normal: { - // borderWidth: 3, - // borderColor: "#152c65", - // }, - // }, - }, - ], - }, - ], - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-aqjy.js b/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-aqjy.js deleted file mode 100644 index 05a6618c..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-aqjy.js +++ /dev/null @@ -1,505 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-aqjy", { - template: ` -
-
- -
- - - -
- `, - props: {}, - data() { - return { - ljaqjy: 0, - lsry: 0, - show: false, - safetyEducationData1: [ - {text: "接受培训率", value: 0}, - ], - safetyEducationData2: [ - {text: "接受培训率", value: 0}, - ], - width: 400 - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getLWData() - this.getLSRYData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - getLWDatas(){ - - }, - getLWData() { - axios.post("https://smz.makalu.cc/mkl/screenApi/getAllUserData?token=" + JSON.parse(localStorage.getItem("data1")).smz_token - + "&deptId=123&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id + "&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id, {}).then(res => { - - - if (res.data.code == "-1") { - - this.ljaqjy = 0; - - } - this.ljaqjy = res.data.zcrs + ''; - var safetyEducationData = []; - var safetyEducationData2 = []; - // safetyEducationData.push({text:"培训通过率",value:(res.data.jspxrs*res.data.pxtgl/100).toFixed(0)}); - // safetyEducationData2.push({text:"接受培训率",value:res.data.jspxrs }); - safetyEducationData.push({text: "接受培训率", value: res.data.zcrs}); - safetyEducationData2.push({text: "接受培训率", value: res.data.zcrs}); - this.safetyEducationData1 = safetyEducationData; - this.safetyEducationData2 = safetyEducationData2; - this.getChartData() - this.getChartData1() - }).catch(err => { - }) - }, - getLSRYData() { - axios.post("https://smz.makalu.cc/mkl/screenApi/getUserInfoTempList?token=" + JSON.parse(localStorage.getItem("data1")).smz_token - + "&isWork=1&deptId=123&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id + "&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id, {}).then(res => { - this.lsry = res.data.data.length + ''; - }).catch(err => { - }) - }, - getChartData() { - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.charts1); - this.echart1(chChart, this.safetyEducationData1) - }, - //出勤情况-灰名单 - getChartData1() { - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.charts2); - this.echart2(chChart, this.safetyEducationData2) - }, - echart1(chChart, chartData) { - var that = this - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - if (this.workMax) { - total = this.workMax - } else { - total += chartData[i].value - } - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if (total == 0) { - prop.push(0) - } else { - prop.push((value[j] / total * 100).toFixed(1)) - } - } - var unit = '人' - if (this.unit) { - unit = this.unit - } - - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: {}, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - }, { - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize: '25', - }, - unit: { - color: '#6c829a', - fontSize: '25', - }, - yes: { - color: '#55adf7', - fontSize: '25', - }, - not: { - color: '#4677fa', - fontSize: '25', - }, - index: { - color: '#fcbc02', - fontStyle: 'italic', - padding: [0, 0, 0, 5], - fontSize: '25', - }, - name: { - width: this.width, - color: '#c6d9fa', - padding: [0, 0, 0, 5], - fontSize: '25', - }, - color: { - color: '#8ca2be', - fontSize: '20', - }, - arrow: { - width: 20, - height: 15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function (data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - // if(that.show == true){ - // return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'}'; - // }else{ - // return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'} {prop|'+prop[data.dataIndex]+'}{color| %} '; - // } - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| 人} {prop|' + prop[data.dataIndex] + '}{color| %} '; - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 16, - data: prop, - }, - { - type: "bar", - barWidth: 20, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - - chChart.off('click') - - chChart.on('click', function (params) { - that.$emit('personnel', params.dataIndex); - }) - }) - }, - //出勤情况-灰名单 - echart2(chChart, chartData) { - var that = this - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - if (this.workMax) { - total = this.workMax - } else { - total += chartData[i].value - } - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if (total == 0) { - prop.push(0) - } else { - prop.push((value[j] / total * 100).toFixed(1)) - } - } - var unit = '人' - if (this.unit) { - unit = this.unit - } - - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: {}, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - }, { - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize: '25', - }, - unit: { - color: '#6c829a', - fontSize: '25', - }, - yes: { - color: '#55adf7', - fontSize: '25', - }, - not: { - color: '#4677fa', - fontSize: '25', - }, - index: { - color: '#fcbc02', - fontStyle: 'italic', - padding: [0, 0, 0, 5], - fontSize: '25', - }, - name: { - width: this.width, - color: '#c6d9fa', - padding: [0, 0, 0, 5], - fontSize: '25', - }, - color: { - color: '#8ca2be', - fontSize: '20', - }, - arrow: { - width: 20, - height: 15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function (data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - if (that.show == true) { - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| ' + unit + '}'; - } else { - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| ' + unit + '} {prop|' + prop[data.dataIndex] + '}{color| %} '; - } - - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 16, - data: prop, - }, - { - type: "bar", - barWidth: 20, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - - chChart.off('click') - - chChart.on('click', function (params) { - that.$emit('personnel', params.dataIndex); - }) - }) - }, - - }, - watch: {}, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-cjdwfb.js b/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-cjdwfb.js deleted file mode 100644 index 985613dc..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-cjdwfb.js +++ /dev/null @@ -1,106 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-cjdwfb", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - //参见单位分布 - seeUnitData: [], - seeUnitInterval: '', - show:false, - rowStyle: { - color: '#B6CFEF', - fontSize: '24px', - height: '64px' - }, - headerStyle:{ - color: '#B6CFEF', - fontSize: '24px', - height: '64px' - }, - showTitle: "" - } - }, - mounted(){ - this.seeUnitInterval = setInterval(this.seeUnitScroll, 50); - }, - methods: { - openAmplify(){ - this.show = true - this.getUnitPeopleNum() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - getUnitPeopleNum() { - axios.post("https://smz.makalu.cc/mkl/screenApi/getCqUnitPeopleNum?token=" + JSON.parse(localStorage.getItem("data1")).smz_token + "&deptId=123&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id + "&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id, {}).then(res => { - if (res.data.state == "OK") { - let n = 0 - for(let da of res.data.data){ - n += da.rs - } - this.showTitle = "人数(" + n +")" - this.seeUnitData = res.data.data - } else { - this.seeUnitData = []; - } - }).catch(err => { - }) - }, - seeUnitScroll() { - let maxHeight = this.$refs.seeUnit.$el.querySelectorAll('.el-table__body')[0].offsetHeight; - let clientHeight = this.$refs.seeUnit.bodyWrapper.clientHeight; - if (Math.abs(this.$refs.seeUnit.bodyWrapper.scrollTop - (maxHeight - clientHeight)) < 5) { //预留5像素误差 - this.$refs.seeUnit.bodyWrapper.scrollTop = 0; - } else { - this.$refs.seeUnit.bodyWrapper.scrollTop += 1;//32是每一行表格的高度,每秒滚一行 - } - }, - seeUnitMouseEnter() {//鼠标移入停止滚动 - clearInterval(this.seeUnitInterval); - }, - seeUnitMouseLeave() {//鼠标离开继续滚动 - this.seeUnitInterval = setInterval(this.seeUnitScroll, 50); - } - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-gzzb.js b/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-gzzb.js deleted file mode 100644 index a3a84096..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-gzzb.js +++ /dev/null @@ -1,483 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-gzzb", { - template: ` -
-
- -
- - - -
- `, - props: {}, - data() { - return { - show: false, - typedata:[], - projectId:JSON.parse(localStorage.getItem("data1")).id, - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getGZData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - getGZData() { - axios.post("https://smz.makalu.cc/mkl/screenApi/getCqWorkTypeData?token=" + JSON.parse(localStorage.getItem("data1")).smz_token + "&deptId=131&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id + "&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id, {}).then(res => { - var workPropData = []; - if (res.data.code != "-1") { - var data = res.data.workTypeData; - for (let i = 0; i < data.length; i++) { - workPropData.push({ - text: data[i].name, - value: data[i].value, - prop: data[i].percent, - id: data[i].id - }) - } - } - var workPropDataNew = [] - var val={ - id : '', - text:'其他工种', - prop : 0, - value : 0, - } - - if(workPropData.length > 0){ - for (let i = 0; i < workPropData.length ; i++) { - if(workPropData[i].text == '其他工种' || workPropData[i].text == '其他'){ - val.id += workPropData[i].id+',' - val.prop += Number(workPropData[i].prop) - val.value += Number(workPropData[i].value) - }else { - workPropDataNew.push(workPropData[i]) - } - } - } - workPropDataNew.push(val) - this.typedata = workPropDataNew; - - this.getChartData() - this.getChartData1() - }).catch(err => { - }) - }, - //左边圆形图 - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.amplifyBox); - this.echartPie(chChartPie,this.typedata) - }, - echartPie(chChart,chartData){ - // console.log(chartData) - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var total_datas = 0; - var data = []; - var legendData = []; - var color = ['#4974ff','#52aef7','#6863d7','#1d5d89','#20e6ff','#67feef'] - for (let i = 0; i { - return a + b.value; - }, 0);*/ - this.option = { - title: { - text: total_datas, - subtext: "总人数", - x: "center", - y: "143", - textStyle: { - color: "#0dd2fd", - fontSize: 52, - fontWeight: "normal", - align: "center", - width: "200px", - }, - subtextStyle: { - color: "#a5b5f0", - fontSize: 28, - fontWeight: "normal", - align: "center", - }, - }, - tooltip: { - trigger: 'item', - formatter: "{b}
{c} ({d}%)" - }, - series: [ - { - name: "品类金额占比", - type: "pie", - center: ["50%", "50%"], - radius: ["53%", "70%"], - data: data, - label: { - show: false, - }, - itemStyle: { - normal: { - borderWidth: 10, - borderColor: "#051a36" - } - }, - - }, - { - name: "外边框", - type: "pie", - clockWise: false, //顺时加载 - hoverAnimation: false, //鼠标移入变大 - center: ["50%", "50%"], - radius: ["78%", "78%"], - label: { - normal: { - show: false, - }, - }, - data: [ - { - value: 9, - name: "", - itemStyle: { - normal: { - borderWidth: 6, - borderColor: "#152c65", - }, - }, - }, - ], - }, - ], - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - //右边进度图 - getChartData1(){ - var chChartBar = echarts.init(this.$refs.amplifyStyle); - this.echartBar(chChartBar,this.typedata) - }, - echartBar(chChart,chartData){ - var that = this - - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - - var value = []; - var prop = []; - var text = []; - var zero = [] - - var total = 0 - for (let i = chartData.length-1; i >=0; i--) { - total += chartData[i].value; - value.push(chartData[i].value) - prop.push(chartData[i].prop) - text.push(chartData[i].text) - zero.push(0) - } - - - var data = [] - var data_all = new Array(prop.length) - for (let i = 0; i -
- -
- - - - - - `, - props: { - - }, - data() { - return { - show:false, - projectId:JSON.parse(localStorage.getItem("data1")).id, - nav:1, - surveyUrl: '/images/survey_icon_5.png', - staffText: '今日出勤', - lwDataTotal:0, - option:{} - } - }, - mounted(){ - - }, - methods: { - openAmplify() { - this.show = true - this.getLWData(1) - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - onInfoNav(n, text) { - this.nav = n - this.staffText = text - this.getLWData(n) - if (n == 0) { - this.surveyUrl = '../../images/survey_icon_4.png' - } else { - this.surveyUrl = '../../images/survey_icon_5.png' - } - }, - - //劳务人员概况 - getLWData(infoNav) { - axios.post("https://smz.makalu.cc/mkl/screenApi/getAllUserData?token=" + JSON.parse(localStorage.getItem("data1")).smz_token - + "&deptId=123&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id + "&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id, {}).then(res => { - this.lwLoading = false; - var laborPersonnelData = []; - if (infoNav == 0) { - laborPersonnelData.push({text: "特种作业人员", value: res.data.userInfo.specialTotal, type: 2}) - laborPersonnelData.push({text: "劳务人员(不含特种人员)", value: res.data.userInfo.unSpecialTotal, type: 1}) - laborPersonnelData.push({text: "管理人员", value: res.data.userInfo.glrs, type: 0}) - this.lwDataTotal = res.data.zgrs - } else { - laborPersonnelData.push({text: "特种作业人员", value: res.data.cqUserInfo.specialTotal, type: 2}) - laborPersonnelData.push({text: "劳务人员(不含特种人员)", value: res.data.cqUserInfo.unSpecialTotal, type: 1}) - laborPersonnelData.push({text: "管理人员", value: res.data.cqUserInfo.glrs, type: 0}) - this.lwDataTotal = res.data.rcrs - } - this.$nextTick(() => { - this.echart(laborPersonnelData) - }) - }).catch(err => { - }) - - }, - - echart(chartData){ - var chChart = echarts.init(this.$refs.chart); - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - total += chartData[i].value - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if(total == 0){ - prop.push(0) - }else{ - prop.push((value[j]/total * 100).toFixed(1)) - } - } - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [ - { - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'25', - }, - unit:{ - color: '#6c829a', - fontSize:'25', - }, - yes:{ - color: '#55adf7', - fontSize:'25', - }, - not:{ - color: '#4677fa', - fontSize:'25', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'25', - }, - name: { - width: 350, - color: '#c6d9fa', - padding:[0,0,0,10], - fontSize:'25', - }, - color:{ - color: '#8ca2be', - fontSize:'20', - - }, - arrow:{ - width:20, - height:15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function(data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| 人} {prop|'+prop[data.dataIndex]+'}{color| %} '; - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - - barWidth: 15, - data: prop, - }, - { - type: "bar", - barWidth: 15, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - - }, -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-nlhx.js b/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-nlhx.js deleted file mode 100644 index ea7229e1..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-nlhx.js +++ /dev/null @@ -1,220 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-nlhx", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - ageStudyData: {}, - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - this.getAgeData() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - getAgeData() { - axios.post("https://smz.makalu.cc/mkl/screenApi/getCqAgeData2?token=" + JSON.parse(localStorage.getItem("data1")).smz_token + "&deptId=123&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id + "&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id, {}).then(res => { - var ageStudyData = {}; - ageStudyData.xAxis = ["18以下", "18-29", "30-39", "40-49", "50以上"]; - ageStudyData.seriesName = "年龄分布占比"; - if (res.data.code != "-1") { - var ageData = res.data.ageData; - var data = [ageData.shiqizb, ageData.shibazb, ageData.sanshizb, ageData.sishizb, ageData.wushiupzb]; - ageStudyData.data = data; - } - this.ageStudyData = ageStudyData; - this.getChartData() - }).catch(err => { - }) - }, - // 折线图 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart); - this.echartBar(chChartBar,this.ageStudyData) - }, - echartBar(chChart,data){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - this.option = { - grid: { - top:'10%', - left: "2%", - right: "0%", - bottom: "0%", - containLabel: true, - }, - tooltip: { - trigger: "axis", - formatter: function (params) { - return (params[0].seriesName+"
" - +params[0].name +":"+ params[0].data + "%") - }, - }, - xAxis: { - type: "category", - data: data.xAxis, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - rich:{ - fontSize:25 - }, - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 30, - fontSize:25 - }, - - }, - }, - yAxis: { - type: "value", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: false, - lineStyle: { - color: "#c5d9fc", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - rich:{ - fontSize:25 - }, - axisLabel: { - show: true, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 30, - fontSize:25 - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - }, - series: [ - { - name: data.seriesName, - type: "pictorialBar", - barCategoryGap: "0%", - label: { - normal: { - show: true, - position: "top", - color:"#fff", - fontSize:25 - }, - }, - - //symbol: 'path://M0,10 L10,10 L5,0 L0,10 z', - symbol: "path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z", - - - itemStyle: { - normal: { - color: { - type: "linear", - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0, - color: "rgba(15,133,224,0.2)", // 0% 处的颜色 - }, - { - offset: 0.9, - color: "rgba(15,133,224,0.8)", // 100% 处的颜色 - }, - ], - global: false, // 缺省为 false - }, - }, - emphasis: { - opacity: 1, - }, - }, - data: data.data, - z: 10, - }, - ], - }; - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - - - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-rycqfb.js b/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-rycqfb.js deleted file mode 100644 index 835c535d..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/laowuyonggong/amplify-rycqfb.js +++ /dev/null @@ -1,914 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-rycqfb", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - width:760, - workData_1:[{ text:"白名单(7天出勤人数,包含7天)", value:0 }], - //workData_2:[{ text:"灰名单(4-10天内出勤人数)", value:0 }], - workData_3:[{ text:"灰名单(超过7天未出勤人数,不包含7天)", value:0 }], - workData_4:[{ text:"临时人员(打突击线上教育人员)", value:0 }], - workData_5:[{ text:"退场人员", value:0 }], - workMax: 0, - show:false, - projectId:JSON.parse(localStorage.getItem("data1")).id, - } - }, - mounted(){ - }, - methods: { - openAmplify(){ - this.show = true - this.getActivePeopleNum1() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - //人员出勤分布接口 - getActivePeopleNum1(){ - axios.post("https://smz.makalu.cc/mkl/screenApi/getUnCqUserList?token="+JSON.parse(localStorage.getItem("data1")).smz_token+"&maxDay=6&deptId=123&typtDeptId="+JSON.parse(localStorage.getItem("data1")).dept_id+"&typtProjectId="+JSON.parse(localStorage.getItem("data1")).id, { - }).then(res => { - if(res.data.state == "OK"){ - var max = this.workMax; - if(res.data.data.length > max){ - this.workMax = res.data.data.length; - } - - this.workData_1 = [{ text:"白名单(7天出勤人数,包含7天)", value:res.data.data.length }]; - }else{ - this.workData_1 = [{ text:"白名单(7天出勤人数,包含7天)", value:0 }]; - } - this.getChartData() - axios.post("https://smz.makalu.cc/mkl/screenApi/getUnCqUserList?token="+JSON.parse(localStorage.getItem("data1")).smz_token+"&dayNum=7&deptId=123&typtDeptId="+JSON.parse(localStorage.getItem("data1")).dept_id+"&typtProjectId="+JSON.parse(localStorage.getItem("data1")).id, { - }).then(res => { - if(res.data.state == "OK"){ - var max = this.workMax; - if(res.data.data.length > max){ - this.workMax = res.data.data.length; - } - this.workData_3 = [{ text:"灰名单(超过7天未出勤人数,不包含7天)", value:res.data.data.length }]; - }else{ - this.workData_3 = [{ text:"灰名单(超过7天未出勤人数,不包含7天)", value:0 }]; - } - this.getChartData1() - axios.post("https://smz.makalu.cc/mkl/screenApi/getUserInfoTempList?token="+JSON.parse(localStorage.getItem("data1")).smz_token+"&isWork=1&deptId=123&typtDeptId="+JSON.parse(localStorage.getItem("data1")).dept_id+"&typtProjectId="+JSON.parse(localStorage.getItem("data1")).id, { - }).then(res => { - if(res.data.state == "OK"){ - var max = this.workMax; - if(res.data.data.length > max){ - this.workMax = res.data.data.length; - } - this.workData_4 = [{ text:"临时人员(打突击线上教育人员)", value:res.data.data.length}]; - }else{ - this.workData_4 = [{ text:"临时人员(打突击线上教育人员)", value:0 }]; - } - this.getChartData2() - axios.post("https://smz.makalu.cc/mkl/screenApi/getUserInfoList?token="+JSON.parse(localStorage.getItem("data1")).smz_token+"&isWork=2&deptId=123&typtDeptId="+JSON.parse(localStorage.getItem("data1")).dept_id+"&typtProjectId="+JSON.parse(localStorage.getItem("data1")).id, { - }).then(res => { - if(res.data.state == "OK"){ - var max = this.workMax; - if(res.data.data.length > max){ - this.workMax = res.data.data.length; - } - this.workData_5 = [{ text:"退场人员", value:res.data.data.length }]; - }else{ - this.workData_5 = [{ text:"退场人员", value:0 }]; - } - this.getChartData3() - }).catch(err => { - }) - }).catch(err => { - }) - }).catch(err => { - }) - }).catch(err => { - }) - - - - }, - //出勤情况-白名单 - getChartData(){ - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.anlifychart); - this.echart1(chChart,this.workData_1) - }, - //出勤情况-灰名单 - getChartData1(){ - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.anlifychart1); - this.echart2(chChart,this.workData_3) - }, - //出勤情况-临时人员 - getChartData2(){ - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.anlifychart2); - this.echart3(chChart,this.workData_4) - }, - //出勤情况-在线人员 - getChartData3(){ - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.anlifychart3); - this.echart4(chChart,this.workData_5) - }, - //出勤情况-白名单 - echart1(chChart,chartData){ - var that = this - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - if(this.workMax){ - total = this.workMax - }else{ - total += chartData[i].value - } - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if(total == 0){ - prop.push(0) - }else{ - prop.push((value[j]/total * 100).toFixed(1)) - } - } - var unit = '人' - if(this.unit){ - unit = this.unit - } - - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'25', - }, - unit:{ - color: '#6c829a', - fontSize:'25', - }, - yes:{ - color: '#55adf7', - fontSize:'25', - }, - not:{ - color: '#4677fa', - fontSize:'25', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'25', - }, - name: { - width: this.width, - color: '#c6d9fa', - padding:[0,0,0,5], - fontSize:'25', - }, - color:{ - color: '#8ca2be', - fontSize:'20', - }, - arrow:{ - width:20, - height:15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function(data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - if(that.show == true){ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'}'; - }else{ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'} {prop|'+prop[data.dataIndex]+'}{color| %} '; - } - - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 20, - data: prop, - }, - { - type: "bar", - barWidth: 20, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - - chChart.off('click') - - chChart.on('click', function (params) { - that.$emit('personnel',params.dataIndex); - }) - }) - }, - //出勤情况-灰名单 - echart2(chChart,chartData){ - var that = this - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - if(this.workMax){ - total = this.workMax - }else{ - total += chartData[i].value - } - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if(total == 0){ - prop.push(0) - }else{ - prop.push((value[j]/total * 100).toFixed(1)) - } - } - var unit = '人' - if(this.unit){ - unit = this.unit - } - - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'25', - }, - unit:{ - color: '#6c829a', - fontSize:'25', - }, - yes:{ - color: '#55adf7', - fontSize:'25', - }, - not:{ - color: '#4677fa', - fontSize:'25', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'25', - }, - name: { - width: this.width, - color: '#c6d9fa', - padding:[0,0,0,5], - fontSize:'25', - }, - color:{ - color: '#8ca2be', - fontSize:'20', - }, - arrow:{ - width:20, - height:15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function(data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - if(that.show == true){ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'}'; - }else{ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'} {prop|'+prop[data.dataIndex]+'}{color| %} '; - } - - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 20, - data: prop, - }, - { - type: "bar", - barWidth: 20, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - - chChart.off('click') - - chChart.on('click', function (params) { - that.$emit('personnel',params.dataIndex); - }) - }) - }, - //出勤情况-临时人员 - echart3(chChart,chartData){ - var that = this - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - if(this.workMax){ - total = this.workMax - }else{ - total += chartData[i].value - } - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if(total == 0){ - prop.push(0) - }else{ - prop.push((value[j]/total * 100).toFixed(1)) - } - } - var unit = '人' - if(this.unit){ - unit = this.unit - } - - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'25', - }, - unit:{ - color: '#6c829a', - fontSize:'25', - }, - yes:{ - color: '#55adf7', - fontSize:'25', - }, - not:{ - color: '#4677fa', - fontSize:'25', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'25', - }, - name: { - width: this.width, - color: '#c6d9fa', - padding:[0,0,0,5], - fontSize:'25', - }, - color:{ - color: '#8ca2be', - fontSize:'20', - }, - arrow:{ - width:20, - height:15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function(data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - if(that.show == true){ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'}'; - }else{ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'} {prop|'+prop[data.dataIndex]+'}{color| %} '; - } - - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 20, - data: prop, - }, - { - type: "bar", - barWidth: 20, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - - chChart.off('click') - - chChart.on('click', function (params) { - that.$emit('personnel',params.dataIndex); - }) - }) - }, - //出勤情况-在线人员 - echart4(chChart,chartData){ - var that = this - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - if(this.workMax){ - total = this.workMax - }else{ - total += chartData[i].value - } - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if(total == 0){ - prop.push(0) - }else{ - prop.push((value[j]/total * 100).toFixed(1)) - } - } - var unit = '人' - if(this.unit){ - unit = this.unit - } - - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'25', - }, - unit:{ - color: '#6c829a', - fontSize:'25', - }, - yes:{ - color: '#55adf7', - fontSize:'25', - }, - not:{ - color: '#4677fa', - fontSize:'25', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'25', - }, - name: { - width: this.width, - color: '#c6d9fa', - padding:[0,0,0,5], - fontSize:'25', - }, - color:{ - color: '#8ca2be', - fontSize:'20', - }, - arrow:{ - width:20, - height:15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function(data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - if(that.show == true){ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'}'; - }else{ - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'} {prop|'+prop[data.dataIndex]+'}{color| %} '; - } - - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 20, - data: prop, - }, - { - type: "bar", - barWidth: 20, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - - chChart.off('click') - - chChart.on('click', function (params) { - that.$emit('personnel',params.dataIndex); - }) - }) - }, - - }, - watch:{ - data: function (n,o) { - this.getChartData() - this.getChartData1() - this.getChartData2() - this.getChartData3() - }, - max: function (n,o) { - this.getChartData() - this.getChartData1() - this.getChartData2() - this.getChartData3() - } - } -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/shipinguanli/amplify-spjk.js b/yanzhu-bigscreen/src/components-old/amplify/shipinguanli/amplify-spjk.js deleted file mode 100644 index 43d8faae..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/shipinguanli/amplify-spjk.js +++ /dev/null @@ -1,154 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-spjk", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - cqNum:0, - dgNum:0, - aiNum:0, - offLineNum:0 - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - this.getVideoOverview() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - }, - //视频概况 - getVideoOverview() { - axios.get("https://video.makalu.cc/mkl/api/getVideoOverview?projectId="+JSON.parse(localStorage.getItem("data1")).spgk).then(res => { - if(res.data != {}) { - - this.cqNum = res.data.data.cqNum; - this.dgNum = res.data.data.dgNum; - this.aiNum = res.data.data.aiNum; - this.offLineNum = res.data.data.offLineNum; - - var data = []; - var allVideoList = res.data.data.allVideoList; - if(allVideoList){ - for(let i = 0;i < allVideoList.length;i++){ - var obj = {}; - obj.x = allVideoList[i].x - obj.y = allVideoList[i].y - obj.angle = allVideoList[i].angle - obj.title = allVideoList[i].title - obj.state = allVideoList[i].state - obj.token = allVideoList[i].token - if(allVideoList[i].videoSource == 1){ - obj.videoType = 'h5s' - }else if(allVideoList[i].videoSource == 2){ - obj.videoType = 'hk' - }else if(allVideoList[i].videoSource == 3){ - obj.videoType = 'hzhk' - } - data.push(obj) - } - } - - var token = this.videoListData[0].videoList[0].token - - - for (let i=0 ;i -
- -
- - - - - `, - props: { - modeltitle:{ - type:String - }, - }, - data() { - return { - show: false, - height: 510, - width: 910, - forData: [], - arrowLeft: -45, - arrowRight:-45, - interval:undefined, - left:0, - direction:'left', - projectId:JSON.parse(localStorage.getItem("data1")).id, - datas:[] - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - // 调用接口 - getData() { - let that = this - axios.get("/api/building/info?project_id=" + this.projectId).then(res => { - let data = res.data.data - let type = {} - for (let info of data) { - if (!type[info.sub_type]) { - type[info.sub_type] = new Array() - } - info.url = (info.file_path.indexOf("https") != -1) ? info.file_path : info.file_src - info.text = info.file_name - type[info.sub_type].push(info) - } - that.forData = type[3]; - that.forData.map(item=>this.datas.push(item.url)) - }).catch(err => { - - }) - }, - carouselMouseover() { - this.arrowLeft = 10 - this.arrowRight = 10 - clearInterval(this.interval); - }, - carouselMouseout() { - this.arrowLeft = -30 - this.arrowRight = -30 - this.direction = 'left' - this.interval = setInterval(this.timer, 3000); - }, - clickCtrl(direction) { - this.direction = direction - this.timer() - }, - timer() { - if (this.direction == 'left') { - this.left = this.left - this.width - if (this.left == -((this.forData.length) * this.width)) { - this.left = 0 - } - } else { - if (this.left == 0) { - this.left = -((this.forData.length - 1) * this.width) - } else { - this.left = this.left + this.width - } - } - }, - }, - watch: {} - - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-jdsl.js b/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-jdsl.js deleted file mode 100644 index 5cfe8ba6..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-jdsl.js +++ /dev/null @@ -1,137 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-jdsl", { - template: ` -
-
- -
- - - -
- `, - props: { - modeltitle:{ - type:String - }, - }, - data() { - return { - show: false, - height: 510, - width: 910, - forData: [], - arrowLeft: -45, - arrowRight:-45, - interval:undefined, - left:0, - direction:'left', - projectId:JSON.parse(localStorage.getItem("data1")).id, - datas:[] - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - // 调用接口 - getData() { - let that = this - axios.get("/api/building/info?project_id=" + this.projectId).then(res => { - let data = res.data.data - let type = {} - for (let info of data) { - if (!type[info.sub_type]) { - type[info.sub_type] = new Array() - } - info.url = (info.file_path.indexOf("https") != -1) ? info.file_path : info.file_src - info.text = info.file_name - type[info.sub_type].push(info) - } - that.forData = type[4]; - that.forData.map(item=>this.datas.push(item.url)) - }).catch(err => { - - }) - }, - carouselMouseover() { - this.arrowLeft = 10 - this.arrowRight = 10 - clearInterval(this.interval); - }, - carouselMouseout() { - this.arrowLeft = -30 - this.arrowRight = -30 - this.direction = 'left' - this.interval = setInterval(this.timer, 3000); - }, - clickCtrl(direction) { - this.direction = direction - this.timer() - }, - timer() { - if (this.direction == 'left') { - this.left = this.left - this.width - if (this.left == -((this.forData.length) * this.width)) { - this.left = 0 - } - } else { - if (this.left == 0) { - this.left = -((this.forData.length - 1) * this.width) - } else { - this.left = this.left + this.width - } - } - }, - }, - watch: {} - - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-lzgcjs.js b/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-lzgcjs.js deleted file mode 100644 index 40c55ad6..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-lzgcjs.js +++ /dev/null @@ -1,137 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-lzgcjs", { - template: ` -
-
- -
- - - -
- `, - props: { - modeltitle:{ - type:String - }, - }, - data() { - return { - show: false, - height: 510, - width: 910, - forData: [], - arrowLeft: -45, - arrowRight:-45, - interval:undefined, - left:0, - direction:'left', - projectId:JSON.parse(localStorage.getItem("data1")).id, - datas:[] - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - // 调用接口 - getData() { - let that = this - axios.get("/api/building/info?project_id=" + this.projectId).then(res => { - let data = res.data.data - let type = {} - for (let info of data) { - if (!type[info.sub_type]) { - type[info.sub_type] = new Array() - } - info.url = (info.file_path.indexOf("https") != -1) ? info.file_path : info.file_src - info.text = info.file_name - type[info.sub_type].push(info) - } - that.forData = type[5]; - that.forData.map(item=>this.datas.push(item.url)) - }).catch(err => { - - }) - }, - carouselMouseover() { - this.arrowLeft = 10 - this.arrowRight = 10 - clearInterval(this.interval); - }, - carouselMouseout() { - this.arrowLeft = -30 - this.arrowRight = -30 - this.direction = 'left' - this.interval = setInterval(this.timer, 3000); - }, - clickCtrl(direction) { - this.direction = direction - this.timer() - }, - timer() { - if (this.direction == 'left') { - this.left = this.left - this.width - if (this.left == -((this.forData.length) * this.width)) { - this.left = 0 - } - } else { - if (this.left == 0) { - this.left = -((this.forData.length - 1) * this.width) - } else { - this.left = this.left + this.width - } - } - }, - }, - watch: {} - - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-sxzzjs.js b/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-sxzzjs.js deleted file mode 100644 index c1a6c540..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-sxzzjs.js +++ /dev/null @@ -1,137 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-sxzzjs", { - template: ` -
-
- -
- - - -
- `, - props: { - modeltitle:{ - type:String - }, - }, - data() { - return { - show: false, - height: 510, - width: 910, - forData: [], - arrowLeft: -45, - arrowRight:-45, - interval:undefined, - left:0, - direction:'left', - projectId:JSON.parse(localStorage.getItem("data1")).id, - datas:[] - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - // 调用接口 - getData() { - let that = this - axios.get("/api/building/info?project_id=" + this.projectId).then(res => { - let data = res.data.data - let type = {} - for (let info of data) { - if (!type[info.sub_type]) { - type[info.sub_type] = new Array() - } - info.url = (info.file_path.indexOf("https") != -1) ? info.file_path : info.file_src - info.text = info.file_name - type[info.sub_type].push(info) - } - that.forData = type[1]; - that.forData.map(item=>this.datas.push(item.url)) - }).catch(err => { - - }) - }, - carouselMouseover() { - this.arrowLeft = 10 - this.arrowRight = 10 - clearInterval(this.interval); - }, - carouselMouseout() { - this.arrowLeft = -30 - this.arrowRight = -30 - this.direction = 'left' - this.interval = setInterval(this.timer, 3000); - }, - clickCtrl(direction) { - this.direction = direction - this.timer() - }, - timer() { - if (this.direction == 'left') { - this.left = this.left - this.width - if (this.left == -((this.forData.length) * this.width)) { - this.left = 0 - } - } else { - if (this.left == 0) { - this.left = -((this.forData.length - 1) * this.width) - } else { - this.left = this.left + this.width - } - } - }, - }, - watch: {} - - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-tdjs.js b/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-tdjs.js deleted file mode 100644 index 3c122b13..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-tdjs.js +++ /dev/null @@ -1,137 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-tdjs", { - template: ` -
-
- -
- - - -
- `, - props: { - modeltitle:{ - type:String - }, - }, - data() { - return { - show: false, - height: 510, - width: 910, - forData: [], - arrowLeft: -45, - arrowRight:-45, - interval:undefined, - left:0, - direction:'left', - projectId:JSON.parse(localStorage.getItem("data1")).id, - datas:[] - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - // 调用接口 - getData() { - let that = this - axios.get("/api/building/info?project_id=" + this.projectId).then(res => { - let data = res.data.data - let type = {} - for (let info of data) { - if (!type[info.sub_type]) { - type[info.sub_type] = new Array() - } - info.url = (info.file_path.indexOf("https") != -1) ? info.file_path : info.file_src - info.text = info.file_name - type[info.sub_type].push(info) - } - that.forData = type[2]; - that.forData.map(item=>this.datas.push(item.url)) - }).catch(err => { - - }) - }, - carouselMouseover() { - this.arrowLeft = 10 - this.arrowRight = 10 - clearInterval(this.interval); - }, - carouselMouseout() { - this.arrowLeft = -30 - this.arrowRight = -30 - this.direction = 'left' - this.interval = setInterval(this.timer, 3000); - }, - clickCtrl(direction) { - this.direction = direction - this.timer() - }, - timer() { - if (this.direction == 'left') { - this.left = this.left - this.width - if (this.left == -((this.forData.length) * this.width)) { - this.left = 0 - } - } else { - if (this.left == 0) { - this.left = -((this.forData.length - 1) * this.width) - } else { - this.left = this.left + this.width - } - } - }, - }, - watch: {} - - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-xmdt.js b/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-xmdt.js deleted file mode 100644 index d72b5f6f..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/tesedangjian/amplify-xmdt.js +++ /dev/null @@ -1,138 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-xmdt", { - template: ` -
-
- -
- - - -
- `, - props: { - modeltitle:{ - type:String - }, - }, - data() { - return { - show: false, - height: 510, - width: 910, - forData: [], - arrowLeft: -45, - arrowRight:-45, - interval:undefined, - left:0, - direction:'left', - projectId:JSON.parse(localStorage.getItem("data1")).id, - datas:[] - } - }, - mounted() { - - }, - methods: { - openAmplify() { - this.show = true - this.getData() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - // 调用接口 - getData() { - let that = this - axios.get("/api/building/info?project_id=" + this.projectId).then(res => { - let data = res.data.data - let type = {} - for (let info of data) { - if (!type[info.sub_type]) { - type[info.sub_type] = new Array() - } - info.url = (info.file_path.indexOf("https") != -1) ? info.file_path : info.file_src - info.text = info.file_name - type[info.sub_type].push(info) - } - that.forData = type[0]; - that.forData.map(item=>this.datas.push(item.url)) - }).catch(err => { - - }) - }, - carouselMouseover() { - this.arrowLeft = 10 - this.arrowRight = 10 - clearInterval(this.interval); - }, - carouselMouseout() { - this.arrowLeft = -30 - this.arrowRight = -30 - this.direction = 'left' - this.interval = setInterval(this.timer, 3000); - }, - clickCtrl(direction) { - this.direction = direction - this.timer() - }, - timer() { - if (this.direction == 'left') { - this.left = this.left - this.width - if (this.left == -((this.forData.length) * this.width)) { - this.left = 0 - } - } else { - if (this.left == 0) { - this.left = -((this.forData.length - 1) * this.width) - } else { - this.left = this.left + this.width - } - } - }, - }, - watch: {} - - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-lwrygk.js b/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-lwrygk.js deleted file mode 100644 index 680163ad..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-lwrygk.js +++ /dev/null @@ -1,286 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-lwrygk", { - template: ` -
-
- -
- - - -
- - `, - props: { - - }, - data() { - return { - show:false, - projectId:JSON.parse(localStorage.getItem("data1")).id, - nav:1, - surveyUrl: '/images/survey_icon_5.png', - staffText: '今日出勤', - lwDataTotal:0, - option:{} - } - }, - mounted(){ - - }, - methods: { - openAmplify() { - this.show = true - this.getLWData(1) - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - }, - onInfoNav(n, text) { - this.nav = n - this.staffText = text - this.getLWData(n) - if (n == 0) { - this.surveyUrl = '../../images/survey_icon_4.png' - } else { - this.surveyUrl = '../../images/survey_icon_5.png' - } - }, - - //劳务人员概况 - getLWData(infoNav) { - axios.post("https://smz.makalu.cc/mkl/screenApi/getAllUserData?token=" + JSON.parse(localStorage.getItem("data1")).smz_token + "&deptId=131&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id + "&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id, {}).then(res => { - this.lwLoading = false; - var laborPersonnelData = []; - if (infoNav == 0) { - laborPersonnelData.push({text: "特种作业人员", value: res.data.userInfo.specialTotal, type: 2}) - laborPersonnelData.push({text: "劳务人员(不含特种人员)", value: res.data.userInfo.unSpecialTotal, type: 1}) - laborPersonnelData.push({text: "管理人员", value: res.data.userInfo.glrs, type: 0}) - this.lwDataTotal = res.data.zgrs - } else { - laborPersonnelData.push({text: "特种作业人员", value: res.data.cqUserInfo.specialTotal, type: 2}) - laborPersonnelData.push({text: "劳务人员(不含特种人员)", value: res.data.cqUserInfo.unSpecialTotal, type: 1}) - laborPersonnelData.push({text: "管理人员", value: res.data.cqUserInfo.glrs, type: 0}) - this.lwDataTotal = res.data.rcrs - } - this.$nextTick(() => { - this.echart(laborPersonnelData) - }) - }).catch(err => { - }) - - }, - - echart(chartData){ - var chChart = echarts.init(this.$refs.chart); - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - total += chartData[i].value - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if(total == 0){ - prop.push(0) - }else{ - prop.push((value[j]/total * 100).toFixed(1)) - } - } - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [ - { - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '20', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-40'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'25', - }, - unit:{ - color: '#6c829a', - fontSize:'25', - }, - yes:{ - color: '#55adf7', - fontSize:'25', - }, - not:{ - color: '#4677fa', - fontSize:'25', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'25', - }, - name: { - width: 350, - color: '#c6d9fa', - padding:[0,0,0,10], - fontSize:'25', - }, - color:{ - color: '#8ca2be', - fontSize:'20', - - }, - arrow:{ - width:20, - height:15, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function(data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| 人} {prop|'+prop[data.dataIndex]+'}{color| %} '; - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 15, - data: prop, - }, - { - type: "bar", - barWidth: 15, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - - }, -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-sbgk.js b/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-sbgk.js deleted file mode 100644 index 7f6b4396..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-sbgk.js +++ /dev/null @@ -1,163 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-sbgk", { - template: ` -
-
- -
- - - -
- - `, - props: { - - }, - data() { - return { - show:false, - overview: 0, - showOverviewLabel:'设备数量', - surveyUrlSb: '/images/survey_icon_1.png', - overviewInterval: '', - overviewData:[], - showOverviewData: {}, - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - //设备概况点击事件定时器 - this.overviewInterval = setInterval(this.overviewClick, 5000); - this.getOverviewData() - }, - closeAmplify(){ - this.show = false - this.overview = 0 - this.showOverviewLabel='设备数量' - this.surveyUrlSb= '/images/survey_icon_1.png' - clearInterval(this.overviewInterval); - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - this.overview = 0 - this.showOverviewLabel='设备数量' - this.surveyUrlSb= '/images/survey_icon_1.png' - clearInterval(this.overviewInterval); - } - }, - //设备概况点击事件定时器方法 - overviewClick() { - if (this.overview < 2) { - this.overview = this.overview + 1 - } else { - this.overview = 0 - } - this.showOverviewData = this.overviewData[this.overview]; - if (this.overview == 0) { - this.showOverviewLabel = '设备数量' - this.surveyUrlSb = '/images/survey_icon_1.png' - } else if (this.overview == 1) { - this.showOverviewLabel = '绑定数量' - this.surveyUrlSb = '/images/survey_icon_2.png' - } else { - this.showOverviewLabel = '监控数量' - this.surveyUrlSb = '/images/survey_icon_3.png' - } - }, - //设备概况点击事件 - onClickoOverview(n) { - this.overview = n - this.showOverviewData = this.overviewData[this.overview]; - if (this.overview == 0) { - this.showOverviewLabel = '设备数量' - this.surveyUrlSb = '/images/survey_icon_1.png' - } else if (this.overview == 1) { - this.showOverviewLabel = '绑定数量' - this.surveyUrlSb = '/images/survey_icon_2.png' - } else { - this.showOverviewLabel = '监控数量' - this.surveyUrlSb = '/images/survey_icon_3.png' - } - }, - //设备概况数据 - getOverviewData() { - axios.post(requestUrl + "getEquipmentOverview?deptId=" + deptId + "&projectId=" + JSON.parse(localStorage.getItem("data1")).jzgj + "&typtProjectId=" + JSON.parse(localStorage.getItem("data1")).id + "&typtDeptId=" + JSON.parse(localStorage.getItem("data1")).dept_id, {}).then(res => { - this.overviewData = [res.data.data.count, res.data.data.bind, res.data.data.monitor]; - this.showOverviewData = this.overviewData[0]; - }).catch(err => { - }) - }, - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-xmkg.js b/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-xmkg.js deleted file mode 100644 index b0d40846..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/amplify-xmkg.js +++ /dev/null @@ -1,132 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-xmkg", { - template: ` -
-
- -
- - - -
- - `, - props: { - - }, - data() { - return { - show:false, - projectId:JSON.parse(localStorage.getItem("data1")).id, - companyData:{} - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - this.getProject() - }, - closeAmplify(){ - this.show = false - }, - getProject() { - axios({ - method: 'post', - url: "/api/project/info", - data: { - "project_id":this.projectId - } - }).then(res => { - this.companyData = res.data.data - }).catch(err => { - - }) - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - } - - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/组件模板.js b/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/组件模板.js deleted file mode 100644 index 1f03b5fa..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/xiangmugaikuang/组件模板.js +++ /dev/null @@ -1,55 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-sbgk", { - template: ` -
-
- -
- - - -
- `, - props: { - - }, - data() { - return { - show:false, - } - }, - mounted(){ - - }, - methods: { - openAmplify(){ - this.show = true - this.getProject() - }, - closeAmplify(){ - this.show = false - }, - closeAmplifyAll(e){ - if(e.target.className == 'amplify-fixed'){ - this.show = false - } - } - - }, - watch:{ - - }, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/amplify/zhiliangguanli/amplify-qysj.js b/yanzhu-bigscreen/src/components-old/amplify/zhiliangguanli/amplify-qysj.js deleted file mode 100644 index 635d2487..00000000 --- a/yanzhu-bigscreen/src/components-old/amplify/zhiliangguanli/amplify-qysj.js +++ /dev/null @@ -1,75 +0,0 @@ -import Vue from 'vue' -var vms = Vue.component("amplify-qysj", { - template: ` -
-
- -
- - - -
- `, - props: {}, - data() { - return { - show: false, - //质量目标 - qualityTargetData:[ - { - title:'创优目标', - text:'获得陕西省“双优”工地,创AAA级国家安全文明标准化工地', - images:'/images/quality_target_1.png', - } - ], - } - }, - mounted() { - let that = this - let url1 = "http://127.0.0.1:9004/system/qualityTarget/list1" - let url2 = "https://szh.makalu.cc/system/qualityTarget/list1" - $.post(url2,{},res => { - that.qualityTargetData = res[JSON.parse(localStorage.getItem("data1")).id] - }) - }, - methods: { - openAmplify() { - this.show = true - // this.getProject() - }, - closeAmplify() { - this.show = false - }, - closeAmplifyAll(e) { - if (e.target.className == 'amplify-fixed') { - this.show = false - } - } - - }, - watch: {}, - -}) - - diff --git a/yanzhu-bigscreen/src/components-old/background_video.js b/yanzhu-bigscreen/src/components-old/background_video.js deleted file mode 100644 index b8cb7220..00000000 --- a/yanzhu-bigscreen/src/components-old/background_video.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * 顶部header - */ -import Vue from 'vue' -Vue.component("background-video", { - template: ` - - `, - props: { - url:{ - type:String - } - }, - data() { - return { - - } - }, - mounted(){ - var canvas = document.getElementById('canvas'), - ctx = canvas.getContext('2d'), - w = canvas.width = window.innerWidth, - h = canvas.height = window.innerHeight, - - hue = 217, - stars = [], - count = 0, - maxStars = 1200; - -var canvas2 = document.createElement('canvas'), - ctx2 = canvas2.getContext('2d'); -canvas2.width = 100; -canvas2.height = 100; -var half = canvas2.width / 2, - gradient2 = ctx2.createRadialGradient(half, half, 0, half, half, half); -gradient2.addColorStop(0.025, '#fff'); -gradient2.addColorStop(0.1, 'hsl(' + hue + ', 61%, 33%)'); -gradient2.addColorStop(0.25, 'hsl(' + hue + ', 64%, 6%)'); -gradient2.addColorStop(1, 'transparent'); - -ctx2.fillStyle = gradient2; -ctx2.beginPath(); -ctx2.arc(half, half, half, 0, Math.PI * 2); -ctx2.fill(); - -// End cache - -function random(min, max) { - if (arguments.length < 2) { - max = min; - min = 0; - } - - if (min > max) { - var hold = max; - max = min; - min = hold; - } - - return Math.floor(Math.random() * (max - min + 1)) + min; -} - -function maxOrbit(x, y) { - var max = Math.max(x, y), - diameter = Math.round(Math.sqrt(max * max + max * max)); - return diameter / 2; -} - -var Star = function() { - - this.orbitRadius = random(maxOrbit(w, h)); - this.radius = random(60, this.orbitRadius) / 5; - this.orbitX = w / 2; - this.orbitY = h / 2; - this.timePassed = random(0, maxStars); - this.speed = random(this.orbitRadius) / 900000; - this.alpha = random(2, 10) / 10; - - count++; - stars[count] = this; -} - -Star.prototype.draw = function() { - var x = Math.sin(this.timePassed) * this.orbitRadius + this.orbitX, - y = Math.cos(this.timePassed) * this.orbitRadius + this.orbitY, - twinkle = random(10); - - if (twinkle === 1 && this.alpha > 0) { - this.alpha -= 0.05; - } else if (twinkle === 2 && this.alpha < 1) { - this.alpha += 0.05; - } - - ctx.globalAlpha = this.alpha; - ctx.drawImage(canvas2, x - this.radius / 2, y - this.radius / 2, this.radius, this.radius); - this.timePassed += this.speed; -} - -for (var i = 0; i < maxStars; i++) { - new Star(); -} - -function animation() { - ctx.globalCompositeOperation = 'source-over'; - ctx.globalAlpha = 0.8; - ctx.fillStyle = 'hsla(' + hue + ', 64%, 6%, 1)'; - ctx.fillRect(0, 0, w, h) - - ctx.globalCompositeOperation = 'lighter'; - for (var i = 1, l = stars.length; i < l; i++) { - stars[i].draw(); - }; - - window.requestAnimationFrame(animation); -} - -animation(); - }, - methods: { - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/baidu-maps.js b/yanzhu-bigscreen/src/components-old/baidu-maps.js deleted file mode 100644 index 142b77a0..00000000 --- a/yanzhu-bigscreen/src/components-old/baidu-maps.js +++ /dev/null @@ -1,1861 +0,0 @@ -/** - * 顶部header - */ -Vue.component("baidu-maps", { - template: ` -
- - `, - props: { - data:{ - type:Array - } - }, - data() { - return { - skyMap:'', - key:0, - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.initMap() - this.getIconMap() - this.setMapStyle() - }, - initMap(){ - // GL版命名空间为BMapGL - var map = new BMapGL.Map(this.$refs.allMap); // 创建Map实例, - map.centerAndZoom(new BMapGL.Point(104.509823,35.09362), 6); // 初始化地图,设置中心点坐标和地图级别 - map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放 - this.skyMap = map; - }, - getIconMap(){ - var map = this.skyMap - map.clearOverlays(); - var pointArray =new Array() - for(let i = 0; i img').hide(); - // }) - }, - setMapStyle(){ - var map = this.skyMap - //百度地图背景色 - var styleJson=[ - { - "featureType": "land", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#00092aff" - } - }, { - "featureType": "water", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#033a58ff" - } - }, { - "featureType": "green", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#0e1b30ff" - } - }, { - "featureType": "building", - "elementType": "geometry", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "building", - "elementType": "geometry.topfill", - "stylers": { - "color": "#113549ff" - } - }, { - "featureType": "building", - "elementType": "geometry.sidefill", - "stylers": { - "color": "#143e56ff" - } - }, { - "featureType": "building", - "elementType": "geometry.stroke", - "stylers": { - "color": "#dadada00" - } - }, { - "featureType": "subwaystation", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#113549B2" - } - }, { - "featureType": "education", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#12223dff" - } - }, { - "featureType": "medical", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#12223dff" - } - }, { - "featureType": "scenicspots", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#12223dff" - } - }, { - "featureType": "highway", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "weight": "4" - } - }, { - "featureType": "highway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "highway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#fed66900" - } - }, { - "featureType": "highway", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "highway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "highway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "highway", - "elementType": "labels.icon", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "arterial", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "weight": "2" - } - }, { - "featureType": "arterial", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "arterial", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffeebb00" - } - }, { - "featureType": "arterial", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "arterial", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "arterial", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "local", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "weight": "1" - } - }, { - "featureType": "local", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "local", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "local", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "local", - "elementType": "labels.text.fill", - "stylers": { - "color": "#979c9aff" - } - }, { - "featureType": "local", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffffff" - } - }, { - "featureType": "railway", - "elementType": "geometry", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "subway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "weight": "1" - } - }, { - "featureType": "subway", - "elementType": "geometry.fill", - "stylers": { - "color": "#d8d8d8ff" - } - }, { - "featureType": "subway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "subway", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "subway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#979c9aff" - } - }, { - "featureType": "subway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffffff" - } - }, { - "featureType": "continent", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "continent", - "elementType": "labels.icon", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "continent", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "continent", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "city", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "city", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "city", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "town", - "elementType": "labels.icon", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "town", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "town", - "elementType": "labels.text.fill", - "stylers": { - "color": "#91aeb9ff" - } - }, { - "featureType": "town", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "road", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "poilabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "districtlabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "road", - "elementType": "geometry", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "road", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "road", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "district", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "poilabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "poilabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "poilabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "manmade", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "entertainment", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "shopping", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "10", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "10", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "10", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "subwaylabel", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "subwaylabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "tertiarywaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "tertiarywaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "provincialwaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "provincialwaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "nationalwaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "nationalwaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "highwaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "highwaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "village", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "district", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "district", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "district", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "country", - "elementType": "labels.text.fill", - "stylers": { - "color": "#ffffffff" - } - }, { - "featureType": "country", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "water", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "water", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "tertiaryway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "tertiaryway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff10" - } - }, { - "featureType": "provincialway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "provincialway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "nationalway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "nationalway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "highway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "nationalway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "nationalway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "nationalway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "provincialway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "provincialway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "provincialway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "cityhighway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "cityhighway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "cityhighway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "estate", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "tertiaryway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "tertiaryway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "fourlevelway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "fourlevelway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "scenicspotsway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "scenicspotsway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "universityway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "universityway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "vacationway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "vacationway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "fourlevelway", - "elementType": "geometry", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "fourlevelway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "fourlevelway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "educationlabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "educationlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "educationlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "educationlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "transportation", - "elementType": "geometry", - "stylers": { - "color": "#113549ff" - } - }, { - "featureType": "airportlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "airportlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "scenicspotslabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "scenicspotslabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "medicallabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "medicallabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "medicallabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "scenicspotslabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "airportlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "entertainmentlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "entertainmentlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "entertainmentlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "estatelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "estatelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "estatelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "businesstowerlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "businesstowerlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "businesstowerlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "companylabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "companylabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "companylabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "governmentlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "governmentlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "governmentlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "restaurantlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "restaurantlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "restaurantlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "hotellabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "hotellabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "hotellabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "shoppinglabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "shoppinglabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "shoppinglabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "lifeservicelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "lifeservicelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "lifeservicelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "carservicelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "carservicelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "carservicelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "financelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "financelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "financelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "otherlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "otherlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "otherlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "manmade", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "manmade", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "transportation", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "transportation", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "education", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "education", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "medical", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "medical", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "scenicspots", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "scenicspots", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "country", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "districtlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#00ebcaff" - } - }, { - "featureType": "districtlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "districtlabel", - "elementType": "labels.text", - "stylers": { - "fontsize": 25 - } - }, { - "featureType": "country", - "elementType": "labels.text", - "stylers": { - "fontsize": 30 - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "5" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "6" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "7" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "8" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "9" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "10" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "11" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "12" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "13" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "14" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "15" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "16" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "17" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "18" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "19" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "20" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "21" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "5" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "6" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "7" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "8" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "9" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "10" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "11" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "12" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "13" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "14" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "15" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "16" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "17" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "18" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "19" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "20" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "21" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "3" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "4" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "5" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "6" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "7" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "8" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "9" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "10" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "11" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "12" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "13" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "14" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "15" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "16" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "17" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "18" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "19" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "20" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "21" - } - }] - - map.setMapStyleV2({styleJson:styleJson}); - } - }, - watch:{ - data:function () { - this.init() - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/carousel-element.js b/yanzhu-bigscreen/src/components-old/carousel-element.js deleted file mode 100644 index d4c859cb..00000000 --- a/yanzhu-bigscreen/src/components-old/carousel-element.js +++ /dev/null @@ -1,40 +0,0 @@ -import Vue from 'vue' -Vue.component("carousel-element", { - template: ` - - -
- -
- {{item.text}} -
-
-
-
- `, - props: { - data:{ - type:Array - }, - height:{ - type: Number - } - }, - data() { - return { - - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - - }, - }, - watch:{ - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/carousel.js b/yanzhu-bigscreen/src/components-old/carousel.js deleted file mode 100644 index 384a889b..00000000 --- a/yanzhu-bigscreen/src/components-old/carousel.js +++ /dev/null @@ -1,82 +0,0 @@ -import Vue from 'vue' -Vue.component("carousel", { - template: ` - - - - `, - props: { - height:{ - type:Number - }, - width:{ - type:Number - }, - data:{ - type:Array - } - }, - data() { - return { - interval:undefined, - left:0, - direction:'left', - forData:[], - arrowLeft: -30, - arrowRight:-30, - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.forData = this.data - this.interval = setInterval(this.timer, 3000); - }, - carouselMouseover(){ - this.arrowLeft =10 - this.arrowRight =10 - clearInterval(this.interval); - }, - carouselMouseout(){ - this.arrowLeft = -30 - this.arrowRight =-30 - this.direction = 'left' - this.interval=setInterval(this.timer,3000); - }, - clickCtrl(direction){ - this.direction = direction - this.timer() - }, - timer(){ - if(this.direction == 'left'){ - this.left = this.left - this.width - if(this.left == -((this.forData.length) * this.width)){ - this.left = 0 - } - }else{ - if(this.left == 0){ - this.left = -((this.forData.length-1) * this.width) - }else { - this.left = this.left + this.width - } - } - }, - }, - watch:{ - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/certificate-bar-chart.js b/yanzhu-bigscreen/src/components-old/certificate-bar-chart.js deleted file mode 100644 index 32d0ab45..00000000 --- a/yanzhu-bigscreen/src/components-old/certificate-bar-chart.js +++ /dev/null @@ -1,150 +0,0 @@ -import Vue from 'vue' -Vue.component("certificate-bar-chart", { - template: ` -
- `, - props: { - data:{ - type:Array - }, - height:{ - type:Number - } - }, - data() { - return { - option:{}, - - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.chart); - this.echart(chChart,this.data) - }, - echart(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var value = [] - var text = [] - var total = 0 - var bgd = [] - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgd.push(100) - total += chartData[i].value - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - prop.push((value[j]/total * 100).toFixed(1)) - } - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "-10%", - top: "2%", - containLabel: true, - }, - xAxis: { - show: false, - type: "value", - }, - yAxis: [ - { - type: "category", - inverse: true, - axisLabel: { - show: true, - textStyle: { - color: "#cbdaff", - fontSize: "14", - }, - }, - splitLine: { - show: false, - }, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - data: text, - }, - { - type: "category", - inverse: true, - axisTick: "none", - axisLine: "none", - show: true, - axisLabel: { - textStyle: { - color: "#cbdaff", - fontSize: "16", - }, - formatter: function(params,i){ - var text = "{a|" + value[i] + "}{a| "+ prop[i]+ "%}"; - return text; - }, - rich: { - a: { - fontSize: '16px', - color: "#cbdaff", - }, - }, - }, - data: prop, - }, - ], - series: [ - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 8, - data: prop, - }, - { - type: "bar", - barWidth: 8, - barGap: "-100%", - data: bgd, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - data: function (n,o) { - this.getChartData(this.data) - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/chart-bar.js b/yanzhu-bigscreen/src/components-old/chart-bar.js deleted file mode 100644 index d49226ed..00000000 --- a/yanzhu-bigscreen/src/components-old/chart-bar.js +++ /dev/null @@ -1,70 +0,0 @@ -import Vue from 'vue' -Vue.component("chart-bar", { - template: ` -
-
- -
-
- `, - props: { - fn:{ - type:Function - }, - height:{ - type:Number - }, - optData:{ - type:Array, - default:()=>[] - } - }, - data() { - return { - } - }, - mounted(){ - this.init() - }, - methods: { - doClick(){ - this.$emit("clickme"); - }, - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.warningPieChart); - this.echartPie(chChartPie) - }, - echartPie(chChart){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - this.option = { - legend: { - show:false - }, - tooltip: { trigger: 'axis', - }, - dataset: { - source: this.optData - }, - xAxis: { type: 'category' , axisLabel: {color:"#fff"}}, - yAxis: {}, - series: [{ type: 'bar' }, { type: 'bar' }, { type: 'bar' }] - } - if(this.fn){ - this.option=this.fn(this.option); - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/china-map.js b/yanzhu-bigscreen/src/components-old/china-map.js deleted file mode 100644 index 631d724f..00000000 --- a/yanzhu-bigscreen/src/components-old/china-map.js +++ /dev/null @@ -1,233 +0,0 @@ -import Vue from 'vue' -Vue.component("china-map", { - template: ` -
- `, - props: { - data:{ - type:Array - }, - height:{ - type:Number - } - }, - data() { - return { - option:{} - } - }, - mounted(){ - this.loadMap(this.data) - window.chartClick = this.chartClick; - }, - methods: { - chartClick(id){ - this.$emit('projectid',id) - }, - loadMap(outdata) { - var myChart = echarts.init(this.$refs.map); - var max =1000, - min = 1; - var maxSize4Pin = 100, - minSize4Pin = 20; - var geoCoordMap = {}; - /*获取地图数据*/ - var mapFeatures = echarts.getMap('china').geoJson.features; - // console.log(mapFeatures) - mapFeatures.forEach(function(v) { - // 地区名称 - var name = v.properties.name; - // 地区经纬度 - geoCoordMap[name] = v.properties.cp; - }); - - var convertData = function(outdata) { - var res = []; - for (var i = 0; i < outdata.length; i++) { - var geoCoord = geoCoordMap[outdata[i].name]; - if (geoCoord) { - res.push({ - name: outdata[i].name, - value: geoCoord.concat(outdata[i].count), - items: outdata[i].items, - }); - } - } - return res; - }; - - this.option = { - tooltip: { - show: true, - trigger: "item", - enterable: true, - showContent: true, - padding:0, - triggerOn:'click', - formatter: function(params) { - var tipHtml = '' - if(params.data){ - tipHtml += '
' - +'
'+''+'' - +''+params.data.name+' (项目总数:'+params.data.value[2]+')'+''+'
' - +'
' - for(var i=0;i'+params.data.items[i].projectName+'

' - } - tipHtml += '
' - +'
'; - return tipHtml - } - }, - }, - geo: { - map: 'china', - show: true, - roam: false, - zoom: 1.17, - label: { - emphasis: { - show: false, - } - }, - layoutSize: "100%", - itemStyle: { - // normal: { - // areaColor: '#000', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 10, //边线的粗细 - // }, - // emphasis: { - // areaColor: '#002d90' , //指上背景限色 - // }, - areaColor: "#86c2f8", - borderColor: "#86c2f8", - shadowColor: "#86c2f8", - shadowBlur: 25, - borderWidth: 5, - }, - }, - series: [{ - type: 'map', - roam: false, - zoom: 1.15, - map: 'china', //使用 - label: { - normal: { - show: true, - fontSize:14, //省会字体大小 - textStyle: { - color: '#ffffff', - } - }, - emphasis: { - show: false, - color: '#ffffff', //指上省会字体颜色 - } - }, - itemStyle: { - normal: { - areaColor: { - type: "radial", - x: 0.5, - y: 0.5, - r: 0.8, - colorStops: [ - { - offset: 0, - color: "#1c2a4c", // 0% 处的颜色 - }, - { - offset: 1, - color: "#1f335e", // 100% 处的颜色 - }, - ], - globalCoord: true, // 缺省为 false - }, - shadowColor: "rgb(58,115,192)", - borderColor: '#8ac2fb' - }, - // normal: { - // areaColor: '#141e37', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 1, //边线的粗细 - // }, - emphasis: { - areaColor: '#22578b' , //指上背景限色 - textStyle: { - color: '#ffffff', - - } - } - }, - }, - { - type: 'effectScatter', - coordinateSystem: 'geo', - rippleEffect: { - brushType: 'stroke' - }, - showEffectOn: 'render', - itemStyle: { - normal: { - show: true, - color: { - type: 'radial', - x: 0.5, - y: 0.5, - r: 0.5, - colorStops: [{ - offset: 0, - color: 'rgba(129,229,255,1)' - }, { - offset: 0.8, - color: 'rgba(129,229,255,1)' - }, { - offset: 1, - color: 'rgba(129,229,255,1)' - }], - global: false // 缺省为 false - }, - } - }, - label: { - normal: { - show: true, - color: '#fff', - fontWeight: 'bold', - position: 'inside', - formatter: function(para) { - return '{cnNum|' + para.data.value[2] + '}' - }, - rich: { - cnNum: { - fontSize: 16, - color: '#000000', - fontWeight:'bold', - } - } - }, - }, - symbol: 'circle', - data: convertData(outdata), - zlevel: 1, - symbolSize: function(val) { - if (val[2] === 0) { - return 0; - } - var a = (maxSize4Pin - minSize4Pin) / (max - min); - var b = maxSize4Pin - a * max; - return a * val[2] + b * 1.2; - }, - }] - }; - myChart.setOption(this.option); - } - }, - watch:{ - data: function (n,o) { - this.loadMap(this.data) - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/classify-bar.js b/yanzhu-bigscreen/src/components-old/classify-bar.js deleted file mode 100644 index b84e5523..00000000 --- a/yanzhu-bigscreen/src/components-old/classify-bar.js +++ /dev/null @@ -1,256 +0,0 @@ -import Vue from 'vue' -Vue.component("classify-bar", { - template: ` -
- -
- `, - props: { - data:{ - type:Array - }, - height:{ - type:Number - }, - legend:{ - type:Array - }, - }, - data() { - return { - classData:[], - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.chart); - this.echartPie(chChartPie,this.data) - }, - echartPie(chChart,data){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - if(data.length==0){ - return; - } - var max = data[0].total - var nameData = []; - var totalData = [] - var background = [] - var yesMonitor = [] - var notMonitor = [] - var yesProp = [] - var notProp = [] - var unitData = [] - - for (let i = data.length-1; i >=0 ; i--) { - nameData.push(data[i].name); - totalData.push(data[i].total) - unitData.push(data[i].unit) - background.push(100); - yesMonitor.push(data[i].yesMonitor); - notMonitor.push(data[i].notMonitor); - yesProp.push((data[i].yesMonitor/max)*100) - notProp.push((data[i].notMonitor/max)*100) - } - - var legend = ["已监控", "未监控"] - if(this.legend){ - legend = this.legend - } - - this.option = { - grid: { - //图表的位置 - top: "8%", - left: "3%", - right: "5%", - bottom: "-12%", - containLabel: true, - }, - legend: { - right: "0", - top: "0", - //icon: "circle", - itemWidth: 15, - itemHeight:10, - itemGap: 8, - textStyle: { - fontSize: 12, - color:'#c6d9fa' - }, - data: legend, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '6', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-25'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'14', - }, - unit:{ - color: '#6c829a', - fontSize:'12', - }, - yes:{ - color: '#55adf7', - fontSize:'14', - }, - not:{ - color: '#4677fa', - fontSize:'14', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'14', - }, - name: { - width: 200, - color: '#c6d9fa', - padding:[0,0,0,10], - fontSize:'14', - }, - color:{ - color: '#8ca2be', - fontSize:'14', - }, - arrow:{ - width:12, - height:8, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: function(data) { - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - return '{arrow|}{index|No.'+(nameData.length-data.dataIndex)+'}{name|' + nameData[data.dataIndex] + '}{prop|' + totalData[data.dataIndex] + '}{unit| '+unitData[data.dataIndex]+'}{prop|(} {yes|'+yesMonitor[data.dataIndex]+'}{unit| '+unitData[data.dataIndex]+'/}{not|'+notMonitor[data.dataIndex]+'}{unit| '+unitData[data.dataIndex]+'}{prop|)} '; - }, - } - }, - data: background - }, - { - type: 'bar', - - silent: true, - yAxisIndex: 1, - barWidth: 6, - itemStyle: { - normal: { - color: 'rgba(0,82,198,0.3)' - }, - emphasis: { - color: 'rgba(0,82,198,0.3)' - } - }, - data: background - }, - { - type: 'bar', - name:legend[0], - - stack: '1', - legendHoverLink: false, - barWidth: 6, - itemStyle: { - normal: { - color: '#52adf4' - }, - emphasis: { - color: '#52adf4' - } - }, - data: yesProp - }, { - type: 'bar', - name:legend[1], - stack: '1', - legendHoverLink: false, - barWidth: 6, - itemStyle: { - normal: { - color: '#4677ff' - }, - emphasis: { - color: '#4677ff' - } - }, - data: notProp - }] - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - data: function (n,o) { - this.getChartData() - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/cz-screen.js b/yanzhu-bigscreen/src/components-old/cz-screen.js deleted file mode 100644 index 91c76189..00000000 --- a/yanzhu-bigscreen/src/components-old/cz-screen.js +++ /dev/null @@ -1,24 +0,0 @@ -import Vue from 'vue' -Vue.component("cz-screen", { - template: ` - - `, - props: { - - }, - data() { - return { - - } - }, - mounted(){ - - }, - methods: { - - }, - watch:{ - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/environment-line-chart.js b/yanzhu-bigscreen/src/components-old/environment-line-chart.js deleted file mode 100644 index 6803e5e8..00000000 --- a/yanzhu-bigscreen/src/components-old/environment-line-chart.js +++ /dev/null @@ -1,181 +0,0 @@ -import Vue from 'vue' -Vue.component("environment-line-chart", { - template: ` -
- -
- `, - props: { - height:{ - type:Number - }, - data:{ - type:Array - } - }, - data() { - return { - - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var myChart = echarts.init(this.$refs.chart); - this.echartPie(myChart,this.data) - }, - echartPie(myChart,datas){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var data = datas[0] - - var unit = '' - if(data.unit){ - unit = '单位:'+data.unit - } - - this.option = { - color : data.color, - tooltip: { - trigger: "axis", - axisPointer: { - lineStyle: { - color: "#57617B", - }, - }, - }, - grid: { - top:'15%', - left: "1%", - right: "3%", - bottom: "1%", - containLabel: true, - }, - xAxis: { - type: "category", - boundaryGap: false, - data: data.text, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:16 - }, - }, - }, - yAxis: { - name:unit, - nameTextStyle: { - color: '#fff', - fontSize: 14, - }, - type: "value", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: false, - lineStyle: { - color: "#c5d9fc", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - axisLabel: { - show: true, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:16 - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - }, - series: [ - { - type: "line", - smooth: true, - symbol: "circle", - symbolSize: 5, - showSymbol: true, - lineStyle: { - normal: { - width: 2, - }, - }, - areaStyle: { - normal: { - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(0,142,252, 0.3)", - }, - { - offset: 0.8, - color: "rgba(0,142,252, 0)", - }, - ], - false - ), - shadowColor: "rgba(0, 0, 0, 0.1)", - shadowBlur: 10, - }, - }, - itemStyle: { - normal: { - color: "rgb(0,142,252)", - borderColor: "rgba(0,142,252,0.27)", - borderWidth: 12, - }, - }, - data: data.data, - }, - ] - }; - myChart.setOption(this.option,true); - window.onresize = myChart.resize; - }) - }, - }, - watch:{ - data: function (val, oldVal){ - this.init() - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/h265-player/assets/play-button.svg b/yanzhu-bigscreen/src/components-old/h265-player/assets/play-button.svg deleted file mode 100644 index b20de781..00000000 --- a/yanzhu-bigscreen/src/components-old/h265-player/assets/play-button.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/h265-player/index.js b/yanzhu-bigscreen/src/components-old/h265-player/index.js deleted file mode 100644 index 924b3e4d..00000000 --- a/yanzhu-bigscreen/src/components-old/h265-player/index.js +++ /dev/null @@ -1,7 +0,0 @@ -import H265PlayerComponent from './index.vue' -export { H265Player, H265PlayerConstants } from './utils/player' - -H265PlayerComponent.install = Vue => - Vue.component('H265Player', H265PlayerComponent) - -export default H265PlayerComponent diff --git a/yanzhu-bigscreen/src/components-old/h265-player/index.vue b/yanzhu-bigscreen/src/components-old/h265-player/index.vue deleted file mode 100644 index edf8e1c7..00000000 --- a/yanzhu-bigscreen/src/components-old/h265-player/index.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/components-old/h265-player/lib/libDecoder.wasm b/yanzhu-bigscreen/src/components-old/h265-player/lib/libDecoder.wasm deleted file mode 100644 index a45028da..00000000 Binary files a/yanzhu-bigscreen/src/components-old/h265-player/lib/libDecoder.wasm and /dev/null differ diff --git a/yanzhu-bigscreen/src/components-old/h265-player/utils/logger.js b/yanzhu-bigscreen/src/components-old/h265-player/utils/logger.js deleted file mode 100644 index 60f2ba13..00000000 --- a/yanzhu-bigscreen/src/components-old/h265-player/utils/logger.js +++ /dev/null @@ -1,20 +0,0 @@ -import LogT from 'logt'; -const TAG = 'h265-player'; -const log = new LogT(5); -export const logger = { - ok: (...args) => { - log.silly(TAG, '', ...args); - }, - info: (...args) => { - log.info(TAG, '', ...args); - }, - warn: (...args) => { - log.warn(TAG, '', ...args); - }, - fatal: (...args) => { - log.error(TAG, '', ...args); - }, - verbose: (...args) => { - log.verbose(TAG, '', ...args); - } -}; diff --git a/yanzhu-bigscreen/src/components-old/h265-player/utils/player.js b/yanzhu-bigscreen/src/components-old/h265-player/utils/player.js deleted file mode 100644 index ffeb89cb..00000000 --- a/yanzhu-bigscreen/src/components-old/h265-player/utils/player.js +++ /dev/null @@ -1,204 +0,0 @@ -import WasmPlayer from '@easydarwin/easywasmplayer/EasyWasmPlayer.js'; -import Emittery from 'emittery'; -import { v4 as uuidv4 } from 'uuid'; -import axios from 'axios'; -import { logger } from './logger'; -/** - * 获取一个随机的 元素id,用作播放器的元素id - */ -export const getRandomElemId = () => { - return uuidv4(); -}; -export var H265PlayerConstants; -(function (H265PlayerConstants) { - H265PlayerConstants["on_play"] = "on_play"; - H265PlayerConstants["on_stop"] = "on_stop"; - H265PlayerConstants["on_endLoading"] = "on_endLoading"; - H265PlayerConstants["on_pause"] = "on_pause"; - H265PlayerConstants["on_resume"] = "on_resume"; - H265PlayerConstants["on_dispose"] = "on_dispose"; - H265PlayerConstants["on_error"] = "on_error"; - H265PlayerConstants["on_player_cb"] = "on_player_cb"; -})(H265PlayerConstants || (H265PlayerConstants = {})); -export class H265Player extends Emittery { - /** - * @param elemId 播放器元素id - * @param maxRetryCount 最大尝试重连次数 - */ - constructor(elemId, maxRetryCount = 3) { - super(); - this.timer = 0; - this.currentUrl = ''; - this.elemId = elemId; - this.maxRetryCount = maxRetryCount <= 0 ? 3 : maxRetryCount; - this.retryCount = this.maxRetryCount; - this.init(); - } - init() { - if (this.player) { - this.dispose(); - } - logger.verbose('init player ~'); - this.player = new WasmPlayer(null, this.elemId, this.playerCbFunc.bind(this), { - Height: true, - HideKbs: true - }); - } - play(url) { - var _a; - if (!url) { - logger.fatal('url is not valid'); - this.dispose(); - return; - } - logger.ok('start to play ~'); - // eslint-disable-next-line no-unused-expressions - (_a = this.player) === null || _a === void 0 ? void 0 : _a.play(url, 1); - this.currentUrl = url; - this.startUrlHeartBeat(); - } - pause() { - var _a; - logger.warn('player pause'); - this.emit(H265PlayerConstants.on_pause); - // eslint-disable-next-line no-unused-expressions - (_a = this.player) === null || _a === void 0 ? void 0 : _a.destroy(); - this.player = null; - this.stopUrlHeartBeat(); - } - resume() { - logger.info('player resume'); - this.emit(H265PlayerConstants.on_resume); - this.init(); - this.play(this.currentUrl); - } - playerCbFunc(type) { - logger.info('player cb function:', type); - this.emit(H265PlayerConstants.on_player_cb, type); - switch (type) { - case 'play': - this.emit(H265PlayerConstants.on_play); - this.player.endLoading(); - break; - case 'stop': - this.emit(H265PlayerConstants.on_stop); - break; - case 'endLoading': - this.emit(H265PlayerConstants.on_endLoading); - break; - case 'pause': - this.emit(H265PlayerConstants.on_pause); - break; - default: - break; - } - } - changeUrl(newUrl) { - logger.info('change url'); - this.dispose(); - this.init(); - this.play(newUrl); - } - dispose() { - var _a; - logger.warn('dispose player'); - this.stopUrlHeartBeat(); - // eslint-disable-next-line no-unused-expressions - (_a = this.player) === null || _a === void 0 ? void 0 : _a.destroy(); - this.player = null; - this.currentUrl = ''; - this.retryCount = this.maxRetryCount; - this.emit(H265PlayerConstants.on_dispose); - } - stopUrlHeartBeat() { - logger.warn('stop url alive heartbeat'); - if (this.timer) { - window.clearTimeout(this.timer); - } - } - startUrlHeartBeat() { - this.stopUrlHeartBeat(); - const url = this.currentUrl; - if (!url) { - logger.fatal('start url heart beat failed , because of url is not ok, url is:', url); - return; - } - const HEART_BEAT_TIMEOUT = 6 * 1000; // 每隔多少秒进行一次心跳检测 - logger.verbose(`start url alive heartbeat, every ${HEART_BEAT_TIMEOUT} seconds`); - checkUrlIsValid(url) - .then(() => { - logger.ok('url heartbeat ok, prepare for next heartbeat ~'); - // 如果正常,开始下一次检测 - this.timer = window.setTimeout(() => { - this.startUrlHeartBeat(); - }, HEART_BEAT_TIMEOUT); - }) - .catch((e) => { - if (e.status === 501) { - logger.fatal(e.statusText); - this.dispose(); - return; - } - this.retryCount--; - logger.fatal('url heartbeat failed with', e); - if (this.retryCount <= 0) { - logger.warn('reach max retry count, will dispose player '); - this.emit(H265PlayerConstants.on_error, e); - this.dispose(); - } - else { - logger.info('left retry count is: ', `${this.retryCount} / ${this.maxRetryCount} (left / total)`); - logger.info('retry heartbeat ...'); - this.timer = window.setTimeout(() => { - this.startUrlHeartBeat(); - }, HEART_BEAT_TIMEOUT); - } - }); - } -} -/** - * 检测一个 URL 是否能够正常访问 - * @param url 要测试的 url - * @param timeout 超时时间 - * @returns 是否能够正常访问 - */ -const checkUrlIsValid = (url, timeout = 5 * 1000) => { - return new Promise((resolve, reject) => { - if (!isValidURL(url) && !url.includes('m3u8')) { - // eslint-disable-next-line prefer-promise-reject-errors - return reject({ - status: 501, - statusText: 'url is not valid' - }); - } - axios - .get(`${url}&__time=${Date.now()}`, { - responseType: 'blob', - timeout - }) - .then(resolve) - .catch(e => { - if (e.response) { - const { status, statusText } = e.response || {}; - // eslint-disable-next-line prefer-promise-reject-errors - reject({ status, statusText }); - } - else { - // eslint-disable-next-line prefer-promise-reject-errors - reject({ - status: 500, - statusText: (e === null || e === void 0 ? void 0 : e.message) || 'network error' - }); - } - }); - }); -}; -/** - * 检查一个url是否合法 - * @param url 待检查的 url - * @returns 是否合法 - */ -export const isValidURL = (url) => { - const res = url.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g); - return res !== null; -}; diff --git a/yanzhu-bigscreen/src/components-old/header-btn.js b/yanzhu-bigscreen/src/components-old/header-btn.js deleted file mode 100644 index c6956556..00000000 --- a/yanzhu-bigscreen/src/components-old/header-btn.js +++ /dev/null @@ -1,200 +0,0 @@ -import Vue from 'vue' -Vue.component("header-btn", { - template: ` -
-
{{label}}
- - -
- `, - props: { - red:{ - type:String - }, - menu:{ - type: Object - }, - index:{ - type: Number - }, - label: { - type: String - }, - nav: { - type: Number - }, - list: { - type: Array - }, - type:{ - type:String - } - }, - data() { - return { - show: false, - widths: 0, - btnNav: -1, - chooseMenu: {}, - localStorage:{}, - sonMenuList: [] - } - }, - mounted() { - this.localStorage=JSON.parse(localStorage.getItem("data1")) - this.filterList() - this.init() - }, - methods: { - init() { - this.width() - this.chooseMenu = localStorage.getItem("chooseMenu"); - if (!this.chooseMenu) { - this.chooseMenu = {} - } else { - this.chooseMenu = JSON.parse(localStorage.getItem("chooseMenu")) - } - - }, - filterList(){ - for(let l of this.list){ - if(this.localStorage.type == 1 && l.menuDeptUrl){ - this.sonMenuList.push(l) - } - if(this.localStorage.type != 1 && l.menuProjectUrl){ - this.sonMenuList.push(l) - } - } - }, - width() { - if (this.sonMenuList) { - if (this.list.length > 4) { - this.widths = 536 - } else { - this.widths = this.sonMenuList.length * 130 + 16 - } - } - - }, - buttonClick(i, item) { - - this.btnNav = i - localStorage.setItem("chooseProcessControlMenu", i) -/* - switch (item.text) { - case "原材料进场": - localStorage.setItem("chooseProcessControlMenu", 0) - break - case "标养室监测": - localStorage.setItem("chooseProcessControlMenu", 1) - break - case "过程验收": - localStorage.setItem("chooseProcessControlMenu", 2) - break - case "举牌验收": - localStorage.setItem("chooseProcessControlMenu", 3) - break - }*/ - if(this.localStorage.type == 1){ - if (item.menuDeptUrl) { - this.chooseMenu = { - mainMenu: this.nav, - itemMenu: i, - } - localStorage.setItem("chooseMenu", JSON.stringify(this.chooseMenu)); - location.href = item.menuDeptUrl - }/* else { - this.$notify({ - title: '提示', - message: '页面开发中,敬请期待!', - type: 'warning' - }); - }*/ - }else{ - if (item.menuProjectUrl) { - this.chooseMenu = { - mainMenu: this.nav, - itemMenu: i, - } - localStorage.setItem("chooseMenu", JSON.stringify(this.chooseMenu)); - location.href = item.menuProjectUrl - }/* else { - this.$notify({ - title: '提示', - message: '页面开发中,敬请期待!', - type: 'warning' - }); - }*/ - } - - - }, - mouseenterBtn() { - this.show = true - this.$emit('showsmallui',{"flag":true,"data":this.list,"label":this.label,"index":this.index}); - }, - mouseleaveBtn() { - this.show = false - this.$emit('showsmallui',{"flag":false,"data":this.list,"label":this.label,"index":this.index}); - }, - //页面条状 - pageJump(n,url,itemurl){ - // if(url){ - // let chooseMenu = { - // mainMenu:n, - // } - // localStorage.setItem("chooseMenu",JSON.stringify(chooseMenu)); - // location.href = url - // } - if(this.localStorage.type == 1){ - if(url){ - let chooseMenu = { - mainMenu:n, - } - localStorage.setItem("chooseMenu",JSON.stringify(chooseMenu)); - location.href = url - }/*else{ - this.$notify({ - title: '提示', - message: '功能升级中,敬请期待!', - type: 'warning' - }); - }*/ - }else{ - if(itemurl){ - this.chooseMenu = { - mainMenu:n - } - localStorage.setItem("chooseMenu",JSON.stringify(this.chooseMenu)); - location.href = itemurl - }/*else{ - this.$notify({ - title: '提示', - message: '功能升级中,敬请期待!', - type: 'warning' - }); - }*/ - } - }, - }, - watch: { - list: function () { - this.width() - } - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/header.vue b/yanzhu-bigscreen/src/components-old/header.vue deleted file mode 100644 index 22c974cf..00000000 --- a/yanzhu-bigscreen/src/components-old/header.vue +++ /dev/null @@ -1,637 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/headerv1.js b/yanzhu-bigscreen/src/components-old/headerv1.js deleted file mode 100644 index ff113020..00000000 --- a/yanzhu-bigscreen/src/components-old/headerv1.js +++ /dev/null @@ -1,243 +0,0 @@ -/** - * 顶部header - */ -import Vue from 'vue' -Vue.component("screen-header", { - template: ` -
-
- 产发工程数字管理平台 -
-
-
项目概况
-
项目详情
-
安全管理
-
质量管理
-
进度管理
-
视频管理
-
工程管理
-
-
-
- -
- -
    -
  • {{item.text}}
  • -
-
-
-
-
- -
- -
    -
  • {{item.text}}
  • -
-
-
-
-
-
{{date}}
-
{{time}}
-
-
- - - 11~25℃ -
-
- - - - -
- `, - props: { - nav:{ - type:Number - }, - red:{ - type:String - }, - item:{ - type:Number - }, - }, - data() { - return { - dept1:'', - dept2:'', - showSel1:false, - showSel2:false, - data:[], - depts:[], - timerID:undefined, - time: '', - date: '', - week:'', - selDept:'', - localStorage1: JSON.parse(localStorage.getItem("data1")), - localStorage2: JSON.parse(localStorage.getItem("data2")), - isFullScreen:false - } - }, - mounted(){ - this.timerID = setInterval(this.updateTime, 1000); - this.updateTime(); - this.init() - this.$api.dept.list().then(d=>{ - this.depts=[{text:'产发集团',id:0},...(d?.data||[]).map(it=>{ - it.text=it.deptName; - it.id=it.deptId; - return it; - })] - this.deptChange(); - }); - - }, - methods: { - toggleFullScreen(){ - let el=document.body; - this.$toggleFullScreen(el); - setTimeout(()=>{ - this.isFullScreen=document.fullscreenElement==el; - },400); - }, - init(){ - try{ - this.localStorage1=JSON.parse(localStorage.getItem("data1")) - this.localStorage2=JSON.parse(localStorage.getItem("data2")) - }catch(e){ - - } - if(!this.localStorage1){ - this.localStorage1={ - - } - } - if(!this.localStorage2){ - this.localStorage2={} - } - this.dept1=this.localStorage1?.text||''; - this.dept2=this.localStorage2?.text||''; - if(this.dept1){ - this.loadProject(true); - } - }, - deptChange(){ - let tmps=this.depts.filter(d=>d.text==this.dept1); - if(tmps.length>0){ - this.$bus.$emit("deptChange",tmps[0]) - } - }, - //页面条状 - pageJump(n,url,itemurl){ - if(n != this.nav){ - if(this.localStorage1.type == 1){ - if(url){ - location.href = url - }else{ - this.$notify({ - title: '提示', - message: '页面开发中,敬请期待!', - type: 'warning' - }); - } - }else{ - if(n==5){ - location.href = url - }else{ - if(itemurl){ - location.href = itemurl - }else{ - this.$notify({ - title: '提示', - message: '页面开发中,敬请期待!', - type: 'warning' - }); - } - } - } - } - - }, - - - showScreenUlSel1(){ - this.showSel1 = true - - }, - showScreenUlSel2(){ - this.showSel2 = true - - }, - hideScreenUlSel1(){ - this.showSel1 = false - }, - hideScreenUlSel2(){ - this.showSel2 = false - }, - setScreenLiSel1(item){ - localStorage.setItem("data1",JSON.stringify(item)) - this.localStorage1=JSON.parse(localStorage.getItem("data1")) - this.$emit('itemdata',item); - this.showSel1 = false - this.dept1=item.text; - this.deptChange(); - this.loadProject(); - }, - loadProject(init){ - this.$api.project.findProjectByDept(this.localStorage1.id||0).then(d=>{ - let objs=(d?.data||[]).map(it=>{ - it.text=it.projectName; - return it; - }).filter(it=>+it.progressVisible==0); - this.data=[{id:0,text:'所有项目'},...objs]; - this.$bus.$emit("loadProjects",this.data); - if(this.data.length>0){ - this.setScreenLiSel2(this.data[0],init); - }else{ - this.setScreenLiSel2(null); - } - }); - }, - setScreenLiSel2(item,init){ - if(item){ - this.showSel2 = false; - if(!init){ - localStorage.setItem("data2",JSON.stringify(item)) - this.localStorage2=JSON.parse(localStorage.getItem("data2")) - this.$emit('itemdata',item); - this.dept2=item.text; - } - this.$bus.$emit("projectChange",this.localStorage2); - }else{ - localStorage.removeItem("data2"); - this.localStorage2={}; - this.showSel2 = false; - this.dept2=''; - } - }, - - //时间方法 - updateTime(){ - var cd = new Date(); - this.time = this.zeroPadding(cd.getHours(), 2) + ':' + this.zeroPadding(cd.getMinutes(), 2) + ':' + this.zeroPadding(cd.getSeconds(), 2); - this.date = this.zeroPadding(cd.getFullYear(), 4) + '年' + this.zeroPadding(cd.getMonth()+1, 2) + '月' + this.zeroPadding(cd.getDate(), 2)+'日'; - }, - zeroPadding(num, digit) { - var zero = ''; - for(var i = 0; i < digit; i++) { - zero += '0'; - } - return (zero + num).slice(-digit); - } - - }, - watch:{ - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/idle-list-chart.js b/yanzhu-bigscreen/src/components-old/idle-list-chart.js deleted file mode 100644 index 568a0ff9..00000000 --- a/yanzhu-bigscreen/src/components-old/idle-list-chart.js +++ /dev/null @@ -1,133 +0,0 @@ -import Vue from 'vue' -Vue.component("idle-list-chart", { - template: ` -
- `, - props: { - prop:{ - type:Number - }, - color:{ - type:String - }, - width:{ - type:Number, - default:175 - } - }, - data() { - return { - option:{}, - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.chart); - this.echart(chChart,this.prop,this.color) - }, - echart(chChart,data,color){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var prop = [] - prop.push(data) - this.option = { - grid: { - left: "1%", - right: "0%", - bottom: "0%", - top: "25", - containLabel: true, - }, - xAxis: { - show: false, - type: "value", - }, - yAxis: [ - { - type: "category", - inverse: true, - axisLabel: { - show: false, - }, - splitLine: { - show: false, - }, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - }, - { - type: "category", - inverse: true, - axisTick: "none", - axisLine: "none", - show: true, - axisLabel: { - textStyle: { - color: "#cbdaff", - fontSize: "16", - }, - formatter: function(params,i){ - var text = "{a| "+ prop[i]+ "%}"; - return text; - }, - rich: { - a: { - fontSize: '14', - color: color, - }, - }, - }, - data: prop, - }, - ], - series: [ - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: color, - }, - }, - barWidth:8, - data: prop, - }, - { - type: "bar", - barWidth: 10, - barGap: "-100%", - data: [100], - itemStyle: { - normal: { - color: "rgba(24,31,68,0.8)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - prop: function (n,o) { - this.init() - } - } -}) diff --git a/yanzhu-bigscreen/src/components-old/labour-china-map.js b/yanzhu-bigscreen/src/components-old/labour-china-map.js deleted file mode 100644 index 2a20a997..00000000 --- a/yanzhu-bigscreen/src/components-old/labour-china-map.js +++ /dev/null @@ -1,182 +0,0 @@ -import Vue from 'vue' -Vue.component("labour-china-map", { - template: ` -
- `, - props: { - data:{ - type:Array - }, - tooltip:{ - type:Array - }, - height:{ - type:Number - } - }, - data() { - return { - option:{}, - - } - }, - mounted(){ - this.loadMap(this.data,this.tooltip) - window.chartClick = this.chartClick; - }, - methods: { - chartClick(id){ - this.$emit('projectid',id) - }, - loadMap(outdata,tooltip) { - var iconGD = "image://http://fileimg.makalu.cc/WEB_0EE6DA50925A4C27A126669209F1A5E2.png"; - var myChart = echarts.init(this.$refs.map); - var geoCoordMap = {}; - /*获取地图数据*/ - var mapFeatures = echarts.getMap('china').geoJson.features; - // console.log(mapFeatures) - mapFeatures.forEach(function(v) { - // 地区名称 - var name = v.properties.name; - // 地区经纬度 - geoCoordMap[name] = v.properties.cp; - }); - this.option = { - tooltip: { - show: true, - trigger: "item", - enterable: true, - showContent: true, - padding:0, - triggerOn:'click', - formatter: function(params) { - var tipHtml = '' - if(params.data){ - tipHtml = tooltip[params.dataIndex] - return tipHtml - } - }, - }, - geo: { - map: 'china', - show: true, - roam: true, - zoom: 1.17, - label: { - emphasis: { - show: false, - } - }, - layoutSize: "100%", - itemStyle: { - // normal: { - // areaColor: '#000', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 10, //边线的粗细 - // }, - // emphasis: { - // areaColor: '#002d90' , //指上背景限色 - // }, - areaColor: "#86c2f8", - borderColor: "#86c2f8", - shadowColor: "#86c2f8", - shadowBlur: 25, - borderWidth: 5, - }, - }, - series: [{ - type: 'map', - roam: true, - zoom: 1.15, - map: 'china', //使用 - label: { - normal: { - show: true, - fontSize:14, //省会字体大小 - textStyle: { - color: '#ffffff', - } - }, - emphasis: { - show: false, - color: '#ffffff', //指上省会字体颜色 - } - }, - itemStyle: { - normal: { - areaColor: { - type: "radial", - x: 0.5, - y: 0.5, - r: 0.8, - colorStops: [ - { - offset: 0, - color: "#1c2a4c", // 0% 处的颜色 - }, - { - offset: 1, - color: "#1f335e", // 100% 处的颜色 - }, - ], - globalCoord: true, // 缺省为 false - }, - shadowColor: "rgb(58,115,192)", - borderColor: '#8ac2fb' - }, - // normal: { - // areaColor: '#141e37', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 1, //边线的粗细 - // }, - emphasis: { - areaColor: '#22578b' , //指上背景限色 - textStyle: { - color: '#ffffff', - - } - } - }, - }, - { - type: 'scatter', //effectScatter 水波纹效果 scatter 无效果 - coordinateSystem: 'geo', - rippleEffect: { - brushType: 'stroke' - }, - showEffectOn: 'render', - itemStyle: { - normal: { - show: false, - - } - }, - symbolSize: 35, - symbol: iconGD, - data: outdata, - zlevel: 1, - - }] - }; - myChart.setOption(this.option); - - myChart.on('georoam', function(params) { - var option = myChart.getOption(); //获得option对象 - if (params.zoom != null && params.zoom != undefined) { //捕捉到缩放时 - option.geo[0].zoom = option.series[0].zoom+0.02; //下层geo的缩放等级跟着上层的geo一起改变 - option.geo[0].center = option.series[0].center; //下层的geo的中心位置随着上层geo一起改变 - } else { //捕捉到拖曳时 - option.geo[0].center = option.series[0].center; //下层的geo的中心位置随着上层geo一起改变 - } - myChart.setOption(option); //设置option - }); - }, - - }, - watch: { - data: function (n,o) { - this.loadMap(this.data,this.tooltip) - window.chartClick = this.chartClick; - } - }, -}) diff --git a/yanzhu-bigscreen/src/components-old/labour-migrate-china-map.js b/yanzhu-bigscreen/src/components-old/labour-migrate-china-map.js deleted file mode 100644 index 1dbe3640..00000000 --- a/yanzhu-bigscreen/src/components-old/labour-migrate-china-map.js +++ /dev/null @@ -1,311 +0,0 @@ -import Vue from 'vue' -Vue.component("labour-migrate-china-map", { - template: ` -
- `, - props: { - data:{ - type:Object - }, - height:{ - type:Number - } - }, - data() { - return { - option:{}, - - } - }, - mounted(){ - this.loadMap(this.data) - }, - methods: { - loadMap(outdata) { - /** - * Created by User on 2020/2/24. - */ - var province = { - '黑龙江': [127.9688, 45.368], - '内蒙古': [110.3467, 41.4899], - "吉林": [125.8154, 44.2584], - '北京市': [116.4551, 40.2539], - "辽宁": [123.1238, 42.1216], - "河北": [114.4995, 38.1006], - "天津": [117.4219, 39.4189], - "山西": [112.3352, 37.9413], - "陕西": [109.1162, 34.2004], - "甘肃": [103.5901, 36.3043], - "宁夏": [106.3586, 38.1775], - "青海": [101.4038, 36.8207], - "新疆": [87.9236, 43.5883], - "西藏": [91.11, 29.97], - "四川": [103.9526, 30.7617], - "重庆": [108.384366, 30.439702], - "山东": [117.1582, 36.8701], - "河南": [113.4668, 34.6234], - "江苏": [118.8062, 31.9208], - "安徽": [117.29, 32.0581], - "湖北": [114.3896, 30.6628], - "浙江": [119.5313, 29.8773], - "福建": [119.4543, 25.9222], - "江西": [116.0046, 28.6633], - "湖南": [113.0823, 28.2568], - "贵州": [106.6992, 26.7682], - "云南": [102.9199, 25.4663], - "广东": [113.12244, 23.009505], - "广西": [108.479, 23.1152], - "海南": [110.3893, 19.8516], - '上海': [121.4648, 31.2891] - }; - - var points = [] - var jionData=[] - var valueData = [] - var names = [] - for (let i = 0; i < outdata.chinaDatas.length; i++) { - var name = outdata.chinaDatas[i][0].name - valueData.push(outdata.chinaDatas[i][0].value) - names.push(outdata.chinaDatas[i][0].name) - points.push({ - value:province[name], - }) - jionData.push( - { - name:outdata.chinaDatas[i][0].name, - data:outdata.chinaDatas[i][0].value, - attacked:outdata.toCity, - coords: [ - province[name], - outdata.toCityJW, - ], - - }, - ) - } - points.push({ - name:outdata.toCity, - value:outdata.toCityJW, - itemStyle: { - color: "#db8f08", //被攻击点的颜色 - }, - }) - - var myChart = echarts.init(this.$refs.map); - echarts.getMap('china').geoJson.features; - this.option = { - tooltip: { - trigger: 'item', - borderColor: '#FFFFCC', - showDelay: 0, - hideDelay: 0, - enterable: true, - transitionDuration: 0, - extraCssText: 'z-index:100', - formatter: function(params, ticket, callback) { - - var res = ""; - if(params.componentSubType=="effectScatter") { - var name = names[params.dataIndex]; - var value = valueData[params.dataIndex]; - if(points[points.length-1].name != params.name){ - res = "
地址:" + name+"
人数:"+value+"(人)
"; - }else { - res = "
地址:" + points[points.length-1].name+"
"; - } - return res; - }else if(params.componentSubType=="lines"){ - var name = params.data.name; - var value = params.data.data; - var toname =params.data.attacked - res = "
地址:" + name+">"+toname+"
人数:"+value+"(人)
"; - return res; - } - // else{ - // var name = params.name; - // return name; - // } - //根据业务自己拓展要显示的内容 - } - }, - geo: { - map: 'china', - show: true, - roam: false, - zoom: 1.17, - label: { - emphasis: { - show: false, - } - }, - layoutSize: "100%", - itemStyle: { - // normal: { - // areaColor: '#000', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 10, //边线的粗细 - // }, - // emphasis: { - // areaColor: '#002d90' , //指上背景限色 - // }, - areaColor: "#86c2f8", - borderColor: "#86c2f8", - shadowColor: "#86c2f8", - shadowBlur: 25, - borderWidth: 5, - }, - }, - series: [ - { - type: "lines", - zlevel: 2, - effect: { - show: true, - period: 4, //箭头指向速度,值越小速度越快 - trailLength: 0.4, //特效尾迹长度[0,1]值越大,尾迹越长重 - symbol: "arrow", //箭头图标 - symbolSize: 10, //图标大小 - }, - lineStyle: { - normal: { - color: "#db8f08", //攻击线条的颜色 - /* function (value){ //随机颜色 - - ['#f21347','#f3243e','#f33736','#f34131','#f34e2b', - '#f56321','#f56f1c','#f58414','#f58f0e','#f5a305', - '#e7ab0b','#dfae10','#d5b314','#c1bb1f','#b9be23', - '#a6c62c','#96cc34','#89d23b','#7ed741','#77d64c', - '#71d162','#6bcc75','#65c78b','#5fc2a0','#5abead', - '#52b9c7','#4fb6d2','#4ab2e5'] - return "#"+("00000"+((Math.random()*16777215+0.5)>>0).toString(16)).slice(-6); - }*/ - width: 2, //线条宽度 - opacity: 0.1, //尾迹线条透明度 - curveness: 0.3, //尾迹线条曲直度 - }, - }, - data: jionData - }, - { - type: 'map', - roam: false, - zoom: 1.15, - map: 'china', //使用 - label: { - normal: { - show: true, - fontSize:14, //省会字体大小 - textStyle: { - color: '#eeeeee', - } - }, - emphasis: { - show: false, - color: '#ffffff', //指上省会字体颜色 - } - }, - itemStyle: { - normal: { - areaColor: { - type: "radial", - x: 0.5, - y: 0.5, - r: 0.8, - colorStops: [ - { - offset: 0, - color: "#1c2a4c", // 0% 处的颜色 - }, - { - offset: 1, - color: "#1f335e", // 100% 处的颜色 - }, - ], - globalCoord: true, // 缺省为 false - }, - shadowColor: "rgb(58,115,192)", - borderColor: '#8ac2fb' - }, - // normal: { - // areaColor: '#141e37', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 1, //边线的粗细 - // }, - emphasis: { - areaColor: '#22578b' , //指上背景限色 - textStyle: { - color: '#ffffff', - - } - } - }, - // points.push({ - // name:outdata.toCity, - data: jionData.map(function(dataItem) { - return { - name: dataItem.name, - value: dataItem.data, - seriesName:points[points.length-1].name - }; - }), - }, - { - type: "effectScatter", - coordinateSystem: "geo", - showEffectOn: "render", - zlevel: 1, - rippleEffect: { - period: 15, - scale: 4, - brushType: "fill", - }, - hoverAnimation: true, - label: { - normal: { - formatter: "{b}", - position: "right", - offset: [15, 0], - color: "#4575ff", - show: true, - }, - }, - itemStyle: { - normal: { - color: "#4575ff", - /* function (value){ //随机颜色 - return "#"+("00000"+((Math.random()*16777215+0.5)>>0).toString(16)).slice(-6); - }*/ - shadowBlur: 10, - shadowColor: "#333", - }, - }, - symbolSize: 12, - data: points, - }, //地图线的动画效果 - - - ], - }; - myChart.setOption(this.option, true); - - var currentIndex = -1; - var timeTicket = setInterval(function() { - var dataLen = jionData.length; - currentIndex = (currentIndex + 1) % dataLen; - // 显示 tooltip - myChart.dispatchAction({ - type: 'showTip', - seriesIndex: 2, - dataIndex: currentIndex - }); - }, 3000); - - }, - - }, - watch: { - data:function () { - this.loadMap(this.data) - } - }, -}) diff --git a/yanzhu-bigscreen/src/components-old/list-menu.js b/yanzhu-bigscreen/src/components-old/list-menu.js deleted file mode 100644 index cad63006..00000000 --- a/yanzhu-bigscreen/src/components-old/list-menu.js +++ /dev/null @@ -1,80 +0,0 @@ -import Vue from 'vue' -Vue.component("list-menu", { - template: ` -
-
-
-
{{item.project_abbreviation}}
- -
    -
  • - - {{user.videoName}} -
  • -
-
-
-
-
- `, - props: { - data:{ - type:Array - } - }, - data() { - return { - videoListData:[] - } - }, - mounted(){ - this.init() - - }, - methods: { - init(){ - this.videoListData = this.data - }, - onVideoListFor(id,item){ - var data = this.videoListData - for (let i = 0; i < data.length ; i++) { - if(data[i].id == id){ //data[i].type == false - data[i].type = true - for (let j = 0; j - `, - props: { - data:{ - type:Object - } - }, - data() { - return { - skyMap:'' - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.initMap() - this.getIconMap() - this.setMapStyle() - }, - initMap(){ - // GL版命名空间为BMapGL - var map = new BMapGL.Map(this.$refs.allMap); // 创建Map实例 - map.centerAndZoom(new BMapGL.Point(this.data.longitude,this.data.latitude), 16); // 初始化地图,设置中心点坐标和地图级别 - map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放 - this.skyMap = map; - }, - getIconMap(){ - var map = this.skyMap - var myIcon = new BMapGL.Icon("/cdn/images/WEB_8FEDD8B6E98E459BBA4F69B92D0C0F27.png", new BMapGL.Size(32, 59)); - var marker = new BMapGL.Marker(new BMapGL.Point(this.data.longitude,this.data.latitude), {icon: myIcon}); - map.addOverlay(marker); - }, - setMapStyle(){ - var map = this.skyMap - //百度地图背景色 - var styleJson=[ - { - "featureType": "land", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#00092aff" - } - }, { - "featureType": "water", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#033a58ff" - } - }, { - "featureType": "green", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#0e1b30ff" - } - }, { - "featureType": "building", - "elementType": "geometry", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "building", - "elementType": "geometry.topfill", - "stylers": { - "color": "#113549ff" - } - }, { - "featureType": "building", - "elementType": "geometry.sidefill", - "stylers": { - "color": "#143e56ff" - } - }, { - "featureType": "building", - "elementType": "geometry.stroke", - "stylers": { - "color": "#dadada00" - } - }, { - "featureType": "subwaystation", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#113549B2" - } - }, { - "featureType": "education", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#12223dff" - } - }, { - "featureType": "medical", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#12223dff" - } - }, { - "featureType": "scenicspots", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "color": "#12223dff" - } - }, { - "featureType": "highway", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "weight": "4" - } - }, { - "featureType": "highway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "highway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#fed66900" - } - }, { - "featureType": "highway", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "highway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "highway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "highway", - "elementType": "labels.icon", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "arterial", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "weight": "2" - } - }, { - "featureType": "arterial", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "arterial", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffeebb00" - } - }, { - "featureType": "arterial", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "arterial", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "arterial", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "local", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "weight": "1" - } - }, { - "featureType": "local", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "local", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "local", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "local", - "elementType": "labels.text.fill", - "stylers": { - "color": "#979c9aff" - } - }, { - "featureType": "local", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffffff" - } - }, { - "featureType": "railway", - "elementType": "geometry", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "subway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "weight": "1" - } - }, { - "featureType": "subway", - "elementType": "geometry.fill", - "stylers": { - "color": "#d8d8d8ff" - } - }, { - "featureType": "subway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "subway", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "subway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#979c9aff" - } - }, { - "featureType": "subway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffffff" - } - }, { - "featureType": "continent", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "continent", - "elementType": "labels.icon", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "continent", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "continent", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "city", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "city", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "city", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "town", - "elementType": "labels.icon", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "town", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "town", - "elementType": "labels.text.fill", - "stylers": { - "color": "#91aeb9ff" - } - }, { - "featureType": "town", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "road", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "poilabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "districtlabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "road", - "elementType": "geometry", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "road", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "road", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "district", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "poilabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "poilabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "poilabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "manmade", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "entertainment", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "shopping", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "stylers": { - "level": "10", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "10", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "nationalway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "10", - "curZoomRegionId": "0", - "curZoomRegion": "6-10" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "stylers": { - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "6", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "7", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "8", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "cityhighway", - "elementType": "labels", - "stylers": { - "visibility": "off", - "level": "9", - "curZoomRegionId": "0", - "curZoomRegion": "6-9" - } - }, { - "featureType": "subwaylabel", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "subwaylabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "tertiarywaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "tertiarywaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "provincialwaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "provincialwaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "nationalwaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "nationalwaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "highwaysign", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "highwaysign", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "village", - "elementType": "labels", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "district", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "district", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "district", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "country", - "elementType": "labels.text.fill", - "stylers": { - "color": "#ffffffff" - } - }, { - "featureType": "country", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "water", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "water", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "cityhighway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "tertiaryway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "tertiaryway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff10" - } - }, { - "featureType": "provincialway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "provincialway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "nationalway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "nationalway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "highway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "nationalway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "nationalway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "nationalway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "provincialway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "provincialway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "provincialway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "cityhighway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "cityhighway", - "elementType": "labels.text", - "stylers": { - "fontsize": "20" - } - }, { - "featureType": "cityhighway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "estate", - "elementType": "geometry", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "tertiaryway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "tertiaryway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "fourlevelway", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "fourlevelway", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "scenicspotsway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "scenicspotsway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "universityway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "universityway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "vacationway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "vacationway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "fourlevelway", - "elementType": "geometry", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "fourlevelway", - "elementType": "geometry.fill", - "stylers": { - "color": "#12223dff" - } - }, { - "featureType": "fourlevelway", - "elementType": "geometry.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "transportationlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "educationlabel", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "educationlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "educationlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "educationlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "transportation", - "elementType": "geometry", - "stylers": { - "color": "#113549ff" - } - }, { - "featureType": "airportlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "airportlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "scenicspotslabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "scenicspotslabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "medicallabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "medicallabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "medicallabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "scenicspotslabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "airportlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "entertainmentlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "entertainmentlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "entertainmentlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "estatelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "estatelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "estatelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "businesstowerlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "businesstowerlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "businesstowerlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "companylabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "companylabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "companylabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "governmentlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "governmentlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "governmentlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "restaurantlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "restaurantlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "restaurantlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "hotellabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "hotellabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "hotellabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "shoppinglabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "shoppinglabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "shoppinglabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "lifeservicelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "lifeservicelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "lifeservicelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "carservicelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "carservicelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "carservicelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "financelabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "financelabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "financelabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "otherlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "otherlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "otherlabel", - "elementType": "labels.icon", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "manmade", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "manmade", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "transportation", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "transportation", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "education", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "education", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "medical", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "medical", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "scenicspots", - "elementType": "labels.text.fill", - "stylers": { - "color": "#2dc4bbff" - } - }, { - "featureType": "scenicspots", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off" - } - }, { - "featureType": "country", - "elementType": "labels", - "stylers": { - "visibility": "on" - } - }, { - "featureType": "districtlabel", - "elementType": "labels.text.fill", - "stylers": { - "color": "#00ebcaff" - } - }, { - "featureType": "districtlabel", - "elementType": "labels.text.stroke", - "stylers": { - "color": "#ffffff00" - } - }, { - "featureType": "districtlabel", - "elementType": "labels.text", - "stylers": { - "fontsize": 25 - } - }, { - "featureType": "country", - "elementType": "labels.text", - "stylers": { - "fontsize": 30 - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "5" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "6" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "7" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "8" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "9" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "10" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "11" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "12" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "13" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "14" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "15" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "16" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "17" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "18" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "19" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "20" - } - }, { - "featureType": "boundary", - "stylers": { - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "21" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "5" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "6" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "7" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "8" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "9" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "10" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "11" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "12" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "13" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "14" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "15" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "16" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "17" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "18" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "19" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "20" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "on", - "curZoomRegionId": "0", - "curZoomRegion": "5,21", - "level": "21" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "3" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "4" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "5" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "6" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "7" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "8" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "9" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "10" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "11" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "12" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "13" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "14" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "15" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "16" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "17" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "18" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "19" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "20" - } - }, { - "featureType": "boundary", - "elementType": "geometry", - "stylers": { - "visibility": "off", - "curZoomRegionId": "1", - "curZoomRegion": "3,21", - "level": "21" - } - }] - - map.setMapStyleV2({styleJson:styleJson}); - } - - - - }, - watch:{ - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/module/module-big.js b/yanzhu-bigscreen/src/components-old/module/module-big.js deleted file mode 100644 index 1a87d455..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-big.js +++ /dev/null @@ -1,21 +0,0 @@ -import Vue from 'vue' -Vue.component('module-big', { - template:` -
-
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-0-5.js b/yanzhu-bigscreen/src/components-old/module/module-one-0-5.js deleted file mode 100644 index bbd52439..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-0-5.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-0-5', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-1-1.vue b/yanzhu-bigscreen/src/components-old/module/module-one-1-1.vue deleted file mode 100644 index 8e904719..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-1-1.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-1-2.js b/yanzhu-bigscreen/src/components-old/module/module-one-1-2.js deleted file mode 100644 index ffb556fd..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-1-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-1-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-1-3.js b/yanzhu-bigscreen/src/components-old/module/module-one-1-3.js deleted file mode 100644 index 56b9f588..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-1-3.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-1-3', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-1-4.js b/yanzhu-bigscreen/src/components-old/module/module-one-1-4.js deleted file mode 100644 index 804780b8..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-1-4.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-1-4', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-2-1.js b/yanzhu-bigscreen/src/components-old/module/module-one-2-1.js deleted file mode 100644 index cba2b5f0..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-2-1.js +++ /dev/null @@ -1,26 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-2-1', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - }, - className:{ - type:String, - default:'' - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-2-2.js b/yanzhu-bigscreen/src/components-old/module/module-one-2-2.js deleted file mode 100644 index a7bb5268..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-2-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-2-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-2-3.js b/yanzhu-bigscreen/src/components-old/module/module-one-2-3.js deleted file mode 100644 index 0dc47481..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-2-3.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-2-3', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-2-4.js b/yanzhu-bigscreen/src/components-old/module/module-one-2-4.js deleted file mode 100644 index 2593fe50..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-2-4.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-2-4', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-3-1.js b/yanzhu-bigscreen/src/components-old/module/module-one-3-1.js deleted file mode 100644 index b487d3f5..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-3-1.js +++ /dev/null @@ -1,26 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-3-1', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - }, - cls:{ - type:String, - default:"" - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-3-2.js b/yanzhu-bigscreen/src/components-old/module/module-one-3-2.js deleted file mode 100644 index 299aef2e..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-3-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-3-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-3-3.js b/yanzhu-bigscreen/src/components-old/module/module-one-3-3.js deleted file mode 100644 index e3384731..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-3-3.js +++ /dev/null @@ -1,25 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-3-3', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - }, - notitle:{ - type:Boolean - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-3-4.js b/yanzhu-bigscreen/src/components-old/module/module-one-3-4.js deleted file mode 100644 index 962707a9..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-3-4.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-3-4', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-one-video.js b/yanzhu-bigscreen/src/components-old/module/module-one-video.js deleted file mode 100644 index ac530b49..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-one-video.js +++ /dev/null @@ -1,21 +0,0 @@ -import Vue from 'vue' -Vue.component('module-one-video', { - template:` -
-
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-red-1-1.js b/yanzhu-bigscreen/src/components-old/module/module-red-1-1.js deleted file mode 100644 index 5aeb147d..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-red-1-1.js +++ /dev/null @@ -1,27 +0,0 @@ -import Vue from 'vue' -Vue.component('module-red-1-1', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, - watch: { - label: function (n, o) { - this.$forceUpdate() - } - } -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-red-1-2.js b/yanzhu-bigscreen/src/components-old/module/module-red-1-2.js deleted file mode 100644 index 4bc925dd..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-red-1-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-red-1-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-red-2-2.js b/yanzhu-bigscreen/src/components-old/module/module-red-2-2.js deleted file mode 100644 index 1965b73f..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-red-2-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-red-2-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-1-1.js b/yanzhu-bigscreen/src/components-old/module/module-two-1-1.js deleted file mode 100644 index c8cd66fd..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-1-1.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-1-1', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-1-2.js b/yanzhu-bigscreen/src/components-old/module/module-two-1-2.js deleted file mode 100644 index 41281ae4..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-1-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-1-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-1-3.js b/yanzhu-bigscreen/src/components-old/module/module-two-1-3.js deleted file mode 100644 index 872e795c..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-1-3.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-1-3', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-1-4.js b/yanzhu-bigscreen/src/components-old/module/module-two-1-4.js deleted file mode 100644 index 6931d4e6..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-1-4.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-1-4', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-2-1.js b/yanzhu-bigscreen/src/components-old/module/module-two-2-1.js deleted file mode 100644 index 806dfb63..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-2-1.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-2-1', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-2-2.js b/yanzhu-bigscreen/src/components-old/module/module-two-2-2.js deleted file mode 100644 index 2aa72766..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-2-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-2-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-2-3.js b/yanzhu-bigscreen/src/components-old/module/module-two-2-3.js deleted file mode 100644 index fe5bfdd5..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-2-3.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-2-3', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-2-4.js b/yanzhu-bigscreen/src/components-old/module/module-two-2-4.js deleted file mode 100644 index 2aec61f7..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-2-4.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-2-4', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-3-1.js b/yanzhu-bigscreen/src/components-old/module/module-two-3-1.js deleted file mode 100644 index 3b708ca1..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-3-1.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-3-1', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-3-2.js b/yanzhu-bigscreen/src/components-old/module/module-two-3-2.js deleted file mode 100644 index 3b51c949..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-3-2.js +++ /dev/null @@ -1,22 +0,0 @@ -import Vue from 'vue' -Vue.component('module-two-3-2', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-3-3.js b/yanzhu-bigscreen/src/components-old/module/module-two-3-3.js deleted file mode 100644 index ba21d359..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-3-3.js +++ /dev/null @@ -1,21 +0,0 @@ -Vue.component('module-two-3-3', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/module/module-two-3-4.js b/yanzhu-bigscreen/src/components-old/module/module-two-3-4.js deleted file mode 100644 index 28dc1822..00000000 --- a/yanzhu-bigscreen/src/components-old/module/module-two-3-4.js +++ /dev/null @@ -1,21 +0,0 @@ -Vue.component('module-two-3-4', { - template:` -
-
-
{{label}}
- -
-
- `, - props: { - label:{ - type:String - } - }, - - data() { - return { - - }; - }, -}) \ No newline at end of file diff --git a/yanzhu-bigscreen/src/components-old/more-btn.js b/yanzhu-bigscreen/src/components-old/more-btn.js deleted file mode 100644 index c3c2f88b..00000000 --- a/yanzhu-bigscreen/src/components-old/more-btn.js +++ /dev/null @@ -1,79 +0,0 @@ -import Vue from 'vue' -Vue.component("more-btn", { - template: ` -
-
- {{text}} - -
- -
- `, - props: { - label: { - type: String - }, - nav: { - type: String - }, - list: { - type: Array - }, - }, - data() { - return { - show: false, - widths: 0, - btnNav: -1, - chooseMenu: {}, - text:'' - } - }, - mounted() { - this.text = this.label - this.init() - }, - methods: { - init() { - this.width() - }, - width() { - if (this.list) { - if (this.list.length > 4) { - this.widths = 616 - } else { - this.widths = this.list.length * 150 + 16 - } - } - }, - buttonClick(i, item) { - this.btnNav = i - this.text = item.text - this.$emit('value',item); - }, - mouseenterBtn() { - this.show = true - }, - mouseleaveBtn() { - this.show = false - } - }, - watch: { - nav:function (n,o) { - this.nav=n - if(n == ''){ - this.btnNav = -1 - } - - } - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/norm-pie.js b/yanzhu-bigscreen/src/components-old/norm-pie.js deleted file mode 100644 index b1d004fd..00000000 --- a/yanzhu-bigscreen/src/components-old/norm-pie.js +++ /dev/null @@ -1,156 +0,0 @@ -import Vue from 'vue' -Vue.component("norm-pie", { - template: ` -
- `, - props: { - value:{ - type:Number - }, - text:{ - type:String - } - }, - data() { - return { - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - //分类及工时情况 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart); - this.echartBar(chChartBar,this.value,this.text) - }, - echartBar(chChart,value,text){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var placeHolderStyle = { - normal: { - label: { - show: false, - }, - labelLine: { - show: false, - }, - color: "rgba(0,0,0,0)", - borderWidth: 0, - }, - emphasis: { - color: "rgba(0,0,0,0)", - borderWidth: 0, - }, - }; - - var dataStyle = { - - }; - this.option ={ - title: [ - { - text: value+'%', - textAlign: "center", - left: "48%", - top: "39%", - textStyle: { - color: "#67abf2", - fontSize: 23, - }, - }, - { - text: text, - left: "48%", - top: "85%", - textAlign: "center", - textStyle: { - color: "#cdd7fa", - fontWeight: "normal", - fontSize: "16", - textAlign: "center", - }, - }, - ], - series: [ - { - type: "pie", - hoverAnimation: false, - radius: ["50%", "49%"], - center: ["50%", "45%"], - labelLine: { - normal: { - show: false, - }, - }, - label: { - normal: { - position: "center", - }, - }, - data: [ - { - value: 100, - itemStyle: { - normal: { - color: "#255788", - }, - }, - }, - - ], - }, - { - type: "pie", - hoverAnimation: false, - radius: ["43%", "50%"], - center: ["50%", "45%"], - labelLine: { - normal: { - show: false, - }, - }, - label: { - normal: { - position: "center", - }, - }, - data: [ - { - value: value, - itemStyle: { - normal: { - color: "#68a8f2", - }, - }, - normal: { - show: false, - }, - }, - { - value: 100-value, - itemStyle: placeHolderStyle, - }, - ], - }, - ], - }; - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - value: function (n,o) { - this.init() - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/oil-consumption-chart.js b/yanzhu-bigscreen/src/components-old/oil-consumption-chart.js deleted file mode 100644 index 6be0850f..00000000 --- a/yanzhu-bigscreen/src/components-old/oil-consumption-chart.js +++ /dev/null @@ -1,182 +0,0 @@ -import Vue from 'vue' -Vue.component("oil-consumption-chart", { - template: ` -
- `, - props: { - height:{ - type:Number - }, - data:{ - type:Object - } - }, - data() { - return { - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - //分类及工时情况 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart); - this.echartBar(chChartBar,this.data) - }, - echartBar(chChart,data){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - this.option = { - tooltip: { - trigger: "axis", - formatter: function (params) { - return (params[0].seriesName+"
" - +params[0].name +":"+ params[0].data + "L/h") - - }, - }, - grid: { - top:'5%', - left: "2%", - right: "2%", - bottom: "0%", - containLabel: true, - }, - xAxis: { - type: "category", - boundaryGap: false, - data: data.xAxis, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:12 - }, - }, - }, - yAxis: { - type: "value", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: false, - lineStyle: { - color: "#c5d9fc", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - axisLabel: { - show: true, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:12 - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - }, - series: [ - { - name: data.seriesName, - type: "line", - symbol: "circle", // 默认是空心圆(中间是白色的),改成实心圆 - showAllSymbol: true, - symbolSize: 8, - lineStyle: { - normal: { - color: "#7c80f4", // 线条颜色 - }, - borderColor: "rgba(0,0,0,.4)", - }, - itemStyle: { - color: "rgba(14,30,73,1)", - borderColor: "#646ace", - borderWidth: 2, - }, - label: { - normal: { - show: true, - position: "top", - formatter: [" {a|{c}}"].join(","), - rich: { - a: { - color: "#fff", - align: "center", - }, - }, - }, - }, - tooltip: { - show: true, - }, - areaStyle: { - //区域填充样式 - normal: { - //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。 - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(124, 128, 244,.6)", - }, - { - offset: 1, - color: "rgba(124, 128, 244, 0)", - }, - ], - false - ), - shadowColor: "rgba(53,142,215, 0.9)", //阴影颜色 - shadowBlur: 20, //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。 - }, - }, - data: data.data, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/process-control-new.js b/yanzhu-bigscreen/src/components-old/process-control-new.js deleted file mode 100644 index 86255c5f..00000000 --- a/yanzhu-bigscreen/src/components-old/process-control-new.js +++ /dev/null @@ -1,199 +0,0 @@ -Vue.component("process-control-new", { - template: ` -
-
-
- -
{{'0'+(i+1)}}
-
-
- {{item.label}} -
-
-
{{item.left_title}}:{{item.left_data}}{{item.left_unit}}
-
{{item.right_title}}:{{item.right_data}}{{item.right_unit}}
-
-
-
-
-
- `, - props: { - active: { - type: Number - } - }, - data() { - return { - chooseProcessControlMenu: 0, - processControlData:[ - { - number:1, - label:'取样送检', - left_title:'取样数', - left_data:0, - left_unit:'次', - right_title:'报告返回率', - right_data:0, - right_unit:'%', - url: "/weixin/screen/toQualityQYSJ" - }, - { - number:2, - label:'标养室监测', - left_title:'当前温度', - left_data:0, - left_unit:'℃', - right_title:'当前湿度', - right_data:0, - right_unit:'%RH', - url: "/weixin/screen/toQualityBYSJC" - }, - { - number:3, - label:'混凝土强度监测', - left_title:'成熟度', - left_data:0, - left_unit:'°C*小时', - right_title:'当前温度', - right_data:0, - right_unit:'℃', - url: "/weixin/screen/toQualityHNTJC" - }, -/* { - number:4, - label:'过程验收', - left_title:'验收次数', - left_data:0, - left_unit:'次', - right_title:'合格率', - right_data:0, - right_unit:'%', - url: "/weixin/screen/toQualityGCYS" - },*/ - { - number:5, - label:'举牌验收', - left_title:'验收次数', - left_data:0, - left_unit:'次', - right_title:'合格率', - right_data:0, - right_unit:'%', - url: "/weixin/screen/toQualityJPYS" - }, - { - number:6, - label:'实测实量', - left_title:'验收次数', - left_data:0, - left_unit:'次', - right_title:'合格率', - right_data:0, - right_unit:'%', - }, - ] - } - }, - mounted() { - //this.getData() - //this.chooseProcessControlMenu = localStorage.getItem("chooseProcessControlMenu") - this.chooseProcessControlMenu="0" - this.processControlData=JSON.parse('[{"number":1,"label":"取样送检","left_title":"取样数","left_data":595,"left_unit":"次","right_title":"报告返回率","right_data":"100.00","right_unit":"%","url":"/weixin/screen/toQualityQYSJ"},{"number":2,"label":"标养室监测","left_title":"当前温度","left_data":19.1,"left_unit":"℃","right_title":"当前湿度","right_data":"98.50","right_unit":"%RH","url":"/weixin/screen/toQualityBYSJC"},{"number":3,"label":"混凝土强度监测","left_title":"成熟度","left_data":"39840.0","left_unit":"°C*小时","right_title":"当前温度","right_data":"22.40","right_unit":"℃","url":"/weixin/screen/toQualityHNTJC"},{"number":5,"label":"举牌验收","left_title":"验收次数","left_data":306,"left_unit":"次","right_title":"合格率","right_data":"100.00","right_unit":"%","url":"/weixin/screen/toQualityJPYS"},{"number":6,"label":"实测实量","left_title":"验收次数","left_data":0,"left_unit":"次","right_title":"合格率","right_data":0,"right_unit":"%"}]'); - }, - methods: { - getData(){ - axios.post("/api/getProcessControlCount",{ - dept_id:JSON.parse(localStorage.getItem("data")).dept_id , - project_id: JSON.parse(localStorage.getItem("data")).id - }).then(res => { - let data = res.data.data - this.processControlData = [ - { - number:1, - label:'取样送检', - left_title:'取样数', - left_data:data.samplingCount ? data.samplingCount.left_data : 0, - left_unit:'次', - right_title:'报告返回率', - right_data:data.samplingCount ? (data.samplingCount.right_data * 100 ).toFixed(2) : 0, - right_unit:'%', - url: "/weixin/screen/toQualityQYSJ" - }, - { - number:2, - label:'标养室监测', - left_title:'当前温度', - left_data:data.markingRoomCount ? data.markingRoomCount.left_data : 0, - left_unit:'℃', - right_title:'当前湿度', - right_data:data.markingRoomCount ?Number( data.markingRoomCount.right_data).toFixed(2) : 0, - right_unit:'%RH', - url: "/weixin/screen/toQualityBYSJC" - }, - { - number:3, - label:'混凝土强度监测', - left_title:'成熟度', - left_data:data.concreteCount ? data.concreteCount.left_data : 0, - left_unit:'°C*小时', - right_title:'当前温度', - right_data:data.concreteCount ? Number(data.concreteCount.right_data).toFixed(2) : 0, - right_unit:'℃', - url: "/weixin/screen/toQualityHNTJC" - }, - /* { - number:4, - label:'过程验收', - left_title:'验收次数', - left_data:data.courseReceivingCount ? data.courseReceivingCount.left_data : 0, - left_unit:'次', - right_title:'合格率', - right_data:data.courseReceivingCount ? data.courseReceivingCount.right_data.toFixed(2) : 0, - right_unit:'%', - url: "/weixin/screen/toQualityGCYS" - },*/ - { - number:5, - label:'举牌验收', - left_title:'验收次数', - left_data:data.raisingCount ? data.raisingCount.left_data : 0, - left_unit:'次', - right_title:'合格率', - right_data:data.raisingCount ? (data.raisingCount.right_data * 100).toFixed(2) : 0, - right_unit:'%', - url: "/weixin/screen/toQualityJPYS" - }, - { - number:6, - label:'实测实量', - left_title:'验收次数', - left_data:data.measuredQuantityCount ? data.measuredQuantityCount.left_data : 0, - left_unit:'次', - right_title:'合格率', - right_data:data.measuredQuantityCount ? data.measuredQuantityCount.right_data.toFixed(2) : 0, - right_unit:'%', - }, - ] - }) - }, - onProcessControl(n, top ,url) { - return; - if (url) { - localStorage.setItem("chooseProcessControlMenu", n) - let chooseMenu = { - mainMenu:4, - itemMenu:top, - } - localStorage.setItem("chooseMenu",JSON.stringify(chooseMenu)); - // 跳转页面 - location.href = url - } - } - }, - watch: {}, - -}) diff --git a/yanzhu-bigscreen/src/components-old/project-overview-chart.js b/yanzhu-bigscreen/src/components-old/project-overview-chart.js deleted file mode 100644 index 8ed17a2b..00000000 --- a/yanzhu-bigscreen/src/components-old/project-overview-chart.js +++ /dev/null @@ -1,217 +0,0 @@ -import Vue from 'vue' -Vue.component("project-overview-chart", { - template: ` -
-
- -
-
-
- `, - props: { - gifTop:{ - type:String, - default:'63px' - }, - fn:{ - type:Function - }, - typedata:{ - type: Array, - }, - width:{ - type:Number - }, - height:{ - type:Number - }, - text:{ - type:String - }, - legendOpt:{ - type:Object, - default:()=>{} - }, - maintitle:{ - type:[String,Number], - default:'' - }, - sp:{ - type:String, - default:"\n" - } - }, - data() { - return { - active:0, - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - doClick(){ - this.$emit("clickme"); - }, - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.warningPieChart); - this.echartPie(chChartPie,this.typedata) - }, - echartPie(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var total_datas = 0; - var data = []; - var legendData = []; - var color = ['#4974ff','#52aef7','#6863d7','#1d5d89','#20e6ff','#67feef'] - for (let i = 0; i { - return a + b.value; - }, 0);*/ - - let legendOption = { - - top: "center", - - orient: "vertical", - icon: "circle", - - itemGap: 0, - textStyle: { - color: "#c3dbfd", - fontSize: 6, - rich: { - name: { - color: "#c3dbfd", - padding: [0, 0, 0, 0], - }, - percent: { - color: "#18DB9F", - fontSize: 6, - padding: [0, 0, 0, 0], - }, - }, - }, - formatter: (name) =>{ - let res = chartData.filter((v) => v.name === name); - let percent = ((res[0].value * 100) / total_datas).toFixed(1); - if(total_datas==0){ - percent=0; - } - return "{name| " + name + "}"+this.sp+" {val|" + res[0].value + "} {percent|" + percent + "%}"; - }, - }; - let opt={...legendOption,...(this.legendOpt||{})}; - this.option = { - title: { - text: this.maintitle||total_datas, - subtext: this.text, - textAlign:'center', - top:'top', - itemGap :10, - textStyle: { - color: "#0dd2fd", - fontSize: 14, - fontWeight: "bold", - align: "center", - }, - subtextStyle: { - color: "#a5b5f0", - fontSize: 12, - align: "center", - }, - padding:[95,0,0,110], - left:'left' - - }, - tooltip: { - trigger: 'item', - formatter: "{b}
{c} ({d}%)" - }, - - legend: [ - { - right: 10, - data: legendData, - align: "left", - ...opt, - }, - ], - - series: [ - { - name: "品类金额占比", - type: "pie", - center: ["0%", "50%"], - radius: ["46%", "63%"], - data: data, - label: { - show: false, - }, - itemStyle: { - normal: { - borderWidth: 5, - borderColor: "#051a36" - } - }, - - }, - { - name: "外边框", - type: "pie", - clockWise: false, //顺时加载 - hoverAnimation: false, //鼠标移入变大 - center: ["0%", "50%"], - radius: ["70%", "70%"], - label: { - normal: { - show: false, - }, - }, - data: [ - { - value: 9, - name: "", - itemStyle: { - normal: { - borderWidth: 3, - borderColor: "#152c65", - }, - }, - }, - ], - }, - ], - } - if(this.fn){ - this.option=this.fn(this.option); - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/project-overview-chart2.js b/yanzhu-bigscreen/src/components-old/project-overview-chart2.js deleted file mode 100644 index 69ec0823..00000000 --- a/yanzhu-bigscreen/src/components-old/project-overview-chart2.js +++ /dev/null @@ -1,192 +0,0 @@ -import Vue from 'vue' -Vue.component("project-overview-chart2", { - template: ` -
-
- -
-
-
- - `, - props: { - typedata:{ - type: Array, - }, - height:{ - type:Number - }, - text:{ - type:String - }, - maintitle:{ - type:[String,Number], - default:'' - }, - sp:{ - type:String, - default:"\n" - } - }, - data() { - return { - active:0, - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.warningPieChart); - this.echartPie(chChartPie,this.typedata) - }, - echartPie(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var total_datas = 0; - var data = []; - var legendData = []; - var color = ['#4974ff','#52aef7','#6863d7','#1d5d89','#20e6ff','#67feef'] - for (let i = 0; i { - let res = chartData.filter((v) => v.name === name); - let percent = ((res[0].value * 100) / total_datas).toFixed(1); - if(total_datas==0){ - percent=0; - } - return "{name| " + name + "}"+this.sp+"{percent|" + res[0].value + "}{percent|" + percent + "%}"; - }, - }; - this.option = { - color:["#4B7CFD","#58B8FF","#6A67DD","#2A77A9","#1CEDFC","#69FDF4","#58AAF7","#6B63DC","#2977AB","#1DE6FE"], - title: { - text: this.maintitle||total_datas, - subtext: this.text, - x: "85", - y: "89", - textStyle: { - color: "#0dd2fd", - fontSize: 24, - fontWeight: "bold", - align: "center", - width: "200px", - }, - subtextStyle: { - color: "#a5b5f0", - fontSize: 12, - align: "center", - }, - }, - tooltip: { - trigger: 'item', - formatter: "{b}
{c} ({d}%)" - }, - legend: [ - { - right: 10, - data: legendData, - align: "left", - ...legendOption, - }, - ], - - series: [ - { - name: "品类金额占比", - type: "pie", - center: ["115.5", "113.5"], - radius: ["55", "70"], - data: data, - label: { - show: false, - }, - itemStyle: { - normal: { - borderWidth: 5, - borderColor: "#051a36" - } - }, - - }, - { - name: "外边框", - type: "pie", - clockWise: false, //顺时加载 - hoverAnimation: false, //鼠标移入变大 - center: ["115.5", "113.5"], - radius: ["75", "75.5"], - label: { - normal: { - show: false, - }, - }, - data: [ - { - value: 9, - name: "", - itemStyle: { - normal: { - borderWidth: 3, - borderColor: "#152c65", - }, - }, - }, - ], - }, - ], - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/quality-objectives-safety.js b/yanzhu-bigscreen/src/components-old/quality-objectives-safety.js deleted file mode 100644 index 772279e6..00000000 --- a/yanzhu-bigscreen/src/components-old/quality-objectives-safety.js +++ /dev/null @@ -1,48 +0,0 @@ -import Vue from 'vue' -Vue.component("quality-objectives-safety", { - template: ` -
-
-
- -
-
-
{{item.title}}
- -
{{item.text}}
-
-
-
- `, - props: { - - }, - data() { - return { - //质量目标 - qualityTargetData:[ - // { - // title:'创优目标', - // text:'获得陕西省“双优”工地,创AAA级国家安全文明标准化工地', - // images:'/images/quality_target_1.png', - // } - ], - } - }, - mounted(){ - let that = this - $.post("/weixin/saftTarget/list1",{},res => { - that.qualityTargetData = res[JSON.parse(localStorage.getItem("data1")).id] - }) - }, - methods: { - - }, - watch:{ - - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/quality-objectives.js b/yanzhu-bigscreen/src/components-old/quality-objectives.js deleted file mode 100644 index 888c7907..00000000 --- a/yanzhu-bigscreen/src/components-old/quality-objectives.js +++ /dev/null @@ -1,57 +0,0 @@ -import Vue from 'vue' -Vue.component("quality-objectives", { - template: ` -
-
-
- -
-
-
{{item.title}}
- -
{{item.text}}
-
-
-
- `, - props: { - - }, - data() { - return { - //质量目标 - qualityTargetData:[ - { - title:'创优目标', - text:'获得陕西省“双优”工地,创AAA级国家安全文明标准化工地', - images:'images/quality_target_2.png', - }, - { - title:'质量管理目标', - text:'确保"西安市建筑工程雁塔杯"奖,力争"长安杯"奖。', - images:'images/quality_target_1.png', - } - ], - } - }, - mounted(){ - let that = this - let url1 = "http://127.0.0.1:9004/system/qualityTarget/list1" - let url2 = "https://szh.makalu.cc/system/qualityTarget/list1" - //$.post(url2,{},res => { - //that.qualityTargetData = res[JSON.parse(localStorage.getItem("data1")).id] - //console.log(that.qualityTargetData[JSON.parse(localStorage.getItem("data1")).id]); - //}) - //that.qualityTargetData=JSON.parse('[{"searchValue":null,"createBy":null,"createTime":"2023-07-22 17:58:28","updateBy":null,"updateTime":"2023-07-22 17:58:28","remark":null,"params":{},"id":7,"projectId":"","title":"质量管理目标","text":"确保"西安市建筑工程雁塔杯"奖,力争"长安杯"奖。","images":"https://szh.makalu.cc/images/quality_target_2.png","delFlag":"0","updateUserId":"297","createUserId":"297","projectName":null,"deptId":null,"projectList":null}]'); - }, - methods: { - - }, - watch:{ - - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/rank-chart.js b/yanzhu-bigscreen/src/components-old/rank-chart.js deleted file mode 100644 index f7b806a5..00000000 --- a/yanzhu-bigscreen/src/components-old/rank-chart.js +++ /dev/null @@ -1,245 +0,0 @@ -import Vue from 'vue' -Vue.component("rank-chart", { - template: ` -
- `, - props: { - data:{ - type:Array - }, - height:{ - type:Number - }, - width:{ - type:Number - }, - showval:{ - type:Boolean, - default:false - } - }, - data() { - return { - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - //分类及工时情况 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart); - this.echartBar(chChartBar,this.data) - }, - echartBar(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - - var value = []; - var prop = []; - var text = []; - var zero = [] - var bgd = [] - var total = 0 - for (let i = chartData.length-1; i >=0; i--) { - total += +chartData[i].value; - value.push(chartData[i].value) - prop.push(chartData[i].prop) - text.push(chartData[i].text) - bgd.push(100) - zero.push(0) - } - - - var data = [] - var data_all = new Array(prop.length) - for (let i = 0; i { - //富文本固定格式{colorName|这里填你想要写的内容} - if(this.showval){ - return '{arrow|}{index|No.'+(chartData.length-data.dataIndex)+'}{name|' + text[data.dataIndex] + '}{prop|' +value[data.dataIndex]+ ' ' +prop[data.dataIndex] + '} {color| %}'; - } - return '{arrow|}{index|No.'+(chartData.length-data.dataIndex)+'}{name|' + text[data.dataIndex] + '}{prop|' +prop[data.dataIndex] + '} {color| %}'; - }, - } - }, - data: value - }, - { - type: "bar", - stack: "总", - barWidth: 6, - itemStyle: { - normal: { - barBorderColor: 'rgba(0,0,0,0)', - color: 'rgba(0,0,0,0)' - } - }, - data: data_all - }, - - - ] - for (let i = 0; i < data.length; i++) { - series.push({ - type: "bar", - barWidth: 6, - stack: "总", - // itemStyle: { - // normal: { - // color: '#0780d9' - // } - // }, - itemStyle: { - normal: { - color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [ - { - offset: 0, - color: "#41adf5", - }, - { - offset: 1, - color: "#175eac", - }, - ]), - barBorderRadius: [5,5,5,5], - }, - }, - data: data[i] - }) - } - - this.option = { - grid: { - left: '2%', - right: '2%', - bottom: '-8%', - top: '3%', - containLabel: true - }, - yAxis: { - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: text, - }, - - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - series: series - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - data:function () { - this.init() - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/roll-left-right-img.js b/yanzhu-bigscreen/src/components-old/roll-left-right-img.js deleted file mode 100644 index d562a361..00000000 --- a/yanzhu-bigscreen/src/components-old/roll-left-right-img.js +++ /dev/null @@ -1,95 +0,0 @@ -import Vue from 'vue' -Vue.component("roll-left-right-img", { - template: ` -
- -
-
- -
-
-
- -
-
-
- -
-
-
- `, - props: { - list:{ - type:Array - }, - number:{ - type:Number - } - }, - data() { - return { - costIndex:0, - imgRollInterval:undefined, - direction:'left' - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - // 图片轮播 定时器 - this.imgRollInterval = setInterval(this.imgRoll,5000); - }, - carouselLeft(){ - this.direction = 'left' - this.manufacturingCostRoll() - }, - carouselRight(){ - this.direction = 'right' - this.manufacturingCostRoll() - }, - manufacturingCostRoll(){ - var width = $(".bzh-content-img").innerWidth() - if(this.direction == 'right'){ - if(this.costIndex == this.list.length - this.number){ - this.costIndex = 0 - }else{ - this.costIndex = this.costIndex + 1 - } - }else{ - if(this.costIndex == 0){ - this.costIndex = this.list.length - this.number - }else{ - this.costIndex = this.costIndex - 1 - } - } - $(this.$refs.rollImgMax).animate({scrollLeft:(width*this.costIndex)+'px'}) - this.direction = 'right' - }, - - - imgRoll(){ - var width = $(".bzh-content-img").innerWidth() - if(this.costIndex == this.list.length - this.number){ - this.costIndex = 0 - }else{ - this.costIndex = this.costIndex + 1 - } - $(this.$refs.rollImgMax).animate({scrollLeft:(width*this.costIndex)+'px'}) - }, - costMouseover(){ - clearInterval(this.imgRollInterval); - }, - costMouseout(){ - this.imgRollInterval=setInterval(this.imgRoll,5000); - }, - }, - watch:{ - list:function (o,n) { - - } - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/safe-bar-chart.js b/yanzhu-bigscreen/src/components-old/safe-bar-chart.js deleted file mode 100644 index 5c35e05a..00000000 --- a/yanzhu-bigscreen/src/components-old/safe-bar-chart.js +++ /dev/null @@ -1,273 +0,0 @@ -import Vue from 'vue' -Vue.component("safe-bar-chart", { - template: ` -
- `, - props: { - height:{ - type:Number - }, - project:{ - type: Array, - }, - data:{ - type: Array, - }, - legend:{ - type: Array, - }, - color:{ - type: Array, - }, - unit:{ - type:String - } - }, - data() { - return { - option:{}, - timer_tmp:undefined - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - //分类及工时情况 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart); - this.echartBar(chChartBar) - }, - echartBar(myChart){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var series = [] - for (let i = 0; i 8){ - var arr = this.project[i].split(""); - arr.splice(8,0,"\n"); - project.push(arr.join("")) - }else{ - project.push(this.project[i]) - } - } - this.option = { - tooltip: { - trigger: "axis", - axisPointer: { - // 坐标轴指示器,坐标轴触发有效 - type: "shadow", // 默认为直线,可选为:'line' | 'shadow' - }, - }, - grid: { - left: "2%", - right: "4%", - bottom: "5%", - top: "25%", - containLabel: true, - }, - legend: { - data: this.legend, - center: 'center', - icon:'circle', - top: 12, - textStyle: { - color: "#c3dbfd", - fontSize:16 - }, - itemWidth: 15, - itemHeight: 15, - itemGap: 35 - }, - xAxis: { - type: "category", - data: project, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#194e92", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:12 - }, - }, - }, - - yAxis: { - name:unit, - type: "value", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: false, - lineStyle: { - color: "#c5d9fc", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - axisLabel: { - show: true, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:12 - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#0c233e", - type: "dashed", - }, - }, - }, - dataZoom: [ - { - xAxisIndex: 0,// 这里是从X轴的0刻度开始 - show: false, // 是否显示滑动条,不影响使用 - type: "slider", // 这个 dataZoom 组件是 slider 型 dataZoom 组件 - startValue: 0, // 从头开始。 - endValue: 2, // 一次性展示多少个。 - }, - ], - series:series - }; - - myChart.setOption(this.option); - window.onresize = myChart.resize; - - var timer_tmp = this.timer_tmp - if(timer_tmp){ - clearInterval(timer_tmp); - } - var app = { - currentIndex: 0, - }; - myChart.dispatchAction({ - type: "highlight", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - // 显示 tooltip - myChart.dispatchAction({ - type: "showTip", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - var dataX = this.project - var that = this - timer_tmp = setInterval(function () { - var dataLen = that.option.series[0].data.length; - if (that.option.dataZoom[0].endValue == dataX.length ) { - that.option.dataZoom[0].endValue = 3; - that.option.dataZoom[0].startValue = 0; - myChart.setOption(that.option); - // 取消之前高亮的图形 - myChart.dispatchAction({ - type: "downplay", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - app.currentIndex = 0 - // 高亮当前图形 - myChart.dispatchAction({ - type: "highlight", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - // 显示 tooltip - myChart.dispatchAction({ - type: "showTip", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - } else { - that.option.dataZoom[0].endValue = that.option.dataZoom[0].endValue + 1; - that.option.dataZoom[0].startValue = that.option.dataZoom[0].startValue + 1; - myChart.setOption(that.option); - // 取消之前高亮的图形 - myChart.dispatchAction({ - type: "downplay", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - app.currentIndex = (app.currentIndex + 1) % dataLen; - //console.log(app.currentIndex) - // 高亮当前图形 - myChart.dispatchAction({ - type: "highlight", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - // 显示 tooltip - myChart.dispatchAction({ - type: "showTip", - seriesIndex: 0, - dataIndex: app.currentIndex, - }); - } - },3000) - - - - }) - }, - }, - watch:{ - project: function (n,o) { - this.init() - } - } -}) diff --git a/yanzhu-bigscreen/src/components-old/safe-china-map.js b/yanzhu-bigscreen/src/components-old/safe-china-map.js deleted file mode 100644 index 8740ef27..00000000 --- a/yanzhu-bigscreen/src/components-old/safe-china-map.js +++ /dev/null @@ -1,261 +0,0 @@ -import Vue from 'vue' -Vue.component("safe-china-map", { - template: ` -
- `, - props: { - data:{ - type:Array - }, - tooltip:{ - type:Array - }, - height:{ - type:Number - }, - item:{ - type:Number - }, - }, - data() { - return { - option:{}, - - } - }, - mounted(){ - this.loadMap(this.data) - window.chartClick = this.chartClick; - }, - methods: { - chartClick(id){ - this.$emit('projectid',id) - }, - loadMap(outdata,tooltip) { - - var normalData = [] - var warningData = [] - var policeData = [] - var newData=[] - for (let i = 0; i 0){ - policeData.push(outdata[i]) - }else { - if(outdata[i].yjCount > 0){ - warningData.push(outdata[i]) - }else{ - normalData.push(outdata[i]) - } - } - } - - normalData.map(x=>{ - x.icon = "image://http://fileimg.makalu.cc/WEB_0FAA4510A66B485BBE1B187349882276.png" - return x - }) - warningData.map(x=>{ - x.icon = "image://http://fileimg.makalu.cc/WEB_A55D931BB10743E49D4FCBFE0D05E25E.png"; - return x - }) - policeData.map(x=>{ - x.icon = "image://http://fileimg.makalu.cc/WEB_F2F136E5B14C4B6E91EDEB9919538815.png"; - return x - }) - - if(normalData.length>0){ - newData.push(normalData) - } - if(warningData.length>0){ - newData.push(warningData) - } - if(policeData.length>0){ - newData.push(policeData) - } - - - - - var series = [ - { - type: 'map', - roam: true, - zoom: 1.15, - map: 'china', //使用 - label: { - normal: { - show: true, - fontSize:14, //省会字体大小 - textStyle: { - color: '#ffffff', - } - }, - emphasis: { - show: false, - color: '#ffffff', //指上省会字体颜色 - } - }, - itemStyle: { - normal: { - areaColor: { - type: "radial", - x: 0.5, - y: 0.5, - r: 0.8, - colorStops: [ - { - offset: 0, - color: "#1c2a4c", // 0% 处的颜色 - }, - { - offset: 1, - color: "#1f335e", // 100% 处的颜色 - }, - ], - globalCoord: true, // 缺省为 false - }, - shadowColor: "rgb(58,115,192)", - borderColor: '#8ac2fb' - }, - // normal: { - // areaColor: '#141e37', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 1, //边线的粗细 - // }, - emphasis: { - areaColor: '#22578b' , //指上背景限色 - textStyle: { - color: '#ffffff', - - } - } - }, - }, - ] - for (let i = 0; i < newData.length ; i++) { - series.push({ - type: 'scatter', //effectScatter 水波纹效果 scatter 无效果 - coordinateSystem: 'geo', - rippleEffect: { - brushType: 'stroke' - }, - showEffectOn: 'render', - itemStyle: { - normal: { - show: false, - } - }, - symbolSize: 35, - symbol: newData[i][0].icon, - data: newData[i], - zlevel: 1, - }) - } - - var myChart = echarts.init(this.$refs.map); - var geoCoordMap = {}; - /*获取地图数据*/ - var mapFeatures = echarts.getMap('china').geoJson.features; - // console.log(mapFeatures) - mapFeatures.forEach(function(v) { - // 地区名称 - var name = v.properties.name; - // 地区经纬度 - geoCoordMap[name] = v.properties.cp; - }); - this.option = { - tooltip: { - show: true, - trigger: "item", - enterable: true, - showContent: true, - padding:0, - triggerOn:'click', - formatter: function(params) { - var tipHtml = '' - if(params.data){ - tipHtml = '
\n' + - '
\n' + - '
\n' + - '
'+params.data.project_abbreviation+'
\n' + - '
\n' + - '
\n' + - '
\n' + - ' \n' + - ' \n' + - ' \n' + - ' \n' + - ' \n' + - ' \n' + - ' \n' + - ' \n' + - ' \n' + - '
\n' + - '
设备数量:'+params.data.total+'
\n' + - '
\n' + - '
监控数量:'+params.data.jkTotal+'
\n' + - '
\n' + - '
预警数量:'+params.data.yjCount+'
\n' + - '
\n' + - '
报警数量:'+params.data.bjCount+'
\n' + - '
\n' + - '
\n' + - '
\n' + - '
'+params.data.address+'
\n' + - '
\n' + - '
\n' + - '
' - return tipHtml - } - }, - }, - geo: { - map: 'china', - show: true, - roam: true, - zoom: 1.17, - label: { - emphasis: { - show: false, - } - }, - layoutSize: "100%", - itemStyle: { - // normal: { - // areaColor: '#000', //背景颜色 - // borderColor: '#8ac2fb', //省划分边线 - // borderWidth: 10, //边线的粗细 - // }, - // emphasis: { - // areaColor: '#002d90' , //指上背景限色 - // }, - areaColor: "#86c2f8", - borderColor: "#86c2f8", - shadowColor: "#86c2f8", - shadowBlur: 25, - borderWidth: 5, - }, - }, - series: series - }; - myChart.setOption(this.option); - - myChart.on('georoam', function(params) { - var option = myChart.getOption(); //获得option对象 - if (params.zoom != null && params.zoom != undefined) { //捕捉到缩放时 - option.geo[0].zoom = option.series[0].zoom+0.02; //下层geo的缩放等级跟着上层的geo一起改变 - option.geo[0].center = option.series[0].center; //下层的geo的中心位置随着上层geo一起改变 - } else { //捕捉到拖曳时 - option.geo[0].center = option.series[0].center; //下层的geo的中心位置随着上层geo一起改变 - } - myChart.setOption(option); //设置option - }); - }, - - }, - watch: { - data: function (n,o) { - this.loadMap(this.data) - window.chartClick = this.chartClick; - } - }, -}) diff --git a/yanzhu-bigscreen/src/components-old/safe-curve-chart.js b/yanzhu-bigscreen/src/components-old/safe-curve-chart.js deleted file mode 100644 index 5b63cc26..00000000 --- a/yanzhu-bigscreen/src/components-old/safe-curve-chart.js +++ /dev/null @@ -1,220 +0,0 @@ -import Vue from 'vue' -Vue.component("safe-curve-chart", { - template: ` -
- -
- `, - props: { - height:{ - type: Number, - }, - momentdata:{ - type: Object, - } - }, - data() { - return { - - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.momentCurveChart(this.momentdata) - }, - momentCurveChart(data){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var myChart = echarts.init(this.$refs.chart); - var color = '#20bc00' - /* if(data.state == 1){ - color = '#ff9600' - }*/ - var Xmax = Math.max.apply(null,data.dataX); - var Ymax = Math.max.apply(null,data.dataY); - - - let option = { - tooltip: { - position: "top", - formatter: function (params) { - var fd = params.data[0]; - var dz = params.data[1] - res = '
' + - '
幅度:'+fd+' m
' + - '
吊重:'+dz+' t
' + - '
' - return res - }, - }, - grid: { - top: "20%", - right: "15%", - left: "4%", - bottom: "5%", - containLabel: true - }, - xAxis: [ - { - type: "value", - name:'幅度/m', - max:60, - nameTextStyle: { - color: "#c5d9fc", - fontSize:14, - }, - splitLine: { - //去除网格线 - show: false, - }, - axisTick: { show: false }, - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:16 - }, - }, - - }, - { - type: "category", - boundaryGap: false, - position: "bottom", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#194e92", - type: "dashed", - }, - }, - axisLabel: { - show: false, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:16 - }, - }, - data: data.dataX, - }, - ], - yAxis: [ - { - name:'吊重/t', - nameTextStyle: { - color: "#c5d9fc", - fontSize:14, - }, - max:Ymax+1, - type: "value", - splitNumber: 7, - splitLine: { - show: false, - }, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#194e92", - type: "dashed", - }, - }, - axisLabel: { - margin: 20, - textStyle: { - color: "#c5d9fc", - fontSize:16 - }, - }, - axisTick: { show: false }, - }, - ], - series: [ - { - name: "吊重", - type: "effectScatter", - rippleEffect:{ // 设置涟漪动画样式 - color:'purple', // 涟漪颜色,默认为散点自身颜色 - brushType:'fill', // 动画方式,全填充或只有线条,'stroke' 'fill' - period:2, //动画周期 - scale:'3', //涟漪规模 - }, - xAxisIndex: 0, - yAxisIndex: 0, - symbolSize:15, //散点的固定大小 - /*label: { - emphasis: { - show: true, - position: "right", - textStyle: { - color: color, - fontSize: 20, - - }, - }, - },*/ - itemStyle: { - color: color, - - }, - data: data.point, - }, - { - type: "line", - symbol: "none", - smooth: true, - xAxisIndex: 1, - yAxisIndex: 0, - lineStyle: { - normal: { - width: 3, - color: "#5968db", // 线条颜色 - }, - }, - areaStyle: { - //区域填充样式 - normal: { - //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。 - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { offset: 0, color: "rgb(25,43,115,0.9)" }, - { offset: 0.7, color: "rgba(25,43,115, 0)" }, - ], - false - ), - - shadowColor: "rgba(25,43,115, 1)", //阴影颜色 - }, - }, - data: data.dataY, - }, - ], - }; - - myChart.setOption(option); - window.onresize = myChart.resize; - }) - }, - }, - watch:{ - momentdata: function (n,o) { - this.init(); - } - }, - -}) - diff --git a/yanzhu-bigscreen/src/components-old/safe-monitor-data.js b/yanzhu-bigscreen/src/components-old/safe-monitor-data.js deleted file mode 100644 index 2d2760f8..00000000 --- a/yanzhu-bigscreen/src/components-old/safe-monitor-data.js +++ /dev/null @@ -1,160 +0,0 @@ -import Vue from 'vue' -Vue.component("safe-monitor-data", { - template: ` -
-
-
{{data.police}}
-
预警 {{data.warning}}
-
{{data.min}}
-
- -
-
-
-
-
-
-
-
{{data.data}} {{data.unit}}
-
-
- `, - props: { - data:{ - type: Object, - }, - }, - data() { - return { - speed:{}, - max_i:0, - warning_top:0 - } - }, - mounted(){ - this.getSpeed() - }, - methods: { - getClass(i){ - var speed = this.data - if(isNaN(speed.min)){ - speed.min = 0; - } - if(isNaN(speed.police)){ - speed.police = 0; - } - if(isNaN(speed.warning)){ - speed.warning = 0; - } - if(isNaN(speed.data) || speed.data == undefined){ - speed.data = 0; - } - var data = speed.data - if(data >= 0 || speed.type == 'heightData'){ - if(data < speed.warning){ - if((10 - i) <= this.max_i){ - return 'activation' - } - }else if(data >= speed.police){ - if((10 - i) <= this.max_i){ - return 'police' - } - }else { - if((10 - i) <= this.max_i){ - return 'warning' - } - } - }else{ - if(data > speed.warning){ - if( i < this.max_i){ - return 'activation' - } - }else if(data <= speed.min){ - if( i < this.max_i){ - return 'police' - } - }else { - if( i < this.max_i){ - return 'warning' - } - } - } - return '' - }, - getDataClass(){ - var speed = this.data - if(isNaN(speed.min)){ - speed.min = 0; - } - if(isNaN(speed.police)){ - speed.police = 0; - } - if(isNaN(speed.warning)){ - speed.warning = 0; - } - if(isNaN(speed.data) || speed.data == undefined){ - speed.data = 0; - } - var data = speed.data - if(data >= 0 || speed.type == 'heightData'){ - if(data >= speed.warning && data < speed.police){ - return 'monitor-data warning-data' - }else if(data >= speed.police){ - return 'monitor-data police-data' - } - }else{ - if(data <= speed.warning && data > speed.min){ - return 'monitor-data warning-data' - }else if(data <= speed.min){ - return 'monitor-data police-data' - }else { - - } - } - return 'monitor-data' - }, - getSpeed(){ - var speed = this.data - if(isNaN(speed.min)){ - speed.min = 0; - } - if(isNaN(speed.police)){ - speed.police = 0; - } - if(isNaN(speed.warning)){ - speed.warning = 0; - } - if(isNaN(speed.data) || speed.data == undefined){ - speed.data = 0; - } - - if(speed.data >= 0 || speed.type == 'heightData'){ - this.speed = speed - }else{ - let tmp = -speed.min - speed.min = -speed.police - speed.warning = -speed.warning - speed.police = tmp - this.speed = speed - } - var data = speed.data - if(data >= 0 || speed.type == 'heightData'){ - let data_prop = (data - speed.min) / (speed.police - speed.min) - this.max_i = Math.ceil(data_prop*10) - let warning_prop = (speed.warning - speed.min) / (speed.police - speed.min) - this.warning_top = Math.ceil(warning_prop*10) - }else{ - let data_prop = (data - speed.police) / (speed.min - speed.police ) - this.max_i = Math.ceil(data_prop*10) - let warning_prop = (speed.warning - speed.police) / (speed.min - speed.police ) - this.warning_top = Math.ceil(warning_prop*10) - } - - } - }, - watch:{ - data: function (n,o) { - this.getSpeed(); - }, - } -}) diff --git a/yanzhu-bigscreen/src/components-old/screen-foot.js b/yanzhu-bigscreen/src/components-old/screen-foot.js deleted file mode 100644 index e7f8e68b..00000000 --- a/yanzhu-bigscreen/src/components-old/screen-foot.js +++ /dev/null @@ -1,113 +0,0 @@ -import Vue from 'vue' -Vue.component("screen-foot", { - template: ` -
-
-
-
- - -
-
- -
-
-
-
{{item.text}}
-
-
-
-
- -
-
-
-
-
-
- `, - props: { - data:{ - type:Array - } - }, - data() { - return { - bottom:false, - width:0, - index:2, - active:0, - length: 0, - interval:undefined, - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.divWidth(); - var that = this - //this.interval = setInterval(that.timer,600000); - }, - footMouseover(){ - let bottom = this.$refs.foot - if(this.bottom == false){ - bottom.style.bottom = 0 - this.bottom =true - } - }, - footMouseout(){ - let bottom = this.$refs.foot - if(this.bottom == true){ - bottom.style.bottom = -90+'px' - this.bottom =false - } - }, - divWidth(){ - var width = this.data.length * 250 - this.width = width - this.length =this.data.length - }, - leftClick(){ - let slider = this.$refs.tabs - if(slider.style.left == '500px'){ - - }else{ - this.index = this.index+1 - this.active = this.active-1 - } - this.$emit('indexes',this.active); - }, - rightClick(){ - let slider = this.$refs.tabs - if(slider.style.left == -(this.length - 3)*250+'px'){ - - }else{ - this.index = this.index-1 - this.active = this.active+1 - } - this.$emit('indexes',this.active); - }, - footTabs(i){ - this.active = i - this.index = 2 - i; - this.$emit('indexes',this.active); - }, - timer(){ - let slider = this.$refs.tabs - if(slider.style.left == -(this.length - 3)*250+'px'){ - this.index = 2 - this.active = 0 - }else{ - this.index = this.index - 1 - this.active = 2 - this.index - } - this.$emit('indexes',this.active); - } - }, - watch:{ - - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/screen-select.js b/yanzhu-bigscreen/src/components-old/screen-select.js deleted file mode 100644 index 3455cabf..00000000 --- a/yanzhu-bigscreen/src/components-old/screen-select.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 顶部header - */ -Vue.component("screen-select", { - template: ` -
-
- -
-
- -
- -
    -
  • {{item.text}}
  • -
-
-
- `, - props: { - data:{ - type:Array - }, - def:{ - type:Object - }, - type:{ - type:Number, - default:0 - } - }, - data() { - return { - show:false, - value:'' - } - }, - mounted(){ - if(this.def){ - this.value = this.def.text - } - }, - methods: { - clickSelectInput(){ - this.show = true - }, - clickSelectOption(item){ - this.value = item.text - this.$emit('option',item); - this.show = false - }, - hideSelectOption(){ - this.show = false - } - }, - watch:{ - def:function (n,o) { - this.value = n.text - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/screen-table.js b/yanzhu-bigscreen/src/components-old/screen-table.js deleted file mode 100644 index fd2398ec..00000000 --- a/yanzhu-bigscreen/src/components-old/screen-table.js +++ /dev/null @@ -1,97 +0,0 @@ -import Vue from 'vue' -Vue.component("screen-table", { - template: ` -
- - - - - -
- `, - props: { - height:{ - type:Number - }, - data: { - type: Object, - } - }, - data() { - return { - interval: '', - srcList:[] - } - }, - mounted() { - this.init() - }, - methods: { - init() { - //表格定时器 - this.interval = setInterval(this.scroll, 50); - }, - onRowData(row){ - this.$emit('item',row); - }, - onSrcList(src,row){ - this.srcList = [src] - }, - // 表格隔行变色 - tableRowClassName({row, rowIndex}) { - if (rowIndex % 2 === 0) { - return 'warning-row' //这是类名 - } else { - return '' - } - }, - //左边信息表 - scroll() { - let maxHeight = this.$refs.pxjy.$el.querySelectorAll('.el-table__body')[0].offsetHeight; - let clientHeight = this.$refs.pxjy.bodyWrapper.clientHeight; - if (Math.abs(this.$refs.pxjy.bodyWrapper.scrollTop - (maxHeight - clientHeight)) < 5) { //预留5像素误差 - this.$refs.pxjy.bodyWrapper.scrollTop = 0; - } else { - this.$refs.pxjy.bodyWrapper.scrollTop += 1;//32是每一行表格的高度,每秒滚一行 - } - } - , - MouseEnter() {//鼠标移入停止滚动 - clearInterval(this.interval); - } - , - MouseLeave() {//鼠标离开继续滚动 - this.interval = setInterval(this.scroll, 50); - }, - onClickPoint(n) { - this.btnNav = n; - }, - - - - }, - watch:{ - data:function () { - clearInterval(this.interval); - this.init() - }, - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/staff-survey-chart.js b/yanzhu-bigscreen/src/components-old/staff-survey-chart.js deleted file mode 100644 index a6e01a6b..00000000 --- a/yanzhu-bigscreen/src/components-old/staff-survey-chart.js +++ /dev/null @@ -1,228 +0,0 @@ -import Vue from 'vue' -Vue.component("staff-survey-chart", { - template: ` -
- `, - props: { - height:{ - type:Number - }, - data:{ - type:Array - }, - width:{ - type:Number - }, - max:{ - type:Number - }, - unit: { - type:String - } - - }, - data() { - return { - - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - chartClick(p){ - this.$emit("chart-click",p); - }, - getChartData(){ - //品类金额占比 饼图 - var chChart = echarts.init(this.$refs.chart); - chChart.on("click",this.chartClick) - this.echart(chChart,this.data) - }, - echart(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - var value = [] - var text = [] - var bgData = [] - var total = 0 - for (let i = 0; i < chartData.length; i++) { - value.push(chartData[i].value) - text.push(chartData[i].text) - bgData.push(100) - if(this.max){ - total = this.max - }else{ - total += chartData[i].value - } - } - - var prop = [] - for (let j = 0; j < value.length; j++) { - if(total == 0){ - prop.push(0) - }else{ - prop.push((value[j]/total * 100).toFixed(1)) - } - } - - var unit = '人' - if(this.unit){ - unit = this.unit - } - - - this.option = { - grid: { - left: "5%", - right: "5%", - bottom: "0%", - top: "0%", - containLabel: true, - }, - xAxis: [{ - show: false, - }, - //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉 - { - show: false, - } - ], - yAxis: [ - { - triggerEvent:true, - type: 'category', - axisLabel: { - show: false, //让Y轴数据不显示 - }, - itemStyle: { - - }, - axisTick: { - show: false, //隐藏Y轴刻度 - }, - axisLine: { - show: false, //隐藏Y轴线段 - }, - data: [], - },{ - triggerEvent:true, - show: false, - data: [], - axisLine: { - show: false - } - }], - series: [ - //数据条--------------------我是分割线君------------------------------// - { - show: true, - type: 'bar', - xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!! - barGap: '-100%', - barWidth: '6', //统计条宽度 - itemStyle: { - normal: { - color: 'rgba(22,203,115,0.05)' - }, - }, - label: { - normal: { - show: true, - //label 的position位置可以是top bottom left,right,也可以是固定值 - //在这里需要上下统一对齐,所以用固定值 - position: [0, '-25'], - rich: { //富文本 - prop: { //自定义颜色 - color: '#c6d9fa', - fontSize:'14', - }, - unit:{ - color: '#6c829a', - fontSize:'12', - }, - yes:{ - color: '#55adf7', - fontSize:'14', - }, - not:{ - color: '#4677fa', - fontSize:'14', - }, - index:{ - color: '#fcbc02', - fontStyle: 'italic', - padding:[0,0,0,5], - fontSize:'14', - }, - name: { - width: this.width, - color: '#c6d9fa', - padding:[0,0,0,10], - fontSize:'14', - }, - color:{ - color: '#8ca2be', - fontSize:'14', - }, - arrow:{ - width:12, - height:8, - backgroundColor: { - image: "/cdn/images/WEB_2B7C06210CD44D55BFEE6205A35DE4A7.png", - }, - }, - - }, - formatter: (data)=>{ - //富文本固定格式{colorName|这里填你想要写的内容} - //return '{arrow|}' - return '{arrow|}{name|' + text[data.dataIndex] + '}{prop|' + value[data.dataIndex] + '}{color| '+unit+'} {prop|'+prop[data.dataIndex]+'}{color| %} '; - }, - } - }, - data: bgData, - }, - { - type: "bar", - zlevel: 1, - itemStyle: { - normal: { - color: "#6ab9fe", - }, - }, - barWidth: 8, - data: prop, - }, - { - type: "bar", - barWidth: 8, - barGap: "-100%", - data: bgData, - itemStyle: { - normal: { - color: "rgba(24,31,68,1)", - }, - }, - }, - ], - }; - - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - data: function (n,o) { - this.getChartData() - } - } -}) diff --git a/yanzhu-bigscreen/src/components-old/technical-disclosure-chart.js b/yanzhu-bigscreen/src/components-old/technical-disclosure-chart.js deleted file mode 100644 index 5c458060..00000000 --- a/yanzhu-bigscreen/src/components-old/technical-disclosure-chart.js +++ /dev/null @@ -1,94 +0,0 @@ -import Vue from 'vue' -Vue.component("technical-disclosure-chart", { - template: ` -
-
-
-
{{item.name}}
-
- {{item.value}} - {{item.prop}} % -
-
-
-
-
-
-
- `, - props: { - height:{ - type: Number, - }, - datas:{ - type:Array - }, - number:{ - type: Number, - }, - - }, - data() { - return { - interval: '', - index:0, - listData:[], - num:0 - } - }, - mounted() { - this.init() - }, - methods: { - init() { - this.getListDataChart() - //计划时间 - this.interval = setInterval(this.scroll, 3000); - }, - getListDataChart(){ - if(this.datas.length>0){ - var data = this.datas - var arr = [] - for(let i = 0;i< data.length;i++){ - arr.push(data[i].value) - } - var max = Math.max(...arr) - data.map(x => { - x.prop =((x.value / max ) * 100) .toFixed(2) - return x - }) - this.listData = data - } - }, - - scroll() { - const height = $('.technical-disclosure-for').innerHeight() - let n = this.number ? this.number:0; - if(this.index == this.listData.length - n){ - this.$refs.list.scrollTop = 0 - this.index = 1 - }else{ - this.index+=1 - } - $(this.$refs.list).animate({scrollTop:(height * this.index)+'px'}) - }, - - - mouseEnter() {//鼠标移入停止滚动 - clearInterval(this.interval); - }, - mouseLeave() {//鼠标离开继续滚动 - this.interval = setInterval(this.scroll, 3000); - }, - onChart(item){ - this.$emit('value',item); - } - }, - - watch:{ - datas:function () { - this.getListDataChart() - } - }, - -}) diff --git a/yanzhu-bigscreen/src/components-old/time-study-chart.js b/yanzhu-bigscreen/src/components-old/time-study-chart.js deleted file mode 100644 index c8246aa0..00000000 --- a/yanzhu-bigscreen/src/components-old/time-study-chart.js +++ /dev/null @@ -1,163 +0,0 @@ -import Vue from 'vue' -Vue.component("time-study-chart", { - template: ` -
- `, - props: { - height:{ - type:Number - }, - data:{ - type:Object - } - }, - data() { - return { - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - //分类及工时情况 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart); - this.echartBar(chChartBar,this.data) - }, - echartBar(chChart,data){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - this.option = { - grid: { - top:'10%', - left: "2%", - right: "0%", - bottom: "0%", - containLabel: true, - }, - tooltip: { - trigger: "axis", - formatter: function (params) { - return (params[0].seriesName+"
" - +params[0].name +":"+ params[0].data + "%") - }, - }, - xAxis: { - type: "category", - data: data.xAxis, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:12 - }, - }, - }, - yAxis: { - type: "value", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: false, - lineStyle: { - color: "#c5d9fc", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - axisLabel: { - show: true, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:12 - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - }, - series: [ - { - name: data.seriesName, - type: "pictorialBar", - barCategoryGap: "0%", - label: { - normal: { - show: true, - position: "top", - color:"#fff" - }, - }, - //symbol: 'path://M0,10 L10,10 L5,0 L0,10 z', - symbol: "path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z", - - - itemStyle: { - normal: { - color: { - type: "linear", - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0, - color: "rgba(15,133,224,0.2)", // 0% 处的颜色 - }, - { - offset: 0.9, - color: "rgba(15,133,224,0.8)", // 100% 处的颜色 - }, - ], - global: false, // 缺省为 false - }, - }, - emphasis: { - opacity: 1, - }, - }, - data: data.data, - z: 10, - }, - ], - }; - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - data: function (n,o) { - this.init() - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/tower-crane-value-1.js b/yanzhu-bigscreen/src/components-old/tower-crane-value-1.js deleted file mode 100644 index 3306b408..00000000 --- a/yanzhu-bigscreen/src/components-old/tower-crane-value-1.js +++ /dev/null @@ -1,183 +0,0 @@ -/** - * 顶部header - */ -Vue.component("tower-crane-value-1", { - template: ` -
-
- -
-
- - -
-

塔身高度

-
0 m
-
-
-

当前吊重

-
0 t
-
-
-

当前回转

-
0 °
-
-
-

当前幅度

-
m
-
-
- -
- -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-

水平倾角

-
0 °
-
-
-

垂直倾角

-
0 °
-
-
-

重量百分比

-
0 %
-
-
-

力矩百分比

-
%
-
-
-
-
-
- - `, - props: { - value:{ - type:Object - }, - width:{ - type:Number - }, - height:{ - type:Number - }, - top:{ - type:Number - }, - left:{ - type:Number - }, - tHeight:{ - type:String - }, - tLoad:{ - type:String - }, - tRotation:{ - type:String - }, - tRange:{ - type:String - }, - tLeanAngleX:{ - type:String - }, - tLeanAngleY:{ - type:String - }, - tLoadPercent:{ - type:String - }, - tMomentPercent:{ - type:String - }, - }, - data() { - return { - - } - }, - mounted(){ - //this.animation() - }, - methods: { - animation(){ - var leftValue = this.tRange //幅度 - var brachium = this.value.frontBrachium //臂长 //定制 - - leftValue = leftValue < 0 ? 0 : leftValue - var left = leftValue / brachium * 100 - - var heightValue = this.tHeight //高度 - var towerHeight = this.towerBodyHeight //塔身高度 - - var height = (towerHeight - heightValue) * this.height / towerHeight - height = height > this.height ? this.height : height - - var value = Number(this.tLeanAngleX) //角度 - var degValue = -value - setTimeout(function () { - $("#slider").animate({left:left+'%'},1000); - $("#dot").animate({left:left+'%'},1000); - $("#needle").css("transform","rotate("+degValue+"deg)") - setTimeout(function () { - $("#towrope").animate({height:height+'px'},1000); - },1000) - },1000) - }, - }, - watch:{ - value:function () { - this.animation() - }, - tHeight:function () { - this.animation() - }, - tLoad:function () { - this.animation() - }, - tRotation:function () { - this.animation() - }, - tRange:function () { - this.animation() - }, - tLeanAngleX:function () { - this.animation() - }, - tLeanAngleY:function () { - this.animation() - }, - tLoadPercent:function () { - this.animation() - }, - tMomentPercent:function () { - this.animation() - }, - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/tower-crane-value-2.js b/yanzhu-bigscreen/src/components-old/tower-crane-value-2.js deleted file mode 100644 index 3a4954a8..00000000 --- a/yanzhu-bigscreen/src/components-old/tower-crane-value-2.js +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 顶部header - */ -Vue.component("tower-crane-value-2", { - template: ` -
-
- -
-
- - -
-

后臂长

-
0 m
-
-
-

前臂长

-
0 m
-
-
-

塔身高

-
0 m
-
-
-

功率

-
kw
-
-
- -
- -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-

力矩比

-
0 %
-
-
-

安全吊重

-
0 t
-
-
-

进场时间

-
0
-
-
-

扶墙高度

-
-
-
-
-
-
- - `, - props: { - value:{ - type:Object - }, - width:{ - type:Number - }, - height:{ - type:Number - }, - top:{ - type:Number - }, - left:{ - type:Number - }, - ampdata:{ - type:Number - }, - forearmlength:{ - type:Number - }, - heightdata:{ - type:Number - }, - downheight:{ - type:Number - }, - angledata:{ - type:Number - }, - }, - data() { - return { - - } - }, - mounted(){ - this.animation() - }, - methods: { - animation(){ - var leftValue = this.ampdata //幅度 - var brachium = this.forearmlength //臂长 //定制 - - leftValue = leftValue < 0 ? 0 : leftValue - var left = leftValue / brachium * 100 - - - - var heightValue = this.heightdata //高度 - var towerHeight = this.downheight //塔身高度 - - var height = (towerHeight - heightValue) * this.height / towerHeight - height = height > this.height ? this.height : height - - var value = Number(this.angledata) //角度 - var degValue = -value - setTimeout(function () { - $("#slider").animate({left:left+'%'},1000); - $("#dot").animate({left:left+'%'},1000); - $("#needle").css("transform","rotate("+degValue+"deg)") - setTimeout(function () { - $("#towrope").animate({height:height+'px'},1000); - },1000) - },1000) - - }, - }, - watch:{ - ampdata:function () { - this.animation() - }, - forearmlength:function () { - this.animation() - }, - heightdata:function () { - this.animation() - }, - downheight:function () { - this.animation() - }, - angledata:function () { - this.animation() - }, - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/trend-chart-line.js b/yanzhu-bigscreen/src/components-old/trend-chart-line.js deleted file mode 100644 index ebfd03dd..00000000 --- a/yanzhu-bigscreen/src/components-old/trend-chart-line.js +++ /dev/null @@ -1,169 +0,0 @@ -import Vue from 'vue' -Vue.component("trend-chart-line", { - template: ` -
- -
- `, - props: { - data:{ - type:Object - }, - height:{ - type:Number - }, - }, - data() { - return { - classData:[], - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.chart); - this.echartPie(chChartPie,this.data) - }, - echartPie(chChart,data){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var series = [] - if(data && data.lineData){ - for (let i = 0; i < data.lineData.length; i++) { - series.push({ - name: data.legend[i], - type: "line", - smooth: true, - symbol: "circle", - symbolSize: 5, - showSymbol: false, - lineStyle: { - normal: { - width: 2, - }, - }, - itemStyle: { - normal: { - color: data.color[i], - borderWidth: 5, - }, - }, - data: data.lineData[i], - },) - } - } - - var unit = '' - if(data.unit){ - unit = '单位:'+data.unit - } - - this.option = { - tooltip: { - trigger: "axis", - axisPointer: { - lineStyle: { - color: "#57617B", - }, - }, - }, - legend: { - icon: "rect", - itemWidth: 14, - itemHeight: 10, - itemGap: 15, - data: data.legend, - top: -5, - textStyle: { - fontSize: 14, - color: "#c8dbfc", - }, - }, - grid: { - top:'15%', - left: "2%", - right: "3%", - bottom: "2%", - containLabel: true, - }, - xAxis: { - boundaryGap: false, - type: "category", - data: data.date, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:14 - }, - }, - }, - yAxis: { - name: unit, - type: "value", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: false, - lineStyle: { - color: "#c5d9fc", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - axisLabel: { - show: true, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:14 - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - }, - series: series - - }; - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - data: function (n,o) { - this.getChartData() - } - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/trend-line-chart.js b/yanzhu-bigscreen/src/components-old/trend-line-chart.js deleted file mode 100644 index 9d65924f..00000000 --- a/yanzhu-bigscreen/src/components-old/trend-line-chart.js +++ /dev/null @@ -1,173 +0,0 @@ -import Vue from 'vue' -Vue.component("trend-line-chart", { - template: ` -
- -
- `, - props: { - chartdata:{ - type:Object - }, - height:{ - type:Number - }, - data:{ - type:Array - }, - fn:{ - type:Function - } - }, - data() { - return { - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var myChart = echarts.init(this.$refs.chart); - this.echartPie(myChart,this.chartdata) - }, - echartPie(myChart,data){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var series =[] - if(data && data.data){ - for (let i = 0; i < data.data.length; i++) { - series.push({ - name:data.legend[i], - type: "line", - smooth: true, - symbol: "circle", - symbolSize: 5, - showSymbol: true, - lineStyle: { - normal: { - width: 2, - }, - }, - data: data.data[i], - }) - } - } - var unit = '' - if(data.unit){ - unit = '单位:'+data.unit - } - - this.option = { - color : data.color, - dataZoom:[ - {show:true,type:'slider'}, - {type:'inside'} - ], - tooltip: { - trigger: "axis", - axisPointer: { - lineStyle: { - color: "#57617B", - }, - }, - }, - grid: { - top:'15%', - left: "1%", - right: "3%", - bottom: "1%", - containLabel: true, - }, - xAxis: { - type: "category", - boundaryGap: false, - data: data.dataX, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:16 - }, - }, - }, - yAxis: { - name:unit, - nameTextStyle: { - color: '#fff', - fontSize: 14, - }, - type: "value", - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: false, - lineStyle: { - color: "#c5d9fc", - type: "dashed", - }, - }, - axisTick: { - show: false - }, - axisLabel: { - show: true, - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#c5d9fc", - margin: 20, - fontSize:16 - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#25597e", - type: "dashed", - }, - }, - }, - series: series - }; - if(this.fn){ - this.option=this.fn(this.option); - } - myChart.setOption(this.option,true); - window.onresize = myChart.resize; - }) - }, - }, - watch:{ - /*chartdata: { - deep:true, - handler: function (val, oldVal){ - this.init() - } - },*/ - data: function (val, oldVal){ - this.init() - } - - } - -}) diff --git a/yanzhu-bigscreen/src/components-old/warning-pie-chart.js b/yanzhu-bigscreen/src/components-old/warning-pie-chart.js deleted file mode 100644 index c2925968..00000000 --- a/yanzhu-bigscreen/src/components-old/warning-pie-chart.js +++ /dev/null @@ -1,179 +0,0 @@ -import Vue from 'vue' -Vue.component("warning-pie-chart", { - template: ` -
-
- -
-
-
- - `, - props: { - typedata:{ - type: Array, - }, - height:{ - type:Number - } - }, - data() { - return { - active:0, - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - - var chChartPie = echarts.init(this.$refs.warningPieChart); - this.echartPie(chChartPie,this.typedata) - }, - echartPie(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var total_datas = 0; - var data = []; - var legendData = []; - var color = ['#4474fa','#52aef7','#2075ae'] - for (let i = 0; i { - return a + b.value; - }, 0);*/ - this.option = { - title: { - text: total_datas, - subtext: "台", - x: "center", - y: "80", - textStyle: { - color: "#0dd2fd", - fontSize: 28, - fontWeight: "normal", - align: "center", - width: "200px", - }, - subtextStyle: { - color: "#a5b5f0", - fontSize: 16, - fontWeight: "normal", - align: "center", - }, - }, - tooltip: { - trigger: 'item', - formatter: "{b}
{c} ({d}%)" - }, - legend: { - width:'100%', - left: "center", - right: "0", - bottom: "5", - //icon: "circle", - itemWidth: 15, - itemGap:35, - textStyle: { - fontSize: 14, - rich: { - name: { - color: "#c3dbfd", - padding: [10, 5, 30, 5], - // align: 'right' - // width: 60 - }, - percent: { - color: "#18DB9F", - fontSize: 16, - padding: [0, 5, 0, 5], - // align: 'right' - }, - }, - }, - formatter: function (name) { - let res = chartData.filter((v) => v.name === name); - let percent = ((res[0].value * 100) / total_datas).toFixed(2); - return "{name| " + name + "}\n{percent|" + res[0].value + "}{percent|" + percent + "%}"; - }, - }, - series: [ - { - name: "品类金额占比", - type: "pie", - center: ["50%", "40%"], - radius: ["42%", "60%"], - data: data, - label: { - show: false, - }, - itemStyle: { - normal: { - borderWidth: 5, - borderColor: "#051a36" - } - }, - - }, - { - name: "外边框", - type: "pie", - clockWise: false, //顺时加载 - hoverAnimation: false, //鼠标移入变大 - center: ["50%", "40%"], - radius: ["66%", "66%"], - label: { - normal: { - show: false, - }, - }, - data: [ - { - value: 9, - name: "", - itemStyle: { - normal: { - borderWidth: 3, - borderColor: "#152c65", - }, - }, - }, - ], - }, - ], - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - data: function (n,o) { - this.init() - } - } -}) diff --git a/yanzhu-bigscreen/src/components-old/work-prop-chart-bar.js b/yanzhu-bigscreen/src/components-old/work-prop-chart-bar.js deleted file mode 100644 index 682a3831..00000000 --- a/yanzhu-bigscreen/src/components-old/work-prop-chart-bar.js +++ /dev/null @@ -1,283 +0,0 @@ -import Vue from 'vue' -Vue.component("work-prop-chart-bar", { - template: ` -
- `, - props: { - data:{ - type:Array - }, - height:{ - type:Number - } - }, - data() { - return { - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - //分类及工时情况 - getChartData(){ - var chChartBar = echarts.init(this.$refs.chart); - this.echartBar(chChartBar,this.data) - }, - echartBar(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - - - var value = []; - var prop = []; - var text = []; - var zero = [] - - var total = 0 - for (let i = chartData.length-1; i >=0; i--) { - total += chartData[i].value; - value.push(chartData[i].value) - prop.push(chartData[i].prop) - text.push(chartData[i].text) - zero.push(0) - } - - - var data = [] - var data_all = new Array(prop.length) - for (let i = 0; i -
- -
-
- - - `, - props: { - typedata:{ - type: Array, - }, - height:{ - type:Number - } - }, - data() { - return { - active:0, - option:{} - } - }, - mounted(){ - this.init() - }, - methods: { - init(){ - this.getChartData() - }, - getChartData(){ - //品类金额占比 饼图 - var chChartPie = echarts.init(this.$refs.warningPieChart); - this.echartPie(chChartPie,this.typedata) - }, - echartPie(chChart,chartData){ - let newPromise = new Promise((resolve) => { - resolve() - }) - - //然后异步执行echarts的初始化函数 - newPromise.then(() => { - var total_datas = 0; - var data = []; - var legendData = []; - var color = ['#4974ff','#52aef7','#6863d7','#1d5d89','#20e6ff','#67feef'] - for (let i = 0; i { - return a + b.value; - }, 0);*/ - this.option = { - title: { - text: total_datas, - subtext: "总人数", - x: "center", - y: "113", - textStyle: { - color: "#0dd2fd", - fontSize: 26, - fontWeight: "normal", - align: "center", - width: "200px", - }, - subtextStyle: { - color: "#a5b5f0", - fontSize: 14, - fontWeight: "normal", - align: "center", - }, - }, - tooltip: { - trigger: 'item', - formatter: "{b}
{c} ({d}%)" - }, - series: [ - { - name: "品类金额占比", - type: "pie", - center: ["50%", "50%"], - radius: ["53%", "70%"], - data: data, - label: { - show: false, - }, - itemStyle: { - normal: { - borderWidth: 5, - borderColor: "#051a36" - } - }, - - }, - { - name: "外边框", - type: "pie", - clockWise: false, //顺时加载 - hoverAnimation: false, //鼠标移入变大 - center: ["50%", "50%"], - radius: ["78%", "78%"], - label: { - normal: { - show: false, - }, - }, - data: [ - { - value: 9, - name: "", - itemStyle: { - normal: { - borderWidth: 3, - borderColor: "#152c65", - }, - }, - }, - ], - }, - ], - } - chChart.setOption(this.option); - window.onresize = chChart.resize; - }) - }, - }, - watch:{ - typedata: function (n,o) { - this.init() - } - } -}) diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 5a6944c6..8b5f1f6f 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -240,6 +240,8 @@ export default { ]; } this.showMenus = objs; + this.$root.showMenus=objs; + this.$bus.$emit("getMenus",objs) this.showMenusNavIds = this.showMenus.map((d) => d.navId); let tmps = this.showMenusNavIds.filter((item) => [1, 2, 3, 4, 5, 6, 7].includes(+item)); if (!tmps.includes(2) && !this.showMenusNavIds.includes("" + this.nav)) { diff --git a/yanzhu-bigscreen/src/pages-old/components/AttendanceDetailDialog.vue b/yanzhu-bigscreen/src/pages-old/components/AttendanceDetailDialog.vue deleted file mode 100644 index 89edb783..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/AttendanceDetailDialog.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/BorderBox1.vue b/yanzhu-bigscreen/src/pages-old/components/BorderBox1.vue deleted file mode 100644 index 9bd3cf22..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/BorderBox1.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/BorderBox2.vue b/yanzhu-bigscreen/src/pages-old/components/BorderBox2.vue deleted file mode 100644 index 9c23948b..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/BorderBox2.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/BorderBox3.vue b/yanzhu-bigscreen/src/pages-old/components/BorderBox3.vue deleted file mode 100644 index 0b3bb59a..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/BorderBox3.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/BorderBox4.vue b/yanzhu-bigscreen/src/pages-old/components/BorderBox4.vue deleted file mode 100644 index dc356e10..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/BorderBox4.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/BorderBox5.vue b/yanzhu-bigscreen/src/pages-old/components/BorderBox5.vue deleted file mode 100644 index 7b11ac20..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/BorderBox5.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/BorderBox6.vue b/yanzhu-bigscreen/src/pages-old/components/BorderBox6.vue deleted file mode 100644 index f2c05842..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/BorderBox6.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/ImagePreview.vue b/yanzhu-bigscreen/src/pages-old/components/ImagePreview.vue deleted file mode 100644 index f219905d..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/ImagePreview.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/JobWorkerDialog.vue b/yanzhu-bigscreen/src/pages-old/components/JobWorkerDialog.vue deleted file mode 100644 index 4d2d4054..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/JobWorkerDialog.vue +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/ProblemmodifyDetail.vue b/yanzhu-bigscreen/src/pages-old/components/ProblemmodifyDetail.vue deleted file mode 100644 index 103b42c3..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/ProblemmodifyDetail.vue +++ /dev/null @@ -1,443 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/components/ProblemmodifyList.vue b/yanzhu-bigscreen/src/pages-old/components/ProblemmodifyList.vue deleted file mode 100644 index 42938683..00000000 --- a/yanzhu-bigscreen/src/pages-old/components/ProblemmodifyList.vue +++ /dev/null @@ -1,354 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/detail/mapModle.vue b/yanzhu-bigscreen/src/pages-old/detail/mapModle.vue deleted file mode 100644 index 03e51289..00000000 --- a/yanzhu-bigscreen/src/pages-old/detail/mapModle.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/detail/projectInfoDlg.vue b/yanzhu-bigscreen/src/pages-old/detail/projectInfoDlg.vue deleted file mode 100644 index ba0d4f8f..00000000 --- a/yanzhu-bigscreen/src/pages-old/detail/projectInfoDlg.vue +++ /dev/null @@ -1,577 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/dlg/flowLabourDlg.vue b/yanzhu-bigscreen/src/pages-old/dlg/flowLabourDlg.vue deleted file mode 100644 index 78aac6ac..00000000 --- a/yanzhu-bigscreen/src/pages-old/dlg/flowLabourDlg.vue +++ /dev/null @@ -1,259 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/dlg/journalismDlg.vue b/yanzhu-bigscreen/src/pages-old/dlg/journalismDlg.vue deleted file mode 100644 index 343aa911..00000000 --- a/yanzhu-bigscreen/src/pages-old/dlg/journalismDlg.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/dlg/projectSpecialDlg.vue b/yanzhu-bigscreen/src/pages-old/dlg/projectSpecialDlg.vue deleted file mode 100644 index 8ec8ed5c..00000000 --- a/yanzhu-bigscreen/src/pages-old/dlg/projectSpecialDlg.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/dlg/workTrainDlg.vue b/yanzhu-bigscreen/src/pages-old/dlg/workTrainDlg.vue deleted file mode 100644 index a1bc7ab9..00000000 --- a/yanzhu-bigscreen/src/pages-old/dlg/workTrainDlg.vue +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/engin/auditingPage.vue b/yanzhu-bigscreen/src/pages-old/engin/auditingPage.vue deleted file mode 100644 index 29aee8b1..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/auditingPage.vue +++ /dev/null @@ -1,647 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/enginChart.vue b/yanzhu-bigscreen/src/pages-old/engin/enginChart.vue deleted file mode 100644 index 797f847d..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/enginChart.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/yanzhu-bigscreen/src/pages-old/engin/enginImageItem.vue b/yanzhu-bigscreen/src/pages-old/engin/enginImageItem.vue deleted file mode 100644 index 89d7e59d..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/enginImageItem.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/enginImageItems.vue b/yanzhu-bigscreen/src/pages-old/engin/enginImageItems.vue deleted file mode 100644 index 216f309c..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/enginImageItems.vue +++ /dev/null @@ -1,294 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/flowDetailByStateDialog.vue b/yanzhu-bigscreen/src/pages-old/engin/flowDetailByStateDialog.vue deleted file mode 100644 index 180aa9f5..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/flowDetailByStateDialog.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/flowDetailByUnitDialog.vue b/yanzhu-bigscreen/src/pages-old/engin/flowDetailByUnitDialog.vue deleted file mode 100644 index d2e27875..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/flowDetailByUnitDialog.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/flowListByCategory.vue b/yanzhu-bigscreen/src/pages-old/engin/flowListByCategory.vue deleted file mode 100644 index 71fa3b45..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/flowListByCategory.vue +++ /dev/null @@ -1,165 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/magDetailDialog.vue b/yanzhu-bigscreen/src/pages-old/engin/magDetailDialog.vue deleted file mode 100644 index b81bbde7..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/magDetailDialog.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/magListDialog.vue b/yanzhu-bigscreen/src/pages-old/engin/magListDialog.vue deleted file mode 100644 index 0f143fc8..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/magListDialog.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/projectStandardDialog.vue b/yanzhu-bigscreen/src/pages-old/engin/projectStandardDialog.vue deleted file mode 100644 index 901fd8d9..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/projectStandardDialog.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/engin/projectStandardList.vue b/yanzhu-bigscreen/src/pages-old/engin/projectStandardList.vue deleted file mode 100644 index 6a4f9168..00000000 --- a/yanzhu-bigscreen/src/pages-old/engin/projectStandardList.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/gzaiBox/index.vue b/yanzhu-bigscreen/src/pages-old/gzaiBox/index.vue deleted file mode 100644 index 410fd967..00000000 --- a/yanzhu-bigscreen/src/pages-old/gzaiBox/index.vue +++ /dev/null @@ -1,484 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/index.vue b/yanzhu-bigscreen/src/pages-old/index.vue deleted file mode 100644 index b05471b8..00000000 --- a/yanzhu-bigscreen/src/pages-old/index.vue +++ /dev/null @@ -1,1118 +0,0 @@ - - - - diff --git a/yanzhu-bigscreen/src/pages-old/index/indexDlg1.vue b/yanzhu-bigscreen/src/pages-old/index/indexDlg1.vue deleted file mode 100644 index c76188c2..00000000 --- a/yanzhu-bigscreen/src/pages-old/index/indexDlg1.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/index/indexDlg2 copy.vue b/yanzhu-bigscreen/src/pages-old/index/indexDlg2 copy.vue deleted file mode 100644 index ddb59dd4..00000000 --- a/yanzhu-bigscreen/src/pages-old/index/indexDlg2 copy.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/index/indexDlg2.vue b/yanzhu-bigscreen/src/pages-old/index/indexDlg2.vue deleted file mode 100644 index 726ef8d0..00000000 --- a/yanzhu-bigscreen/src/pages-old/index/indexDlg2.vue +++ /dev/null @@ -1,514 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/index/indexDlg3.vue b/yanzhu-bigscreen/src/pages-old/index/indexDlg3.vue deleted file mode 100644 index 1b8915fe..00000000 --- a/yanzhu-bigscreen/src/pages-old/index/indexDlg3.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/index/map3.vue b/yanzhu-bigscreen/src/pages-old/index/map3.vue deleted file mode 100644 index 1e122bf5..00000000 --- a/yanzhu-bigscreen/src/pages-old/index/map3.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/index/mapIndex.vue b/yanzhu-bigscreen/src/pages-old/index/mapIndex.vue deleted file mode 100644 index f9b4109f..00000000 --- a/yanzhu-bigscreen/src/pages-old/index/mapIndex.vue +++ /dev/null @@ -1,130 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/init.js b/yanzhu-bigscreen/src/pages-old/init.js deleted file mode 100644 index 20cc05af..00000000 --- a/yanzhu-bigscreen/src/pages-old/init.js +++ /dev/null @@ -1,77 +0,0 @@ -import Vue from "vue"; -import Api from "../api/index"; -import dayjs from "dayjs"; -import "./style/index.less"; -import dayfilter from "@/utils/dayfilter"; -import { tryToJson } from "../utils/tools"; -//import H265Player from '../components/h265-player/index' -import { Loading } from "element-ui"; -1; -import moduleOne11 from "../components/module/module-one-1-1.vue"; -import moduleOne12 from "../components/module/module-one-1-2.vue"; -import moduleOne21 from "../components/module/module-one-2-1.vue"; -import staffSurveyChart from "../components/staffSurveyChart.vue"; -import projectOverviewChart from "../components/project-overview-chart.vue"; -import peopleNumber from "../components/people-number.vue"; -import header from "../components/header.vue"; -Loading.install(Vue); -//H265Player.install(Vue); -dayfilter(Vue); -const vue = new Vue(); -Vue.component("screen-header", header); -Vue.component("module-one-1-1", moduleOne11); -Vue.component("module-one-1-2", moduleOne12); -Vue.component("module-one-2-1", moduleOne21); -Vue.component("people-number", peopleNumber); -Vue.component("staff-survey-chart", staffSurveyChart); -Vue.component("project-overview-chart", projectOverviewChart); -Vue.prototype.$api = Api; -Vue.prototype.$bus = vue; -Vue.prototype.$apiPath = "/jhapi"; -Vue.prototype.$dt = dayjs; -Vue.prototype.$tryToJson = tryToJson; -Vue.prototype.$toggleFullScreen = (el) => { - if (document.fullscreenElement == el) { - let screen = - document.cancelFullScreen || - document.webkitCancelFullScreen || - document.mozCancelFullScreen || - document.exitFullScreen; - if (typeof screen != "undefined" && screen) { - screen.call(document); - return; - } - } else { - let screen = - el.requestFullScreen || - el.webkitRequestFullScreen || - el.mozRequestFullScreen || - el.msRequestFullScreen; - if (typeof screen != "undefined" && screen) { - screen.call(el); - return; - } - } -}; -window.__isfull__ = false; -window.fullscreenInterval = setInterval(() => { - if (document.fullscreenElement) { - if (!window.__isfull__) { - vue.$emit("fullscreen", true); - window.__isfull__ = true; - } - } else { - if (window.__isfull__) { - vue.$emit("fullscreen", false); - window.__isfull__ = false; - } - } -}, 500); -window.xdcaches = {}; -/* -Api.project.getInfo().then(d=>{ - if(d.code==200){ - window.__info__=d; - } -}) -*/ diff --git a/yanzhu-bigscreen/src/pages-old/map.vue b/yanzhu-bigscreen/src/pages-old/map.vue deleted file mode 100644 index dbc4a547..00000000 --- a/yanzhu-bigscreen/src/pages-old/map.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/photography.vue b/yanzhu-bigscreen/src/pages-old/photography.vue deleted file mode 100644 index fd1e2b76..00000000 --- a/yanzhu-bigscreen/src/pages-old/photography.vue +++ /dev/null @@ -1,254 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/progress/buildNodeDlg.vue b/yanzhu-bigscreen/src/pages-old/progress/buildNodeDlg.vue deleted file mode 100644 index 8ac4accc..00000000 --- a/yanzhu-bigscreen/src/pages-old/progress/buildNodeDlg.vue +++ /dev/null @@ -1,466 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/progress/indexDlg1.vue b/yanzhu-bigscreen/src/pages-old/progress/indexDlg1.vue deleted file mode 100644 index bae1cbeb..00000000 --- a/yanzhu-bigscreen/src/pages-old/progress/indexDlg1.vue +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/progress/indexDlg2.vue b/yanzhu-bigscreen/src/pages-old/progress/indexDlg2.vue deleted file mode 100644 index cd899a3b..00000000 --- a/yanzhu-bigscreen/src/pages-old/progress/indexDlg2.vue +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/progress/indexDlg3.vue b/yanzhu-bigscreen/src/pages-old/progress/indexDlg3.vue deleted file mode 100644 index 16c8e306..00000000 --- a/yanzhu-bigscreen/src/pages-old/progress/indexDlg3.vue +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/progress/nodeItem.vue b/yanzhu-bigscreen/src/pages-old/progress/nodeItem.vue deleted file mode 100644 index 2f4d8845..00000000 --- a/yanzhu-bigscreen/src/pages-old/progress/nodeItem.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/progress/problemProgress.vue b/yanzhu-bigscreen/src/pages-old/progress/problemProgress.vue deleted file mode 100644 index f85f0008..00000000 --- a/yanzhu-bigscreen/src/pages-old/progress/problemProgress.vue +++ /dev/null @@ -1,219 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/projectDetail.vue b/yanzhu-bigscreen/src/pages-old/projectDetail.vue deleted file mode 100644 index 01a695ac..00000000 --- a/yanzhu-bigscreen/src/pages-old/projectDetail.vue +++ /dev/null @@ -1,1771 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/projectEngin.vue b/yanzhu-bigscreen/src/pages-old/projectEngin.vue deleted file mode 100644 index 002851fe..00000000 --- a/yanzhu-bigscreen/src/pages-old/projectEngin.vue +++ /dev/null @@ -1,666 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/projectEnginBUser.vue b/yanzhu-bigscreen/src/pages-old/projectEnginBUser.vue deleted file mode 100644 index cb279239..00000000 --- a/yanzhu-bigscreen/src/pages-old/projectEnginBUser.vue +++ /dev/null @@ -1,467 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/projectProgress.vue b/yanzhu-bigscreen/src/pages-old/projectProgress.vue deleted file mode 100644 index 7ec00f84..00000000 --- a/yanzhu-bigscreen/src/pages-old/projectProgress.vue +++ /dev/null @@ -1,972 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/projectQuality.vue b/yanzhu-bigscreen/src/pages-old/projectQuality.vue deleted file mode 100644 index 0a6fcca6..00000000 --- a/yanzhu-bigscreen/src/pages-old/projectQuality.vue +++ /dev/null @@ -1,884 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/projectSafety.vue b/yanzhu-bigscreen/src/pages-old/projectSafety.vue deleted file mode 100644 index b3460299..00000000 --- a/yanzhu-bigscreen/src/pages-old/projectSafety.vue +++ /dev/null @@ -1,1038 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/projectVideo.vue b/yanzhu-bigscreen/src/pages-old/projectVideo.vue deleted file mode 100644 index 2488ea30..00000000 --- a/yanzhu-bigscreen/src/pages-old/projectVideo.vue +++ /dev/null @@ -1,1666 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/pages-old/quality/a.html b/yanzhu-bigscreen/src/pages-old/quality/a.html deleted file mode 100644 index 4d709519..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/a.html +++ /dev/null @@ -1,480 +0,0 @@ - - - - - - - - - - 数字化集成管控平台 - - -
- - - -
- -
- - - - - - - - - - - - - - -
-
- -
-
-
当前温度
-

{{lastRunData.temperature}}

-
-
-
- -
-
- -
-
-
标准温度
-

18-22

-
-
-
- -
-
- -
-
-
当前湿度
-

{{lastRunData.humidity}} %RH

-
-
-
- -
-
- -
-
-
标准湿度
-

95%RH以上

-
-
-
-
-
- -
-
近7天
-
近30天
-
- -
- -
-
近7天
-
近30天
-
- -
-
- -
-
-
-
当前设备
-
标养室监测
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
设备名称: -
-
- -
-
-
在线
- -
-
-
名称: -
{{lastChooseDevice.name}}
-
安装位置:
设备状态:
无警告/在线
设备编码:{{lastChooseDevice.deviceId}}
更新时间:{{lastChooseDevice.create_time}}
-
-
-
-
-
正在发生
-
-
-
-
-
{{item.type}}
-
-
- -
-
-
{{item.content}} (正常范围:{{item.threshold}})
-
{{item.time}}
-
-
-
预警差值:{{item.chaValue}}
- -
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/b.html b/yanzhu-bigscreen/src/pages-old/quality/b.html deleted file mode 100644 index 74603f0c..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/b.html +++ /dev/null @@ -1,518 +0,0 @@ - - - - - - - - - - 数字化集成管控平台 - - -
- - - -
- -
- - - - - - - - - - - - - - -
-
- -
-
-
外置温度
-

{{lastRunData.tempOut==undefined?0:lastRunData.tempOut}}

-
-
-
- -
-
- -
-
-
内置温度
-

{{lastRunData.tempIn==undefined?0:lastRunData.tempIn}}

-
-
-
- -
-
- -
-
-
强度
-

{{lastRunData.strong==undefined?0:lastRunData.strong}} MPa

-
-
-
- -
-
- -
-
-
成熟度
-

{{lastRunData.cooked==undefined?0:lastRunData.cooked}}°C*小时

-
-
-
-
-
- - - - - - - - -
- -
-
-
-
当前设备
-
混凝土强度监测
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
设备名称: -
-
- -
-
- - - - - -
{{lastChooseDevice.deviceStatus == 1 ? '离线' : '在线'}}
-
-
-
名称: -
混凝土监控设备-{{lastChooseDevice.deviceId}}
-
安装位置:{{lastChooseDevice.address}}
设备状态:
{{lastChooseDevice.deviceStatus == 1 ? '离线' : '在线'}}
设备编码:{{lastChooseDevice.deviceId}}
更新时间:{{lastChooseDevice.deviceUpdateTime}}
-
-
-
-
-
正在发生
-
-
-
-
-
{{item.type}}
-
-
- -
-
-
{{item.content}} (正常范围:{{item.threshold}})
-
{{item.time}}
-
-
-
预警差值:{{item.chaValue}}
-
恢复时间:{{item.recoveryTime}}
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/c.html b/yanzhu-bigscreen/src/pages-old/quality/c.html deleted file mode 100644 index 9214ad69..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/c.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - Document - - -
- -
- - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/checkDetectionDlg.vue b/yanzhu-bigscreen/src/pages-old/quality/checkDetectionDlg.vue deleted file mode 100644 index 8beeef8b..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/checkDetectionDlg.vue +++ /dev/null @@ -1,412 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/concreteStrength.vue b/yanzhu-bigscreen/src/pages-old/quality/concreteStrength.vue deleted file mode 100644 index 1e19998b..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/concreteStrength.vue +++ /dev/null @@ -1,266 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/funVerifyGroupByCheckType.vue b/yanzhu-bigscreen/src/pages-old/quality/funVerifyGroupByCheckType.vue deleted file mode 100644 index 64c0cabf..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/funVerifyGroupByCheckType.vue +++ /dev/null @@ -1,173 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/funVerifyGroupDlg.vue b/yanzhu-bigscreen/src/pages-old/quality/funVerifyGroupDlg.vue deleted file mode 100644 index 41bf63a2..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/funVerifyGroupDlg.vue +++ /dev/null @@ -1,320 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/materialSealChart.vue b/yanzhu-bigscreen/src/pages-old/quality/materialSealChart.vue deleted file mode 100644 index a29dd0cb..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/materialSealChart.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/yanzhu-bigscreen/src/pages-old/quality/materialSealDetialDlg.vue b/yanzhu-bigscreen/src/pages-old/quality/materialSealDetialDlg.vue deleted file mode 100644 index dbfefc65..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/materialSealDetialDlg.vue +++ /dev/null @@ -1,303 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/materialSealListDlg.vue b/yanzhu-bigscreen/src/pages-old/quality/materialSealListDlg.vue deleted file mode 100644 index e482e226..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/materialSealListDlg.vue +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/measuredDlg.vue b/yanzhu-bigscreen/src/pages-old/quality/measuredDlg.vue deleted file mode 100644 index 4931b191..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/measuredDlg.vue +++ /dev/null @@ -1,367 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/projectChecking.vue b/yanzhu-bigscreen/src/pages-old/quality/projectChecking.vue deleted file mode 100644 index 5454e6db..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/projectChecking.vue +++ /dev/null @@ -1,574 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/projectCheckingListDlg.vue b/yanzhu-bigscreen/src/pages-old/quality/projectCheckingListDlg.vue deleted file mode 100644 index d7908afa..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/projectCheckingListDlg.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/showCheckingDlg.vue b/yanzhu-bigscreen/src/pages-old/quality/showCheckingDlg.vue deleted file mode 100644 index fa123f67..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/showCheckingDlg.vue +++ /dev/null @@ -1,276 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/quality/standardCuringRoom.vue b/yanzhu-bigscreen/src/pages-old/quality/standardCuringRoom.vue deleted file mode 100644 index 57c2b7bb..00000000 --- a/yanzhu-bigscreen/src/pages-old/quality/standardCuringRoom.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/SpecialList.vue b/yanzhu-bigscreen/src/pages-old/safe/SpecialList.vue deleted file mode 100644 index 03404608..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/SpecialList.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/a.html b/yanzhu-bigscreen/src/pages-old/safe/a.html deleted file mode 100644 index 98b46f29..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/a.html +++ /dev/null @@ -1,882 +0,0 @@ - - - - - - - - - - 数字化集成管控平台 - - - -
- - - -
- -
- - - -
-
-
- -
-
-

塔机总数

-
-
-
-
-
- -
-
-

监控总数

-
-
-
-
- -
-
监控列表
-
-
- -
-
-
-
- -
-
-
设备名称:{{item.towerName}}
-
- 设备状态: - 离线 - 在线 -
-
-
-
- - -
司机:{{item.driverName}}
-
- -
电话:{{item.driverPhone}}
-
- -
安全员:{{item.principalMan1}}
-
- -
电话:{{item.principalPhone1}}
-
-
-
- - -
-
- -
-
-
-
-
- - - -
- - -
-
-
吊重次数(次)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
- -
-
-
超载次数(次)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
- -
-
-
超载率(%)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
- -
-
-
告警次数(次)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
-
- -
-
- - - -
-
- -
- - - -
-
- -
-
-
- -
-
-
-
- -
-
-
-
正在发生
-
塔机监测
-
-
-
-
暂无预警数据
-
-
{{item.warn_name}}
-
-
- -
-
-
{{item.towerName}}发生{{item.warn_context}}
-
{{item.warn_time}}
-
-
-
项目:{{item.project_abbreviation}}
- -
-
-
-
-
-
-
力矩曲线
-
-
- -
-
-
- -
-
- - - -
-
幅度
- -
- -
-
- - -
-
风速
- -
- -
-
- - -
-
吊重
- -
- -
-
- - -
-
倾角
- -
- -
-
- - -
-
转角
- -
- -
-
- - -
-
高度
- -
- -
-
-
-
-
-
- - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/b.html b/yanzhu-bigscreen/src/pages-old/safe/b.html deleted file mode 100644 index 00510bfc..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/b.html +++ /dev/null @@ -1,1602 +0,0 @@ - - - - - - - - - 数字化集成管控平台 - - -
- - - -
- -
- - - - - - -
深基坑监测
-
-
-
-
- -
-
-

监测点位数

-
-
-
-
-
- -
-
-

在线点位数

-
-
-
-
- -
-
-
-
-
报警分析
- -
- - -
-

今日报警数

-
{{todaybjTotal}} 条
-
-
-

本周报警数

-
{{weekbjTotal}}
-
-
- -
-
-
报警类型
-
-
- -
-
-
-
-
- - -
-
- -
-
- - -
-
-
-
-
-
稳定
-
-
-
-
报警
-
-
-
-
预警
-
-
-
-
基准线
-
-
-
-
离线
-
-
-
-
- - {{item.text}} -
-
-
-
-
-
-
{{pointPositionName}}
-
-
{{lineTime}}
-
- - - - - - - - - - - - - -
监测详情变化量预警报警
{{item.text}}{{item.data}}{{item.warningUp}}/{{item.warningDown}}{{item.policeUp}}/{{item.policeDown}}
-
-
- 设备离线 -
- -
-
-
-
-
- - - - -
爬架监测
- -
-
-
-
- -
-
-

监测机位数

-
-
-
-
-
- -
-
-

在线机位数

-
-
-
-
- -
-
-
-
-
报警分析
- -
- - -
-

今日报警数

-
{{todaybjTotalPJ}} 条
-
-
-

本周报警数

-
{{weekbjTotalPJ}}
-
-
- -
-
-
报警类型
-
-
- -
-
-
-
- -
- - - - -
-
-
沉降
-
倾斜
-
应力
-
-
- -
-
- -
-
- - -
- -
-
- -
- -
-
-
- -
-
- -
-
-
-
- - - - - -
-
-
倾斜
-
-
- -
-
- - -
- - -
-
- -
- - -
-
-
- -
-
-
-
-
-
- - -
-
- - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/c.html b/yanzhu-bigscreen/src/pages-old/safe/c.html deleted file mode 100644 index df7e1e59..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/c.html +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - 数字化集成管控平台 - - -
- - - -
- -
- - - - - -
-
- -
-
-
A相温度
-

{{powerRun.t1}}

-
-
-
- -
-
- -
-
-
B相温度
-

{{powerRun.t2}}

-
-
-
- -
-
- -
-
-
C相温度
-

{{powerRun.t3}}

-
-
-
- -
-
- -
-
-
零线温度
-

{{powerRun.t4}}

-
-
-
- -
-
-
温度阈值
-

70

-
-
-
- -
-
- -
-
-
A相电流
-

{{powerRun.c1}} A

-
-
-
- -
-
- -
-
-
B相电流
-

{{powerRun.c2}} A

-
-
-
- -
-
- -
-
-
C相电流
-

{{powerRun.c3}} A

-
-
-
- - - - - - - - - - - - - - - - - - - -
-
- -
-
近7天
-
近30天
-
- -
- -
-
近7天
-
近30天
-
- -
-
- -
-
-
-
当前设备
-
配电箱监控
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
设备名称: -
-
- -
-
- -
离线
-
-
-
名称: -
配电箱监控设备{{lastChooseDevice.deviceId}}
-
安装位置:办公区
设备状态: -
无警告/在线
-
离线
- -
设备编码:{{lastChooseDevice.deviceId}}
更新时间:{{powerRun.time}}
-
-
-
-
-
正在发生
-
-
-
-
暂无预警数据
-
-
{{item.type}}
-
-
- -
-
-
{{item.content}}
-
{{item.time}}
-
-
-
异常传感器:传感器编号:{{item.deviceId}} -
- -
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/d.html b/yanzhu-bigscreen/src/pages-old/safe/d.html deleted file mode 100644 index 7bf816d1..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/d.html +++ /dev/null @@ -1,979 +0,0 @@ - - - - - - - - - - - - -
- - - -
- -
- - - -
-
-
- -
-
-

升降机总数

-
-
-
-
-
- -
-
-

监控总数

-
-
-
-
- -
-
监控列表
-
-
- -
-
-
-
- -
-
-
设备名称:{{item.deviceName}}
-
- 设备状态: - 离线 - 在线 -
-
-
-
- - -
司机:{{item.driverName}}
-
- -
电话:{{item.driverPhone}}
-
- -
安全员:{{item.safetyOfficerName}}
-
- -
电话:{{item.safetyOfficerPhone}}
-
-
-
- -
最后一次启用时间:{{item.lastEnabledTime}}
-
-
- -
-
-
-
-
- - - -
- - -
-
-
运行次数(次)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
- -
-
-
超载次数(次)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
- -
-
-
超载率(%)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
- -
-
-
违章次数(次)
-
-
-

本月

- -
-
-

累计

- -
-
-
-
-
-
-
-
- - -
-
- -
- - - -
-
- -
-
-
- -
-
-
-
- -
-
-
-
报警分析
-
升降机监测
-
-
- - -
-

今日报警数

-
-
-
-

本周报警数

-
-
-
- -
-
-
报警类型
-
-
- -
-
-
-
- -
-
-
-
正在发生
-
-
-
-
暂无预警数据
-
-
{{item.warn_context}}
-
-
- -
-
-
预警值:{{item.warn_value}}
-
{{item.warn_time}}
-
-
- - -
-
-
-
- -
- -
-
-
-
-
运行数据
-
- - -
-
-
- -
-
-
-
高度
-

m

-
-
-
- -
-
-
- -
-
-
-
楼层
-

-
-
-
- -
-
-
- -
-
-
-
当前人数
-

-
-
-
- -
-
-
- -
-
-
-
当前载重
-

t

-
-
-
- -
-
-
- -
-
-
-
倾角1
-

°

-
-
-
- -
-
-
- -
-
-
-
倾角2
-

°

-
-
-
- -
-
-
- -
-
-
-
风速
-

m/s

-
-
-
- -
-
-
- -
-
-
-
速度
-

m/s

-
-
-
- -
-
-
- -
-
-
-
速度方向
-

-
-
-
- -
-
-
- -
-
-
-
前门状态
-

-
-
-
- -
-
-
- -
-
-
-
后门状态
-

-
-
-
-
-
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/distributionBox.vue b/yanzhu-bigscreen/src/pages-old/safe/distributionBox.vue deleted file mode 100644 index 7fcf0400..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/distributionBox.vue +++ /dev/null @@ -1,282 +0,0 @@ - - - - diff --git a/yanzhu-bigscreen/src/pages-old/safe/dumbwaiter.vue b/yanzhu-bigscreen/src/pages-old/safe/dumbwaiter.vue deleted file mode 100644 index 2f16118e..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/dumbwaiter.vue +++ /dev/null @@ -1,618 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/e.html b/yanzhu-bigscreen/src/pages-old/safe/e.html deleted file mode 100644 index 0e2ad26a..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/e.html +++ /dev/null @@ -1,467 +0,0 @@ - - - - - - - - - 数字化集成管控平台 - - -
- -
- -
- -
- -
-
-
- -
-
-

总人数

-
-
-
-
-
- -
-
-

安全帽在线

-
-
-
-
-
-
人员列表(人)
-
-
-
-
-
-
- -
-
-
- {{item.name}} - ({{item.work}}) -
在线
-
离线
-
-
-
-
-
-
- -
-
-
-
{{item.battery}}%
-
-
- 移动 - 静止 -
-
-
-
- -
- - -
今日工时:{{item.working_hours}}
-
- -
本月出勤:{{item.attendance}}天
-
- -
定位时间:{{item.positioning_time}}
-
-
-
-
{{item.address}}
-
-
-
-
-
-
-
-
-
-
预警分析
-
人员定位
-
- - -
-

今日预警数

-
0
-
-
-

本周预警数

-
0
-
-
- -
-
-
预警类型
-
-
- -
-
-
-
-
-
-
正在发生
-
-
-
-
-
{{item.equipment}}
-
-
- -
-
-
{{item.content}}
-
{{item.time}}
-
-
- - -
-
-
-
- -
-
- - - - - - - - - - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/excavation.vue b/yanzhu-bigscreen/src/pages-old/safe/excavation.vue deleted file mode 100644 index 6808c3ba..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/excavation.vue +++ /dev/null @@ -1,1018 +0,0 @@ - - - - diff --git a/yanzhu-bigscreen/src/pages-old/safe/personnelPosition.vue b/yanzhu-bigscreen/src/pages-old/safe/personnelPosition.vue deleted file mode 100644 index 9caf6ff3..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/personnelPosition.vue +++ /dev/null @@ -1,299 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/projectInsurancList.vue b/yanzhu-bigscreen/src/pages-old/safe/projectInsurancList.vue deleted file mode 100644 index 06cd9f6b..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/projectInsurancList.vue +++ /dev/null @@ -1,103 +0,0 @@ - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/projectInsuranceDlg.vue b/yanzhu-bigscreen/src/pages-old/safe/projectInsuranceDlg.vue deleted file mode 100644 index b78ae310..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/projectInsuranceDlg.vue +++ /dev/null @@ -1,239 +0,0 @@ - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/safe/towerCrane.vue b/yanzhu-bigscreen/src/pages-old/safe/towerCrane.vue deleted file mode 100644 index 5bd0989f..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/towerCrane.vue +++ /dev/null @@ -1,968 +0,0 @@ - - - - diff --git a/yanzhu-bigscreen/src/pages-old/safe/workTrainListDlg.vue b/yanzhu-bigscreen/src/pages-old/safe/workTrainListDlg.vue deleted file mode 100644 index 70db7d48..00000000 --- a/yanzhu-bigscreen/src/pages-old/safe/workTrainListDlg.vue +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/style/index.less b/yanzhu-bigscreen/src/pages-old/style/index.less deleted file mode 100644 index 0137bda9..00000000 --- a/yanzhu-bigscreen/src/pages-old/style/index.less +++ /dev/null @@ -1,156 +0,0 @@ -.el-tooltip__popper{ - max-width: 50%; -} -.font-size-tools{ -.set-font-size{ - cursor: pointer; - position: relative; - - &.active{ - color: aqua; - .svg-icon{ - *{ - fill: aqua; - } - } - } - .svg-icon{ - width: 40px !important; - height: 40px !important; - } - &.font-size2{ - &::after{ - content: "+"; - font-style: normal; - right: 0px; - font-weight: bold; - position: absolute; - font-size: 16px !important; - } - margin-right:4px; - } - &.font-size0{ - &::after{ - content: "-"; - font-style: normal; - right: 0px; - font-weight: bold; - position: absolute; - font-size: 16px !important; - } - } -} -} -.finish-0{ - color: #e6a23c; -} -.finish-1{ - color: red; -} -.finish-2{ - color: #01A9FF; -} -.finish-3{ - color: green; -} -.finish-4{ - color: #a2c8f9; -} -.hide-scroll{ - overflow: hidden; -} -.bg-date-picker{ - border:none; - background: transparent; - .el-range-input{ - background: transparent; - } - .el-range-separator{ - color: #fff; - } -} -.bg-date-picker-pop{ - color: #eee; -.el-picker-panel__sidebar{ - background: transparent; - border-right-color: rgb(1, 169, 255); -} -.el-picker-panel__icon-btn{ - color: #01A9FF; -} -.el-picker-panel__icon-btn:hover{ - color: #ced7db; -} -.el-date-range-picker__content{ - .el-date-table { - th{ - border-bottom-color: rgb(1, 169, 255); - } - td.in-range{ - div{ - background-color: #01A9FF; - } - } -} - &.is-left{ - border-right-color: rgb(1, 169, 255); - } -} -.popper__arrow{ - border-bottom-color:#01A9FF !important; - &::after{ - border-bottom-color:#01A9FF !important; - top:0px !important; - } -} -} -.el-loading-mask{ - background-color: rgba(255,255,255,.4); - .el-loading-spinner{ - height: 100px; - .circular{ - right:unset; - width: 100px; - height: 100px; - } - } -} -.el-pagination.bg-pagination{ - text-align: center; - .btn-next,.btn-prev{ - background-color: rgba(1, 169, 255,0.4); - color: #fff; - } - .btn-next{ - margin-left:20px; - } - .el-pagination__total{ - color: #fff; - } - .el-pager { - li{ - background-color: rgba(1, 169, 255,0.4); - margin-left:20px; - color: #fff; - &.active{ - background-color: rgba(1, 169, 255,1); - } - } - } -} -.el-message-box{ - background-color: rgba(1, 169, 255,0.5); - border: solid 1px rgba(1, 169, 255,1); -} -.el-message-box__title{ - color: #fff; -} -.el-message-box__btns{ - text-align: center; -} -.el-message-box__content{ - color: #fff; -} -.head-title-tab{ - white-space: nowrap; -} \ No newline at end of file diff --git a/yanzhu-bigscreen/src/pages-old/toAIVideoProject.vue b/yanzhu-bigscreen/src/pages-old/toAIVideoProject.vue deleted file mode 100644 index 30fef869..00000000 --- a/yanzhu-bigscreen/src/pages-old/toAIVideoProject.vue +++ /dev/null @@ -1,439 +0,0 @@ - - - - - diff --git a/yanzhu-bigscreen/src/views/bim/bim4DTools.js b/yanzhu-bigscreen/src/views/bim/bim4DTools.js index b0d393bd..ffb9d2f4 100644 --- a/yanzhu-bigscreen/src/views/bim/bim4DTools.js +++ b/yanzhu-bigscreen/src/views/bim/bim4DTools.js @@ -197,6 +197,17 @@ function initEngine(that) { } function initLoadModel(that) { + that.$api.bim.getDefaultViewPoint(that.selProject.id, 1).then((d) => { + let pt = ""; + if (d.data && d.data.length > 0) { + pt = d.data[0].viewPosition; + pt = that.$tryToJson(pt, null); + } + if (pt) { + that.viewPoint = pt; + } + }); + that.$api.bim .listBimModel({ pageNum: 1, @@ -236,10 +247,14 @@ function addModel(that, modelId, cb) { cb && cb(); console.log("加载模型成功"); setTimeout(() => { - bim4DApi.Camera.getViewPort((p) => { - that.viewPoint = p; - that.modelLoaded = true; - }); + if (that.viewPoint) { + api.Camera.setViewPort(that.viewPoint); + } else { + api.Camera.getViewPort((p) => { + that.viewPoint = p; + }); + } + that.modelLoaded = true; that.initPlay(); }, 1000); } @@ -363,7 +378,7 @@ function doPLay(that) { } function modelRotate(that) { let api = bim4DApi; - if(that.isPlay!=0){ + if (that.isPlay != 0) { return; } if (that.models.length > 0) { diff --git a/yanzhu-bigscreen/src/views/bim/briefingTools.js b/yanzhu-bigscreen/src/views/bim/briefingTools.js index 9c2fb1c4..abcb0505 100644 --- a/yanzhu-bigscreen/src/views/bim/briefingTools.js +++ b/yanzhu-bigscreen/src/views/bim/briefingTools.js @@ -180,14 +180,20 @@ function initClipping(that) { } //构件隐藏 -function actorVisible() { +function actorVisible(that) { let api = bimBriefingApi; + that.hideFeatureIds = []; api.Feature.getByEvent(true, (n) => { if (n && n["id"]) { let featureId = n.id; let modelId = featureId.split("^")[0]; api.Feature.setVisible(featureId, false); - that.hideFeatureIds.push(featureId); + that.hideFeatureIds.push({ + hide:true, + id:featureId.split("^")[1], + modelId:modelId, + featureId:featureId + }); } }); } diff --git a/yanzhu-bigscreen/src/views/bim4DSimulation.vue b/yanzhu-bigscreen/src/views/bim4DSimulation.vue index 49071d5b..9dbeb87b 100644 --- a/yanzhu-bigscreen/src/views/bim4DSimulation.vue +++ b/yanzhu-bigscreen/src/views/bim4DSimulation.vue @@ -6,6 +6,19 @@
+ + +
+
+
+ +
+ 默认视点 +
+ +
+ +