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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
设备总数
-
{{deviceNum}} 个
-
-
-
-
-
-
-
-
-
-
在线设备
-
{{onlineNum}} 个
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
离线设备
-
{{offlineNum}} 个
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2022-09-01 至 2024-08-21
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
变更签认({{constructionNum}})
-
工程签认({{alterationNum}})
-
-
-
-
-
-
- {{scope.row[item.data]}}
-
-
-
-
-
{{scope.row[item.data]}}
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{scope.row[item.data]}}
-
-
-
-
-
{{scope.row[item.data]}}
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
科技创新({{sciencelnnovateDataList.length}})
-
-
-
-
-
-
-
-
-
-
-
-
-
课题名称:
-
{{sciencelnnovateData.name}}
-
-
-
-
-
- {{item.name}}
-
-
-
{{item.status}}
-
未涉及
-
{{item.status}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{scope.row[item.data]}}
-
-
-
-
-
{{scope.row[item.data]}}
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
管理交底
-
{{fourClarificaiton.gljd}}
-
-
-
-
-
-
-
-
-
-
施组交底
-
- {{fourClarificaiton.szjd}}
-
-
-
-
-
-
-
-
-
-
危大工程交底
-
{{fourClarificaiton.zxfajd}} 次
-
-
-
-
-
-
-
-
-
-
技术交底
-
- {{fourClarificaiton.jsjd}} 次
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
操作证数量
-
{{certInfoData.count}} 个
-
-
-
-
-
-
-
-
已绑定数量
-
{{certInfoData.bindCount}} 台
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{showOverviewLabel}}
-
- {{showOverviewData.countNum}} 台
-
-
-
-
-
-
-
-
自有
-
{{showOverviewData.zyNum}}
-
-
-
-
-
-
租赁
-
{{showOverviewData.zlNum}}
-
-
-
-
-
-
分包
-
{{showOverviewData.fbNum}}
-
-
-
-
-
-
-
-
-
- `,
- 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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{lwDataTotal}} 人
-
{{staffText}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
离线视频
-
{{offLineNum}} 个
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{lwDataTotal}} 人
-
{{staffText}}
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{showOverviewLabel}}
-
- {{showOverviewData.countNum}} 台
-
-
-
-
-
-
-
-
自有
-
{{showOverviewData.zyNum}}
-
-
-
-
-
-
租赁
-
{{showOverviewData.zlNum}}
-
-
-
-
-
-
分包
-
{{showOverviewData.fbNum}}
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
建设单位
-
{{companyData.build_unit}}
-
{{companyData.build_unit_manager_name}} {{companyData.phone_show == 0 ? companyData.build_unit_manager_phone : ''}}
-
-
-
-
-
-
-
-
设计单位
-
{{companyData.design_unit}}
-
{{companyData.design_unit_manager_name}} {{companyData.phone_show == 0 ? companyData.design_unit_manager_phone : ''}}
-
-
-
-
-
-
-
-
总包单位
-
{{companyData.all_unit}}
-
{{companyData.all_unit_manager_name}} {{companyData.phone_show == 0 ? companyData.all_unit_manager_phone : ''}}
-
-
-
-
-
-
-
-
监理单位
-
{{companyData.supervisor_unit}}
-
{{companyData.supervisor_unit_manager_name}} {{companyData.phone_show == 0 ? companyData.supervisor_unit_manager_phone : ''}}
-
-
-
-
-
-
-
-
检测机构
-
{{companyData.testing_unit}}
-
{{companyData.testing_unit_manager_name}} {{companyData.phone_show == 0 ? companyData.testing_unit_manager_phone : ''}}
-
-
-
-
-
-
-
-
勘察单位
-
{{companyData.survey_unit}}
-
{{companyData.survey_unit_manager_name}} {{companyData.phone_show == 0 ? companyData.survey_unit_manager_phone : ''}}
-
-
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{item.title}}
-
{{item.text}}
-
-
-
-
-
-
-
-
- `,
- 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: `
-
-
-
-
-
{{item.text}}
-
-
-
-
-
-
- `,
- 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: `
-
- `,
- 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 @@
-
-
-
-
-
产发工程数字管理平台
-
-
-
项目概况
-
-
-
安全管理
-
质量管理
-
进度管理
-
-
-
-
工程管理
-
-
-
-
-
-
-
-
-
-
{{ date }}
-
{{ time }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ 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: `
-
-
- 产发工程数字管理平台
-
-
-
项目概况
-
项目详情
-
安全管理
-
质量管理
-
进度管理
-
视频管理
-
工程管理
-
-
-
-
-
-
-
-
晴
-
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