Browse Source

技能博物馆部门

jbb 2 years ago
parent
commit
a94bbdafb8
1 changed files with 13 additions and 9 deletions
  1. 13 9
      src/views/activiti/form/demoForm2.vue

+ 13 - 9
src/views/activiti/form/demoForm2.vue

@@ -130,7 +130,7 @@ export default {
                 invoiceTypeList: [], // 发票类型下拉数据
                 add: this.add,
                 gv:this.funName,
-                deptList:[],//技能博物管下拉框信息
+                department:[],//技能博物管下拉框信息
             },
             postInfo: {},//职位信息
             deptInfo: {},//部门信息
@@ -162,14 +162,6 @@ export default {
     },
     created () {
         window.deleteRow = this.deleteRow
-        //技能博物馆部门信息
-        // this.getAction('/sys/sysDepart/queryMyDeptList').then(res => {
-        //         if (res.success) {
-        //             res.result.map(item=>{this.dynamicData.deptList.push(item.departName)})
-        //         } else {
-        //             this.$message.error(res.message)
-        //         }
-        //     })
         // console.log('流程数据', this.processData)
         // 加载一些下拉选择数据等
         // this.getDataList()
@@ -211,6 +203,18 @@ export default {
                 postAction('/sys/dict/getDictItems/getDictList', dynamicKeyValueList).then(dictData => {
                     if (dictData.success) {
                         this.dynamicData = dictData.result.dicList
+                         //技能博物馆部门信息
+                        this.getAction('/sys/sysDepart/queryMyDeptList').then(res => {
+                             if (res.success) {
+                               var aa=[]
+                               res.result.map(item=>{
+                               aa.push({value:item.departName,label:item.departName})
+                             })
+                             this.dynamicData.department = aa
+                            } else {
+                                 this.$message.error(res.message)
+                             }
+                        })
                         // 获取用户下拉数据
                         this.getAction('/sys/user/list2', { pageSize: 20000 }).then(userData => {
                             if (res.success) {