Browse Source

新建流程添加权限

dev
long 2 years ago
parent
commit
5bf7960ca8
  1. 75
      src/views/activiti/applyHome.vue

75
src/views/activiti/applyHome.vue

@ -12,7 +12,63 @@
<a-collapse-panel v-for="(value, index) in activeKeyAll" :header="filterDictText(dictOptions,value)||'未分类'" :key="value"> <a-collapse-panel v-for="(value, index) in activeKeyAll" :header="filterDictText(dictOptions,value)||'未分类'" :key="value">
<a-list :grid="{ gutter: 20,column:4}" :dataSource="processDataMap[value]"> <a-list :grid="{ gutter: 20,column:4}" :dataSource="processDataMap[value]">
<a-list-item slot="renderItem" slot-scope="item" > <a-list-item slot="renderItem" slot-scope="item" >
<a-card hoverable @click="chooseProcess(item)" class="forRadius" :style="{'background-color':item.color,'border-radius':'12px'}" :headStyle="{'border-radius':'12px'}"> <a-card v-if="item.name=='预算计划采购流程'" v-has="'applyHome:planAdd'" hoverable @click="chooseProcess(item)" class="forRadius" :style="{'background-color':item.color,'border-radius':'12px'}" :headStyle="{'border-radius':'12px'}">
<div slot="title">
<a-row style="text-align: center;">
<!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>-->
<!--<a-col span="12" style="text-align: center;">-->
<a href="javascript:void (0)" style="color: white;font-size: 18px;font-weight: bolder;">{{item.name}}</a>
<!-- <a href="javascript:void (0)" @click="chooseProcess(item)">{{item.name}}</a>-->
<!--</a-col>-->
</a-row>
</div>
<!-- <b>版本</b>v.{{item.version}}
<br/>
<b>说明</b>{{item.description}}-->
</a-card>
<a-card v-if="item.name=='物资入库流程'" v-has="'applyHome:warehousingAdd'" hoverable @click="chooseProcess(item)" class="forRadius" :style="{'background-color':item.color,'border-radius':'12px'}" :headStyle="{'border-radius':'12px'}">
<div slot="title">
<a-row style="text-align: center;">
<!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>-->
<!--<a-col span="12" style="text-align: center;">-->
<a href="javascript:void (0)" style="color: white;font-size: 18px;font-weight: bolder;">{{item.name}}</a>
<!-- <a href="javascript:void (0)" @click="chooseProcess(item)">{{item.name}}</a>-->
<!--</a-col>-->
</a-row>
</div>
<!-- <b>版本</b>v.{{item.version}}
<br/>
<b>说明</b>{{item.description}}-->
</a-card>
<a-card v-if="item.name=='物资出库流程'" v-has="'applyHome:deliberyAdd'" hoverable @click="chooseProcess(item)" class="forRadius" :style="{'background-color':item.color,'border-radius':'12px'}" :headStyle="{'border-radius':'12px'}">
<div slot="title">
<a-row style="text-align: center;">
<!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>-->
<!--<a-col span="12" style="text-align: center;">-->
<a href="javascript:void (0)" style="color: white;font-size: 18px;font-weight: bolder;">{{item.name}}</a>
<!-- <a href="javascript:void (0)" @click="chooseProcess(item)">{{item.name}}</a>-->
<!--</a-col>-->
</a-row>
</div>
<!-- <b>版本</b>v.{{item.version}}
<br/>
<b>说明</b>{{item.description}}-->
</a-card>
<a-card v-if="item.name=='物资调拨流程'" v-has="'applyHome:allotAdd'" hoverable @click="chooseProcess(item)" class="forRadius" :style="{'background-color':item.color,'border-radius':'12px'}" :headStyle="{'border-radius':'12px'}">
<div slot="title">
<a-row style="text-align: center;">
<!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>-->
<!--<a-col span="12" style="text-align: center;">-->
<a href="javascript:void (0)" style="color: white;font-size: 18px;font-weight: bolder;">{{item.name}}</a>
<!-- <a href="javascript:void (0)" @click="chooseProcess(item)">{{item.name}}</a>-->
<!--</a-col>-->
</a-row>
</div>
<!-- <b>版本</b>v.{{item.version}}
<br/>
<b>说明</b>{{item.description}}-->
</a-card>
<a-card v-if="item.name=='物资报废流程'" v-has="'applyHome:srcapAdd'" hoverable @click="chooseProcess(item)" class="forRadius" :style="{'background-color':item.color,'border-radius':'12px'}" :headStyle="{'border-radius':'12px'}">
<div slot="title"> <div slot="title">
<a-row style="text-align: center;"> <a-row style="text-align: center;">
<!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>--> <!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>-->
@ -26,6 +82,20 @@
<br/> <br/>
<b>说明</b>{{item.description}}--> <b>说明</b>{{item.description}}-->
</a-card> </a-card>
<a-card v-if="item.name=='权限授权流程'" v-has="'applyHome:authAdd'" hoverable @click="chooseProcess(item)" class="forRadius" :style="{'background-color':item.color,'border-radius':'12px'}" :headStyle="{'border-radius':'12px'}">
<div slot="title">
<a-row style="text-align: center;">
<!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>-->
<!--<a-col span="12" style="text-align: center;">-->
<a href="javascript:void (0)" style="color: white;font-size: 18px;font-weight: bolder;">{{item.name}}</a>
<!-- <a href="javascript:void (0)" @click="chooseProcess(item)">{{item.name}}</a>-->
<!--</a-col>-->
</a-row>
</div>
<!-- <b>版本</b>v.{{item.version}}
<br/>
<b>说明</b>{{item.description}}-->
</a-card>
</a-list-item> </a-list-item>
</a-list> </a-list>
</a-collapse-panel> </a-collapse-panel>
@ -58,6 +128,7 @@
import JTreeSelect from '@/components/jeecg/JTreeSelect' import JTreeSelect from '@/components/jeecg/JTreeSelect'
import {initDictOptions, filterDictText} from '@/components/dict/JDictSelectUtil' import {initDictOptions, filterDictText} from '@/components/dict/JDictSelectUtil'
import historicDetail from '@/views/activiti/historicDetail' import historicDetail from '@/views/activiti/historicDetail'
import hasPermission, { filterGlobalPermission, filterNodePermission } from '../../utils/hasPermission'
export default { export default {
name: "applyHome", name: "applyHome",
mixins:[activitiMixin], mixins:[activitiMixin],
@ -71,6 +142,7 @@
description: '所有', description: '所有',
dictOptions:[], dictOptions:[],
disableSubmit: false, disableSubmit: false,
hasVaule:[],
url: { url: {
getProcessDataList: "/activiti_process/listData", getProcessDataList: "/activiti_process/listData",
getFirstNode:'/actProcessIns/getFirstNode', getFirstNode:'/actProcessIns/getFirstNode',
@ -195,6 +267,7 @@
this.getProcessList() this.getProcessList()
}, },
chooseProcess(v) { chooseProcess(v) {
console.log(v)
if (!v.routeName) { if (!v.routeName) {
this.$message.warning( this.$message.warning(
"该流程信息未配置表单,请联系开发人员!" "该流程信息未配置表单,请联系开发人员!"

Loading…
Cancel
Save