Merge remote-tracking branch 'origin/yuekuo' into zhoulingpo
# Conflicts: # src/router/modules/userCenter.js # src/views/Report/ReportList.vue # src/views/Report/ReportManager.vue # src/views/userCenter/processCenter.vue
This commit is contained in:
@@ -1,123 +1,104 @@
|
||||
<template>
|
||||
<div class="centerBox content-height">
|
||||
<div class="content">
|
||||
<div class="title">
|
||||
<span>流程中心</span>
|
||||
</div>
|
||||
<div class="search">
|
||||
<el-row>
|
||||
<el-col :span="20">
|
||||
<div class="search-box-left">
|
||||
<div class="">
|
||||
<label>流程编号:</label>
|
||||
<el-input v-model="form.id" placeholder="请输入流程编号"></el-input>
|
||||
</div>
|
||||
<div class="">
|
||||
<label>流程名称:</label>
|
||||
<el-input v-model="form.name" placeholder="请输入流程名称"></el-input>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="4" align="right">
|
||||
<div class="search-box-right">
|
||||
<div class="searchForm">
|
||||
<div class="item">
|
||||
<div>流程编号:</div>
|
||||
<el-input v-model="form.id" ></el-input>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>流程名称:</div>
|
||||
<el-input v-model="form.name"></el-input>
|
||||
</div>
|
||||
<div class="item">
|
||||
<el-button type="primary" @click="search">查询</el-button>
|
||||
<el-button type="" @click="reset">重置</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<tabs />
|
||||
<tabs :tableData="tableData"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tabs from '../userCenter/processCenter/tabs.vue'
|
||||
export default {
|
||||
name: 'processCenter',
|
||||
components: {
|
||||
tabs
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
form: {}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
||||
},
|
||||
mounted () {
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 查询
|
||||
search () {
|
||||
// this.$api.processCenter.search({})
|
||||
export default {
|
||||
name:'processCenter',
|
||||
components:{
|
||||
tabs
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
tableData:[]
|
||||
}
|
||||
},
|
||||
created () {
|
||||
;
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('clearForm',()=>{
|
||||
this.form={}
|
||||
});
|
||||
},
|
||||
// 重置
|
||||
reset () {
|
||||
this.form = {}
|
||||
// this.$api.processCenter.reset({})
|
||||
methods: {
|
||||
//查询
|
||||
search() {
|
||||
this.$bus.$emit('getSearchItem',this.form)
|
||||
// this.$api.processCenter.search({})
|
||||
this.tableData=[{createTime:'1999-10-1'}]
|
||||
},
|
||||
//重置
|
||||
reset(){
|
||||
this.form={}
|
||||
this.$forceUpdate()
|
||||
this.$bus.$emit('getSearchItem',this.form)
|
||||
this.tableData=[{createTime:'3000-10-1'}]
|
||||
// this.$api.processCenter.reset({})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.centerBox{
|
||||
background-color: #fff;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
.content{
|
||||
min-height: calc(100vh - 60px - 20px);
|
||||
box-shadow: 0 6px 11px 0 rgba(163, 163, 163, 0.2);
|
||||
border-radius: 6px;
|
||||
background: #FFFFFF;
|
||||
.title {
|
||||
border-bottom: 1px solid #EBEEF5;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
margin: 0 18px 0 22px;
|
||||
margin: 0 18px 0 22px;
|
||||
|
||||
span {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #262626;
|
||||
}
|
||||
}
|
||||
.search {
|
||||
.search-box-left {
|
||||
padding-top: 20px;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
|
||||
label {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #595959;
|
||||
margin-right: 5px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
::v-deep .el-input {
|
||||
width: 167px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
@media screen and (max-width: 1366px) {
|
||||
::v-deep .el-input {
|
||||
width: 135px;
|
||||
margin-right: 5px;
|
||||
.searchForm{
|
||||
width: 1200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 20px 0 0 22px;
|
||||
.item{
|
||||
width: 300px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
.search-box-right {
|
||||
padding-top: 20px;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
.tabs{
|
||||
margin: 20px 20px 5px;
|
||||
margin: 20px 0 0 13px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
::v-deep .el-input{
|
||||
width: 200px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,129 +1,89 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
style="width: 100%"
|
||||
border
|
||||
:header-cell-style="{background:'#DFE6EC',fontWeight:'700',color:'#1F2D3D'}"
|
||||
>
|
||||
<el-table-column
|
||||
prop="processId"
|
||||
label="流程编号"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processName"
|
||||
label="流程名称"
|
||||
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processPerson"
|
||||
label="发起人"
|
||||
width="220"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="now"
|
||||
label="当前处理人"
|
||||
width="190"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="last"
|
||||
label="上一处理人"
|
||||
width="180"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
width="180"
|
||||
sortable
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
label="完成时间"
|
||||
width="170"
|
||||
sortable
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
label="状态"
|
||||
width="125"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
label="操作"
|
||||
width="120"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@click.native.prevent="view(scope.$index, tableData)"
|
||||
type="text"
|
||||
size="small">
|
||||
查看
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-table :data="tableData" style="width: 100%" border
|
||||
:header-cell-style="{ background: '#DFE6EC', fontWeight: '700', color: '#1F2D3D' }">
|
||||
<el-table-column prop="processId" label="流程编号" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="processName" label="流程名称" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="processPerson" label="发起人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="now" label="当前处理人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="last" label="上一处理人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="endTime" label="完成时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click.native.prevent="view(scope.$index, tableData)" type="text" size="small">
|
||||
查看
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'finishProcess',
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
processId: '2016-05-1',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-1'
|
||||
}, {
|
||||
processId: '2016-05-2',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-2'
|
||||
}, {
|
||||
processId: '2016-05-3',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-3'
|
||||
}, {
|
||||
processId: '2016-05-4',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-4'
|
||||
}]
|
||||
export default {
|
||||
name: 'finishProcess',
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
processId: '2016-05-1',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-1'
|
||||
}, {
|
||||
processId: '2016-05-2',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-2'
|
||||
}, {
|
||||
processId: '2016-05-3',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-3'
|
||||
}, {
|
||||
processId: '2016-05-4',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-4'
|
||||
}]
|
||||
}
|
||||
},
|
||||
props:{
|
||||
secondData:{
|
||||
type:Array,
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('22',data)
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
secondData(newValue, oldValue) {
|
||||
this.tableData=newValue
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
view(){
|
||||
view() {
|
||||
alert(111)
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-table__fixed, ::v-deep .el-table__fixed-right ::before{
|
||||
height: 0px !important;
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -1,96 +1,93 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
style="width: 100%"
|
||||
border
|
||||
:header-cell-style="{background:'#DFE6EC',fontWeight:'700',color:'#1F2D3D'}"
|
||||
>
|
||||
<el-table-column
|
||||
prop="processId"
|
||||
label="流程编号"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processName"
|
||||
label="流程名称"
|
||||
|
||||
align="left"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processPerson"
|
||||
label="发起人"
|
||||
width="390"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
width="260"
|
||||
sortable
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
label="操作"
|
||||
width="120"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@click.native.prevent="handle(scope.$index, tableData)"
|
||||
type="text"
|
||||
size="small">
|
||||
办理
|
||||
</el-button>
|
||||
</template>
|
||||
<div>
|
||||
<el-table :data="tableData" style="width: 100%" border :header-cell-style="{
|
||||
background: '#DFE6EC',
|
||||
fontWeight: '700',
|
||||
color: '#1F2D3D',
|
||||
}">
|
||||
<el-table-column prop="processId" label="流程编号" align="center">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<el-table-column prop="processName" label="流程名称" align="left">
|
||||
</el-table-column>
|
||||
<el-table-column prop="processPerson" label="发起人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click.native.prevent="handle(scope.$index, tableData)" type="text" size="small">
|
||||
办理
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'gencyProcess',
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
processId: '2016-05-1',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-1'
|
||||
}, {
|
||||
processId: '2016-05-2',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-2'
|
||||
}, {
|
||||
processId: '2016-05-3',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-3'
|
||||
}, {
|
||||
processId: '2016-05-4',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-4'
|
||||
}]
|
||||
export default {
|
||||
name: "gencyProcess",
|
||||
data() {
|
||||
return {
|
||||
tableData: [
|
||||
{
|
||||
processId: "2016-05-1",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-1",
|
||||
},
|
||||
{
|
||||
processId: "2016-05-2",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-2",
|
||||
},
|
||||
{
|
||||
processId: "2016-05-3",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-3",
|
||||
},
|
||||
{
|
||||
processId: "2016-05-4",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-4",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
props:{
|
||||
firstData:{
|
||||
type:Array,
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handle(){
|
||||
alert(111)
|
||||
|
||||
watch: {
|
||||
firstData(newValue, oldValue) {
|
||||
this.tableData=newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('11',data)
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
handle() {
|
||||
alert(111);
|
||||
},
|
||||
},
|
||||
beforeDestroy(){
|
||||
this.$bus.$off('getSearchItem')
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-table__fixed, ::v-deep .el-table__fixed-right ::before{
|
||||
height: 0px !important;
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -1,130 +1,93 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
style="width: 100%"
|
||||
border
|
||||
:header-cell-style="{background:'#DFE6EC',fontWeight:'700',color:'#1F2D3D'}"
|
||||
>
|
||||
<el-table-column
|
||||
prop="processId"
|
||||
label="流程编号"
|
||||
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processName"
|
||||
label="流程名称"
|
||||
width="220"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processPerson"
|
||||
label="发起人"
|
||||
width="220"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="now"
|
||||
label="当前处理人"
|
||||
width="190"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="last"
|
||||
label="上一处理人"
|
||||
width="180"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
width="180"
|
||||
sortable
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
label="完成时间"
|
||||
width="170"
|
||||
sortable
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
label="状态"
|
||||
width="125"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
label="操作"
|
||||
width="120"
|
||||
align="center">
|
||||
<template slot-scope="scope" >
|
||||
<el-button
|
||||
@click.native.prevent="view(scope.$index, tableData)"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
<span>查看</span>
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-table :data="tableData" style="width: 100%" border
|
||||
:header-cell-style="{ background: '#DFE6EC', fontWeight: '700', color: '#1F2D3D' }">
|
||||
<el-table-column prop="processId" label="流程编号" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="processName" label="流程名称" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="processPerson" label="发起人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="now" label="当前处理人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="last" label="上一处理人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="endTime" label="完成时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click.native.prevent="view(scope.$index, tableData)" type="text" size="small">
|
||||
查看
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'monitorProcess',
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
processId: '2016-05-1',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-1'
|
||||
}, {
|
||||
processId: '2016-05-2',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-2'
|
||||
}, {
|
||||
processId: '2016-05-3',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-3'
|
||||
}, {
|
||||
processId: '2016-05-4',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-4'
|
||||
}]
|
||||
export default {
|
||||
name: 'monitorProcess',
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
processId: '2016-05-1',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-1'
|
||||
}, {
|
||||
processId: '2016-05-2',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-2'
|
||||
}, {
|
||||
processId: '2016-05-3',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-3'
|
||||
}, {
|
||||
processId: '2016-05-4',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime: '2023-1-4'
|
||||
}]
|
||||
}
|
||||
},
|
||||
props:{
|
||||
fourthData:{
|
||||
type:Array,
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
fourthData(newValue, oldValue) {
|
||||
this.tableData=newValue
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('44',data)
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
view(){
|
||||
alert(111)
|
||||
view() {
|
||||
this.$router.push({
|
||||
path: 'monitorViews',
|
||||
query:{
|
||||
id: this.$route.query.id
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="sass" scoped>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-table__fixed,.el-table__fixed-right ::before{
|
||||
height: 0px !important;
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,98 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog title="调整处理人" :visible.sync="dialogVisible" :before-close="handleClose">
|
||||
<div class="form-container">
|
||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||
<el-form-item label="选择人员" prop="select" >
|
||||
<el-select v-model="form.select" placeholder="请选择调整处理人">
|
||||
<el-option label="张三" value="1"></el-option>
|
||||
<el-option label="李四" value="2"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false" class="btn">取 消</el-button>
|
||||
<el-button type="primary" @click="submit" class="btn">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'modal',
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
form: {},
|
||||
rules: {
|
||||
select: [
|
||||
{
|
||||
required: 'true',
|
||||
trigger: 'change',
|
||||
message: '请选择调整处理人'
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
handleClose(done) {
|
||||
this.$confirm('确认关闭?')
|
||||
.then(_ => {
|
||||
done();
|
||||
})
|
||||
.catch(_ => { });
|
||||
},
|
||||
open() {
|
||||
this.dialogVisible = true
|
||||
},
|
||||
submit() {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
alert(11)
|
||||
this.dialogVisible = false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.dialog-footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-bottom: 30px;
|
||||
|
||||
}
|
||||
|
||||
::v-deep .el-dialog {
|
||||
width: 600px;
|
||||
|
||||
}
|
||||
|
||||
::v-deep .el-dialog .el-dialog__body {
|
||||
font-size: 50px;
|
||||
height: 230px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
::v-deep .el-input__inner {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
::v-deep .el-form-item--mini .el-form-item__label {
|
||||
line-height: 40px !important;
|
||||
}
|
||||
|
||||
::v-deep .btn {
|
||||
width: 90px;
|
||||
height: 40px;
|
||||
border-radius: 30px;
|
||||
margin-right: 30px;
|
||||
}</style>
|
||||
@@ -0,0 +1,84 @@
|
||||
<template>
|
||||
<div class="content">
|
||||
<div class="map">
|
||||
</div>
|
||||
<div class="btn">
|
||||
<el-button type="primary" class="inner-btn" @click="showDialog">
|
||||
调整处理人
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="table">
|
||||
<el-table :data="tableData" style="width: 100%" border
|
||||
:header-cell-style="{ background: '#DFE6EC', fontWeight: '700', color: '#1F2D3D' }">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column prop="step" label="任务步骤" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="missionPer" label="任务受理人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="endTime" label="完成时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" align="center">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<monitorModal ref="monitorModal"></monitorModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import monitorModal from './monitorModal.vue'
|
||||
export default {
|
||||
name:'monitorViews',
|
||||
components:{
|
||||
monitorModal
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tableData: [
|
||||
{
|
||||
step:'1',
|
||||
missionPer:'王五',
|
||||
createTime:'2023-1-1',
|
||||
endTime:'2023-5-1',
|
||||
status:'待定'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showDialog() {
|
||||
this.$refs.monitorModal.open()
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.content{
|
||||
min-height: calc(100vh - 60px - 20px);
|
||||
box-shadow: 0 6px 11px 0 rgba(163, 163, 163, 0.2);
|
||||
border-radius: 6px;
|
||||
background: #FFFFFF;
|
||||
.map{
|
||||
width: 100%;
|
||||
height: 360px;
|
||||
border: 1px red solid;
|
||||
}
|
||||
.btn{
|
||||
padding: 20px 13px;
|
||||
.inner-btn{
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -1,145 +1,110 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-table
|
||||
:data="tableData"
|
||||
style="width: 100%"
|
||||
border
|
||||
:header-cell-style="{background:'#DFE6EC',fontWeight:'700',color:'#1F2D3D'}"
|
||||
>
|
||||
<el-table-column
|
||||
prop="processId"
|
||||
label="流程编号"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processName"
|
||||
label="流程名称"
|
||||
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="processPerson"
|
||||
label="发起人"
|
||||
width="220"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="now"
|
||||
label="当前处理人"
|
||||
width="190"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="last"
|
||||
label="上一处理人"
|
||||
width="180"
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="创建时间"
|
||||
width="180"
|
||||
sortable
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
label="完成时间"
|
||||
width="170"
|
||||
sortable
|
||||
align="center"
|
||||
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
label="状态"
|
||||
width="125"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed="right"
|
||||
label="操作"
|
||||
width="120"
|
||||
align="center">
|
||||
<template slot-scope="scope" >
|
||||
<el-button
|
||||
@click.native.prevent="view(scope.$index, tableData)"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
<span>查看</span>
|
||||
</el-button>
|
||||
<el-table :data="tableData" style="width: 100%" border :header-cell-style="{
|
||||
background: '#DFE6EC',
|
||||
fontWeight: '700',
|
||||
color: '#1F2D3D',
|
||||
}">
|
||||
<el-table-column prop="processId" label="流程编号" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="processName" label="流程名称" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="processPerson" label="发起人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="now" label="当前处理人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="last" label="上一处理人" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="endTime" label="完成时间" sortable align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click.native.prevent="view(scope.$index, tableData)" type="text" size="small">
|
||||
查看
|
||||
</el-button>
|
||||
|
||||
<el-button
|
||||
@click.native.prevent="back(scope.$index, tableData)"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
<span>强制撤回</span>
|
||||
</el-button>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
</el-table>
|
||||
<el-button :disabled="tableData[scope.$index].status=='已完成'" @click.native.prevent="back(scope.$index, tableData)" type="text" size="small"
|
||||
>
|
||||
<span :style="tableData[scope.$index].status=='已完成' ? {color:icolor } :{color:color}" >强制撤回</span>
|
||||
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:'sentProcess',
|
||||
data() {
|
||||
return {
|
||||
tableData: [{
|
||||
processId: '2016-05-1',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-1'
|
||||
}, {
|
||||
processId: '2016-05-2',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-2'
|
||||
}, {
|
||||
processId: '2016-05-3',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-3'
|
||||
}, {
|
||||
processId: '2016-05-4',
|
||||
processName: '王小虎',
|
||||
processPerson: '上海市普陀区金沙江路 1518 弄',
|
||||
createTime:'2023-1-4'
|
||||
}]
|
||||
export default {
|
||||
name: "sentProcess",
|
||||
data() {
|
||||
return {
|
||||
color:'rgb(236, 128, 141)',
|
||||
icolor:'rgb(119,136,153)',
|
||||
tableData: [
|
||||
{
|
||||
processId: "2016-05-1",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-1",
|
||||
status:'已完成'
|
||||
},
|
||||
{
|
||||
processId: "2016-05-2",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-2",
|
||||
},
|
||||
{
|
||||
processId: "2016-05-3",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-3",
|
||||
},
|
||||
{
|
||||
processId: "2016-05-4",
|
||||
processName: "王小虎",
|
||||
processPerson: "上海市普陀区金沙江路 1518 弄",
|
||||
createTime: "2023-1-4",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
props:{
|
||||
thirdData:{
|
||||
type:Array,
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
view(){
|
||||
alert(111)
|
||||
},
|
||||
back(){
|
||||
alert(222)
|
||||
watch: {
|
||||
thirdData(newValue, oldValue) {
|
||||
this.tableData=newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$bus.$on('getSearchItem',(data)=>{
|
||||
console.log('33',data)
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
view() {
|
||||
alert(111);
|
||||
},
|
||||
back(index,tableData) {
|
||||
console.log('index',index);
|
||||
console.log('tableData',tableData);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.slot{
|
||||
|
||||
::v-deep .el-table__fixed, ::v-deep .el-table__fixed-right ::before{
|
||||
height: 0px !important;
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -2,16 +2,16 @@
|
||||
<div>
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
<el-tab-pane label="待办流程" name="first">
|
||||
<gencyProcess></gencyProcess>
|
||||
<gencyProcess :firstData="firstData" v-if="activeName=='first'"></gencyProcess>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="已办流程" name="second">
|
||||
<finishProcess></finishProcess>
|
||||
<finishProcess :secondData="secondData" v-if="activeName=='second'"></finishProcess>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="已发流程" name="third">
|
||||
<sentProcess></sentProcess>
|
||||
<sentProcess :thirdData="thirdData" v-if="activeName=='third'"></sentProcess>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="监控流程" name="fourth">
|
||||
<monitorProcesses></monitorProcesses>
|
||||
<monitorProcesses :fourthData="fourthData" v-if="activeName=='fourth'"></monitorProcesses>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
@@ -30,11 +30,34 @@ export default {
|
||||
monitorProcesses,
|
||||
sentProcess
|
||||
},
|
||||
props:{
|
||||
tableData:{
|
||||
type:Array,
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'first'
|
||||
activeName: 'first',
|
||||
firstData:[],
|
||||
secondData:[],
|
||||
thirdData:[],
|
||||
fourthData:[],
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
tableData(newValue, oldValue) {
|
||||
if(this.activeName == 'first'){
|
||||
this.firstData=newValue
|
||||
}else if(this.activeName == 'second'){
|
||||
this.secondData=newValue
|
||||
}else if(this.activeName == 'third'){
|
||||
this.thirdData=newValue
|
||||
}else{
|
||||
this.fourthData=newValue
|
||||
}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
;
|
||||
},
|
||||
@@ -43,7 +66,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleClick(tab, event) {
|
||||
// console.log(tab, event);
|
||||
this.$bus.$emit('clearForm')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user