Commit a7791136 by 夏新然

修改表格问题

1 parent 9ca2a12a
......@@ -140,6 +140,9 @@
.el-table--striped .el-table__body tr.el-table__row--striped td{
background: #FFFFFF;
}
.el-table--enable-row-hover .el-table__body tr:hover>td {
background-color: #F5F7FA!important;
}
/* 提示 */
.el-tooltip__popper{
padding: 6px 12px;
......
......@@ -20,8 +20,8 @@ Vue.prototype.$buildCode = buildCode;
Vue.prototype.oParse = new XML.ObjTree();
Vue.prototype.axios = axios;
// import VueParticles from "vue-particles";
// Vue.use(VueParticles);
import VueParticles from "vue-particles";
Vue.use(VueParticles);
Vue.use(api);
Vue.use(ElementUI, { size: "small", zIndex: 3000 });
......
......@@ -156,15 +156,15 @@ export const asyncRouterMap = [
component: resolve =>
require(["../views/resource/videoEquipment.vue"], resolve)
},
{
path: "/resource/equipment",
name: "分析设备",
meta: {
icon: "el-icon-location"
},
component: resolve =>
require(["../views/resource/analysis.vue"], resolve)
},
// {
// path: "/resource/equipment",
// name: "分析设备",
// meta: {
// icon: "el-icon-location"
// },
// component: resolve =>
// require(["../views/resource/analysis.vue"], resolve)
// },
{
path: "/resource/store_confs",
name: "存储配置",
......
<template>
<div id="login" :style="{ height: innerHeight + 'px' }">
<!-- <vue-particles
<!-- ie空白解决方法https://blog.csdn.net/heyNewbie/article/details/99623550 -->
<vue-particles
color="#dedede"
:particleOpacity="0.7"
:particlesNumber="80"
......@@ -17,7 +18,7 @@
:clickEffect="true"
clickMode="push"
>
</vue-particles> -->
</vue-particles>
<div class="box">
<h1>视频分析综合管理平台</h1>
<div style="width: 60%;margin: 0 auto;">
......@@ -136,7 +137,7 @@ export default {
}).then(res=>{
localStorage.setItem('menu', JSON.stringify(res.menu_tree[0].children))
this.$store.dispatch('GetMenuRole',res.menu_tree[0].children).then(res => {
this.$router.push('/')
this.$router.push('/trficcshow')
})
})
},
......
......@@ -66,6 +66,13 @@
border
@selection-change="handleSelectionChange">
<el-table-column
prop="index"
align="center"
label="#"
:formatter="indexFormatter"
width="50">
</el-table-column>
<el-table-column
prop="event_cate"
align="center"
:formatter="cateFormatter"
......@@ -216,6 +223,9 @@
this.getData()
},
methods:{
indexFormatter(row, column, cellValue, index){
return index+(this.page-1)*this.pageSize+1;
},
cateFormatter(row, column, cellValue, index){
let name=''
this.cateList.forEach(item=>{
......@@ -238,12 +248,17 @@
})
},
getSubTask(){
this.conditions.subtask_id=null;
this.$api.task.getSubTask(this.conditions.task_id).then(res => {
if(res.list_data==null){
this.subTaskList=[];
}else{
this.subTaskList = res.list_data;
if( this.subTaskList.length>0){
this.conditions.subtask_id=this.subTaskList[0].subtask_id
}
this.subTaskList.unshift({
subtask_id:'',
subtask_name:'全部'
})
this.conditions.subtask_id='';
})
},
cateChange(){
......
......@@ -91,6 +91,13 @@
width="55">
</el-table-column>
<el-table-column
prop="index"
align="center"
label="#"
:formatter="indexFormatter"
width="50">
</el-table-column>
<el-table-column
prop="vehicle_plate_text"
align="center"
label="车牌号码">
......@@ -293,6 +300,9 @@
this.getData()
},
methods:{
indexFormatter(row, column, cellValue, index){
return index+(this.page-1)*this.pageSize+1;
},
getTaskList(){
this.$api.task.getTask({
source_type: "pull_video_stream",
......@@ -306,12 +316,17 @@
})
},
getSubTask(){
this.conditions.subtask_id=null;
this.$api.task.getSubTask(this.conditions.task_id).then(res => {
if(res.list_data==null){
this.subTaskList=[];
}else{
this.subTaskList = res.list_data;
if( this.subTaskList.length>0){
this.conditions.subtask_id=this.subTaskList[0].subtask_id
}
this.subTaskList.unshift({
subtask_id:'',
subtask_name:'全部'
})
this.conditions.subtask_id='';
})
},
playFun(index,row){
......
......@@ -73,6 +73,13 @@
stripe
border>
<el-table-column
prop="index"
align="center"
label="#"
:formatter="indexFormatter"
width="50">
</el-table-column>
<el-table-column
align="center"
prop="event_dt"
label="时间">
......@@ -209,6 +216,9 @@
this.getTaskList();
},
methods:{
indexFormatter(row, column, cellValue, index){
return index+(this.page-1)*this.pageSize+1;
},
getTaskList(){
this.$api.task.getTask({
source_type: "pull_video_stream",
......@@ -222,12 +232,17 @@
})
},
getSubTask(){
this.conditions.subtask_id=null;
this.$api.task.getSubTask(this.conditions.task_id).then(res => {
if(res.list_data==null){
this.subTaskList=[];
}else{
this.subTaskList = res.list_data;
if( this.subTaskList.length>0){
this.conditions.subtask_id=this.subTaskList[0].subtask_id
}
this.subTaskList.unshift({
subtask_id:'',
subtask_name:'全部'
})
this.conditions.subtask_id='';
})
},
typeFormatter(row, column, cellValue, index){
......
......@@ -115,12 +115,20 @@
stripe
border
@selection-change="handleSelectionChange">
<el-table-column
type="selection"
align="center"
width="55">
</el-table-column>
<el-table-column
prop="index"
align="center"
label="#"
:formatter="indexFormatter"
width="50">
</el-table-column>
<el-table-column
prop="vehicle_plate_text"
align="center"
label="车牌号码">
......@@ -286,8 +294,8 @@
plate:'',
task_id:'',
curdelid:'',
subtask_name:'',
special_type:''
special_type:'',
subtask_id:''
},
brandList:this.$buildCode.getCodeList('车辆品牌'),
vehicleTypeList:this.$buildCode.getCodeList('车辆类型'),
......@@ -316,6 +324,9 @@
this.getTaskList();
},
methods:{
indexFormatter(row, column, cellValue, index){
return index+(this.page-1)*this.pageSize+1;
},
getTaskList(){
this.$api.task.getTask({
source_type: "pull_video_stream",
......@@ -329,16 +340,31 @@
})
},
getSubTask(){
this.conditions.subtask_id=null;
this.$api.task.getSubTask(this.conditions.task_id).then(res => {
if(res.list_data==null){
this.subTaskList=[];
}else{
this.subTaskList = res.list_data;
if( this.subTaskList.length>0){
this.conditions.subtask_id=this.subTaskList[0].subtask_id
}
this.subTaskList.unshift({
subtask_id:'',
subtask_name:'全部'
})
this.conditions.subtask_id='';
})
},
exportFun(){
window.open(encodeURI(process.env.VUE_APP_URL + '/api/v1/traffic/events/export?s=' + Math.random()+'&event_type=&event_dt__gte='+this.$moment(this.conditions.start_dt).utc().format('YYYY-MM-DD HH:mm:ss')+'&event_dt__lt='+this.$moment(this.conditions.end_dt).utc().format('YYYY-MM-DD HH:mm:ss')+'&subtask_name='+this.conditions.subtask_name+'&vehicle_type='+this.conditions.car_type+'&body_color='+this.conditions.car_color+'&logo_type='+this.conditions.logo_type+'&plate_number__like='+this.conditions.plate+'&task_id='+this.conditions.task_id+'&special_type='+this.conditions.special_type))
window.open(encodeURI(process.env.VUE_APP_URL
+ '/api/v1/traffic/events/export?s=' + Math.random()
+'&event_type=&event_dt__gte='+this.$moment(this.conditions.start_dt).utc().format('YYYY-MM-DD HH:mm:ss')
+'&event_dt__lt='+this.$moment(this.conditions.end_dt).utc().format('YYYY-MM-DD HH:mm:ss')
+'&subtask_id='+this.conditions.subtask_id
+'&vehicle_type='+this.conditions.car_type
+'&body_color='+this.conditions.car_color
+'&logo_type='+this.conditions.logo_type
+'&plate_number__like='+this.conditions.plate
+'&task_id='+this.conditions.task_id
+'&special_type='+this.conditions.special_type))
},
batchdel(){
if(this.selectcheck.length==0){
......@@ -421,7 +447,6 @@
event_dt__gte: this.$moment(this.conditions.start_dt).utc().format('YYYY-MM-DD HH:mm:ss'),
event_dt__lt:this.$moment(this.conditions.end_dt).utc().format('YYYY-MM-DD HH:mm:ss'),
// source_type: this.conditions.source_type,
subtask_name: this.conditions.subtask_name,
vehicle_type: this.conditions.car_type,
body_color: this.conditions.car_color,
logo_type: this.conditions.logo_type,
......@@ -430,7 +455,8 @@
plate_type: this.conditions.plate_type,
event_type: '',
special_type:this.conditions.special_type,
task_id: this.conditions.task_id
task_id: this.conditions.task_id,
subtask_id:this.conditions.subtask_id
}
this.$api.search.tableList(search_params
).then((res)=>{
......
......@@ -144,6 +144,13 @@
width="55">
</el-table-column>
<el-table-column
prop="index"
align="center"
label="#"
:formatter="indexFormatter"
width="50">
</el-table-column>
<el-table-column
prop="xcycle_type_text"
align="center"
label="检测类型">
......@@ -323,8 +330,8 @@
start_dt:start_dt,
end_dt:end_dt,
event_type: 'xcycle',
subtask_id:null,
task_id:null,
subtask_id:'',
task_id:'',
xcycle_type:'',
sex:'',
company:'',
......@@ -360,6 +367,9 @@
this.getData()
},
methods:{
indexFormatter(row, column, cellValue, index){
return index+(this.page-1)*this.pageSize+1;
},
getTaskList(){
this.$api.task.getTask({
source_type: "pull_video_stream",
......@@ -373,12 +383,17 @@
})
},
getSubTask(){
this.conditions.subtask_id=null;
this.$api.task.getSubTask(this.conditions.task_id).then(res => {
if(res.list_data==null){
this.subTaskList=[];
}else{
this.subTaskList = res.list_data;
if( this.subTaskList.length>0){
this.conditions.subtask_id=this.subTaskList[0].subtask_id
}
this.subTaskList.unshift({
subtask_id:'',
subtask_name:'全部'
})
this.conditions.subtask_id='';
})
},
typeChange(){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!