Compare commits

...

3 Commits

Author SHA1 Message Date
lixiaobang 89cac3357b 代码提交 2023-03-29 16:30:21 +08:00
lixiaobang 420508d008 Merge branch 'master' of https://git.lgzn.space/chengdandan/qiuwang 2023-03-28 13:19:21 +08:00
lixiaobang b644e37304 代码提交 2023-03-28 13:18:22 +08:00
12 changed files with 609 additions and 517 deletions

View File

@ -14,22 +14,24 @@
"dayjs": "^1.11.7", "dayjs": "^1.11.7",
"element-resize-detector": "^1.2.4", "element-resize-detector": "^1.2.4",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"flv.js": "^1.6.2",
"html2canvas": "^1.4.1", "html2canvas": "^1.4.1",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"jspdf": "^2.5.1", "jspdf": "^2.5.1",
"moment": "^2.29.4",
"mqtt": "^3.0.0", "mqtt": "^3.0.0",
"node-sass": "^8.0.0", "node-sass": "^8.0.0",
"postcss-plugin-px2rem": "^0.8.1", "postcss-plugin-px2rem": "^0.8.1",
"screenfull": "5.2.0", "screenfull": "5.2.0",
"v-scale-screen": "^1.0.0", "v-scale-screen": "^1.0.0",
"video.js": "^8.0.4",
"vue": "^2.5.2", "vue": "^2.5.2",
"vue-awesome-swiper": "^4.1.1", "vue-awesome-swiper": "^4.1.1",
"vue-cropper": "^0.5.8", "vue-cropper": "^0.5.8",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vue2-scale-box": "^0.1.4", "vue2-scale-box": "^0.1.4",
"vuedraggable": "2.24.3", "vuedraggable": "2.24.3",
"vuex": "3.0.1", "vuex": "3.0.1"
"moment": "^2.29.4"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^7.1.2", "autoprefixer": "^7.1.2",

View File

@ -149,8 +149,8 @@ export const getWarnSurveillance = (params) => {
) )
}; };
//隐患整改记录 //隐患整改记录
// export const getMostTroubleCensus = (params) => { export const getResolveTroublePage = (params) => {
// return axios.get('api/ems-third-party-service/project/mostTroubleCensus', return axios.get('api/ems-third-party-service/project/resolveTroublePage',
// {params}, {params},
// ) )
// }; };

View File

@ -819,7 +819,7 @@ $gantt_item_half: 4px;
// background-color: transparent !important; // background-color: transparent !important;
color: #ADFFFE!important; color: #ADFFFE!important;
border: none !important; border: none !important;
padding-left: 0 !important; padding-left: 0 ;
padding-right: 0 !important; padding-right: 0 !important;
} }

View File

