Browse Source

森语表单(隐藏技能博物馆接口)

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

+ 65 - 65
src/views/activiti/form/demoForm2.vue

@@ -208,76 +208,76 @@ export default {
                     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/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/list', { pageSize: -1}).then(res => {
-                             if (res.success) {
-                                 var aa = []
-                                 res.result.records.map(item =>{
-                                     aa.push(
-                                         {value:item.realname,
-                                         label:item.realname,
-                                         workNo:item.workNo,
-                                         post:item.post,
-                                         nInductionTime:item.nInductionTimenInductionTime,
-                                         phone:item.phone,
-                                         telephone:item.telephone,
-                                         departIds_dictText:item.departIds_dictText,
-                                         departIds:item.departIds
-                                         })
-                                 })
-                              this.dynamicData.personListJn = aa
-                              //技能博物馆 --- 全馆值班   此时无法触碰到handleChange方法  手动触发
-                              if(this.processData.businessTable == 'bwg_house_duty'){
-                                this.handleChange()
-                              }
+                        // this.getAction('/sys/user/list', { pageSize: -1}).then(res => {
+                        //      if (res.success) {
+                        //          var aa = []
+                        //          res.result.records.map(item =>{
+                        //              aa.push(
+                        //                  {value:item.realname,
+                        //                  label:item.realname,
+                        //                  workNo:item.workNo,
+                        //                  post:item.post,
+                        //                  nInductionTime:item.nInductionTimenInductionTime,
+                        //                  phone:item.phone,
+                        //                  telephone:item.telephone,
+                        //                  departIds_dictText:item.departIds_dictText,
+                        //                  departIds:item.departIds
+                        //                  })
+                        //          })
+                        //       this.dynamicData.personListJn = aa
+                        //       //技能博物馆 --- 全馆值班   此时无法触碰到handleChange方法  手动触发
+                        //       if(this.processData.businessTable == 'bwg_house_duty'){
+                        //         this.handleChange()
+                        //       }
 
-                            } else {
-                                 this.$message.error(res.message)
-                             }
-                        })
+                        //     } else {
+                        //          this.$message.error(res.message)
+                        //      }
+                        // })
 
                           //技能博物馆项目信息
-                        this.getAction('/oa/activiti/getSelectionList',{tableName:'bwg_project_start'}).then(res => {
-                             if (res.success) {
-                               var aa=[]
-                               res.result.map(item=>{
-                               aa.push(
-                                   {value:item.project_name,
-                                   label:item.project_name,
-                                   startDate:item.start_date,
-                                   endDate:item.end_date,
-                                   projectReasons:item.project_reasons,
-                                   budgetInformation:item.budget_information
-                                   })
-                             })
-                             this.dynamicData.fundApproval = aa
-                            } else {
-                                 this.$message.error(res.message)
-                             }
-                        })
+                        // this.getAction('/oa/activiti/getSelectionList',{tableName:'bwg_project_start'}).then(res => {
+                        //      if (res.success) {
+                        //        var aa=[]
+                        //        res.result.map(item=>{
+                        //        aa.push(
+                        //            {value:item.project_name,
+                        //            label:item.project_name,
+                        //            startDate:item.start_date,
+                        //            endDate:item.end_date,
+                        //            projectReasons:item.project_reasons,
+                        //            budgetInformation:item.budget_information
+                        //            })
+                        //      })
+                        //      this.dynamicData.fundApproval = aa
+                        //     } else {
+                        //          this.$message.error(res.message)
+                        //      }
+                        // })
                           //技能博物馆会议室信息
-                        this.getAction('/oa/meetingRoom/all').then(res => {
-                             if (res.success) {
-                               var aa=[]
-                               res.result.map(item=>{
-                               aa.push({value:item.name,label:item.name})
-                               })
-                               this.dynamicData.conferenceRoom = aa
-                             } else {
-                                 this.$message.error(res.message)
-                             }
-                        })
+                        // this.getAction('/oa/meetingRoom/all').then(res => {
+                        //      if (res.success) {
+                        //        var aa=[]
+                        //        res.result.map(item=>{
+                        //        aa.push({value:item.name,label:item.name})
+                        //        })
+                        //        this.dynamicData.conferenceRoom = aa
+                        //      } else {
+                        //          this.$message.error(res.message)
+                        //      }
+                        // })
                         // 获取用户下拉数据
                         this.getAction('/sys/user/list2', { pageSize: 20000 }).then(userData => {
                             if (res.success) {