Merge branch 'zhoulingpo'
# Conflicts: # src/views/Report/ReportList.vue
This commit is contained in:
@@ -95,7 +95,7 @@ labelUpdate(data){
|
|||||||
// 报告列表
|
// 报告列表
|
||||||
reportList (data) {
|
reportList (data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/report/list',
|
url: '/api/report/page',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export default {
|
|||||||
this.$store.commit('savePathUrl', null)
|
this.$store.commit('savePathUrl', null)
|
||||||
this.$store.commit('saveMenuName', null)
|
this.$store.commit('saveMenuName', null)
|
||||||
this.$store.commit('saveMenuData', null)
|
this.$store.commit('saveMenuData', null)
|
||||||
this.store.commit('setHandleProcess', null)
|
this.$store.commit('setHandleProcess', null)
|
||||||
// var sevice = "http://"+window.location.host+"/";
|
// var sevice = "http://"+window.location.host+"/";
|
||||||
// var serviceUrl = encodeURIComponent(sevice);
|
// var serviceUrl = encodeURIComponent(sevice);
|
||||||
// 正式
|
// 正式
|
||||||
|
|||||||
@@ -96,26 +96,31 @@
|
|||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
<el-row class="tag-btn">
|
||||||
|
<el-button @click="permissionApp">权限申请</el-button>
|
||||||
|
</el-row>
|
||||||
<div class="table">
|
<div class="table">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="4" class="treeList">
|
<el-col :span="4" class="treeList">
|
||||||
<el-input placeholder="输入关键字进行过滤" v-model="filterText">
|
<el-input placeholder="输入关键字进行过滤" v-model="filterText">
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-tree
|
<el-tree
|
||||||
class="filter-tree"
|
class="filter-tree"
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
show-checkbox
|
show-checkbox
|
||||||
node-key="id"
|
node-key="id"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
ref="tree"
|
ref="tree"
|
||||||
@check="getHalfCheckedNode"
|
@check="getHalfCheckedNode"
|
||||||
>
|
>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="19">
|
<el-col :span="19">
|
||||||
<vxe-table :data="tableData" :empty-render="{name: 'NotData'}" align="center" border stripe v-table-min-height="'calc(100vh - 420px)'">
|
<vxe-table ref="xTable" :data="tableData" :empty-render="{name: 'NotData'}" align="center" border stripe v-table-min-height="'calc(100vh - 420px)'"
|
||||||
<vxe-column show-overflow show-header-overflow type="seq" title="序号" width="77">
|
@checkbox-all="selectAllEvent" @checkbox-change="selectChangeEvent">
|
||||||
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
||||||
|
<vxe-column show-overflow show-header-overflow type="seq" title="序号" width="77">
|
||||||
<template #default="{ row, rowIndex }">
|
<template #default="{ row, rowIndex }">
|
||||||
{{ rowIndex + (q.pageNo - 1) * q.pageSize + 1 }}
|
{{ rowIndex + (q.pageNo - 1) * q.pageSize + 1 }}
|
||||||
</template>
|
</template>
|
||||||
@@ -239,7 +244,9 @@ export default {
|
|||||||
filterText:'',
|
filterText:'',
|
||||||
treeData: [
|
treeData: [
|
||||||
],
|
],
|
||||||
checkedKeys:[]
|
checkIds: [],
|
||||||
|
checkList: [],
|
||||||
|
checkedKeys:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -269,6 +276,41 @@ export default {
|
|||||||
if (!value) return true;
|
if (!value) return true;
|
||||||
return data.label.indexOf(value) !== -1;
|
return data.label.indexOf(value) !== -1;
|
||||||
},
|
},
|
||||||
|
selectAllEvent ({ checked }) {
|
||||||
|
const records = this.$refs.xTable.getCheckboxRecords()
|
||||||
|
this.checkList= records
|
||||||
|
this.checkIds = records.map(item => {
|
||||||
|
return item.id
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selectChangeEvent ({ checked }) {
|
||||||
|
const records = this.$refs.xTable.getCheckboxRecords()
|
||||||
|
this.checkList= records
|
||||||
|
this.checkIds = records.map(item => {
|
||||||
|
return item.id
|
||||||
|
})
|
||||||
|
},
|
||||||
|
permissionApp () {
|
||||||
|
// if(this.checkList.length <1){
|
||||||
|
// this.$message.warning("至少选择一条报告进行权限申请")
|
||||||
|
// return
|
||||||
|
// }
|
||||||
|
// // 有预览权限的时候是否还让继续申请
|
||||||
|
// let temp=this.checkList.filter(item =>{
|
||||||
|
// if(+item.power == 1 || +item.power == 2){
|
||||||
|
// return item.name
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// if(temp.length>0) {
|
||||||
|
// this.$message.warning("当前选择的"+temp.toString()+"已经有权限,无须申请!")
|
||||||
|
// return
|
||||||
|
// }
|
||||||
|
|
||||||
|
this.$router.push({
|
||||||
|
path: '/permission/launch',
|
||||||
|
query: { id: 'AEHJB8YNJ3', ids: this.checkIds.toString() }
|
||||||
|
})
|
||||||
|
},
|
||||||
init () {
|
init () {
|
||||||
this.getTreeLabel()
|
this.getTreeLabel()
|
||||||
this.labelList()
|
this.labelList()
|
||||||
@@ -434,7 +476,9 @@ export default {
|
|||||||
color: #262626;
|
color: #262626;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.tag-btn{
|
||||||
|
padding: 10px 13px;
|
||||||
|
}
|
||||||
.tag-search {
|
.tag-search {
|
||||||
padding-top: 9px;
|
padding-top: 9px;
|
||||||
|
|
||||||
|
|||||||
@@ -196,9 +196,9 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
// 第一次进入此页面 需要清楚校验
|
// 第一次进入此页面 需要清楚校验
|
||||||
if (this.$route.query.ids) {
|
if (this.$route.query.ids) {
|
||||||
if (this.$route.query.ids.split(',').length > 0) {
|
// if (this.$route.query.ids.split(',').length > 0) {
|
||||||
this.reportList(this.$route.query.ids)
|
// this.reportList(this.$route.query.ids)
|
||||||
}
|
// }
|
||||||
this.handleReset()
|
this.handleReset()
|
||||||
}
|
}
|
||||||
if (this.$store.getters.handleProcess.taskDefinitionKey == 'aid4') {
|
if (this.$store.getters.handleProcess.taskDefinitionKey == 'aid4') {
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ export default {
|
|||||||
if(check.length > 0){
|
if(check.length > 0){
|
||||||
this.$message.warning("请选择状态为未完成的数据")
|
this.$message.warning("请选择状态为未完成的数据")
|
||||||
}else{
|
}else{
|
||||||
this.$refs.monitorModal.open(this.checkIds[0].taskId,this.prcId,this.checkList[0].assigneeId)
|
this.$refs.monitorModal.open(this.checkList[0].id,this.prcId,this.checkList[0].assigneeId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ export default {
|
|||||||
//转办完应该跳到哪个页面?
|
//转办完应该跳到哪个页面?
|
||||||
//转办完这个人还能看到这个监控流程吗
|
//转办完这个人还能看到这个监控流程吗
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$message.success(res.data.message)
|
||||||
|
this.sysUserList()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user