@ -44,6 +44,11 @@ Vue.filter('datefmt',function (input,fmtstring) {//当input为时间戳时
Vue.prototype.$moment = moment Vue.prototype.$moment = moment
Vue.config.productionTip = false Vue.config.productionTip = false
//引入video
import videojs from "video.js";
import "video.js/dist/video-js.css";
Vue.prototype.$video = videojs;
//MQTT订阅 //MQTT订阅
var currentTopics = null; var currentTopics = null;
var client = null; var client = null;

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="password" label="" style="margin-top: 15px;margin-bottom:35px"> <el-form-item prop="password" label="" style="margin-top: 15px;margin-bottom:35px">
<el-input type="password" placeholder="请输入密码" v-model="param.password" @keyup.enter.native="submitForm()"> <el-input type="password" placeholder="请输入密码" v-model="param.password" @keyup.enter.native="submitForm()" show-password>
<el-button slot="prepend" icon="el-icon-lock"></el-button> <el-button slot="prepend" icon="el-icon-lock"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -84,7 +84,7 @@ export default {
created() { created() {
let h = document.documentElement.clientHeight || document.body.clientHeight; let h = document.documentElement.clientHeight || document.body.clientHeight;
this.vdaH = h - 0 + "px"; this.vdaH = h - 0 + "px";
// this.createMqtt() this.createMqtt()
this.getWeather() this.getWeather()
// this.getTokenData() // this.getTokenData()
}, },
@ -190,7 +190,7 @@ export default {
}, },
createMqtt() { createMqtt() {
this.topicSends = ['/SC/pub/uwb']; this.topicSends = ['webdata'];
console.log("this.topicSends",this.topicSends) console.log("this.topicSends",this.topicSends)
window.PubScribe(this.topicSends, this.realInfo); window.PubScribe(this.topicSends, this.realInfo);
}, },
@ -199,7 +199,7 @@ export default {
// console.log("topic",topic) // console.log("topic",topic)
switch (topic) { switch (topic) {
// //
case "/SC/pub/uwb": case "webdata":
try { try {
console.log("message",message) console.log("message",message)
// const utf8decoder = new TextDecoder() // const utf8decoder = new TextDecoder()
@ -525,7 +525,7 @@ getWeather () {
// background-color: transparent !important; // background-color: transparent !important;
color: rgba(255, 255, 255, 0.7) !important; color: rgba(255, 255, 255, 0.7) !important;
border: none !important; border: none !important;
padding-left: 0 !important; padding-left: 0 ;
padding-right: 0 !important; padding-right: 0 !important;
} }

View File

@ -1476,7 +1476,7 @@ export default {
// background-color: transparent !important; // background-color: transparent !important;
color: rgba(255, 255, 255, 0.7) !important; color: rgba(255, 255, 255, 0.7) !important;
border: none !important; border: none !important;
padding-left: 0 !important; padding-left: 0 ;
padding-right: 0 !important; padding-right: 0 !important;
} }

View File

@ -1693,7 +1693,7 @@ export default {
// background-color: transparent !important; // background-color: transparent !important;
color: rgba(255, 255, 255, 0.7) !important; color: rgba(255, 255, 255, 0.7) !important;
border: none !important; border: none !important;
padding-left: 0 !important; padding-left: 0 ;
padding-right: 0 !important; padding-right: 0 !important;
} }

View File

@ -1332,7 +1332,7 @@ export default {
// background-color: transparent !important; // background-color: transparent !important;
color: #ADFFFE !important; color: #ADFFFE !important;
border: none !important; border: none !important;
padding-left: 0 !important; padding-left: 0 ;
padding-right: 0 !important; padding-right: 0 !important;
} }

View File

@ -77,7 +77,7 @@
</div> </div>
<div class="btnIcon" @click="gantDialog"></div> <div class="btnIcon" @click="gantDialog"></div>
<div class="tableBox"> <div class="tableBox">
<el-table height="237" :row-style="{ height: '0' }" :cell-style="{ padding: '8px' }" <el-table height="100%" :row-style="{ height: '0' }" :cell-style="{ padding: '8px' }"
:row-class-name="tableRowClassName" :data="tableData" style="width: 100%"> :row-class-name="tableRowClassName" :data="tableData" style="width: 100%">
<el-table-column header-align="center" align="center" show-overflow-tooltip prop="name" <el-table-column header-align="center" align="center" show-overflow-tooltip prop="name"
label="任务名称"> label="任务名称">
@ -137,8 +137,8 @@
<span></span> <span></span>
</div> </div>
<div class="table2Box"> <div class="table2Box">
<el-table height="270" :row-class-name="tableRowClassName" :data="table2Data" style="width: 100%" :cell-style="{ padding: '5px' }"> <el-table height="100%" :row-class-name="tableRowClassName" :data="table2Data" style="width: 100%" :cell-style="{ padding: '5px' }">
<el-table-column header-align="center" align="center" show-overflow-tooltip prop="name" label="任务名称"> <el-table-column align="left" show-overflow-tooltip prop="name" label="任务名称" style="left:20px">
</el-table-column> </el-table-column>
<el-table-column align="center" prop="startDate" label="开始时间" > <el-table-column align="center" prop="startDate" label="开始时间" >
</el-table-column> </el-table-column>
@ -691,6 +691,10 @@ export default {
top: 70px; top: 70px;
left: 16px; left: 16px;
position: absolute; position: absolute;
height: 286px;
@media only screen and (max-height: 1000px) {
height: 237px;
}
} }
.dh1 { .dh1 {
animation: mytest 0.5s linear; animation: mytest 0.5s linear;
@ -889,7 +893,7 @@ export default {
font-size: 14px; font-size: 14px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin: 10px auto 0; margin: 13px auto 0;
width: 90%; width: 90%;
border-bottom: 1px solid rgba(96, 213, 205, 0.4); border-bottom: 1px solid rgba(96, 213, 205, 0.4);
} }
@ -1311,7 +1315,7 @@ export default {
// background-color: transparent !important; // background-color: transparent !important;
color: #ADFFFE !important; color: #ADFFFE !important;
border: none !important; border: none !important;
padding-left: 0 !important; padding-left: 7 !important;
padding-right: 0 !important; padding-right: 0 !important;
} }

View File

@ -38,25 +38,60 @@
<div class="boxChild"> <div class="boxChild">
<div class="fathBox"></div> <div class="fathBox"></div>
<div class="fath2Box"> <div class="fath2Box">
<div style="margin-left: 21px;margin-top: 8px;"> <div style="margin-left: 21px; margin-top: 8px">
<span style="color:#82DDDB;">派单时间</span> <span style="color: #82dddb">派单时间</span>
<span style="color:#fff;">{{ item.value }}</span> <span style="color: #fff">{{ item.allocateDate }}</span>
</div> </div>
<div style="margin-left: 21px;margin-top: 8px;"> <div style="margin-left: 21px; margin-top: 8px">
<span style="color:#82DDDB;width: 71px; text-align-last: justify;display: inline-block;">整改人</span> <span
<span style="color:#fff;">陈晓红</span> style="
color: #82dddb;
width: 71px;
text-align-last: justify;
display: inline-block;
"
>整改人</span
>
<span style="color: #fff">{{ item.rectifier }}</span>
</div> </div>
<div style="margin-left: 21px;margin-top: 8px;"> <div style="margin-left: 21px; margin-top: 8px">
<span style="color:#82DDDB;width: 71px; text-align-last: justify;display: inline-block;">状态</span> <span
<span style="color:#EAA505;">待处理</span> style="
color: #82dddb;
width: 71px;
text-align-last: justify;
display: inline-block;
"
>状态</span
>
<span style="color: #eaa505">{{ item.status }}</span>
</div> </div>
<div style="margin-left: 21px;margin-top: 8px;"> <div style="margin-left: 21px; margin-top: 8px">
<span style="color:#82DDDB;width: 71px; text-align-last: justify;display: inline-block;">隐患内容</span> <span
<span style="color:#fff;">现场作业准备</span> style="
color: #82dddb;
width: 71px;
text-align-last: justify;
display: inline-block;
"
>隐患内容</span
>
<span style="color: #fff">{{ item.troubleContent }}</span>
</div> </div>
<div style="margin-left: 21px;margin-top: 8px;"> <div style="margin-left: 21px; margin-top: 8px">
<span style="color:#82DDDB;width: 71px;vertical-align: top; text-align-last: justify;display: inline-block;">隐患内容</span> <span
<span style="color:#fff;display: inline-block;width: 90px;">上方悬挂摇晃吊灯下坠</span> style="
color: #82dddb;
width: 71px;
vertical-align: top;
text-align-last: justify;
display: inline-block;
"
>隐患内容</span
>
<span style="color: #fff; display: inline-block; width: 90px">{{
item.troubleMark
}}</span>
</div> </div>
</div> </div>
</div> </div>
@ -64,36 +99,19 @@
<p class="left" @click="changePage(1)"></p> <p class="left" @click="changePage(1)"></p>
<p class="right" @click="changePage(2)"></p> <p class="right" @click="changePage(2)"></p>
</div> </div>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</template> </template>
<script> <script>
import { import { getResolveTroublePage } from "../api/api";
getMostTroubleCensus
} from "../api/api";
export default { export default {
components: {}, components: {},
props: {}, props: {},
data() { data() {
return { return {
list: [ list: [],
{
value: "2023-01-17"
},
{
value: "2023-01-18"
},
{
value: "2023-01-19"
}, {
value: "2023-11-20"
}, {
value: "2023-01-21"
}
],
listIndex: 0, // listIndex: 0, //
timer: null, // timer: null, //
}; };
@ -118,19 +136,32 @@ export default {
}, },
methods: { methods: {
getData() { getData() {
getMostTroubleCensus({ getResolveTroublePage({
projectId: sessionStorage.getItem("projectId"), projectId: sessionStorage.getItem("projectId"),
// size:10, size: 100,
// current:1 current: 1,
}).then((res) => { }).then((res) => {
console.log(res.data,'=================='); this.list = Object.keys(res.data.data.records).map((item, index) => {
if (res.data.data.records[item].status == 0) {
res.data.data.records[item].status = "未完成";
} else {
res.data.data.records[item].status = "已完成";
}
return {
allocateDate: res.data.data.records[item].allocateDate,
rectifier: res.data.data.records[item].rectifier,
status: res.data.data.records[item].status,
troubleContent: res.data.data.records[item].troubleContent,
troubleMark: res.data.data.records[item].troubleMark,
};
});
}); });
}, },
changePage(index) { changePage(index) {
if (index == 1) { if (index == 1) {
this.$refs.carousel.prev() this.$refs.carousel.prev();
} else { } else {
this.$refs.carousel.next() this.$refs.carousel.next();
} }
// this.listIndex = index; // this.listIndex = index;
}, },
@ -157,7 +188,7 @@ export default {
this.setTimer(); this.setTimer();
}, },
mounted() { mounted() {
this.getData() this.getData();
}, },
}; };
</script> </script>
@ -220,7 +251,6 @@ export default {
@media only screen and (max-height: 1000px) { @media only screen and (max-height: 1000px) {
top: 31px; top: 31px;
} }
} }
.right { .right {
@ -260,7 +290,6 @@ export default {
// } // }
// } // }
// } // }
} }
</style> </style>
<style> <style>

View File

@ -159,6 +159,7 @@ import pieChart from "@/components/common/pieChart";
import pieDateChart from "@/components/common/pieDateChart"; import pieDateChart from "@/components/common/pieDateChart";
import Resize from "../utils/Resize.vue"; import Resize from "../utils/Resize.vue";
import { getCameraCount, getCameraHistory } from "@/api/api"; import { getCameraCount, getCameraHistory } from "@/api/api";
import flvjs from 'flv.js'
export default { export default {
name: "report", name: "report",
props: { props: {