|
|
|
|
@ -0,0 +1,332 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="clockin-content">
|
|
|
|
|
<div class="left-content">
|
|
|
|
|
<div class="filter-container">
|
|
|
|
|
<el-input type="text" v-model="listQuery.name" placeholder="请输入搜索关键字" style="width:300px;margin-right:15px;" size="mini" round></el-input>
|
|
|
|
|
<el-button type="default" size="mini" @click="resetListQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" size="mini" icon="el-icon-search" @click="getTaskList()">查询</el-button>
|
|
|
|
|
<el-button type="primary" size="mini" icon="el-icon-plus">创建任务</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clock-item-container">
|
|
|
|
|
<div class="clock-item" v-for="(item,index) in tasklist" :key="index">
|
|
|
|
|
<p>任务描述:{{ item.pointname }}</p>
|
|
|
|
|
<p>创建时间:{{ item.createtime }}</p>
|
|
|
|
|
<p>负责人员:{{item.usernames}}</p>
|
|
|
|
|
<p style="text-align:right;">
|
|
|
|
|
<el-popconfirm
|
|
|
|
|
title="确定删除吗?"
|
|
|
|
|
@confirm="deleteTask(item.id)"
|
|
|
|
|
>
|
|
|
|
|
<el-button slot="reference" type="default" round size="mini" icon="el-icon-delete" style="margin-right:15px;">删除</el-button>
|
|
|
|
|
</el-popconfirm>
|
|
|
|
|
<el-button type="primary" round size="mini" icon="el-icon-location-outline">位置</el-button>
|
|
|
|
|
<el-button type="primary" round size="mini" icon="el-icon-location-outline">查看</el-button>
|
|
|
|
|
<el-button type="primary" round size="mini" icon="el-icon-edit">编辑</el-button>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="page-container">
|
|
|
|
|
<el-pagination
|
|
|
|
|
background
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
:total="total">
|
|
|
|
|
</el-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="right-content">
|
|
|
|
|
<div class="map-container">
|
|
|
|
|
<Map></Map>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item-container">
|
|
|
|
|
<div class="item-container-left">
|
|
|
|
|
<el-descriptions class="margin-top" :column="1" :size="'middle'" border>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
<i class="el-icon-time"></i>
|
|
|
|
|
创建时间:
|
|
|
|
|
</template>
|
|
|
|
|
2023-10-07 09:23:42
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
<i class="el-icon-place"></i>
|
|
|
|
|
打开地点:
|
|
|
|
|
</template>
|
|
|
|
|
118.88888,35.666666 <el-button type="primary" size="mini" round icon="el-icon-location-outline">定位</el-button>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template slot="label">
|
|
|
|
|
<i class="el-icon-office-building"></i>
|
|
|
|
|
任务内容:
|
|
|
|
|
</template>
|
|
|
|
|
江苏省苏州市吴中区吴中大道 1188 号
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item-container-right">
|
|
|
|
|
<div class="user-item" v-for="(item,index) in userlist" :key="index">
|
|
|
|
|
<div class="user-photo">
|
|
|
|
|
<img src="/img/gridman/user.png" alt="">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user-name">{{item.name}}</div>
|
|
|
|
|
<div class="user-phone">{{item.phone}}</div>
|
|
|
|
|
<span class="user-operation">
|
|
|
|
|
<el-button type="primary" size="mini" round icon="el-icon-map-location">范围</el-button>
|
|
|
|
|
<el-button type="primary" size="mini" icon="el-icon-wind-power" round>轨迹</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getMethodCommon, postMethodCommon } from '../../../api/common';
|
|
|
|
|
import Map from './widget/ditu.vue'
|
|
|
|
|
export default {
|
|
|
|
|
components:{
|
|
|
|
|
Map,
|
|
|
|
|
},
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
listQuery:{
|
|
|
|
|
pageSize:10,
|
|
|
|
|
pageIndex:1,
|
|
|
|
|
name:null,
|
|
|
|
|
},
|
|
|
|
|
total:0,
|
|
|
|
|
tasklist:[],
|
|
|
|
|
userlist:[
|
|
|
|
|
{
|
|
|
|
|
name:"徐景良",
|
|
|
|
|
phone:"1786185775"
|
|
|
|
|
},{
|
|
|
|
|
name:"石超",
|
|
|
|
|
phone:"1786185775"
|
|
|
|
|
},{
|
|
|
|
|
name:"张斌",
|
|
|
|
|
phone:"1786185775"
|
|
|
|
|
},{
|
|
|
|
|
name:"张凯",
|
|
|
|
|
phone:"1786185775"
|
|
|
|
|
},{
|
|
|
|
|
name:"徐景良",
|
|
|
|
|
phone:"1786185775"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created(){
|
|
|
|
|
this.getTaskList();
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
getTaskList(){
|
|
|
|
|
getMethodCommon("/FireGrid/GetCheckPoint",this.listQuery).then(res=>{
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
this.tasklist = res.data;
|
|
|
|
|
this.total = res.count;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
resetListQuery(){
|
|
|
|
|
this.listQuery.name = null;
|
|
|
|
|
this.listQuery.pageIndex = 1;
|
|
|
|
|
this.listQuery.pageSize = 10;
|
|
|
|
|
this.getTaskList();
|
|
|
|
|
},
|
|
|
|
|
deleteTask(id){
|
|
|
|
|
postMethodCommon("/FireGrid/DeleteCheckPoint?id="+id).then(res=>{
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
this.$message({
|
|
|
|
|
type:"success",
|
|
|
|
|
message:res.message
|
|
|
|
|
})
|
|
|
|
|
this.getTaskList();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleSizeChange(e){
|
|
|
|
|
this.listQuery.pageSize = e;
|
|
|
|
|
this.getTaskList();
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(e){
|
|
|
|
|
this.listQuery.pageIndex = e;
|
|
|
|
|
this.getTaskList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.clockin-content{
|
|
|
|
|
width:100%;
|
|
|
|
|
height: calc(100vh - 100px);
|
|
|
|
|
padding:15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left-content{
|
|
|
|
|
width:600px;
|
|
|
|
|
height:100%;
|
|
|
|
|
background:#272d39;
|
|
|
|
|
float:left;
|
|
|
|
|
}
|
|
|
|
|
.filter-container{
|
|
|
|
|
width:100%;
|
|
|
|
|
height:60px;
|
|
|
|
|
padding:15px;
|
|
|
|
|
border-bottom:1px solid #636262;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.clock-item-container{
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc( 100% - 131px);
|
|
|
|
|
padding:15px;
|
|
|
|
|
color:#efefef;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page-container{
|
|
|
|
|
width:100%;
|
|
|
|
|
height:79px;
|
|
|
|
|
border-top:1px solid #636262;
|
|
|
|
|
padding:20px 6px;
|
|
|
|
|
}
|
|
|
|
|
.clock-item{
|
|
|
|
|
width:100%;
|
|
|
|
|
height:170px;
|
|
|
|
|
margin:10px 0px;
|
|
|
|
|
padding:15px;
|
|
|
|
|
background:#464545;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
.right-content{
|
|
|
|
|
width: calc( 100% - 615px);
|
|
|
|
|
height:100%;
|
|
|
|
|
float:right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.map-container{
|
|
|
|
|
width:100%;
|
|
|
|
|
height: calc( 100% - 215px);
|
|
|
|
|
background:#272d39;
|
|
|
|
|
margin-bottom:15px;
|
|
|
|
|
}
|
|
|
|
|
.item-container{
|
|
|
|
|
width:100%;
|
|
|
|
|
height:200px;
|
|
|
|
|
background:#272d39;
|
|
|
|
|
padding:15px;
|
|
|
|
|
}
|
|
|
|
|
.item-container-left{
|
|
|
|
|
width:50%;
|
|
|
|
|
height:100%;
|
|
|
|
|
float:left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-container-right{
|
|
|
|
|
width:50%;
|
|
|
|
|
height: calc( 100% - 15px);
|
|
|
|
|
float:right;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
margin:0px 0px;
|
|
|
|
|
padding:0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item-container-right div{
|
|
|
|
|
float:left;
|
|
|
|
|
}
|
|
|
|
|
.user-item{
|
|
|
|
|
width:100%;
|
|
|
|
|
height:50px;
|
|
|
|
|
line-height:50px;
|
|
|
|
|
padding:0px 30px;
|
|
|
|
|
color:#fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-photo{
|
|
|
|
|
float:left;
|
|
|
|
|
width:36px;
|
|
|
|
|
height:36px;
|
|
|
|
|
margin-top:6px;
|
|
|
|
|
background-color:rgb(255, 255, 255);
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
line-height: 36px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.user-photo img{
|
|
|
|
|
width:32px;
|
|
|
|
|
height:32px;
|
|
|
|
|
margin:0px;
|
|
|
|
|
}
|
|
|
|
|
.user-name{
|
|
|
|
|
width:100px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color:#fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-phone{
|
|
|
|
|
width:100px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-operation{
|
|
|
|
|
float:right;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-descriptions__body{
|
|
|
|
|
background:none;
|
|
|
|
|
color:#fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-descriptions-item__label.is-bordered-label{
|
|
|
|
|
background:none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-descriptions .is-bordered .el-descriptions-item__cell{
|
|
|
|
|
border-color: #272d39;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
height: 10px;
|
|
|
|
|
width: 10px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
padding-top: 100px;
|
|
|
|
|
-webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1),
|
|
|
|
|
inset -1px -1px 0 rgba(0, 0, 0, 0.07);
|
|
|
|
|
background-color: #797979;
|
|
|
|
|
min-height: 28px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track,
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
border: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
-webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25);
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:active {
|
|
|
|
|
-webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-descriptions-item__label.is-bordered-label{
|
|
|
|
|
color:#efefef;
|
|
|
|
|
}
|
|
|
|
|
</style>
|