Browse Source

新建流程添加权限

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

77
src/views/activiti/applyHome.vue

@ -11,8 +11,64 @@
<a-collapse v-model="activeKey">
<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-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-list-item slot="renderItem" slot-scope="item" >
<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">
<a-row style="text-align: center;">
<!-- <a-col span="12" :title="item.name">{{item.name}} </a-col>-->
@ -26,6 +82,20 @@
<br/>
<b>说明</b>{{item.description}}-->
</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>
</a-collapse-panel>
@ -58,6 +128,7 @@
import JTreeSelect from '@/components/jeecg/JTreeSelect'
import {initDictOptions, filterDictText} from '@/components/dict/JDictSelectUtil'
import historicDetail from '@/views/activiti/historicDetail'
import hasPermission, { filterGlobalPermission, filterNodePermission } from '../../utils/hasPermission'
export default {
name: "applyHome",
mixins:[activitiMixin],
@ -71,6 +142,7 @@
description: '所有',
dictOptions:[],
disableSubmit: false,
hasVaule:[],
url: {
getProcessDataList: "/activiti_process/listData",
getFirstNode:'/actProcessIns/getFirstNode',
@ -195,6 +267,7 @@
this.getProcessList()
},
chooseProcess(v) {
console.log(v)
if (!v.routeName) {
this.$message.warning(
"该流程信息未配置表单,请联系开发人员!"

Loading…
Cancel
Save