dad0d6d1 by 杨威

工作流权限控制修改

1 parent 085bfe00
......@@ -102,3 +102,16 @@ export function termProcess(data) {
})
}
/**
* 根据bsm判断是否存在工作流
*/
export function booleanWorkflow(data) {
return request({
url: '/qj/workarea/booleanWorkflow',
method: 'get',
params: {
bsm:data,
}
})
}
......
......@@ -53,6 +53,7 @@ const store = new Vuex.Store({
treeData:[], // 树数据
oldZdbsm:'',
newZdbsm:'',
isWorkFlow:false, // 判断是否工作流数据
},
modules: {
user,
......
......@@ -82,6 +82,7 @@ import Create from "./panel/create/index";
import LineTree from "../components/lineTree/lineTree";
import { setTimeout } from "timers";
import { getTree,getDdicByMC,getTreeList,getTreeByBsm,getListMenu } from "../api/common";
import {booleanWorkflow} from "@api/user"
export default {
components: {
......@@ -177,8 +178,10 @@ export default {
}
} else if(newPath == '/viewMap'){
this.isMap = true;
}else{
}else if(newPath == '/zrz' || newPath == '/zd' || newPath == '/dz'){
booleanWorkflow(this.$route.query.ywbsm).then(res=>{
this.$store.state.isWorkFlow = res.result;
})
}
},
"$store.state.treeData":function (val) {
......
......@@ -158,6 +158,7 @@
path: path,
query: {
bsm: row.glbsm,
ywbsm: row.businessId,
source: 2,
auth: '0,1,2',
workitemInstanceId:row.id
......
......@@ -193,11 +193,11 @@
</tbody>
</table>
</el-form>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<div class="header-button" :style="{width:mainBoxWidth+'px'}" v-if="$store.state.isWorkFlow">
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled">保存</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
<div class="sh-btn">
<div class="sh-btn" v-if="$store.state.isWorkFlow">
<el-button type="primary" @click="lczz" v-show="workFlowphase == 'modify'">终止</el-button>
<el-button type="primary" @click="thzd" v-show="rollbackDetails.length>0">退回</el-button>
<el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
......@@ -321,6 +321,7 @@
getActivityDetail(){
if (this.$route.query.workitemInstanceId) {
let params = {
"params": {},
"workflowPeriod": "current",
......@@ -334,6 +335,7 @@
return item == 'shenpibiao';
});
})
}
},
shdz(){
......
......@@ -164,6 +164,7 @@
path: path,
query: {
bsm: row.glbsm,
ywbsm: row.bsm,
source: 2,
auth: '0,1,2'
}
......
......@@ -15,7 +15,7 @@
<el-tab-pane label="附件材料" name="fjcl">
<fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl>
</el-tab-pane>
<el-tab-pane label="流程跟踪" name="lcgz" lazy>
<el-tab-pane label="流程跟踪" name="lcgz" v-if="$store.state.isWorkFlow" lazy>
<lcgz ref="lcgz" ></lcgz>
</el-tab-pane>
</el-tabs>
......
......@@ -363,12 +363,12 @@
</td>
</tr>
</table>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<div class="header-button" :style="{width:mainBoxWidth+'px'}" v-if="$store.state.isWorkFlow">
<el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun">保存</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
</div>
<div class="sh-btn">
<div class="sh-btn" v-if="$store.state.isWorkFlow">
<el-button type="primary" @click="lczz" v-show="workFlowphase == 'modify'">终止</el-button>
<el-button type="primary" @click="thzd" v-show="rollbackDetails.length>0">退回</el-button>
<el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button>
......@@ -502,6 +502,7 @@
},
methods: {
getActivityDetail(){
if (this.$route.query.workitemInstanceId) {
let params = {
"params": {},
"workflowPeriod": "current",
......@@ -515,6 +516,8 @@
return item == 'shenpibiao';
});
})
}
},
registerCall() {
let data = {
......
......@@ -272,13 +272,13 @@
</tr>
</table>
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<div class="header-button" :style="{width:mainBoxWidth+'px'}" v-if="$store.state.isWorkFlow">
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont iconbaocun">保存</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
<!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> -->
</div>
</div>
<div class="sh-btn">
<div class="sh-btn" v-if="$store.state.isWorkFlow">
<el-button type="primary" @click="lczz" v-show="workFlowphase == 'modify'">终止</el-button>
<el-button type="primary" @click="thzd" v-show="rollbackDetails.length>0">退回</el-button>
<el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
......@@ -426,6 +426,7 @@
methods: {
getActivityDetail(){
if (this.$route.query.workitemInstanceId) {
let params = {
"params": {},
"workflowPeriod": "current",
......@@ -439,6 +440,7 @@
return item == 'shenpibiao';
});
})
}
},
updateSjfyyt(data){
......