瀏覽代碼

仓库报表

3254194295 2 年之前
父節點
當前提交
7b957243c8
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/views/activiti/user-model/modules/ActivitiUserModelTable.vue

+ 9 - 1
src/views/activiti/user-model/modules/ActivitiUserModelTable.vue

@@ -27,7 +27,7 @@
     <template slot="footer">
       <a-button :loading="confirmLoading" type="primary" @click="save()">保存</a-button>
     </template>
-    <base-form ref="baseModal" @ok="handleOk"/>
+    <base-form ref="baseModal" :roleList="roleList" @ok="handleOk"/>
     <detail ref="detailModal" @ok="handleOk"/>
   </a-modal>
 </template>
@@ -40,6 +40,7 @@ import {
 } from '@/api/activiti/user-model'
 import BaseForm from './BaseForm'
 import Detail from './Detail'
+import { queryRole } from '@/api/upms/role'
 
 export default {
   name: 'ActivitiUserModelTable',
@@ -49,6 +50,7 @@ export default {
   },
   data () {
     return {
+      roleList: [],
       confirmLoading: false,
       modalTitle: null,
       form: this.$form.createForm(this),
@@ -121,8 +123,14 @@ export default {
   created () {
     // 下拉框map
     this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.ACTIVITI_USER_MODEL_TYPE)
+    this.getRoles()
   },
   methods: {
+    getRoles () {
+      queryRole({ status: 1 }).then(res => {
+        this.roleList = res.data
+      })
+    },
     base (record) {
       this.visible = true
       this.model = record