|
|
|
@ -1,37 +1,52 @@ |
|
|
|
<template> |
|
|
|
<div class="mod-config"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24" style="display:flex"> |
|
|
|
|
|
|
|
<div style=" margin: auto; width: 300px;height: 50px;display:flex"> |
|
|
|
<img src="src/assets/img/avatar.png" height="55"> |
|
|
|
<h2>赫艾内部MES沟通系统</h2> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-table |
|
|
|
:data="dataList" |
|
|
|
border |
|
|
|
ref="task_table" |
|
|
|
:height="height" |
|
|
|
:row-class-name="tableRowClassName" |
|
|
|
@mouseenter.native="mouseEnter" |
|
|
|
@mouseleave.native="mouseLeave" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="'center'" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
:width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-table |
|
|
|
:data="dataList" |
|
|
|
border |
|
|
|
ref="task_table" |
|
|
|
:height="height" |
|
|
|
:row-class-name="tableRowClassName" |
|
|
|
@mouseenter.native="mouseEnter" |
|
|
|
@mouseleave.native="mouseLeave" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
|
:sortable="item.columnSortable" |
|
|
|
:prop="item.columnProp" |
|
|
|
:header-align="'center'" |
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
:align="item.align" |
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
:width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import {getTaskListReport} from '@/api/taskmanage/tasklist.js' |
|
|
|
import {getTaskDetailList} from '@/api/taskmanage/tasklist.js' |
|
|
|
|
|
|
|
let domTimer = '' // 自动滚动的定时任务 |
|
|
|
let dataTimer = '' // 数据定时任务 |
|
|
|
@ -40,7 +55,7 @@ |
|
|
|
return { |
|
|
|
height: 200, |
|
|
|
dataForm: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
site: this.$store.state.user.site?this.$store.state.user.site:1, |
|
|
|
customer: '', |
|
|
|
taskHeader: '', |
|
|
|
project: '', |
|
|
|
@ -57,7 +72,6 @@ |
|
|
|
}, |
|
|
|
// 展示列集 |
|
|
|
columnList: [ |
|
|
|
|
|
|
|
{ |
|
|
|
tableId: "ProjectInfo", |
|
|
|
tableName: this.$route.meta.title, |
|
|
|
@ -66,7 +80,7 @@ |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
columnWidth: 100, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
@ -79,12 +93,12 @@ |
|
|
|
{ |
|
|
|
tableId: "ProjectInfo", |
|
|
|
tableName: this.$route.meta.title, |
|
|
|
columnProp: "taskStartDate", |
|
|
|
columnLabel: "发起日期", |
|
|
|
columnProp: "project", |
|
|
|
columnLabel: "项目", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
columnWidth: 100, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
@ -97,8 +111,8 @@ |
|
|
|
{ |
|
|
|
tableId: "ProjectInfo", |
|
|
|
tableName: this.$route.meta.title, |
|
|
|
columnProp: "requiredCompletionDate", |
|
|
|
columnLabel: "要求完成日期", |
|
|
|
columnProp: "taskHeader", |
|
|
|
columnLabel: "任务主题", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
@ -115,12 +129,12 @@ |
|
|
|
{ |
|
|
|
tableId: "ProjectInfo", |
|
|
|
tableName: this.$route.meta.title, |
|
|
|
columnProp: "taskHeader", |
|
|
|
columnLabel: "任务主题", |
|
|
|
columnProp: "taskStartDate", |
|
|
|
columnLabel: "发起日期", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
columnWidth: 100, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
@ -133,12 +147,12 @@ |
|
|
|
{ |
|
|
|
tableId: "ProjectInfo", |
|
|
|
tableName: this.$route.meta.title, |
|
|
|
columnProp: "project", |
|
|
|
columnLabel: "项目", |
|
|
|
columnProp: "requiredCompletionDate", |
|
|
|
columnLabel: "要求完成日期", |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
columnWidth: 100, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
@ -148,6 +162,7 @@ |
|
|
|
columnType: null, |
|
|
|
align: null |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
tableId: "ProjectInfo", |
|
|
|
tableName: this.$route.meta.title, |
|
|
|
@ -156,7 +171,7 @@ |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
columnWidth: 80, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
@ -174,7 +189,7 @@ |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
columnWidth: 80, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
@ -192,7 +207,7 @@ |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnWidth: null, |
|
|
|
columnWidth: 80, |
|
|
|
format: null, |
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
sortLv: 0, |
|
|
|
@ -222,7 +237,7 @@ |
|
|
|
methods: { |
|
|
|
// 获取数据列表 |
|
|
|
getDataList() { |
|
|
|
getTaskListReport(this.dataForm).then(({data}) => { |
|
|
|
getTaskDetailList(this.dataForm).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dataList = data.data |
|
|
|
} else { |
|
|
|
@ -292,11 +307,11 @@ |
|
|
|
</script> |
|
|
|
<style> |
|
|
|
.mod-config .not-processing { |
|
|
|
background-color: rgba(255, 0, 0, 0.93); |
|
|
|
background-color: #ffff00; |
|
|
|
} |
|
|
|
|
|
|
|
.mod-config .processing { |
|
|
|
background-color: #ffff00; |
|
|
|
background-color: #ffffff; |
|
|
|
} |
|
|
|
|
|
|
|
.mod-config .finish{ |
|
|
|
|