diff --git a/src/api/manage.js b/src/api/manage.js
index d2e08de..b017b86 100644
--- a/src/api/manage.js
+++ b/src/api/manage.js
@@ -191,3 +191,13 @@ export function getFileAccessHttpUrl(avatar,subStr) {
return;
}
}
+
+export function getCurrentTime() {
+ let yy = new Date().getFullYear();
+ let mm = new Date().getMonth()+1;
+ let dd = new Date().getDate();
+ let hh = new Date().getHours();
+ let mf = new Date().getMinutes()<10 ? '0'+new Date().getMinutes() : new Date().getMinutes();
+ let ss = new Date().getSeconds()<10 ? '0'+new Date().getSeconds() : new Date().getSeconds();
+ return yy+'-'+mm+'-'+dd+' '+hh+':'+mf+':'+ss;
+}
diff --git a/src/components/jeecgbiz/JSelectUserByDep.vue b/src/components/jeecgbiz/JSelectUserByDep.vue
index efeed98..5d8f44a 100644
--- a/src/components/jeecgbiz/JSelectUserByDep.vue
+++ b/src/components/jeecgbiz/JSelectUserByDep.vue
@@ -44,10 +44,10 @@
return {
userIds: "",
userNames: "",
- //部门
- orgCodeTxt:"",
- //部门id
- id:""
+ // //部门
+ // orgCodeTxt:"",
+ // //部门id
+ // id:""
}
},
mounted() {
@@ -81,22 +81,21 @@
temp += ',' + item.realname
}
- let demp = ''
- for (let item of rows) {
- demp += ',' + item.orgCodeTxt
- }
- let idmp = ''
- for (let item of rows) {
- idmp += ',' + item.id
- }
+ // let demp = ''
+ // for (let item of rows) {
+ // demp += ',' + item.orgCodeTxt
+ // }
+ // let idmp = ''
+ // for (let item of rows) {
+ // idmp += ',' + item.id
+ // }
this.userNames = temp.substring(1)
this.userIds = idstr
- this.orgCodeTxt = demp.substring(1)
- this.id = idmp.substring(1)
- // console.log("当前选中用户部门", this.orgCodeTxt)
- // console.log("当前选中用户部门Id", this.id)
+ // this.orgCodeTxt = demp.substring(1)
+ // this.id = idmp.substring(1)
+
}
- this.$emit('orgCodeTxt',this.orgCodeTxt)
+ // this.$emit("orgCodeTxt",this.orgCodeTxt,this.id)
this.$emit("change", this.userIds)
}
}
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index fdceea5..677e967 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -1,9 +1,10 @@
import Vue from 'vue'
import { login, logout, phoneLogin, thirdLogin } from "@/api/login"
-import { ACCESS_TOKEN, USER_NAME,USER_INFO,USER_AUTH,SYS_BUTTON_AUTH,UI_CACHE_DB_DICT_DATA,TENANT_ID,CACHE_INCLUDED_ROUTES } from "@/store/mutation-types"
+import { ACCESS_TOKEN, USER_NAME,USER_INFO,USER_AUTH,SYS_BUTTON_AUTH,UI_CACHE_DB_DICT_DATA,TENANT_ID,CACHE_INCLUDED_ROUTES,PARENT_ID,USER_INFORMATION } from "@/store/mutation-types"
import { welcome } from "@/utils/util"
import { queryPermissionsByUser } from '@/api/api'
import { getAction } from '@/api/manage'
+import { console } from 'vuedraggable/src/util/helper'
const user = {
state: {
@@ -120,9 +121,14 @@ const user = {
const menuData = response.result.menu;
const authData = response.result.auth;
const allAuthData = response.result.allAuth;
+ const parentId=response.result.parentId;
+ const userInformation=response.result.userInfo;
+ console.log('------>登录后的信息',response)
//Vue.ls.set(USER_AUTH,authData);
sessionStorage.setItem(USER_AUTH,JSON.stringify(authData));
sessionStorage.setItem(SYS_BUTTON_AUTH,JSON.stringify(allAuthData));
+ sessionStorage.setItem(PARENT_ID,parentId);
+ sessionStorage.setItem(USER_INFORMATION,JSON.stringify(userInformation));
if (menuData && menuData.length > 0) {
//update--begin--autor:qinfeng-----date:20200109------for:JEECG-63 一级菜单的子菜单全部是隐藏路由,则一级菜单不显示------
menuData.forEach((item, index) => {
diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js
index 631ec5c..8dbc1fa 100644
--- a/src/store/mutation-types.js
+++ b/src/store/mutation-types.js
@@ -12,6 +12,8 @@ export const DEFAULT_MULTI_PAGE = 'DEFAULT_MULTI_PAGE'
export const USER_NAME = 'Login_Username'
export const USER_INFO = 'Login_Userinfo'
export const USER_AUTH = 'LOGIN_USER_BUTTON_AUTH'
+export const PARENT_ID='PARENT_ID'
+export const USER_INFORMATION='USER_INFORMATION'
export const SYS_BUTTON_AUTH = 'SYS_BUTTON_AUTH'
export const ENCRYPTED_STRING = 'ENCRYPTED_STRING'
export const ENHANCE_PRE = 'enhance_'
diff --git a/src/views/activiti/form/ProcessMaterialBorrowingForm.vue b/src/views/activiti/form/ProcessMaterialBorrowingForm.vue
index 3713d25..d2b44a3 100644
--- a/src/views/activiti/form/ProcessMaterialBorrowingForm.vue
+++ b/src/views/activiti/form/ProcessMaterialBorrowingForm.vue
@@ -11,22 +11,22 @@
-
+
-
+
-
+
-
+
@@ -78,7 +78,7 @@
\ No newline at end of file